# git rev-parse -q --verify 1a288d0d920dfb9747bbefc8d601a971885f470f^{commit} 1a288d0d920dfb9747bbefc8d601a971885f470f already have revision, skipping fetch # git checkout -q -f -B kisskb 1a288d0d920dfb9747bbefc8d601a971885f470f # git clean -qxdf # < git log -1 # commit 1a288d0d920dfb9747bbefc8d601a971885f470f # Author: Denis Efremov # Date: Sun Jul 28 13:09:06 2019 +0300 # # modpost: check for static EXPORT_SYMBOL* functions # # This patch adds a check to warn about static EXPORT_SYMBOL* functions # during the modpost. In most of the cases, a static symbol marked for # exporting is an odd combination that should be fixed either by deleting # the exporting mark or by removing the static attribute and adding the # appropriate declaration to headers. # # This check could help to detect the following problems: # 1. 550113d4e9f5 ("i2c: add newly exported functions to the header, too") # 2. 54638c6eaf44 ("net: phy: make exported variables non-static") # 3. 98ef2046f28b ("mm: remove the exporting of totalram_pages") # 4. 73df167c819e ("s390/zcrypt: remove the exporting of ap_query_configuration") # 5. a57caf8c527f ("sunrpc/cache: remove the exporting of cache_seq_next") # 6. e4e4730698c9 ("crypto: skcipher - remove the exporting of skcipher_walk_next") # 7. 14b4c48bb1ce ("gve: Remove the exporting of gve_probe") # 8. 9b79ee9773a8 ("scsi: libsas: remove the exporting of sas_wait_eh") # 9. ... # # Build time impact, allmodconfig, Dell XPS 15 9570 (measurements 3x): # $ make mrproper; make allmodconfig; time make -j12; \ # git checkout HEAD~1; \ # make mrproper; make allmodconfig; time make -j12 # 1. # (with patch) 17635,94s user 1895,54s system 1085% cpu 29:59,22 total # (w/o patch) 17275,42s user 1803,87s system 1112% cpu 28:35,66 total # 2. # (with patch) 17369,51s user 1763,28s system 1111% cpu 28:41,47 total # (w/o patch) 16880,50s user 1670,93s system 1113% cpu 27:46,56 total # 3. # (with patch) 17937,88s user 1842,53s system 1109% cpu 29:42,26 total # (w/o patch) 17267,55s user 1725,09s system 1111% cpu 28:28,17 total # # Thus, the current implementation adds approx. 1 min for allmodconfig. # # Acked-by: Emil Velikov # Signed-off-by: Denis Efremov # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 1a288d0d920dfb9747bbefc8d601a971885f470f # < make -s -j 120 ARCH=powerpc O=/kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1465:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:613:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] WARNING: "memmove" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__lshrdi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ashrdi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "flush_instruction_cache" [vmlinux] is the static EXPORT_SYMBOL WARNING: "flush_icache_range" [vmlinux] is the static EXPORT_SYMBOL WARNING: "epapr_hypercall_start" [vmlinux] is the static EXPORT_SYMBOL WARNING: "csum_partial_copy_generic" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memset" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memcpy" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__clear_user" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memcmp" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strncpy" [vmlinux] is the static EXPORT_SYMBOL WARNING: "ahci_em_messages" [vmlinux] is the static EXPORT_SYMBOL_GPL WARNING: "current_stack_pointer" [vmlinux] is the static EXPORT_SYMBOL WARNING: "copy_page" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strncmp" [vmlinux] is the static EXPORT_SYMBOL WARNING: "ftrace_set_clr_event" [vmlinux] is the static EXPORT_SYMBOL_GPL WARNING: "__cmpdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__div64_32" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__copy_tofrom_user" [vmlinux] is the static EXPORT_SYMBOL WARNING: "empty_zero_page" [vmlinux] is the static EXPORT_SYMBOL WARNING: "abort" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__csum_partial" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ucmpdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "jiffies" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strlen" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memchr" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__bswapdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ashldi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "csum_ipv6_magic" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memset16" [vmlinux] is the static EXPORT_SYMBOL /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) WARNING: "memmove" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__lshrdi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ashrdi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "flush_instruction_cache" [vmlinux] is the static EXPORT_SYMBOL WARNING: "flush_icache_range" [vmlinux] is the static EXPORT_SYMBOL WARNING: "epapr_hypercall_start" [vmlinux] is the static EXPORT_SYMBOL WARNING: "csum_partial_copy_generic" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memset" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memcpy" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__clear_user" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memcmp" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strncpy" [vmlinux] is the static EXPORT_SYMBOL WARNING: "ahci_em_messages" [vmlinux] is the static EXPORT_SYMBOL_GPL WARNING: "current_stack_pointer" [vmlinux] is the static EXPORT_SYMBOL WARNING: "copy_page" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strncmp" [vmlinux] is the static EXPORT_SYMBOL WARNING: "ftrace_set_clr_event" [vmlinux] is the static EXPORT_SYMBOL_GPL WARNING: "__cmpdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__div64_32" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__copy_tofrom_user" [vmlinux] is the static EXPORT_SYMBOL WARNING: "empty_zero_page" [vmlinux] is the static EXPORT_SYMBOL WARNING: "abort" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__csum_partial" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ucmpdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "jiffies" [vmlinux] is the static EXPORT_SYMBOL WARNING: "strlen" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memchr" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__bswapdi2" [vmlinux] is the static EXPORT_SYMBOL WARNING: "__ashldi3" [vmlinux] is the static EXPORT_SYMBOL WARNING: "csum_ipv6_magic" [vmlinux] is the static EXPORT_SYMBOL WARNING: "memset16" [vmlinux] is the static EXPORT_SYMBOL /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc1858) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcb1058) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186137 Bytes = 6041.15 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186113 Bytes = 6041.13 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185595 Bytes = 6040.62 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6154887 Bytes = 6010.63 KiB = 5.87 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186149 Bytes = 6041.16 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186957 Bytes = 6041.95 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186172 Bytes = 6041.18 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185601 Bytes = 6040.63 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186836 Bytes = 6041.83 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186896 Bytes = 6041.89 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185597 Bytes = 6040.62 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186113 Bytes = 6041.13 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185774 Bytes = 6040.79 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6186183 Bytes = 6041.19 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6187039 Bytes = 6042.03 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-rc2-g1a288d0d920d Created: Tue Jul 30 04:45:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6185776 Bytes = 6040.80 KiB = 5.90 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/kbuild_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:01:10.685637