1. 28 Oct, 2016 38 commits
  2. 27 Oct, 2016 2 commits
    • Linus Torvalds's avatar
      Allow KASAN and HOTPLUG_MEMORY to co-exist when doing build testing · 67463e54
      Linus Torvalds authored
      No, KASAN may not be able to co-exist with HOTPLUG_MEMORY at runtime,
      but for build testing there is no reason not to allow them together.
      
      This hopefully means better build coverage and fewer embarrasing silly
      problems like the one fixed by commit 9db4f36e ("mm: remove unused
      variable in memory hotplug") in the future.
      
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Alexander Potapenko <glider@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      67463e54
    • Arnd Bergmann's avatar
      nvdimm: make CONFIG_NVDIMM_DAX 'bool' · 867dfe34
      Arnd Bergmann authored
      A bugfix just tried to address a randconfig build problem and introduced
      a variant of the same problem: with CONFIG_LIBNVDIMM=y and
      CONFIG_NVDIMM_DAX=m, the nvdimm module now fails to link:
      
      drivers/nvdimm/built-in.o: In function `to_nd_device_type':
      bus.c:(.text+0x1b5d): undefined reference to `is_nd_dax'
      drivers/nvdimm/built-in.o: In function `nd_region_notify_driver_action.constprop.2':
      region_devs.c:(.text+0x6b6c): undefined reference to `is_nd_dax'
      region_devs.c:(.text+0x6b8c): undefined reference to `to_nd_dax'
      drivers/nvdimm/built-in.o: In function `nd_region_probe':
      region.c:(.text+0x70f3): undefined reference to `nd_dax_create'
      drivers/nvdimm/built-in.o: In function `mode_show':
      namespace_devs.c:(.text+0xa196): undefined reference to `is_nd_dax'
      drivers/nvdimm/built-in.o: In function `nvdimm_namespace_common_probe':
      (.text+0xa55f): undefined reference to `is_nd_dax'
      drivers/nvdimm/built-in.o: In function `nvdimm_namespace_common_probe':
      (.text+0xa56e): undefined reference to `to_nd_dax'
      
      This reverts the earlier fix, making NVDIMM_DAX a 'bool' option again
      as it should be (it gets linked into the libnvdimm module). To fix
      the original problem, I'm adding a dependency on LIBNVDIMM to
      DEV_DAX_PMEM, which ensures we can't have that one built-in if the
      rest is a module.
      
      Fixes: 4e65e938 ("/dev/dax: fix Kconfig dependency build breakage")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      867dfe34