2016-03-27 12:39:41

by Geert Uytterhoeven

[permalink] [raw]
Subject: Build regressions/improvements in v4.6-rc1

Below is the list of build error/warning regressions/improvements in
v4.6-rc1[1] compared to v4.5[2].

Summarized:
- build errors: +9/-6
- build warnings: +148/-165

As I haven't mastered kup yet, there's no verbose summary at
http://www.kernel.org/pub/linux/kernel/people/geert/linux-log/v4.6-rc1.summary.gz

Happy fixing! ;-)

Thanks to the linux-next team for providing the build service.

[1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
[2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)


*** ERRORS ***

9 error regressions:
+ /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
'__compiletime_assert_79' declared with attribute error: XFS:
sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
+ /tmp/ccZOwefe.s: Error: pcrel too far BFD_RELOC_BFIN_10: => 889
+ error: hns_dsaf_gmac.c: relocation truncated to fit: R_PPC64_REL24
against symbol `_savegpr0_30' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff7404)
+ error: hns_dsaf_mac.c: relocation truncated to fit: R_PPC64_REL24
against symbol `_savegpr0_29' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff7738)
+ error: hns_dsaf_mac.c: relocation truncated to fit: R_PPC64_REL24
against symbol `_savegpr0_30' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff7990)
+ error: relocation truncated to fit: R_PPC64_REL24 against symbol
`_savegpr0_25' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff8190)
+ error: relocation truncated to fit: R_PPC64_REL24 against symbol
`_savegpr0_27' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff83fc), (.text+0x1ff7d2c)
+ error: relocation truncated to fit: R_PPC64_REL24 against symbol
`_savegpr0_29' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: => (.text+0x1ff7c1c), (.text+0x1ff756c),
(.text+0x1ff7acc), (.text+0x1ff8540)
+ error: smp-shx3.c: undefined reference to `local_timer_setup': =>
.text+0xadec)

6 error improvements:
- error: hns_dsaf_xgmac.c: relocation truncated to fit:
R_PPC64_REL24 against symbol `.udelay' defined in .text section in
arch/powerpc/kernel/built-in.o: (.text+0x1ffb34c), (.text+0x1ffb6e8),
(.text+0x1ffb3e0), (.text+0x1ffb724) =>
- error: hns_dsaf_xgmac.c: relocation truncated to fit:
R_PPC64_REL24 against symbol `_restgpr0_30' defined in
.text.save.restore section in arch/powerpc/lib/built-in.o:
(.text+0x1ffaecc) =>
- error: hns_dsaf_xgmac.c: relocation truncated to fit:
R_PPC64_REL24 against symbol `_savegpr0_27' defined in
.text.save.restore section in arch/powerpc/lib/built-in.o:
(.text+0x1ffb264) =>
- error: hns_dsaf_xgmac.c: relocation truncated to fit:
R_PPC64_REL24 against symbol `_savegpr0_30' defined in
.text.save.restore section in arch/powerpc/lib/built-in.o:
(.text+0x1ffae7c) =>
- error: hns_enet.c: relocation truncated to fit: R_PPC64_REL24
against symbol `_restgpr0_30' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: (.text+0x1ffba68) =>
- error: hns_enet.c: relocation truncated to fit: R_PPC64_REL24
against symbol `_savegpr0_30' defined in .text.save.restore section in
arch/powerpc/lib/built-in.o: (.text+0x1ffba70), (.text+0x1ffba2c) =>


*** WARNINGS ***

148 warning regressions:
+ .config: warning: symbol value '' invalid for PHYS_OFFSET: => 22
+ /home/kisskb/slave/src/arch/arm/include/asm/irqflags.h: warning:
'flags' may be used uninitialized in this function [-Wuninitialized]:
=> 170:2
+ /home/kisskb/slave/src/arch/ia64/sn/kernel/io_acpi_init.c:
warning: unused variable 'addr' [-Wunused-variable]: => 429:16
+ /home/kisskb/slave/src/arch/ia64/sn/kernel/io_init.c: warning:
'addr' may be used uninitialized in this function [-Wuninitialized]:
=> 189:19
+ /home/kisskb/slave/src/arch/powerpc/boot/addnote.c: warning: right
shift count >= width of type [enabled by default]: => 188:3, 206:3,
183:3, 211:3
+ /home/kisskb/slave/src/arch/powerpc/net/bpf_jit_comp.c: warning:
the frame size of 4416 bytes is larger than 2048 bytes
[-Wframe-larger-than=]: => 552:1
+ /home/kisskb/slave/src/drivers/block/cryptoloop.c: warning:
'cryptoloop_transfer' uses dynamic stack allocation [enabled by
default]: => 169:1
+ /home/kisskb/slave/src/drivers/block/drbd/drbd_receiver.c:
warning: 'drbd_do_auth' uses dynamic stack allocation [enabled by
default]: => 5092:1
+ /home/kisskb/slave/src/drivers/block/drbd/drbd_worker.c: warning:
'drbd_csum_bio' uses dynamic stack allocation [enabled by default]:
=> 327:1
+ /home/kisskb/slave/src/drivers/block/drbd/drbd_worker.c: warning:
'drbd_csum_ee' uses dynamic stack allocation [enabled by default]: =>
304:1
+ /home/kisskb/slave/src/drivers/char/hw_random/stm32-rng.c:
warning: 'sr' may be used uninitialized in this function
[-Wuninitialized]: => 82:6
+ /home/kisskb/slave/src/drivers/clk/clk-vt8500.c: warning:
'best_div1' may be used uninitialized in this function
[-Wuninitialized]: => 429:12, 559:12, 506:29
+ /home/kisskb/slave/src/drivers/clk/clk-vt8500.c: warning:
'best_div2' may be used uninitialized in this function
[-Wuninitialized]: => 560:12, 430:12, 509:12
+ /home/kisskb/slave/src/drivers/clk/clk-vt8500.c: warning:
'best_mul' may be used uninitialized in this function
[-Wuninitialized]: => 558:14, 428:14, 507:14
+ /home/kisskb/slave/src/drivers/gpu/drm/drm_crtc.c: warning:
control reaches end of non-void function [-Wreturn-type]: 786:1,
1360:1 => 1381:1, 784:1, 1170:1
+ /home/kisskb/slave/src/drivers/gpu/drm/i915/intel_ddi.c: warning:
'port' may be used uninitialized in this function [-Wuninitialized]:
=> 342:2
+ /home/kisskb/slave/src/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c:
warning: 'stat' may be used uninitialized in this function
[-Wuninitialized]: => 159:31
+ /home/kisskb/slave/src/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c:
warning: 'gm200_secboot_run_hs_blob' uses dynamic stack allocation
[enabled by default]: => 1222:1
+ /home/kisskb/slave/src/drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c:
warning: 'ls_ucode_mgr_write_wpr' uses dynamic stack allocation
[enabled by default]: => 802:1
+ /home/kisskb/slave/src/drivers/md/dm-crypt.c: warning:
'crypt_iv_essiv_init' uses dynamic stack allocation [enabled by
default]: => 290:1
+ /home/kisskb/slave/src/drivers/media/dvb-frontends/mn88473.c:
warning: 'conf_val_ptr' may be used uninitialized in this function
[-Wuninitialized]: => 156:21
+ /home/kisskb/slave/src/drivers/media/v4l2-core/v4l2-mc.c: warning:
unused variable 'dtv_demod' [-Wunused-variable]: => 37:55
+ /home/kisskb/slave/src/drivers/mtd/chips/cfi_cmdset_0002.c:
warning: 'r.x[0]' may be used uninitialized in this function
[-Wuninitialized] CC fs/fat/inode.o: => 772:2
+ /home/kisskb/slave/src/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:
warning: 'valid_len' may be used uninitialized in this function
[-Wuninitialized]: => 2159:5
+ /home/kisskb/slave/src/drivers/net/ethernet/qlogic/qed/qed_mcp.c:
warning: array subscript is above array bounds [-Warray-bounds]: =>
943:3
+ /home/kisskb/slave/src/drivers/net/ethernet/smsc/smc91x.c:
warning: passing argument 2 of 'outw' makes integer from pointer
without a cast [enabled by default] CC net/ipv4/xfrm4_state.o:
=> 1456:2
+ /home/kisskb/slave/src/drivers/net/macsec.c: warning: 'assoc_num'
may be used uninitialized in this function [-Wuninitialized]: =>
1827:2, 1904:2, 1969:5
+ /home/kisskb/slave/src/drivers/net/macsec.c: warning: 'rx_sc' may
be used uninitialized in this function [-Wuninitialized]: => 1827:2
+ /home/kisskb/slave/src/drivers/net/macsec.c: warning: 'secy' may
be used uninitialized in this function [-Wuninitialized]: => 1970:21
+ /home/kisskb/slave/src/drivers/net/macsec.c: warning: 'tx_sc' may
be used uninitialized in this function [-Wuninitialized]: => 1969:24,
1904:2
+ /home/kisskb/slave/src/drivers/net/ppp/ppp_mppe.c: warning:
'get_new_key_from_sha' uses dynamic stack allocation [enabled by
default]: => 158:1
+ /home/kisskb/slave/src/drivers/net/ppp/ppp_mppe.c: warning:
'mppe_compress' uses dynamic stack allocation [enabled by default]:
=> 448:1
+ /home/kisskb/slave/src/drivers/net/ppp/ppp_mppe.c: warning:
'mppe_decompress' uses dynamic stack allocation [enabled by default]:
=> 673:1
+ /home/kisskb/slave/src/drivers/net/ppp/ppp_mppe.c: warning:
'mppe_rekey' uses dynamic stack allocation [enabled by default]: =>
195:1
+ /home/kisskb/slave/src/drivers/net/wireless/ti/wlcore/spi.c:
warning: the frame size of 1180 bytes is larger than 1024 bytes
[-Wframe-larger-than=]: => 322:1
+ /home/kisskb/slave/src/drivers/nfc/s3fwrn5/firmware.c: warning:
's3fwrn5_fw_download' uses dynamic stack allocation [enabled by
default]: => 501:1
+ /home/kisskb/slave/src/drivers/pci/access.c: warning: format '%zu'
expects argument of type 'size_t', but argument 4 has type 'unsigned
int' [-Wformat=]: => 305:8
+ /home/kisskb/slave/src/drivers/pci/access.c: warning: format '%zu'
expects argument of type 'size_t', but argument 5 has type 'unsigned
int' [-Wformat=]: => 327:6
+ /home/kisskb/slave/src/drivers/platform/goldfish/goldfish_pipe.c:
warning: 'get_user_pages8' is deprecated (declared at
/home/kisskb/slave/src/include/linux/mm.h:1294)
[-Wdeprecated-declarations]: => 312:3
+ /home/kisskb/slave/src/drivers/rapidio/devices/rio_mport_cdev.c:
warning: 'get_user_pages8' is deprecated (declared at
/home/kisskb/slave/src/include/linux/mm.h:1294)
[-Wdeprecated-declarations]: => 889:3
+ /home/kisskb/slave/src/drivers/rapidio/devices/rio_mport_cdev.c:
warning: 'get_user_pages8' is deprecated [-Wdeprecated-declarations]:
=> 889:3
+ /home/kisskb/slave/src/drivers/rtc/rtc-rv3029c2.c: warning: 'elem'
may be used uninitialized in this function [-Wuninitialized]: =>
629:3
+ /home/kisskb/slave/src/drivers/scsi/device_handler/scsi_dh_alua.c:
warning: 'submit_rtpg' uses dynamic stack allocation [enabled by
default]: => 158:1
+ /home/kisskb/slave/src/drivers/scsi/device_handler/scsi_dh_alua.c:
warning: 'submit_stpg' uses dynamic stack allocation [enabled by
default]: => 191:1
+ /home/kisskb/slave/src/drivers/spi/spi.c: warning: format '%zu'
expects argument of type 'size_t', but argument 4 has type 'unsigned
int' [-Wformat=]: => 2287:2
+ /home/kisskb/slave/src/drivers/staging/i4l/icn/icn.c: warning:
cast to pointer from integer of different size
[-Wint-to-pointer-cast]: => 89:3
+ /home/kisskb/slave/src/drivers/staging/most/aim-cdev/cdev.c:
warning: 'mbo' may be used uninitialized in this function
[-Wuninitialized]: => 273:24, 275:15
+ /home/kisskb/slave/src/drivers/target/target_core_user.c: warning:
'block' may be used uninitialized in this function [-Wuninitialized]:
=> 249:31
+ /home/kisskb/slave/src/drivers/tty/serial/8250/8250_port.c:
warning: statement with no effect
[-Wunused-value]/home/kisskb/slave/src/drivers/tty/serial/8250/8250_core.c:252:18:
warning: 'i' may be used uninitialized in this function
[-Wuninitialized]: => 2275:3
+ /home/kisskb/slave/src/drivers/tty/serial/earlycon.c: warning:
comparison of distinct pointer types lacks a cast [enabled by
default]: => 74:32
+ /home/kisskb/slave/src/drivers/tty/serial/uartlite.c: warning:
assignment discards 'const' qualifier from pointer target type
[-Wdiscarded-qualifiers]: => 354:22, 348:21
+ /home/kisskb/slave/src/drivers/tty/serial/uartlite.c: warning:
assignment discards 'const' qualifier from pointer target type
[enabled by default]: => 348:21, 354:22
+ /home/kisskb/slave/src/drivers/usb/wusbcore/crypto.c: warning:
'wusb_ccm_mac' uses dynamic stack allocation [enabled by default]: =>
291:1
+ /home/kisskb/slave/src/drivers/virtio/virtio_ring.c: warning:
'queue' may be used uninitialized in this function [-Wuninitialized]:
=> 1032:5
+ /home/kisskb/slave/src/drivers/vme/bridges/vme_ca91cx42.c:
warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]: => 469:14
+ /home/kisskb/slave/src/fs/dax.c: warning: 'rc' may be used
uninitialized in this function [-Wuninitialized]: => 239:2
+ /home/kisskb/slave/src/fs/ecryptfs/crypto.c: warning:
'ecryptfs_hash_digest' uses dynamic stack allocation [enabled by
default]: => 89:1
+ /home/kisskb/slave/src/fs/ext4/ext4_jbd2.h: warning: control
reaches end of non-void function [-Wreturn-type] CC
fs/nilfs2/page.o: => 409:1
+ /home/kisskb/slave/src/fs/ext4/extents.c: warning: 'len' may be
used uninitialized in this function [-Wuninitialized]: 2340:58 =>
2355:19, 2340:2
+ /home/kisskb/slave/src/fs/ext4/inode.c: warning: 'handle' may be
used uninitialized in this function [-Wuninitialized]: => 797:3
+ /home/kisskb/slave/src/fs/ext4/inode.c: warning: 'handle' may be
used uninitialized in this function: => 783
+ /home/kisskb/slave/src/fs/f2fs/checkpoint.c: warning:
'do_checkpoint' uses dynamic stack allocation [enabled by default]:
=> 1110:1
+ /home/kisskb/slave/src/fs/f2fs/checkpoint.c: warning:
'validate_checkpoint' uses dynamic stack allocation [enabled by
default]: => 668:1
+ /home/kisskb/slave/src/fs/nfsd/nfs4recover.c: warning:
'nfs4_make_rec_clidname' uses dynamic stack allocation [enabled by
default]: => 147:1
+ /home/kisskb/slave/src/fs/ocfs2/file.c: warning: value computed is
not used [-Wunused-value]: => 2297:3
+ /home/kisskb/slave/src/fs/udf/unicode.c: warning: 'c' may be used
uninitialized in this function [-Wuninitialized]: => 157:15
+ /home/kisskb/slave/src/fs/udf/unicode.c: warning: 'conv_f' may be
used uninitialized in this function [-Wuninitialized]: => 382:2,
313:7, 363:6
+ /home/kisskb/slave/src/include/linux/device.h: warning: 'ndns' may
be used uninitialized in this function [-Wuninitialized]: => 868:9
+ /home/kisskb/slave/src/include/linux/fscrypto.h: warning: 'mode'
may be used uninitialized in this function [-Wuninitialized]: =>
116:2
+ /home/kisskb/slave/src/include/uapi/linux/swab.h: warning:
'*((void *)&crq+8)' is used uninitialized in this function
[-Wuninitialized]: => 71:9
+ /home/kisskb/slave/src/kernel/time/timekeeping.c: warning:
'cs_was_changed_seq' may be used uninitialized in this function: =>
1048, 1048:5
+ /home/kisskb/slave/src/lib/kstrtox.c: warning: comparison of
distinct pointer types lacks a cast [enabled by default]: 338:1,
347:1, 343:1, 342:1, 340:1, 341:1, 346:1, 344:1, 339:1, 345:1 =>
402:1, 380:10, 406:1, 407:1, 410:1, 403:1, 408:1, 405:1, 409:1, 404:1,
411:1
+ /home/kisskb/slave/src/mm/page_alloc.c: warning: 'buddy' may be
used uninitialized in this function [-Wuninitialized]: => 769:31
+ /home/kisskb/slave/src/mm/page_alloc.c: warning: 'zone_start_pfn'
may be used uninitialized in this function [-Wuninitialized]: =>
5313:17
+ /home/kisskb/slave/src/mm/slub.c: warning:
'get_partial_node.isra.44' uses dynamic stack allocation [enabled by
default]: => 1711:1
+ /home/kisskb/slave/src/mm/slub.c: warning:
'unfreeze_partials.isra.43' uses dynamic stack allocation [enabled by
default]: => 2076:1
+ /home/kisskb/slave/src/net/bridge/br_mdb.c: warning: 'pg' may be
used uninitialized in this function [-Wuninitialized]: => 569:19
+ /home/kisskb/slave/src/net/ceph/crypto.c: warning:
'ceph_aes_decrypt' uses dynamic stack allocation [enabled by default]:
=> 351:1
+ /home/kisskb/slave/src/net/ceph/crypto.c: warning:
'ceph_aes_decrypt2' uses dynamic stack allocation [enabled by
default]: => 431:1
+ /home/kisskb/slave/src/net/ceph/crypto.c: warning:
'ceph_aes_encrypt' uses dynamic stack allocation [enabled by default]:
=> 219:1
+ /home/kisskb/slave/src/net/ceph/crypto.c: warning:
'ceph_aes_encrypt2' uses dynamic stack allocation [enabled by
default]: => 284:1
+ /home/kisskb/slave/src/net/mac802154/llsec.c: warning:
'llsec_do_decrypt_unauth.isra.1' uses dynamic stack allocation
[enabled by default]: => 851:1
+ /home/kisskb/slave/src/net/mac802154/llsec.c: warning:
'llsec_do_encrypt_unauth.isra.2' uses dynamic stack allocation
[enabled by default]: => 634:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_decrypt_response.isra.1' uses dynamic stack allocation [enabled
by default]: => 1038:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_encrypt_response.isra.2' uses dynamic stack allocation [enabled
by default]: => 764:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_secure_packet' uses dynamic stack allocation [enabled by
default]: => 340:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_secure_packet_auth.isra.3' uses dynamic stack allocation
[enabled by default]: => 197:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_secure_packet_encrypt.isra.4' uses dynamic stack allocation
[enabled by default]: => 264:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_verify_packet' uses dynamic stack allocation [enabled by
default]: => 584:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_verify_packet_auth.isra.5' uses dynamic stack allocation
[enabled by default]: => 416:1
+ /home/kisskb/slave/src/net/rxrpc/rxkad.c: warning:
'rxkad_verify_packet_encrypt.isra.6' uses dynamic stack allocation
[enabled by default]: => 503:1
+ /home/kisskb/slave/src/net/sctp/auth.c: warning:
'sctp_auth_calculate_hmac' uses dynamic stack allocation [enabled by
default]: => 761:1
+ /home/kisskb/slave/src/net/sctp/sm_make_chunk.c: warning:
'sctp_pack_cookie.isra.6' uses dynamic stack allocation [enabled by
default]: => 1700:1
+ /home/kisskb/slave/src/net/sctp/sm_make_chunk.c: warning:
'sctp_unpack_cookie' uses dynamic stack allocation [enabled by
default]: => 1878:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'gss_decrypt_xdr_buf' uses dynamic stack allocation [enabled
by default]: => 620:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'gss_encrypt_xdr_buf' uses dynamic stack allocation [enabled
by default]: => 541:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'gss_krb5_aes_decrypt' uses dynamic stack allocation [enabled
by default]: => 924:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'gss_krb5_aes_encrypt' uses dynamic stack allocation [enabled
by default]: => 831:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'gss_krb5_cts_crypt' uses dynamic stack allocation [enabled
by default]: => 710:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'krb5_decrypt' uses dynamic stack allocation [enabled by
default]: => 126:1
+ /home/kisskb/slave/src/net/sunrpc/auth_gss/gss_krb5_crypto.c:
warning: 'krb5_encrypt' uses dynamic stack allocation [enabled by
default]: => 89:1
+ /home/kisskb/slave/src/security/integrity/ima/ima_crypto.c:
warning: 'calc_buffer_shash_tfm' uses dynamic stack allocation
[enabled by default]: => 608:1
+ /home/kisskb/slave/src/sound/hda/hdac_regmap.c: warning: 'err' may
be used uninitialized in this function [-Wuninitialized]: => 282:16
+ <stdin>: warning: #warning syscall preadv2 not implemented
[-Wcpp]: => 1310:2
+ <stdin>: warning: #warning syscall preadv2 not implemented: => 1310:2
+ <stdin>: warning: #warning syscall pwritev2 not implemented
[-Wcpp]: => 1313:2
+ <stdin>: warning: #warning syscall pwritev2 not implemented: => 1313:2
+ arch/arm64/configs/defconfig: warning: override: reassigning to
symbol MMC_BLOCK_MINORS: => 218
+ drivers/pci/pcie/Kconfig: warning: choice value used outside its
choice group: => 75, 68, 62
+ warning: (PPC_EARLY_DEBUG_CPM) selects PIN_TLB which has unmet
direct dependencies (PPC32 && ADVANCED_OPTIONS && 8xx): => N/A
+ warning: drivers/built-in.o(.data+0x10f4): Section mismatch in
reference from the variable dino_driver to the function
.init.text:dino_probe(): => N/A
+ warning: drivers/built-in.o(.data+0x1230): Section mismatch in
reference from the variable lasi_driver to the function
.init.text:lasi_init_chip(): => N/A
+ warning: drivers/built-in.o(.data+0x1294): Section mismatch in
reference from the variable asp_driver to the function
.init.text:asp_init_chip(): => N/A
+ warning: drivers/built-in.o(.data+0x12f8): Section mismatch in
reference from the variable wax_driver to the function
.init.text:wax_init_chip(): => N/A
+ warning: drivers/built-in.o(.data+0x135c): Section mismatch in
reference from the variable eisa_driver to the function
.init.text:eisa_probe(): => N/A
+ warning: drivers/built-in.o(.data+0x154c): Section mismatch in
reference from the variable superio_driver to the function
.init.text:superio_probe(): => N/A
+ warning: drivers/built-in.o(.data+0xea0): Section mismatch in
reference from the variable lba_driver to the function
.init.text:lba_driver_probe(): => N/A
+ warning: drivers/built-in.o(.data+0xf5c): Section mismatch in
reference from the variable ccio_driver to the function
.init.text:ccio_probe(): => N/A
+ warning: drivers/built-in.o(.text+0x1548ee): Section mismatch in
reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: drivers/built-in.o(.text+0x19335a): Section mismatch in
reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: drivers/built-in.o(.text+0x3acc98): Section mismatch in
reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): => N/A
+ warning: drivers/built-in.o(.text+0x43474f8): Section mismatch in
reference from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): => N/A
+ warning: drivers/built-in.o(.text+0x70758): Section mismatch in
reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): => N/A
+ warning: drivers/hwmon/built-in.o(.text+0x4a978): Section mismatch
in reference from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): => N/A
+ warning: drivers/iommu/built-in.o(.text+0xa9f2): Section mismatch
in reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: drivers/iommu/built-in.o(.text+0xf9ce): Section mismatch
in reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: drivers/net/built-in.o(.text+0x57f10): Section mismatch
in reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x1a0): Section mismatch
in reference from the variable lba_driver to the function
.init.text:lba_driver_probe(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x25c): Section mismatch
in reference from the variable ccio_driver to the function
.init.text:ccio_probe(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x3f4): Section mismatch
in reference from the variable dino_driver to the function
.init.text:dino_probe(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x530): Section mismatch
in reference from the variable lasi_driver to the function
.init.text:lasi_init_chip(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x594): Section mismatch
in reference from the variable asp_driver to the function
.init.text:asp_init_chip(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x5f8): Section mismatch
in reference from the variable wax_driver to the function
.init.text:wax_init_chip(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x65c): Section mismatch
in reference from the variable eisa_driver to the function
.init.text:eisa_probe(): => N/A
+ warning: drivers/parisc/built-in.o(.data+0x84c): Section mismatch
in reference from the variable superio_driver to the function
.init.text:superio_probe(): => N/A
+ warning: vmlinux.o(.data+0x43ac0): Section mismatch in reference
from the variable lba_driver to the function
.init.text:lba_driver_probe(): => N/A
+ warning: vmlinux.o(.data+0x43b7c): Section mismatch in reference
from the variable ccio_driver to the function .init.text:ccio_probe():
=> N/A
+ warning: vmlinux.o(.data+0x43d14): Section mismatch in reference
from the variable dino_driver to the function .init.text:dino_probe():
=> N/A
+ warning: vmlinux.o(.data+0x43e50): Section mismatch in reference
from the variable lasi_driver to the function
.init.text:lasi_init_chip(): => N/A
+ warning: vmlinux.o(.data+0x43eb4): Section mismatch in reference
from the variable asp_driver to the function
.init.text:asp_init_chip(): => N/A
+ warning: vmlinux.o(.data+0x43f18): Section mismatch in reference
from the variable wax_driver to the function
.init.text:wax_init_chip(): => N/A
+ warning: vmlinux.o(.data+0x43f7c): Section mismatch in reference
from the variable eisa_driver to the function .init.text:eisa_probe():
=> N/A
+ warning: vmlinux.o(.data+0x4416c): Section mismatch in reference
from the variable superio_driver to the function
.init.text:superio_probe(): => N/A
+ warning: vmlinux.o(.text+0x5880e78): Section mismatch in reference
from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): => N/A
+ warning: vmlinux.o(.text+0x61e796): Section mismatch in reference
from the function dmar_walk_remapping_entries() to the function
.init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: vmlinux.o(.text+0x732656): Section mismatch in reference
from the function dmar_walk_remapping_entries() to the function
.init.text:dmar_table_print_dmar_entry(): => N/A
+ warning: vmlinux.o(.text+0x9f5da): Section mismatch in reference
from the function intel_scu_devices_create() to the function
.init.text:i2c_register_board_info(): => N/A
+ warning: vmlinux.o(.text+0xa1bb3): Section mismatch in reference
from the function intel_scu_devices_create() to the function
.init.text:i2c_register_board_info(): => N/A

165 warning improvements:
- .config: warning: symbol value '' invalid for DEBUG_UART_PHYS: 3876 =>
- .config: warning: symbol value '' invalid for DEBUG_UART_VIRT: 3877 =>
- /home/kisskb/slave/src/drivers/base/regmap/regmap-mmio.c: warning:
control reaches end of non-void function [-Wreturn-type]: 113:1 =>
- /home/kisskb/slave/src/drivers/cpufreq/powernv-cpufreq.c: warning:
'mask' may be used uninitialized in this function [-Wuninitialized]:
436:2 =>
- /home/kisskb/slave/src/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:
warning: initialization makes integer from pointer without a cast
[-Wint-conversion]: 3631:17 =>
- /home/kisskb/slave/src/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:
warning: initialization makes integer from pointer without a cast
[enabled by default]: 3631:17 =>
- /home/kisskb/slave/src/drivers/gpu/drm/gma500/mdfld_dsi_output.c:
warning: (near initialization for 'mdfld_dsi_connector_funcs.dpms')
[enabled by default]: 407:2 =>
- /home/kisskb/slave/src/drivers/gpu/drm/gma500/mdfld_dsi_output.c:
warning: initialization from incompatible pointer type [enabled by
default]: 407:2 =>
- /home/kisskb/slave/src/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm204.c:
warning: 'stat' may be used uninitialized in this function
[-Wuninitialized]: 159:31 =>
- /home/kisskb/slave/src/drivers/isdn/hardware/eicon/message.c:
warning: array subscript is above array bounds [-Warray-bounds]:
11308:54 =>
- /home/kisskb/slave/src/drivers/isdn/hardware/eicon/platform.h:
warning: array subscript is above array bounds [-Warray-bounds]:
333:18 =>
- /home/kisskb/slave/src/drivers/isdn/icn/icn.c: warning: #warning
TODO test headroom or use skb->nb to flag ACK [-Wcpp]: 721:2 =>
- /home/kisskb/slave/src/drivers/isdn/icn/icn.c: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]: 89:3
=>
- /home/kisskb/slave/src/drivers/net/ethernet/qlogic/qed/qed_dev.c:
warning: the frame size of 1096 bytes is larger than 1024 bytes
[-Wframe-larger-than=]: 1687:1 =>
- /home/kisskb/slave/src/drivers/net/ethernet/smsc/smc91x.c:
warning: passing argument 2 of 'outw' makes integer from pointer
without a cast [enabled by default]: 1648:2, 1457:2, 404:2, 943:2,
321:2, 1829:2, 1684:2, 1670:2, 278:2, 1176:2, 863:2, 808:3, 388:2,
605:2, 1900:2, 336:2, 586:2, 304:2, 684:4, 868:2, 824:2, 1200:2,
403:2, 355:2, 1802:2, 262:2, 337:2, 1936:2, 1808:2, 495:3, 626:2,
1253:4, 1913:2, 1135:2, 1078:2, 764:2, 1460:3, 357:2, 1077:2, 599:2,
353:2, 1650:2, 765:2, 1656:2, 261:2, 1347:2, 1685:2, 941:2, 1657:2,
1456:2, 333:2, 1671:2, 674:2, 841:2, 1643:2, 788:3, 806:3, 587:2,
1350:2, 476:4, 448:3, 1645:2, 389:2, 800:2, 399:2, 498:3, 696:3,
1289:4, 1801:2, 1238:3, 1268:4, 1642:2, 1203:2, 354:2, 1887:2, 1299:2,
756:2, 786:3, 836:2, 1204:2, 1283:4, 279:2, 317:2, 1027:3, 1673:2,
1462:2, 619:2, 760:2, 733:2, 1270:4, 364:2, 426:2, 319:2, 358:2,
1279:4, 1298:2, 1646:2, 1459:3, 1178:2, 1230:2, 854:2, 730:2, 397:2,
398:2, 1202:2, 1676:2, 286:2, 318:2, 365:2, 1028:3, 1292:4, 942:2,
1674:2, 763:2 => 1645:2, 448:3, 587:2, 1350:2, 476:4, 1289:4, 389:2,
399:2, 800:2, 498:3, 696:3, 354:2, 1887:2, 1203:2, 1642:2, 1801:2,
1238:3, 1268:4, 1673:2, 1204:2, 1283:4, 317:2, 279:2, 1027:3, 836:2,
1299:2, 756:2, 786:3, 358:2, 1279:4, 733:2, 1270:4, 426:2, 319:2,
364:2, 619:2, 760:2, 1462:2, 1230:2, 854:2, 730:2, 397:2, 1459:3,
1178:2, 1298:2, 1646:2, 318:2, 1202:2, 1676:2, 286:2, 398:2, 763:2,
1292:4, 942:2, 1674:2, 365:2, 1028:3, 943:2, 321:2, 1648:2, 1457:2,
404:2, 808:3, 1176:2, 863:2, 278:2, 1829:2, 1684:2, 1670:2, 304:2,
586:2, 336:2, 388:2, 605:2, 1900:2, 1802:2, 868:2, 824:2, 1200:2,
403:2, 355:2, 684:4, 1135:2, 495:3, 1808:2, 626:2, 1913:2, 1253:4,
262:2, 337:2, 1936:2, 357:2, 1078:2, 764:2, 1460:3, 261:2, 1347:2,
1657:2, 1685:2, 941:2, 1656:2, 353:2, 1650:2, 765:2, 1077:2, 599:2,
806:3, 788:3, 1643:2, 841:2, 333:2, 1671:2, 674:2
- /home/kisskb/slave/src/drivers/net/wireless/st/cw1200/cw1200_spi.c:
warning: 'cw1200_spi_suspend' defined but not used
[-Wunused-function]: 450:12 =>
- /home/kisskb/slave/src/drivers/net/wireless/ti/wlcore/spi.c:
warning: the frame size of 1172 bytes is larger than 1024 bytes
[-Wframe-larger-than=]: 319:1 =>
- /home/kisskb/slave/src/drivers/ntb/test/ntb_perf.c: warning: cast
from pointer to integer of different size [-Wpointer-to-int-cast]:
214:14, 213:10 =>
- /home/kisskb/slave/src/drivers/scsi/aha1542.c: warning: 'cptr' may
be used uninitialized in this function [-Wuninitialized]: 381:16 =>
- /home/kisskb/slave/src/drivers/scsi/aha1542.c: warning: 'sg_count'
may be used uninitialized in this function [-Wuninitialized]: 461:11
=>
- /home/kisskb/slave/src/drivers/scsi/dpt_i2o.c: warning: 'dptids'
defined but not used [-Wunused-variable]: 183:29 =>
- /home/kisskb/slave/src/drivers/scsi/fdomain.c: warning:
'fdomain_pci_tbl' defined but not used [-Wunused-variable]: 1773:29 =>
- /home/kisskb/slave/src/drivers/scsi/mvumi.c: warning:
'mvumi_resume' defined but not used [-Wunused-function]: 2651:12 =>
- /home/kisskb/slave/src/drivers/scsi/mvumi.c: warning:
'mvumi_suspend' defined but not used [-Wunused-function]: 2632:12 =>
- /home/kisskb/slave/src/drivers/scsi/qla2xxx/qla_target.c: warning:
'cnt' may be used uninitialized in this function [-Wuninitialized]:
1878:9 =>
- /home/kisskb/slave/src/drivers/scsi/qla2xxx/qla_target.c: warning:
'cnt_in' may be used uninitialized in this function [-Wuninitialized]:
1878:9 =>
- /home/kisskb/slave/src/drivers/staging/dgap/dgap.c: warning:
format '%x' expects argument of type 'unsigned int', but argument 4
has type 'tcflag_t' [-Wformat]: 5616:2, 5694:2, 5642:2, 5668:2 =>
- /home/kisskb/slave/src/drivers/staging/dgap/dgap.c: warning:
format '%x' expects argument of type 'unsigned int', but argument 5
has type 'tcflag_t' [-Wformat]: 5401:7, 5421:7, 5441:7, 5381:7 =>
- /home/kisskb/slave/src/drivers/staging/dgap/dgap.h: warning:
"IO_FIELD" redefined [enabled by default]: 443:0 =>
- /home/kisskb/slave/src/drivers/staging/media/lirc/lirc_serial.c:
warning: the frame size of 1464 bytes is larger than 1024 bytes
[-Wframe-larger-than=]: 626:1 =>
- /home/kisskb/slave/src/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c:
warning: 'synaptics_rmi4_resume' defined but not used
[-Wunused-function]: 1084:12 =>
- /home/kisskb/slave/src/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c:
warning: 'synaptics_rmi4_suspend' defined but not used
[-Wunused-function]: 1050:12 =>
- /home/kisskb/slave/src/drivers/tty/cyclades.c: warning:
'cyz_interrupt' defined but not used [-Wunused-function]: 1184:20 =>
- /home/kisskb/slave/src/drivers/tty/serial/8250/8250_core.c:
warning: 'i' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 250:10, 163:19 =>
- /home/kisskb/slave/src/drivers/tty/serial/amba-pl011.c: warning:
'vendor_zte' defined but not used [-Wunused-variable]: 190:27 =>
- /home/kisskb/slave/src/drivers/tty/serial/ifx6x60.c: warning:
'more' may be used uninitialized in this function [-Wuninitialized]:
715:8 =>
- /home/kisskb/slave/src/drivers/usb/host/xhci-mtk.c: warning:
'usb_wakeup_disable' defined but not used [-Wunused-function]: 321:13
=>
- /home/kisskb/slave/src/drivers/usb/host/xhci-mtk.c: warning:
'usb_wakeup_enable' defined but not used [-Wunused-function]: 313:13
=>
- /home/kisskb/slave/src/drivers/usb/host/xhci-mtk.c: warning:
'xhci_mtk_host_disable' defined but not used [-Wunused-function]:
135:12 =>
- /home/kisskb/slave/src/drivers/usb/storage/transport.c: warning:
'partial' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 473:40, 499:15 =>
- /home/kisskb/slave/src/drivers/virtio/virtio_ring.c: warning: cast
to pointer from integer of different size [-Wint-to-pointer-cast]:
443:9 =>
- /home/kisskb/slave/src/fs/cifs/cifssmb.c: warning: format '%zu'
expects argument of type 'size_t', but argument 3 has type 'unsigned
int' [-Wformat=]: 1516:2 =>
- /home/kisskb/slave/src/fs/cifs/cifssmb.c: warning: format '%zu'
expects argument of type 'size_t', but argument 4 has type 'unsigned
int' [-Wformat=]: 1516:2, 1474:3 =>
- /home/kisskb/slave/src/fs/cifs/cifssmb.c: warning: format '%zu'
expects argument of type 'size_t', but argument 5 has type 'unsigned
int' [-Wformat=]: 1474:3 =>
- /home/kisskb/slave/src/fs/cifs/connect.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 2 has type
'ssize_t' [-Wformat=]: 2458:3, 2467:3, 2450:3, 2477:3 =>
- /home/kisskb/slave/src/fs/cifs/connect.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 3 has type
'ssize_t' [-Wformat=]: 2458:3, 2450:3, 2467:3, 2477:3 =>
- /home/kisskb/slave/src/fs/cifs/file.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 2 has type
'size_t' [-Wformat=]: 1650:2 =>
- /home/kisskb/slave/src/fs/cifs/file.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 3 has type
'size_t' [-Wformat=]: 1650:2 =>
- /home/kisskb/slave/src/fs/cifs/file.c: warning: format '%zu'
expects argument of type 'size_t', but argument 4 has type 'unsigned
int' [-Wformat=]: 2876:4, 2869:4 =>
- /home/kisskb/slave/src/fs/cifs/file.c: warning: format '%zu'
expects argument of type 'size_t', but argument 5 has type 'unsigned
int' [-Wformat=]: 3322:4, 2869:4, 3329:4, 2876:4 =>
- /home/kisskb/slave/src/fs/cifs/file.c: warning: format '%zu'
expects argument of type 'size_t', but argument 6 has type 'unsigned
int' [-Wformat=]: 3329:4, 3322:4 =>
- /home/kisskb/slave/src/fs/cifs/readdir.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 2 has type
'size_t' [-Wformat=]: 702:3 =>
- /home/kisskb/slave/src/fs/cifs/readdir.c: warning: format '%zd'
expects argument of type 'signed size_t', but argument 3 has type
'size_t' [-Wformat=]: 702:3 =>
- /home/kisskb/slave/src/fs/cifs/transport.c: warning: format '%zu'
expects argument of type 'size_t', but argument 3 has type 'unsigned
int' [-Wformat=]: 350:3 =>
- /home/kisskb/slave/src/fs/cifs/transport.c: warning: format '%zu'
expects argument of type 'size_t', but argument 4 has type 'unsigned
int' [-Wformat=]: 350:3 =>
- /home/kisskb/slave/src/fs/ext4/ext4_extents.h: warning: '*((void
*)&zero_ex+6)' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 225:12 =>
- /home/kisskb/slave/src/fs/ext4/ext4_extents.h: warning: '*((void
*)&zero_ex+8)' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 224:8 =>
- /home/kisskb/slave/src/fs/ext4/extents.c: warning: 'lblock' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 2306:14
=>
- /home/kisskb/slave/src/fs/ext4/extents.c: warning: 'lblock' may be
used uninitialized in this function [-Wuninitialized]: 2340:58 =>
- /home/kisskb/slave/src/fs/ext4/extents.c: warning: 'len' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 2305:14
=>
- /home/kisskb/slave/src/fs/ext4/extents.c: warning:
'zero_ex.ee_block' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 3113:2 =>
- /home/kisskb/slave/src/fs/ext4/inode.c: warning: 'retval' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 559:5 =>
- /home/kisskb/slave/src/fs/f2fs/f2fs_crypto.h: warning: 'mode' may
be used uninitialized in this function [-Wuninitialized]: 115:2 =>
- /home/kisskb/slave/src/fs/f2fs/namei.c: warning: 'p_len' may be
used uninitialized in this function [-Wuninitialized]: 428:59 =>
- /home/kisskb/slave/src/fs/namei.c: warning: 'seq' may be used
uninitialized in this function [-Wmaybe-uninitialized]: 1720:2 =>
- /home/kisskb/slave/src/include/asm-generic/bug.h: warning: 'fn'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
74:48 =>
- /home/kisskb/slave/src/include/linux/buffer_head.h: warning:
'blocknr' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 363:2, 370:2 =>
- /home/kisskb/slave/src/include/linux/rbtree.h: warning: 'rb_link'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
86:11 =>
- /home/kisskb/slave/src/include/linux/rbtree.h: warning:
'rb_parent' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 83:28 =>
- /home/kisskb/slave/src/include/linux/scatterlist.h: warning:
comparison of unsigned expression >= 0 is always true [-Wtype-limits]
CC [M] drivers/scsi/atp870u.o: 140:2 =>
- /home/kisskb/slave/src/include/linux/spinlock.h: warning: 'flags'
may be used uninitialized in this function [-Wuninitialized]: 362:2 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'daddr.<U7be0>.a4.addr' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'daddr.<Udb48>.a4.addr' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'daddr.in6_u.u6_addr32[2]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'daddr.in6_u.u6_addr32[3]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<U7be0>.a4.addr' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<U7be0>.a4.vif' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:26 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<U7be0>.key[2]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<U7be0>.key[3]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<Udb48>.a4.addr' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<Udb48>.a4.vif' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:26 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<Udb48>.key[2]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/inetpeer.h: warning:
'saddr.<Udb48>.key[3]' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 141:6 =>
- /home/kisskb/slave/src/include/net/ipx.h: warning: 'packed'
attribute ignored for field of type '__be16' [-Wattributes] CC [M]
net/ipv6/netfilter/ip6table_filter.o: 30:2 =>
- /home/kisskb/slave/src/ipc/shm.c: warning: 'ret' may be used
uninitialized in this function [-Wmaybe-uninitialized]: 1252:2 =>
- /home/kisskb/slave/src/kernel/sched/core.c: warning: unsupported
argument to '__builtin_return_address' [enabled by default]: 3019:11,
3017:10 =>
- /home/kisskb/slave/src/kernel/sysctl.c: warning: 'p' may be used
uninitialized in this function [-Wmaybe-uninitialized]: 1928:12 =>
- /home/kisskb/slave/src/kernel/time/posix-cpu-timers.c: warning:
'now' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 95:8, 818:21, 1268:13 =>
- /home/kisskb/slave/src/kernel/time/posix-cpu-timers.c: warning:
'val' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 695:17 =>
- /home/kisskb/slave/src/mm/mmap.c: warning: 'prev' may be used
uninitialized in this function [-Wmaybe-uninitialized]: 682:17 =>
- /home/kisskb/slave/src/mm/slub.c: warning:
'get_partial_node.isra.42' uses dynamic stack allocation [enabled by
default]: 1699:1 =>
- /home/kisskb/slave/src/mm/slub.c: warning:
'unfreeze_partials.isra.41' uses dynamic stack allocation [enabled by
default]: 2064:1 =>
- /home/kisskb/slave/src/net/can/bcm.c: warning: the frame size of
1164 bytes is larger than 1024 bytes [-Wframe-larger-than=]: 228:1 =>
- /home/kisskb/slave/src/net/core/datagram.c: warning: 'last' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 99:5 =>
- /home/kisskb/slave/src/net/core/neighbour.c: warning: 'p_name' may
be used uninitialized in this function [-Wmaybe-uninitialized]:
3180:10 =>
- /home/kisskb/slave/src/net/ipv4/fib_trie.c: warning: 'local_tp'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
909:11 =>
- /home/kisskb/slave/src/net/ipv4/ping.c: warning: 'code' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 559:37,
476:63 =>
- /home/kisskb/slave/src/net/ipv4/ping.c: warning: 'icmph' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 513:48 =>
- /home/kisskb/slave/src/net/ipv4/ping.c: warning: 'type' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 532:3,
690:21 =>
- /home/kisskb/slave/src/net/ipv4/tcp_metrics.c: warning: 'hash' may
be used uninitialized in this function [-Wmaybe-uninitialized]: 1079:7
=>
- /home/kisskb/slave/src/net/packet/af_packet.c: warning: 'hdrlen'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
2098:33 =>
- /home/kisskb/slave/src/net/rfkill/core.c: warning: control reaches
end of non-void function [-Wreturn-type]: 618:1 =>
- /home/kisskb/slave/src/net/sunrpc/svcauth_unix.c: warning: 'sin6'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
282:12 =>
- /home/kisskb/slave/src/net/sunrpc/svcsock.c: warning: 'level' may
be used uninitialized in this function [-Wmaybe-uninitialized]: 779:6
=>
- /home/kisskb/slave/src/net/sunrpc/svcsock.c: warning: 'optname'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
779:6 =>
- /home/kisskb/slave/src/net/sunrpc/xdr.c: warning:
'subbuf.head[0].iov_base' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 1113:8, 1207:12, 1144:8 =>
- /home/kisskb/slave/src/net/sunrpc/xdr.c: warning:
'subbuf.page_base' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 1149:17, 1118:19 =>
- /home/kisskb/slave/src/net/sunrpc/xdr.c: warning: 'subbuf.pages'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
1118:19, 1149:17 =>
- /home/kisskb/slave/src/net/sunrpc/xdr.c: warning:
'subbuf.tail[0].iov_base' may be used uninitialized in this function
[-Wmaybe-uninitialized]: 1122:8, 1153:8 =>
- /home/kisskb/slave/src/net/unix/af_unix.c: warning: 'hash' may be
used uninitialized in this function [-Wmaybe-uninitialized]: 1251:8,
1130:9, 1036:20, 1724:9 =>
- /home/kisskb/slave/src/net/xfrm/xfrm_policy.c: warning: 'dst_ops'
may be used uninitialized in this function [-Wmaybe-uninitialized]:
1599:7 =>
- <stdin>: warning: #warning syscall copy_file_range not
implemented: 1307:2 =>
- <stdin>: warning: #warning syscall getrandom not implemented
[-Wcpp] HOSTLD scripts/mod/modpost: 1241:2 =>
- warning: (CRASH_DUMP) selects RELOCATABLE which has unmet direct
dependencies (PPC32 && ADVANCED_OPTIONS && FLATMEM && (44x ||
FSL_BOOKE) || PPC64 && !COMPILE_TEST): N/A =>
- warning: (SND_SOC_INTEL_BYTCR_RT5640_MACH &&
SND_SOC_INTEL_BYTCR_RT5651_MACH && SND_SOC_INTEL_CHT_BSW_RT5672_MACH
&& SND_SOC_INTEL_CHT_BSW_RT5645_MACH &&
SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH) selects SND_SST_IPC_ACPI which
has unmet direct dependencies (SOUND && !M68K && !UML && SND &&
SND_SOC && ACPI): N/A =>
- warning: (VIDEO_PVRUSB2 && VIDEO_USBVISION && VIDEO_GO7007 &&
VIDEO_AU0828_V4L2 && VIDEO_CX231XX && VIDEO_TM6000 && VIDEO_EM28XX &&
VIDEO_IVTV && VIDEO_MXB && VIDEO_CX18 && VIDEO_CX23885 && VIDEO_CX88
&& VIDEO_BT848 && VIDEO_SAA7134 && VIDEO_SAA7164) selects VIDEO_TUNER
which has unmet direct dependencies (MEDIA_SUPPORT && MEDIA_TUNER):
N/A =>
- warning: drivers/built-in.o(.data+0x11b4): Section mismatch in
reference from the variable superio_driver to the function
.init.text:superio_probe(): N/A =>
- warning: drivers/built-in.o(.data+0xb38): Section mismatch in
reference from the variable lba_driver to the function
.init.text:lba_driver_probe(): N/A =>
- warning: drivers/built-in.o(.data+0xbe4): Section mismatch in
reference from the variable ccio_driver to the function
.init.text:ccio_probe(): N/A =>
- warning: drivers/built-in.o(.data+0xd74): Section mismatch in
reference from the variable dino_driver to the function
.init.text:dino_probe(): N/A =>
- warning: drivers/built-in.o(.data+0xea0): Section mismatch in
reference from the variable lasi_driver to the function
.init.text:lasi_init_chip(): N/A =>
- warning: drivers/built-in.o(.data+0xf04): Section mismatch in
reference from the variable asp_driver to the function
.init.text:asp_init_chip(): N/A =>
- warning: drivers/built-in.o(.data+0xf68): Section mismatch in
reference from the variable wax_driver to the function
.init.text:wax_init_chip(): N/A =>
- warning: drivers/built-in.o(.data+0xfcc): Section mismatch in
reference from the variable eisa_driver to the function
.init.text:eisa_probe(): N/A =>
- warning: drivers/built-in.o(.text+0x149852): Section mismatch in
reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: drivers/built-in.o(.text+0x185122): Section mismatch in
reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: drivers/built-in.o(.text+0x18886c8): Section mismatch in
reference from the function mtk_nor_drv_probe() to the function
.init.text:mtk_nor_init(): N/A =>
- warning: drivers/built-in.o(.text+0x1948108): Section mismatch in
reference from the function .mtk_nor_drv_probe() to the function
.init.text:.mtk_nor_init(): N/A =>
- warning: drivers/built-in.o(.text+0x397a7c): Section mismatch in
reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): N/A =>
- warning: drivers/built-in.o(.text+0x4295e48): Section mismatch in
reference from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): N/A =>
- warning: drivers/built-in.o(.text+0x6dc64): Section mismatch in
reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): N/A =>
- warning: drivers/hwmon/built-in.o(.text+0x4a8b8): Section mismatch
in reference from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): N/A =>
- warning: drivers/iommu/built-in.o(.text+0x9146): Section mismatch
in reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: drivers/iommu/built-in.o(.text+0xe586): Section mismatch
in reference from the function dmar_walk_remapping_entries() to the
function .init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: drivers/mtd/built-in.o(.text+0xc09ac): Section mismatch
in reference from the function .mtk_nor_drv_probe() to the function
.init.text:.mtk_nor_init(): N/A =>
- warning: drivers/mtd/built-in.o(.text+0xcd80c): Section mismatch
in reference from the function mtk_nor_drv_probe() to the function
.init.text:mtk_nor_init(): N/A =>
- warning: drivers/mtd/spi-nor/built-in.o(.text+0x76c8): Section
mismatch in reference from the function mtk_nor_drv_probe() to the
function .init.text:mtk_nor_init(): N/A =>
- warning: drivers/mtd/spi-nor/built-in.o(.text+0x777c): Section
mismatch in reference from the function .mtk_nor_drv_probe() to the
function .init.text:.mtk_nor_init(): N/A =>
- warning: drivers/mtd/spi-nor/mtk-quadspi.o(.text+0x2ac): Section
mismatch in reference from the function mtk_nor_drv_probe() to the
function .init.text:mtk_nor_init(): N/A =>
- warning: drivers/mtd/spi-nor/mtk-quadspi.o(.text+0x798): Section
mismatch in reference from the function .mtk_nor_drv_probe() to the
function .init.text:.mtk_nor_init(): N/A =>
- warning: drivers/net/built-in.o(.text+0x5300c): Section mismatch
in reference from the function etrax_init_module() to the function
.init.text:etrax_ethernet_init(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x198): Section mismatch
in reference from the variable lba_driver to the function
.init.text:lba_driver_probe(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x244): Section mismatch
in reference from the variable ccio_driver to the function
.init.text:ccio_probe(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x3d4): Section mismatch
in reference from the variable dino_driver to the function
.init.text:dino_probe(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x500): Section mismatch
in reference from the variable lasi_driver to the function
.init.text:lasi_init_chip(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x564): Section mismatch
in reference from the variable asp_driver to the function
.init.text:asp_init_chip(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x5c8): Section mismatch
in reference from the variable wax_driver to the function
.init.text:wax_init_chip(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x62c): Section mismatch
in reference from the variable eisa_driver to the function
.init.text:eisa_probe(): N/A =>
- warning: drivers/parisc/built-in.o(.data+0x814): Section mismatch
in reference from the variable superio_driver to the function
.init.text:superio_probe(): N/A =>
- warning: drivers/scsi/sim710.o(.data+0x54): Section mismatch in
reference from the variable sim710_eisa_driver to the function
.init.text:sim710_eisa_probe(): N/A =>
- warning: vmlinux.o(.data+0x430f8): Section mismatch in reference
from the variable lba_driver to the function
.init.text:lba_driver_probe(): N/A =>
- warning: vmlinux.o(.data+0x431a4): Section mismatch in reference
from the variable ccio_driver to the function .init.text:ccio_probe():
N/A =>
- warning: vmlinux.o(.data+0x43334): Section mismatch in reference
from the variable dino_driver to the function .init.text:dino_probe():
N/A =>
- warning: vmlinux.o(.data+0x43460): Section mismatch in reference
from the variable lasi_driver to the function
.init.text:lasi_init_chip(): N/A =>
- warning: vmlinux.o(.data+0x434c4): Section mismatch in reference
from the variable asp_driver to the function
.init.text:asp_init_chip(): N/A =>
- warning: vmlinux.o(.data+0x43528): Section mismatch in reference
from the variable wax_driver to the function
.init.text:wax_init_chip(): N/A =>
- warning: vmlinux.o(.data+0x4358c): Section mismatch in reference
from the variable eisa_driver to the function .init.text:eisa_probe():
N/A =>
- warning: vmlinux.o(.data+0x43774): Section mismatch in reference
from the variable superio_driver to the function
.init.text:superio_probe(): N/A =>
- warning: vmlinux.o(.text+0x2e45c08): Section mismatch in reference
from the function .mtk_nor_drv_probe() to the function
.init.text:.mtk_nor_init(): N/A =>
- warning: vmlinux.o(.text+0x303fa08): Section mismatch in reference
from the function mtk_nor_drv_probe() to the function
.init.text:mtk_nor_init(): N/A =>
- warning: vmlinux.o(.text+0x5793948): Section mismatch in reference
from the function .create_device_attrs() to the function
.init.text:.make_sensor_label(): N/A =>
- warning: vmlinux.o(.text+0x601d1a): Section mismatch in reference
from the function dmar_walk_remapping_entries() to the function
.init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: vmlinux.o(.text+0x71103a): Section mismatch in reference
from the function dmar_walk_remapping_entries() to the function
.init.text:dmar_table_print_dmar_entry(): N/A =>
- warning: vmlinux.o(.text+0x9e28a): Section mismatch in reference
from the function intel_scu_devices_create() to the function
.init.text:i2c_register_board_info(): N/A =>
- warning: vmlinux.o(.text+0xa1267): Section mismatch in reference
from the function intel_scu_devices_create() to the function
.init.text:i2c_register_board_info(): N/A =>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


2016-03-27 12:43:29

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
<[email protected]> wrote:
> Below is the list of build error/warning regressions/improvements in
> v4.6-rc1[1] compared to v4.5[2].
>
> Summarized:
> - build errors: +9/-6

> [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)

> 9 error regressions:
> + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
> '__compiletime_assert_79' declared with attribute error: XFS:
> sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2

cris-allyesconfig, cris-allmodconfig

> + error: smp-shx3.c: undefined reference to `local_timer_setup': =>
> .text+0xadec)

