# git rev-parse -q --verify 0f1a7b3fac0583083ca19d4de47403511ced3521^{commit} 0f1a7b3fac0583083ca19d4de47403511ced3521 already have revision, skipping fetch # git checkout -q -f -B kisskb 0f1a7b3fac0583083ca19d4de47403511ced3521 # git clean -qxdf # < git log -1 # commit 0f1a7b3fac0583083ca19d4de47403511ced3521 # Author: Linus Torvalds # Date: Wed Oct 2 16:16:07 2019 -0700 # # timer-of: don't use conditional expression with mixed 'void' types # # Randy Dunlap reports on the sparse list that sparse warns about this # expression: # # of_irq->percpu ? free_percpu_irq(of_irq->irq, clkevt) : # free_irq(of_irq->irq, clkevt); # # and honestly, sparse is correct to warn. The return type of # free_percpu_irq() is 'void', while free_irq() returns a 'const void *' # that is the devname argument passed in to the request_irq(). # # You can't mix a void type with a non-void types in a conditional # expression according to the C standard. It so happens that gcc seems to # accept it - and the resulting type of the expression is void - but # there's really no reason for the kernel to have this kind of # non-standard expression with no real upside. # # The natural way to write that expression is with an if-statement: # # if (of_irq->percpu) # free_percpu_irq(of_irq->irq, clkevt); # else # free_irq(of_irq->irq, clkevt); # # which is more legible anyway. # # I'm not sure why that timer-of code seems to have this odd pattern. It # does the same at allocation time, but at least there the types match, # and it makes sense as an expression. # # Reported-by: Randy Dunlap # Signed-off-by: Linus Torvalds # < /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 0f1a7b3fac0583083ca19d4de47403511ced3521 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204: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/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/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1497:5: warning: 'page' 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/sound/soc/soc-pcm.c: In function 'soc_pcm_trigger': /kisskb/src/sound/soc/soc-pcm.c:1074:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_bespoke_trigger': /kisskb/src/sound/soc/soc-pcm.c:1092:9: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /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/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/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] /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/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /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) /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 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc28fa8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914549 Bytes = 5775.93 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5910299 Bytes = 5771.78 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5910278 Bytes = 5771.76 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5909891 Bytes = 5771.38 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5909978 Bytes = 5771.46 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914074 Bytes = 5775.46 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914473 Bytes = 5775.85 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5881296 Bytes = 5743.45 KiB = 5.61 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5914019 Bytes = 5775.41 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:55 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5910275 Bytes = 5771.75 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc39770) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5909882 Bytes = 5771.37 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5909884 Bytes = 5771.37 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5910627 Bytes = 5772.10 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5911303 Bytes = 5772.76 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5909962 Bytes = 5771.45 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.4.0-rc1-g0f1a7b3fac05 Created: Thu Oct 3 11:13:57 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5910710 Bytes = 5772.18 KiB = 5.64 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.6 # Build took: 0:02:02.878936