Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2015 23:53:39 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2015 23:53:39 +0000 (15:53 -0800)
Pull module updates from Rusty Russell:
 "Nothing exciting, minor tweaks and cleanups"

* tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
  scripts: [modpost] add new sections to white list
  modpost: Add flag -E for making section mismatches fatal
  params: don't ignore the rest of cmdline if parse_one() fails
  modpost: abort if a module symbol is too long

1  2 
kernel/params.c
lib/Kconfig.debug

diff --combined kernel/params.c
index 93a380a2345d71ae8c884a56006977eec959cbf8,ed1e0a1cffa7c7b78d750df0b72770a7769817b7..a6d6149c0fe60df1ca38d9a66acef281b78ee79d
@@@ -223,7 -223,7 +223,7 @@@ char *parse_args(const char *doing
                 int (*unknown)(char *param, char *val,
                                const char *doing, void *arg))
  {
-       char *param, *val;
+       char *param, *val, *err = NULL;
  
        /* Chew leading spaces */
        args = skip_spaces(args);
                args = next_arg(args, &param, &val);
                /* Stop at -- */
                if (!val && strcmp(param, "--") == 0)
-                       return args;
+                       return err ?: args;
                irq_was_disabled = irqs_disabled();
                ret = parse_one(param, val, doing, params, num,
                                min_level, max_level, arg, unknown);
                                doing, param);
  
                switch (ret) {
+               case 0:
+                       continue;
                case -ENOENT:
                        pr_err("%s: Unknown parameter `%s'\n", doing, param);
-                       return ERR_PTR(ret);
+                       break;
                case -ENOSPC:
                        pr_err("%s: `%s' too large for parameter `%s'\n",
                               doing, val ?: "", param);
-                       return ERR_PTR(ret);
-               case 0:
                        break;
                default:
                        pr_err("%s: `%s' invalid for parameter `%s'\n",
                               doing, val ?: "", param);
-                       return ERR_PTR(ret);
+                       break;
                }
+               err = ERR_PTR(ret);
        }
  
-       /* All parsed OK. */
-       return NULL;
+       return err;
  }
  
  /* Lazy bastard, eh? */
@@@ -325,11 -326,10 +326,11 @@@ int param_get_charp(char *buffer, cons
  }
  EXPORT_SYMBOL(param_get_charp);
  
 -static void param_free_charp(void *arg)
 +void param_free_charp(void *arg)
  {
        maybe_kfree_parameter(*((char **)arg));
  }
 +EXPORT_SYMBOL(param_free_charp);
  
  const struct kernel_param_ops param_ops_charp = {
        .set = param_set_charp,
diff --combined lib/Kconfig.debug
index 16bf3bc25e3ed8df252cf3795d895be4d0f2247f,ebe51a34cf48a66da248c917ec62efdbdd9cd979..8c15b29d5adc64214880cf7c066fb83349f612aa
@@@ -197,7 -197,6 +197,7 @@@ config ENABLE_MUST_CHEC
  config FRAME_WARN
        int "Warn for stack frames larger than (needs gcc 4.4)"
        range 0 8192
 +      default 0 if KASAN
        default 1024 if !64BIT
        default 2048 if 64BIT
        help
@@@ -312,6 -311,15 +312,15 @@@ config DEBUG_SECTION_MISMATC
          - Enable verbose reporting from modpost in order to help resolve
            the section mismatches that are reported.
  
+ config SECTION_MISMATCH_WARN_ONLY
+       bool "Make section mismatch errors non-fatal"
+       default y
+       help
+         If you say N here, the build process will fail if there are any
+         section mismatch, instead of just throwing warnings.
+         If unsure, say Y.
  #
  # Select this config option from the architecture Kconfig, if it
  # is preferred to always offer frame pointers as a config
@@@ -917,6 -925,12 +926,6 @@@ config DEBUG_RT_MUTEXE
         This allows rt mutex semantics violations and rt mutex related
         deadlocks (lockups) to be detected and reported automatically.
  
 -config RT_MUTEX_TESTER
 -      bool "Built-in scriptable tester for rt-mutexes"
 -      depends on DEBUG_KERNEL && RT_MUTEXES && BROKEN
 -      help
 -        This option enables a rt-mutex tester.
 -
  config DEBUG_SPINLOCK
        bool "Spinlock and rw-lock debugging: basic checks"
        depends on DEBUG_KERNEL
@@@ -1348,6 -1362,20 +1357,6 @@@ config RCU_CPU_STALL_TIMEOU
          RCU grace period persists, additional CPU stall warnings are
          printed at more widely spaced intervals.
  
 -config RCU_CPU_STALL_INFO
 -      bool "Print additional diagnostics on RCU CPU stall"
 -      depends on (TREE_RCU || PREEMPT_RCU) && DEBUG_KERNEL
 -      default y
 -      help
 -        For each stalled CPU that is aware of the current RCU grace
 -        period, print out additional per-CPU diagnostic information
 -        regarding scheduling-clock ticks, idle state, and,
 -        for RCU_FAST_NO_HZ kernels, idle-entry state.
 -
 -        Say N if you are unsure.
 -
 -        Say Y if you want to enable such diagnostics.
 -
  config RCU_TRACE
        bool "Enable tracing for RCU"
        depends on DEBUG_KERNEL
          Say N if you are unsure.
  
  config RCU_EQS_DEBUG
 -      bool "Use this when adding any sort of NO_HZ support to your arch"
 +      bool "Provide debugging asserts for adding NO_HZ support to an arch"
        depends on DEBUG_KERNEL
        help
          This option provides consistency checks in RCU's handling of
@@@ -1523,13 -1551,6 +1532,13 @@@ config FAIL_MMC_REQUES
          and to test how the mmc host driver handles retries from
          the block device.
  
 +config FAIL_FUTEX
 +      bool "Fault-injection capability for futexes"
 +      select DEBUG_FS
 +      depends on FAULT_INJECTION && FUTEX
 +      help
 +        Provide fault-injection capability for futexes.
 +
  config FAULT_INJECTION_DEBUG_FS
        bool "Debugfs entries for fault-injection capabilities"
        depends on FAULT_INJECTION && SYSFS && DEBUG_FS
@@@ -1686,9 -1707,6 +1695,9 @@@ config TEST_STRING_HELPER
  config TEST_KSTRTOX
        tristate "Test kstrto*() family of functions at runtime"
  
 +config TEST_PRINTF
 +      tristate "Test printf() family of functions at runtime"
 +
  config TEST_RHASHTABLE
        tristate "Perform selftest on resizable hash table"
        default n
@@@ -1831,15 -1849,6 +1840,15 @@@ config MEMTES
                memtest=17, mean do 17 test patterns.
          If you are unsure how to answer this question, answer N.
  
 +config TEST_STATIC_KEYS
 +      tristate "Test static keys"
 +      default n
 +      depends on m
 +      help
 +        Test the static key interfaces.
 +
 +        If unsure, say N.
 +
  source "samples/Kconfig"
  
  source "lib/Kconfig.kgdb"