shx3_defconfig

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2016-03-27 13:15:37

by Rich Felker

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Sun, Mar 27, 2016 at 02:43:24PM +0200, Geert Uytterhoeven wrote:
> On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
> <[email protected]> wrote:
> > Below is the list of build error/warning regressions/improvements in
> > v4.6-rc1[1] compared to v4.5[2].
> >
> > Summarized:
> > - build errors: +9/-6
>
> > [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> > [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
>
> > 9 error regressions:
> > + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
> > '__compiletime_assert_79' declared with attribute error: XFS:
> > sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
>
> cris-allyesconfig, cris-allmodconfig
>
> > + error: smp-shx3.c: undefined reference to `local_timer_setup': =>
> > .text+0xadec)
>
> shx3_defconfig

Thanks for catching this. I've prepared a patch and I'm checking
whether it fixes the problem.

Rich

2016-03-27 17:05:50

by Rich Felker

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Sun, Mar 27, 2016 at 09:15:30AM -0400, Rich Felker wrote:
> On Sun, Mar 27, 2016 at 02:43:24PM +0200, Geert Uytterhoeven wrote:
> > On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
> > <[email protected]> wrote:
> > > Below is the list of build error/warning regressions/improvements in
> > > v4.6-rc1[1] compared to v4.5[2].
> > >
> > > Summarized:
> > > - build errors: +9/-6
> >
> > > [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> > > [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
> >
> > > 9 error regressions:
> > > + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
> > > '__compiletime_assert_79' declared with attribute error: XFS:
> > > sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
> >
> > cris-allyesconfig, cris-allmodconfig
> >
> > > + error: smp-shx3.c: undefined reference to `local_timer_setup': =>
> > > .text+0xadec)
> >
> > shx3_defconfig
>
> Thanks for catching this. I've prepared a patch and I'm checking
> whether it fixes the problem.

I've tested that the patch fixes the build and sent it to the linux-sh
list.

Rich

2016-03-27 19:21:59

by Guenter Roeck

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Sun, Mar 27, 2016 at 02:39:37PM +0200, Geert Uytterhoeven wrote:
> Below is the list of build error/warning regressions/improvements in
> v4.6-rc1[1] compared to v4.5[2].
>
> Summarized:
> - build errors: +9/-6
> - build warnings: +148/-165
>
> As I haven't mastered kup yet, there's no verbose summary at
> http://www.kernel.org/pub/linux/kernel/people/geert/linux-log/v4.6-rc1.summary.gz
>
> Happy fixing! ;-)
>
> [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
>

Here are the results from my builder.

Build results:
total: 145 pass: 142 fail: 3
Failed builds:
nios2:3c120_defconfig [1]
unicore32:defconfig [2]
unicore32:allnoconfig [2]

Qemu test results:
total: 103 pass: 95 fail: 8
Failed tests:
arm:akita:pxa_defconfig [3] [4]
arm:borzoi:pxa_defconfig [3] [4]
arm:spitz:pxa_defconfig [3] [4]
arm:terrier:pxa_defconfig [3] [4]
mips:malta_defconfig:smp [5]
mips64:malta_defconfig:smp [5]
mips:malta_defconfig:smp [5]
mips:malta_defconfig:smp [5]

Details are available at http://kerneltests.org/builders.

Guenter

---
[1] https://patchwork.kernel.org/patch/8615941/
[2] https://patchwork.kernel.org/patch/8631791/
[3] http://patchwork.roeck-us.net/patch/916/
[4] http://www.spinics.net/lists/kernel/msg2219760.html
[5] https://patchwork.linux-mips.org/patch/12892/

2016-03-28 21:59:30

by Dave Chinner

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Sun, Mar 27, 2016 at 02:43:24PM +0200, Geert Uytterhoeven wrote:
> On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
> <[email protected]> wrote:
> > Below is the list of build error/warning regressions/improvements in
> > v4.6-rc1[1] compared to v4.5[2].
> >
> > Summarized:
> > - build errors: +9/-6
>
> > [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> > [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
>
> > 9 error regressions:
> > + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
> > '__compiletime_assert_79' declared with attribute error: XFS:
> > sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
>
> cris-allyesconfig, cris-allmodconfig

Yup, cris is the only platform that throws this error on this
structure. It's an on-disk structure and relying on the gcc
optimiser to do the same thing from release to release has become
such a crap-shoot these days. Hence as a stop-gap measure we added
build time checking of what they compiler is doing with those
structures, and to refuse to build XFS if the compiler/platform is
doing something obviously different.

Modernising the on-disk structure definitions is on the list of
things to do, but it's nowhere near the top of my list at the
moment...

Cheers,

Dave.
--
Dave Chinner
[email protected]

2016-03-28 22:47:33

by Darrick J. Wong

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Tue, Mar 29, 2016 at 08:59:23AM +1100, Dave Chinner wrote:
> On Sun, Mar 27, 2016 at 02:43:24PM +0200, Geert Uytterhoeven wrote:
> > On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
> > <[email protected]> wrote:
> > > Below is the list of build error/warning regressions/improvements in
> > > v4.6-rc1[1] compared to v4.5[2].
> > >
> > > Summarized:
> > > - build errors: +9/-6
> >
> > > [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
> > > [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
> >
> > > 9 error regressions:
> > > + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
> > > '__compiletime_assert_79' declared with attribute error: XFS:
> > > sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
> >
> > cris-allyesconfig, cris-allmodconfig
>
> Yup, cris is the only platform that throws this error on this
> structure. It's an on-disk structure and relying on the gcc
> optimiser to do the same thing from release to release has become
> such a crap-shoot these days. Hence as a stop-gap measure we added
> build time checking of what they compiler is doing with those
> structures, and to refuse to build XFS if the compiler/platform is
> doing something obviously different.
>
> Modernising the on-disk structure definitions is on the list of
> things to do, but it's nowhere near the top of my list at the
> moment...

I have a test patch that (for now) changes the ondisk format checks for the
variable-length structures to look at the offsets of the non-variable-length
fields. Can you give it a try?

(No idea if it fixes fixes cris, but it passes the six arches that I can
actually test on (x86/power/arm)). The downside is that it does nothing about
troubling implication that there could be computers writing out a disk format
that's incompatible with x86 XFSes...)

--D
-----------
From: Darrick J. Wong <[email protected]>
Subject: [PATCH] xfs: check offsets of variable length structures

Some of the directory/attr structures contain variable-length objects,
so the enclosing structure doesn't have a meaningful fixed size at
compile time. We can check the offsets of the members before the
variable-length member, so do those.

Signed-off-by: Darrick J. Wong <[email protected]>
---
fs/xfs/xfs_ondisk.h | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/xfs_ondisk.h b/fs/xfs/xfs_ondisk.h
index 960648b..3742216 100644
--- a/fs/xfs/xfs_ondisk.h
+++ b/fs/xfs/xfs_ondisk.h
@@ -22,6 +22,11 @@
BUILD_BUG_ON_MSG(sizeof(structname) != (size), "XFS: sizeof(" \
#structname ") is wrong, expected " #size)

+#define XFS_CHECK_OFFSET(structname, member, off) \
+ BUILD_BUG_ON_MSG(offsetof(structname, member) != (off), \
+ "XFS: offsetof(" #structname ", " #member ") is wrong, " \
+ "expected " #off)
+
static inline void __init
xfs_check_ondisk_structs(void)
{
@@ -81,15 +86,28 @@ xfs_check_ondisk_structs(void)
XFS_CHECK_STRUCT_SIZE(xfs_attr_leaf_name_remote_t, 12);
*/

+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, valuelen, 0);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, namelen, 2);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, nameval, 3);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, valueblk, 0);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, valuelen, 4);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, namelen, 8);
+ XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, name, 9);
XFS_CHECK_STRUCT_SIZE(xfs_attr_leafblock_t, 40);
- XFS_CHECK_STRUCT_SIZE(xfs_attr_shortform_t, 8);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, hdr.totsize, 0);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, hdr.count, 2);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].namelen, 4);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].valuelen, 5);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].flags, 6);
+ XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].nameval, 7);
XFS_CHECK_STRUCT_SIZE(xfs_da_blkinfo_t, 12);
XFS_CHECK_STRUCT_SIZE(xfs_da_intnode_t, 16);
XFS_CHECK_STRUCT_SIZE(xfs_da_node_entry_t, 8);
XFS_CHECK_STRUCT_SIZE(xfs_da_node_hdr_t, 16);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_free_t, 4);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_hdr_t, 16);
- XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_unused_t, 6);
+ XFS_CHECK_OFFSET(xfs_dir2_data_unused_t, freetag, 0);
+ XFS_CHECK_OFFSET(xfs_dir2_data_unused_t, length, 2);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_free_hdr_t, 16);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_free_t, 16);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_ino4_t, 4);
@@ -100,6 +118,9 @@ xfs_check_ondisk_structs(void)
XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_t, 16);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_tail_t, 4);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t, 3);
+ XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, namelen, 0);
+ XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, offset, 1);
+ XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, name, 3);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_hdr_t, 10);
XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_off_t, 2);


