Permalink
Commits on Aug 19, 2015
  1. fallback to hostname in scripts/package/builddeb

    ckujau authored and Michal Marek committed Aug 3, 2015
    I happened to build a kernel with "make deb-pkg" on a machine with no
    network connectivity, but this failed with:
    
    [...]
      INSTALL debian/headertmp/usr/include/asm/ (65 files)
    hostname: Name or service not known
    ../scripts/package/Makefile:90: recipe for target 'deb-pkg' failed
    make[2]: *** [deb-pkg] Error 1
    
    In scripts/package/builddeb it tries to construct an email address (that
    can be queried in /proc/version later on) but with no network,
    the "hostname -f" fails. The following patch falls back to just use the
    shortname if we cannot determine our FQDN.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
Commits on Oct 14, 2014
  1. MAINTAINERS: remove non existent files

    ckujau authored and torvalds committed Oct 13, 2014
    Inspired by some recent cleanups in MAINTAINERS the following files (F:)
    cannot be found any more in the tree:
    
    * arch/arm/mach-s5pv210/mach-aquila.c
    * arch/arm/mach-s5pv210/mach-goni.c
    
      Those two got removed in commit 28c8331 ("ARM: S5PV210: Remove
      support for board files").
    
      Cc: Tomasz Figa <t.figa@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
    
    * drivers/rtc/rtc-sec.c
    
      A MAINTAINERS fix was attempted in November 2012, but dismissed as
      rtc-sec.c was still being worked on.  Alas, it's still not there.
    
      "MAINTAINERS: fix drivers/rtc/rtc-sec.c"
      http://lkml.iu.edu/hypermail/linux/kernel/1211.2/04820.html
      Cc: Sangbeom Kim <sbkim73@samsung.com>
      Cc: Cesar Eduardo Barros <cesarb@cesarb.eti.br>
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jun 6, 2014
  1. hfsplus: fix compiler warning on PowerPC

    ckujau authored and torvalds committed Jun 6, 2014
    Commit a99b706 ("hfsplus: Fix undefined __divdi3 in
    hfsplus_init_header_node()") introduced do_div() to xattr.c and the
    warning below too.
    
    As Geert remarked: "tmp" is "loff_t" which is "__kernel_loff_t", which
    is "long long", i.e.  signed, while include/asm-generic/div64.h compares
    its type with "uint64_t".  As inode sizes are positive, it should be
    safe to change the type of "tmp" to "u64".
    
      In file included from
      arch/powerpc/include/asm/div64.h:1:0,
                        from include/linux/kernel.h:124,
                        from include/asm-generic/bug.h:13,
                        from arch/powerpc/include/asm/bug.h:127,
                        from include/linux/bug.h:4,
                        from include/linux/thread_info.h:11,
                        from include/asm-generic/preempt.h:4,
                        from arch/powerpc/include/generated/asm/preempt.h:1,
                        from include/linux/preempt.h:18,
                        from include/linux/spinlock.h:50,
                        from include/linux/wait.h:8,
                        from include/linux/fs.h:6,
                        from fs/hfsplus/hfsplus_fs.h:19,
                        from fs/hfsplus/xattr.c:9:
      fs/hfsplus/xattr.c: In function 'hfsplus_init_header_node':
      include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast [enabled by default]
         (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                                   ^
      fs/hfsplus/xattr.c:86:2: note: in expansion of macro 'do_div'
         do_div(tmp, node_size);
         ^
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
    Acked-by: Sergei Antonov <saproj@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Oct 31, 2013
  1. powerpc/pmu: Fix ADB_PMU_LED_IDE dependencies

    ckujau authored and ozbenh committed Oct 30, 2013
    for quite some time the following is printed (twice) after doing
    "make oldconfig":
    
    [...]
    scripts/kconfig/conf --oldconfig Kconfig
    warning: (ADB_PMU_LED_IDE) selects LEDS_TRIGGER_IDE_DISK which has unmet direct dependencies (NEW_LEDS && IDE_GD_ATA && LEDS_TRIGGERS)
    warning: (ADB_PMU_LED_IDE) selects LEDS_TRIGGER_IDE_DISK which has unmet direct dependencies (NEW_LEDS && IDE_GD_ATA && LEDS_TRIGGERS)
    
    The following patch causes ADB_PMU_LED to depend on IDE_GD_ATA, so that
    the options above are only available when IDE_GD_ATA is actually selected
    and thus eliminates the warning.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Commits on Oct 29, 2013
  1. powerpc/6xx: CONFIG_MCU_MPC8349EMITX cannot be a module

    ckujau authored and Scott Wood committed Oct 28, 2013
    During "make ppc6xx_defconfig" the following happens:
    
      HOSTCC  scripts/basic/fixdep
      GEN     /usr/local/src/tmp/lnx/Makefile
      HOSTCC  scripts/kconfig/conf.o
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    arch/powerpc/configs/ppc6xx_defconfig:74⚠️ symbol value 'm' invalid for MCU_MPC8349EMITX
    
    Setting CONFIG_MCU_MPC8349EMITX=y in ppc6xx_defconfig makes the warning
    go away. This too has been reported by Geert Uytterhoeven a long time ago:
    https://lkml.org/lkml/2011/11/13/11  - I only came across this because I
    needed a "clean" defconfig for this Powerbook G5.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    [scottwood@freescale.com: cleaned up commit message slightly]
    Signed-off-by: Scott Wood <scottwood@freescale.com>
Commits on Jun 23, 2013
  1. scripts/setlocalversion on write-protected source tree

    ckujau authored and michal42 committed Jun 15, 2013
    I just stumbled across another[0] issue when scripts/setlocalversion
    operates on a write-protected source tree. Back then[0] the source tree
    was on an read-only NFS share, so "test -w" was introduced before "git
    update-index" was run.
    
    This time, the source tree is on read/write NFS share, but the permissions
    are world-readable and only a specific user (or root) can write.
    Thus, "test -w ." returns "0" and then runs "git update-index",
    producing the following message (on a dirty tree):
    
      fatal: Unable to create '/usr/local/src/linux-git/.git/index.lock': Permission denied
    
    While it says "fatal", compilation continues just fine.
    
    However, I don't think a kernel compilation should alter the source
    tree (or the .git directory) in any way and I don't see how removing
    "git update-index" could do any harm. The Mercurial and SVN routines in
    scripts/setlocalversion don't have any tree-modifying commands, AFAICS.
    So, maybe the patch below would be acceptable.
    
    [0] https://patchwork.kernel.org/patch/29718/
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Cc: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
Commits on Feb 22, 2013
  1. sun.com documentation fixes

    ckujau authored and torvalds committed Feb 22, 2013
    After I came across a help text for SUNGEM mentioning a broken sun.com
    URL, I felt like fixing those up, as they are now pointing to oracle.com
    URLs.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Acked-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jan 24, 2012
  1. powerpc/crash: Fix build error without SMP

    ckujau authored and ozbenh committed Jan 17, 2012
    I could not find cpus_in_crash anywhere in the sourcetree, except for
    arch/powerpc/kernel/crash.c. Moving the definition into the CONFIG_SMP
    fixes it.
    
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Commits on Jun 20, 2011
  1. Document powerpc udbg-immortal

    ckujau authored and ozbenh committed May 31, 2011
    Back in 2006 the "udbg-immortal" kernel option has been introduced:
    
      > commit 3b5e905
      > Author: Benjamin Herrenschmidt <benh@au1.ibm.com>
      > Date:   Wed Jun 7 12:06:20 2006 +1000
      >
      >  [PATCH] powerpc: Add udbg-immortal kernel option
    
    ...but I could not find it documented anywhere in the sources.
    This patch adds it to Documentation/kernel-parameters.txt.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Commits on Mar 23, 2011
  1. Documentation/Changes: minor corrections

    ckujau authored and torvalds committed Mar 22, 2011
    I noticed the 'mcelog' program had no comment and then ended up "fixing"
    a few more things:
    
      * reiserfsck -V does not print "reiserfsprogs" (any more?)
      * is "udevinfo" still shipped? udevd certainly is
      * grub2 doesn't have a 'grub' binary
      * add a "# how to get the mcelog version" comment
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Mar 8, 2010
  1. FS-Cache: Remove the EXPERIMENTAL flag

    ckujau authored and torvalds committed Mar 8, 2010
    Remove the EXPERIMENTAL flag from FS-Cache so that Ubuntu can make use of the
    facility.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Feb 27, 2010
  1. Remove EXPERIMENTAL from NFS_FSCACHE

    ckujau authored and torvalds committed Feb 26, 2010
    There's currently an open Ubuntu bug[0], with the intent to compile NFS_FSCACHE
    (and possibly AFS_FSCACHE, 9P_FSCACHE) into the standard Ubuntu kernel.
    However, since *_FSCACHE still depends on EXPERIMENTAL, this won't happen.
    
    As Arjan van de Ven pointed out[1], the EXPERIMENTAL flag doesn't mean that
    much any more, I propose the following patch to fs/nfs/Kconfig.  I'd do the
    same for fs/9p/Kconfig and fs/afs/Kconfig, but as I did not test 9p or AFS, I
    feel it would not be appropriate for me to remove the flag.
    
    [0] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/440522/comments/5
    [1] http://lkml.org/lkml/2010/1/23/145
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Aug 13, 2009
  1. crypto: rng - Fix typo

    ckujau authored and herbertx committed Aug 13, 2009
    Correct a typo in crypto/rng.c
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Acked-by: Neil Horman <nhorman@tuxdriver.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Commits on May 2, 2008
  1. PMU battery: filenames in sysfs with spaces

    ckujau authored and enomsg committed May 2, 2008
    By changing drivers/power/pmu_battery.c I now have '_' instead of
    ' ' (spaces) in /sys:
    
    /sys/devices/platform/pmu-battery.0/power_supply/PMU_battery_0
    /sys/class/power_supply/PMU_battery_0
    
    I'm still not sure if some userspace tool out there uses the old paths and
    will break now.
    
    Signed-off-by: Christian Kujau <lists@nerdbynature.de>
    Signed-off-by: David Woodhouse <dwmw2@infradead.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>