1. 10 7月, 2013 2 次提交
  2. 04 7月, 2013 21 次提交
  3. 03 7月, 2013 1 次提交
    • D
      Fix a build warning in scripts/mod/file2alias.c · 04130cc9
      Daniel Tang 提交于
      On some systems, __used is already defined in sys/cdefs.h and causes
      a build warning:
      
      scripts/mod/file2alias.c:85:1: warning: "__used" redefined
      In file included from /usr/include/stdio.h:64,
                       from scripts/mod/modpost.h:1,
      		                  from scripts/mod/file2alias.c:13:
      				  /usr/include/sys/cdefs.h:146:1: warning: this is the location of the previous definition
      
      This adds an extra check before defining the __used macro to see if
      the macro was already defined elsewhere.
      Signed-off-by: NDaniel Tang <dt.tangr@gmail.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      04130cc9
  4. 28 6月, 2013 2 次提交
  5. 27 6月, 2013 1 次提交
  6. 24 6月, 2013 2 次提交
    • M
      kbuild: fix error when building from src rpm · c398ff00
      Mike Marciniszyn 提交于
      The following issue can be reproduced with Linus' tree on
      an x86_64 server.
      
      >+ cp /home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2.x86_64/boot/vmlinuz-3.9.2
      >cp: missing destination file operand after
      >/home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2-1.x86_64/boot/vmlinuz-3.9.2'
      >Try `cp --help' for more information.
      >error: Bad exit status from /var/tmp/rpm-tmp.R4o0iI (%install)
      
      Here are the commands to reproduce:
      
      make defconfig
      make rpm-pkg
      
      Use the resulting src rpm to build as follows:
      
      mkdir ~/rpmbuild-test
      cd ~/rpmbuild-test
      rpmbuild --rebuild --define "_topdir `pwd`" -vv ~/rpmbuild/SRPMS/kernel-3.10.0_rc1+-1.src.rpm
      
      The issue is because the %install script uses $KBUILD_IMAGE and it hasn't
      been set since it is only available in the kbuild system and not in the
      %install script.
      
      This patch adds a Makefile target to emit the image_name that can be used
      and modifies the mkspec to use the dynamic name in %install.
      Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      c398ff00
    • C
      scripts/setlocalversion on write-protected source tree · cdf2bc63
      Christian Kujau 提交于
      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: NChristian Kujau <lists@nerdbynature.de>
      Cc: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      cdf2bc63
  7. 14 6月, 2013 3 次提交
  8. 13 6月, 2013 1 次提交
    • J
      Makefile.lib: align DTB quiet_cmd · 1c00a47e
      James Hogan 提交于
      The unaligned dtb.S filename in make output started to irritate me:
        DTC     arch/metag/boot/dts/skeleton.dtb
        DTB    arch/metag/boot/dts/skeleton.dtb.S
        AS      arch/metag/boot/dts/skeleton.dtb.o
        LD      arch/metag/boot/dts/built-in.o
      
      Add an extra space to quiet_cmd_dt_S_dtb so the dtb.S filename aligns
      with all the others.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Dirk Brandewie <dirk.brandewie@gmail.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: trivial@kernel.org
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      1c00a47e
  9. 12 6月, 2013 1 次提交
  10. 30 5月, 2013 2 次提交
    • D
      kconfig/menu.c: fix multiple references to expressions in menu_add_prop() · e983b7b1
      Dirk Gouders 提交于
      menu_add_prop() applies upper menus' visibilities to actual prompts
      by AND-ing the prompts visibilities with the upper menus ones.
      
      This creates a further reference to the menu's visibilities and when
      the expression reduction functions do their work, they may remove or
      modify expressions that have multiple references, thus causing
      unpredictable side-effects.
      
      The following example Kconfig constructs a case where this causes
      problems: a menu and a prompt which's visibilities depend on the same
      symbol.  When invoking mconf with this Kconfig and pressing "Z" we
      see a problem caused by a free'd expression still referenced by the
      menu's visibility:
      
      ------------------------------------------------------------------------
      mainmenu "Kconfig Testing Configuration"
      
      config VISIBLE
      	def_bool n
      
      config Placeholder
      	bool "Place holder"
      
      menu "Invisible"
      	visible if VISIBLE
      
      config TEST_VAR
      	bool "Test option" if VISIBLE
      
      endmenu
      ------------------------------------------------------------------------
      
      This patch fixes this problem by creating copies of the menu's
      visibility expressions before AND-ing them with the prompt's one.
      Signed-off-by: NDirk Gouders <dirk@gouders.net>
      [yann.morin.1998@free.fr: move variable into its block-scope,
                                keep lines <80 chars, typo]
      Tested-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Reviewed-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      e983b7b1
    • D
      mconf: handle keys in empty dialogs · 063f4661
      Dirk Gouders 提交于
      When entering an empty dialog, using the movement keys resulted in
      unexpected characters beeing displayed, other keys like "z" and "h"
      did not work as expected.
      
      This patch handles the movement keys as well as other keys, especially
      "z", "h" and "/".
      Signed-off-by: NDirk Gouders <dirk@gouders.net>
      [yann.morin.1998@free.fr: keep lines <80 chars, so reorder test]
      Tested-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Reviewed-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      063f4661
  11. 23 5月, 2013 1 次提交
    • M
      kbuild: Don't assume dts files live in arch/*/boot/dts · ad061568
      Matthijs Kooijman 提交于
      In commit b40b25ff (kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp),
      dts building was changed to always use the C preprocessor. This meant
      that the .dts file passed to dtc is not the original, but the
      preprocessed one.
      
      When compiling with a separate build directory (i.e., with O=), this
      preprocessed file will not live in the same directory as the original.
      When the .dts file includes .dtsi files, dtc will look for them in the
      build directory, not in the source directory and compilation will fail.
      
      The commit referenced above tried to fix this by passing arch/*/boot/dts
      as an include path to dtc. However, for mips, the .dts files are not in
      this directory, so dts compilation on mips breaks for some targets.
      
      Instead of hardcoding this particular include path, this commit just
      uses the directory of the .dts file that is being compiled, which
      effectively restores the previous behaviour wrt includes. For most .dts
      files, this path is just the same as the previous hardcoded
      arch/*/boot/dts path.
      
      This was tested on a mips (rt3052) and an arm (bcm2835) target.
      Signed-off-by: NMatthijs Kooijman <matthijs@stdin.nl>
      Reviewed-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      ad061568
  12. 20 5月, 2013 2 次提交
  13. 18 5月, 2013 1 次提交