2016-03-29 06:16:28

by Mikael Starvik

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

I have not lookend at the structs but CRIS is a bit unusual since it does no alignment what so ever. If a short is followed by an int will be unaligned like in a packed struct.

Jesper or someone else will take a look at this specific issue.

/Mikael
> 29 mars 2016 kl. 00:47 skrev Darrick J. Wong <[email protected]>:
>
>> On Tue, Mar 29, 2016 at 08:59:23AM +1100, Dave Chinner wrote:
>>> On Sun, Mar 27, 2016 at 02:43:24PM +0200, Geert Uytterhoeven wrote:
>>> On Sun, Mar 27, 2016 at 2:39 PM, Geert Uytterhoeven
>>> <[email protected]> wrote:
>>>> Below is the list of build error/warning regressions/improvements in
>>>> v4.6-rc1[1] compared to v4.5[2].
>>>>
>>>> Summarized:
>>>> - build errors: +9/-6
>>>
>>>> [1] http://kisskb.ellerman.id.au/kisskb/head/10114/ (all 262 configs)
>>>> [2] http://kisskb.ellerman.id.au/kisskb/head/10047/ (all 262 configs)
>>>
>>>> 9 error regressions:
>>>> + /home/kisskb/slave/src/fs/xfs/xfs_ondisk.h: error: call to
>>>> '__compiletime_assert_79' declared with attribute error: XFS:
>>>> sizeof(xfs_attr_shortform_t) is wrong, expected 8: => 79:2
>>>
>>> cris-allyesconfig, cris-allmodconfig
>>
>> Yup, cris is the only platform that throws this error on this
>> structure. It's an on-disk structure and relying on the gcc
>> optimiser to do the same thing from release to release has become
>> such a crap-shoot these days. Hence as a stop-gap measure we added
>> build time checking of what they compiler is doing with those
>> structures, and to refuse to build XFS if the compiler/platform is
>> doing something obviously different.
>>
>> Modernising the on-disk structure definitions is on the list of
>> things to do, but it's nowhere near the top of my list at the
>> moment...
>
> I have a test patch that (for now) changes the ondisk format checks for the
> variable-length structures to look at the offsets of the non-variable-length
> fields. Can you give it a try?
>
> (No idea if it fixes fixes cris, but it passes the six arches that I can
> actually test on (x86/power/arm)). The downside is that it does nothing about
> troubling implication that there could be computers writing out a disk format
> that's incompatible with x86 XFSes...)
>
> --D
> -----------
> From: Darrick J. Wong <[email protected]>
> Subject: [PATCH] xfs: check offsets of variable length structures
>
> Some of the directory/attr structures contain variable-length objects,
> so the enclosing structure doesn't have a meaningful fixed size at
> compile time. We can check the offsets of the members before the
> variable-length member, so do those.
>
> Signed-off-by: Darrick J. Wong <[email protected]>
> ---
> fs/xfs/xfs_ondisk.h | 25 +++++++++++++++++++++++--
> 1 file changed, 23 insertions(+), 2 deletions(-)
>
> diff --git a/fs/xfs/xfs_ondisk.h b/fs/xfs/xfs_ondisk.h
> index 960648b..3742216 100644
> --- a/fs/xfs/xfs_ondisk.h
> +++ b/fs/xfs/xfs_ondisk.h
> @@ -22,6 +22,11 @@
> BUILD_BUG_ON_MSG(sizeof(structname) != (size), "XFS: sizeof(" \
> #structname ") is wrong, expected " #size)
>
> +#define XFS_CHECK_OFFSET(structname, member, off) \
> + BUILD_BUG_ON_MSG(offsetof(structname, member) != (off), \
> + "XFS: offsetof(" #structname ", " #member ") is wrong, " \
> + "expected " #off)
> +
> static inline void __init
> xfs_check_ondisk_structs(void)
> {
> @@ -81,15 +86,28 @@ xfs_check_ondisk_structs(void)
> XFS_CHECK_STRUCT_SIZE(xfs_attr_leaf_name_remote_t, 12);
> */
>
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, valuelen, 0);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, namelen, 2);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, nameval, 3);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, valueblk, 0);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, valuelen, 4);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, namelen, 8);
> + XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, name, 9);
> XFS_CHECK_STRUCT_SIZE(xfs_attr_leafblock_t, 40);
> - XFS_CHECK_STRUCT_SIZE(xfs_attr_shortform_t, 8);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, hdr.totsize, 0);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, hdr.count, 2);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].namelen, 4);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].valuelen, 5);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].flags, 6);
> + XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].nameval, 7);
> XFS_CHECK_STRUCT_SIZE(xfs_da_blkinfo_t, 12);
> XFS_CHECK_STRUCT_SIZE(xfs_da_intnode_t, 16);
> XFS_CHECK_STRUCT_SIZE(xfs_da_node_entry_t, 8);
> XFS_CHECK_STRUCT_SIZE(xfs_da_node_hdr_t, 16);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_free_t, 4);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_hdr_t, 16);
> - XFS_CHECK_STRUCT_SIZE(xfs_dir2_data_unused_t, 6);
> + XFS_CHECK_OFFSET(xfs_dir2_data_unused_t, freetag, 0);
> + XFS_CHECK_OFFSET(xfs_dir2_data_unused_t, length, 2);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_free_hdr_t, 16);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_free_t, 16);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_ino4_t, 4);
> @@ -100,6 +118,9 @@ xfs_check_ondisk_structs(void)
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_t, 16);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_leaf_tail_t, 4);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t, 3);
> + XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, namelen, 0);
> + XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, offset, 1);
> + XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, name, 3);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_hdr_t, 10);
> XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_off_t, 2);
>

2016-03-29 06:46:34

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: Build regressions/improvements in v4.6-rc1

On Tue, Mar 29, 2016 at 12:47 AM, Darrick J. Wong
<[email protected]> wrote:
> (No idea if it fixes fixes cris, but it passes the six arches that I can
> actually test on (x86/power/arm)). The downside is that it does nothing about

https://www.kernel.org/pub/tools/crosstool/

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds