1. 09 5月, 2017 3 次提交
  2. 04 5月, 2017 1 次提交
  3. 01 5月, 2017 1 次提交
  4. 28 4月, 2017 1 次提交
  5. 20 4月, 2017 1 次提交
  6. 09 4月, 2017 1 次提交
  7. 03 4月, 2017 2 次提交
  8. 30 3月, 2017 2 次提交
    • J
      x86/build: Mostly disable '-maccumulate-outgoing-args' · 3f135e57
      Josh Poimboeuf 提交于
      The GCC '-maccumulate-outgoing-args' flag is enabled for most configs,
      mostly because of issues which are no longer relevant.  For most
      configs, and with most recent versions of GCC, it's no longer needed.
      
      Clarify which cases need it, and only enable it for those cases.  Also
      produce a compile-time error for the ftrace graph + mcount + '-Os' case,
      which will otherwise cause runtime failures.
      
      The main benefit of '-maccumulate-outgoing-args' is that it prevents an
      ugly prologue for functions which have aligned stacks.  But removing the
      option also has some benefits: more readable argument saves, smaller
      text size, and (presumably) slightly improved performance.
      
      Here are the object size savings for 32-bit and 64-bit defconfig
      kernels:
      
            text	   data	    bss	     dec	    hex	filename
        10006710	3543328	1773568	15323606	 e9d1d6	vmlinux.x86-32.before
         9706358	3547424	1773568	15027350	 e54c96	vmlinux.x86-32.after
      
            text	   data	    bss	     dec	    hex	filename
        10652105	4537576	 843776	16033457	 f4a6b1	vmlinux.x86-64.before
        10639629	4537576	 843776	16020981	 f475f5	vmlinux.x86-64.after
      
      That comes out to a 3% text size improvement on x86-32 and a 0.1% text
      size improvement on x86-64.
      Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
      Cc: Andrew Lutomirski <luto@kernel.org>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/20170316193133.zrj6gug53766m6nn@trebleSigned-off-by: NIngo Molnar <mingo@kernel.org>
      3f135e57
    • R
      dtc: update warning settings for new bus and node/property name checks · 8654cb8d
      Rob Herring 提交于
      dtc gained new warnings checking PCI and simple buses, unit address
      formatting, and stricter node and property name checking. Disable the
      new dtc warnings by default as there are 1000s. As before, warnings are
      enabled with W=1 or W=2. The strict node and property name checks are a
      bit subjective, so they are only enabled for W=2.
      Signed-off-by: NRob Herring <robh@kernel.org>
      8654cb8d
  9. 28 3月, 2017 1 次提交
  10. 25 3月, 2017 1 次提交
  11. 24 3月, 2017 1 次提交
  12. 23 3月, 2017 2 次提交
    • R
      scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 · 89d12310
      Rob Herring 提交于
      This adds the following commits from upstream:
      
      756ffc4f52f6 Build pylibfdt as part of the normal build process
      8cb3896358e9 Adjust libfdt.h to work with swig
      b40aa8359aff Mention pylibfdt in the documentation
      12cfb740cc76 Add tests for pylibfdt
      50f250701631 Add an initial Python library for libfdt
      cdbb2b6c7a3a checks: Warn on node name unit-addresses with '0x' or leading 0s
      4c15d5da17cc checks: Add bus checks for simple-bus buses
      33c3985226d3 checks: Add bus checks for PCI buses
      558cd81bdd43 dtc: Bump version to v1.4.4
      c17a811c62eb fdtput: Remove star from value_len documentation
      194d5caaefcb fdtget: Use @return to document the return value
      d922ecdd017b tests: Make realloc_fdt() really allocate *fdt
      921cc17fec29 libfdt: overlay: Check the value of the right variable
      9ffdf60bf463 dtc: Simplify asm_emit_string() implementation
      881012e44386 libfdt: Change names of sparse helper macros
      bad5b28049e5 Fix assorted sparse warnings
      672ac09ea04d Clean up gcc attributes
      49300f2ade6a dtc: Don't abuse struct fdt_reserve_entry
      fa8bc7f928ac dtc: Bump version to v1.4.3
      34a9886a177f Add printf format attributes
      f72508e2b6ca Correct some broken printf() like format mismatches
      397d5ef0203c libfdt: Add fdt_setprop_empty()
      69a1bd6ad3f9 libfdt: Remove undefined behaviour setting empty properties
      acd1b534a592 Print output filename as part of warning messages
      120775eb1cf3 dtc: Use streq() in preference to strcmp()
      852e9ecbe197 checks: Add Warning for stricter node name character checking
      ef0e8f061534 checks: Add Warning for stricter property name character checking
      00d7bb1f4b0e dtc: pos parameter to srcpos_string() can't be NULL
      95d57726bca4 livetree.c: Fix memory leak
      3b9c97093d6e dtc: Fix NULL pointer use in dtlabel + dtref case
      43eb551426ea manual: Fix typo it -> in
      4baf15f7f13f Makefile: Add tags rule
      Signed-off-by: NRob Herring <robh@kernel.org>
      89d12310
    • R
      scripts/dtc: automate getting dtc version and log in update script · 86cef614
      Rob Herring 提交于
      Further automate the dtc update script to fill in the dtc version and
      commit log.
      Signed-off-by: NRob Herring <robh@kernel.org>
      86cef614
  13. 22 3月, 2017 1 次提交
    • N
      gconfig: remove misleading parentheses around a condition · 9be3213b
      Nicolas Iooss 提交于
      When building the kernel with clang, the compiler complains about the
      presence of a condition inside two pairs of parentheses:
      
          scripts/kconfig/gconf.c:917:19: error: equality comparison with
          extraneous parentheses [-Werror,-Wparentheses-equality]
                          } else if ((col == COL_OPTION)) {
                                      ~~~~^~~~~~~~~~~~~
          scripts/kconfig/gconf.c:917:19: note: remove extraneous parentheses
          around the comparison to silence this warning
                          } else if ((col == COL_OPTION)) {
                                     ~    ^            ~
          scripts/kconfig/gconf.c:917:19: note: use '=' to turn this equality
          comparison into an assignment
                          } else if ((col == COL_OPTION)) {
                                          ^~
                                          =
      
      Silence this warning by removing a level of parentheses.
      Signed-off-by: NNicolas Iooss <nicolas.iooss_linux@m4x.org>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      9be3213b
  14. 14 3月, 2017 1 次提交
  15. 11 3月, 2017 2 次提交
    • A
      kbuild: external module build warnings when KBUILD_OUTPUT set and W=1 · 4607ebf0
      Allan, Bruce W 提交于
      Commit db547ef1 ("Kbuild: don't add obj tree in additional includes")
      causes warnings (-Wmissing-include-dirs) when compiling external modules
      with KBUILD_OUTPUT set and W=1.  This is because $src can be an absolute
      path to the external module source which when prefixed with -I$(srctree)/
      generates an incorrect directory path.
      Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      4607ebf0
    • N
      selinux: include sys/socket.h in host programs to have PF_MAX · c017c71c
      Nicolas Iooss 提交于
      Compiling with clang and -Wundef makes the compiler report a usage of
      undefined PF_MAX macro in security/selinux/include/classmap.h:
      
          In file included from scripts/selinux/mdp/mdp.c:48:
          security/selinux/include/classmap.h:37:31: warning: no previous
          extern declaration for non-static variable 'secclass_map'
          [-Wmissing-variable-declarations]
          struct security_class_mapping secclass_map[] = {
                                        ^
          security/selinux/include/classmap.h:235:5: error: 'PF_MAX' is not
          defined, evaluates to 0 [-Werror,-Wundef]
          #if PF_MAX > 43
              ^
          In file included from scripts/selinux/genheaders/genheaders.c:17:
          security/selinux/include/classmap.h:37:31: warning: no previous
          extern declaration for non-static variable 'secclass_map'
          [-Wmissing-variable-declarations]
          struct security_class_mapping secclass_map[] = {
                                        ^
          security/selinux/include/classmap.h:235:5: error: 'PF_MAX' is not
          defined, evaluates to 0 [-Werror,-Wundef]
          #if PF_MAX > 43
              ^
      
      PF_MAX is defined in include/linux/socket.h but not in
      include/uapi/linux/socket.h. Therefore host programs have to rely on the
      definition from libc's /usr/include/bits/socket.h, included by
      <sys/socket.h>.
      
      Fix the issue by using sys/socket.h in mdp and genheaders. When
      classmap.h is included by security/selinux/avc.c, it uses the kernel
      definition of PF_MAX, which makes the test consistent.
      Signed-off-by: NNicolas Iooss <nicolas.iooss@m4x.org>
      Signed-off-by: NPaul Moore <paul@paul-moore.com>
      c017c71c
  16. 10 3月, 2017 2 次提交
  17. 03 3月, 2017 1 次提交
  18. 02 3月, 2017 1 次提交
  19. 28 2月, 2017 15 次提交