# git rev-parse -q --verify ef78e5ec9214376c5cb989f5da70b02d0c117b66^{commit} ef78e5ec9214376c5cb989f5da70b02d0c117b66 already have revision, skipping fetch # git checkout -q -f -B kisskb ef78e5ec9214376c5cb989f5da70b02d0c117b66 # git clean -qxdf # < git log -1 # commit ef78e5ec9214376c5cb989f5da70b02d0c117b66 # Author: Matias Bjørling # Date: Mon Nov 26 11:27:03 2018 -0800 # # ia64: export node_distance function # # The numa_slit variable used by node_distance is available to a # module as long as it is linked at compile-time. However, it is # not available to loadable modules. Leading to errors such as: # # ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined! # # The error above is caused by the nvme multipath code that makes # use of node_distance for its path calculation. When the patch was # added, the lightnvm subsystem would select nvme and always compile # it in, leading to the node_distance call to always succeed. # However, when this requirement was removed, nvme could be compiled # in as a module, which exposed this bug. # # This patch extracts node_distance to a function and exports it. # Since ACPI is depending on node_distance being a simple lookup to # numa_slit, the previous behavior is exposed as slit_distance and its # users updated. # # Fixes: f333444708f82 "nvme: take node locality into account when selecting a path" # Fixes: 73569e11032f "lightnvm: remove dependencies on BLK_DEV_NVME and PCI" # Signed-off-by: Matias Bjøring # Signed-off-by: Tony Luck # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-gcc --version # < git log --format=%s --max-count=1 ef78e5ec9214376c5cb989f5da70b02d0c117b66 # < make -s -j 8 ARCH=nds32 O=/kisskb/build/linus_nds32-allyesconfig_nds32le CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- allyesconfig # make -s -j 8 ARCH=nds32 O=/kisskb/build/linus_nds32-allyesconfig_nds32le CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/test_hexdump.c: In function 'test_hexdump_prepare_test.isra.0': /kisskb/src/lib/test_hexdump.c:102:3: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(p, q, amount); ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/test_hexdump.c:100:19: note: length computed here size_t amount = strlen(q); ^~~~~~~~~ /kisskb/src/drivers/input/joystick/analog.c:172:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^~~~~~~ /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if (ret == -EOPNOTSUPP) ^ WARNING: EXPORT symbol "copy_page" [vmlinux] version generation failed, symbol will not be versioned. WARNING: EXPORT symbol "clear_page" [vmlinux] version generation failed, symbol will not be versioned. /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-ld: drivers/usb/storage/ene_ub6250.o: in function `ene_load_bincode': ene_ub6250.c:(.text+0x284): relocation truncated to fit: R_NDS32_9_PCREL_RELA against `.text' make[1]: *** [/kisskb/src/Makefile:1036: vmlinux] Error 1 make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 8 ARCH=nds32 O=/kisskb/build/linus_nds32-allyesconfig_nds32le CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_nds32-allyesconfig_nds32le # Build took: 0:13:51.103200