linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Section mismatch warnings
@ 2006-06-23 17:40 Jan Engelhardt
  2006-06-23 22:12 ` Sam Ravnborg
  0 siblings, 1 reply; 17+ messages in thread
From: Jan Engelhardt @ 2006-06-23 17:40 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello,


as others have already seen to, 2.6.17 spits out a lot of section mismatch 
warnings on modpost. Some of them have may already been addressed; here is 
the output I get when MODPOST starts to run during the compile process of 
an almost-completely-compiled kernel. Need .config?

  MODPOST
WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text after 'he_init_one' (at offset 0x2915)
WARNING: drivers/atm/idt77105.o - Section mismatch: reference to .init.text:idt77105_init from __ksymtab after '__ksymtab_idt77105_init' (at offset 0x0)
WARNING: drivers/atm/iphase.o - Section mismatch: reference to .init.text: from .text between 'ia_init_one' (at offset 0x1f15) and 'ia_int'
WARNING: drivers/block/floppy.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x3c)
WARNING: drivers/block/floppy.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x40)
WARNING: drivers/block/floppy.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x44)
WARNING: drivers/block/paride/pg.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4)
WARNING: drivers/char/ip2/ip2main.o - Section mismatch: reference to .init.text: from .text between 'cleanup_module' (at offset 0x47d0) and 'iiWriteWord8'
WARNING: drivers/char/ip2/ip2main.o - Section mismatch: reference to .init.text: from .text after 'ip2_loadmain' (at offset 0x56a2)
WARNING: drivers/char/ipmi/ipmi_msghandler.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xc)
WARNING: drivers/char/ipmi/ipmi_si.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/char/ipmi/ipmi_watchdog.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x14)
WARNING: drivers/char/ipmi/ipmi_watchdog.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x18)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x8)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xc)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x10)
WARNING: drivers/i2c/busses/scx200_acb.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x14)
WARNING: drivers/ieee1394/ieee1394.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/input/joystick/db9.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x8)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xc)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x10)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x14)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x18)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x1c)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x20)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x24)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x28)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x2c)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x30)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x34)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x38)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x3c)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x40)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x44)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x48)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4c)
WARNING: drivers/input/joystick/gamecon.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x50)
WARNING: drivers/input/joystick/turbografx.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x140) and '__param_str_force'
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x16c) and '__param_str_force'
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x198) and '__param_str_force'
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x1c4) and '__param_str_force'
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x1f0) and '__param_str_force'
WARNING: drivers/input/misc/wistron_btns.o - Section mismatch: reference to .init.text: from .data between 'dmi_ids' (at offset 0x21c) and '__param_str_force'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_teles0 from .text between 'checkcard' (at offset 0x789) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_avm_a1 from .text between 'checkcard' (at offset 0xa22) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_ix1micro from .text between 'checkcard' (at offset 0xa31) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_s0box from .text between 'checkcard' (at offset 0xa40) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_avm_pcipnp from .text between 'checkcard' (at offset 0xa5e) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_isurf from .text between 'checkcard' (at offset 0xa7c) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_hfcs from .text between 'checkcard' (at offset 0xa8b) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_saphir from .text between 'checkcard' (at offset 0xa9a) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_bkm_a4t from .text between 'checkcard' (at offset 0xaa9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_sct_quadro from .text between 'checkcard' (at offset 0xab9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_gazel from .text between 'checkcard' (at offset 0xac9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_hfcpci from .text between 'checkcard' (at offset 0xad9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_w6692 from .text between 'checkcard' (at offset 0xae9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_netjet_u from .text between 'checkcard' (at offset 0xb09) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_enternow_pci from .text between 'checkcard' (at offset 0xb23) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_TeleInt from .text between 'checkcard' (at offset 0xb32) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_sportster from .text between 'checkcard' (at offset 0xb41) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_mic from .text between 'checkcard' (at offset 0xb50) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_netjet_s from .text between 'checkcard' (at offset 0xb7d) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_telespci from .text between 'checkcard' (at offset 0xb8c) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_niccy from .text between 'checkcard' (at offset 0xb9b) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_diva from .text between 'checkcard' (at offset 0xbaa) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:setup_asuscom from .text between 'checkcard' (at offset 0xbb9) and 'hisax_init_pcmcia'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:init_ipacx from .text between 'Diva_card_msg' (at offset 0x2d88f) and 'ReadISAC'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inithfc from .text between 'TeleInt_card_msg' (at offset 0x313c1) and 'WriteHFC'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'NETjet_S_card_msg' (at offset 0x3c1ac) and 'netjet_s_interrupt'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'NETjet_U_card_msg' (at offset 0x3e29e) and 'netjet_u_interrupt'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:clear_pending_icc_ints from .text between 'NETjet_U_card_msg' (at offset 0x3e2ac) and 'netjet_u_interrupt'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:initicc from .text between 'NETjet_U_card_msg' (at offset 0x3e2b3) and 'netjet_u_interrupt'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:init2bds0 from .text between 'hfcs_card_msg' (at offset 0x3f8b4) and 'ReadReg'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:clear_pending_jade_ints from .text between 'BKM_card_msg' (at offset 0x4b375) and 'ReadISAC'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:initjade from .text between 'BKM_card_msg' (at offset 0x4b383) and 'ReadISAC'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text:inittiger from .text between 'enpci_card_msg' (at offset 0x50d82) and 'enpci_interrupt'
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x260)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4ac)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4b0)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4b4)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x53c)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x700)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x770)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x77c)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xa08)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xa94)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xa98)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xa9c)
WARNING: drivers/isdn/hisax/hisax.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0xb64)
WARNING: drivers/md/md-mod.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x88)
WARNING: drivers/net/3c501.o - Section mismatch: reference to .init.text:el1_probe from .text between 'init_module' (at offset 0xe9) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.data:netcard_portlist from .text between 'init_module' (at offset 0x276) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x27d) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.data:netcard_portlist from .text between 'init_module' (at offset 0x2a9) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.data:netcard_portlist from .text between 'init_module' (at offset 0x2be) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x2c9) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x2f7) and 'netdev_get_drvinfo'
WARNING: drivers/net/3c505.o - Section mismatch: reference to .init.data:addr_list from .text between 'init_module' (at offset 0xe78) and 'elp_timeout'
WARNING: drivers/net/3c505.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0xe8d) and 'elp_timeout'
WARNING: drivers/net/3c505.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x114b) and 'elp_timeout'
WARNING: drivers/net/3c505.o - Section mismatch: reference to .init.data:addr_list from .text between 'init_module' (at offset 0x1168) and 'elp_timeout'
WARNING: drivers/net/3c507.o - Section mismatch: reference to .init.text:el16_probe from .text between 'init_module' (at offset 0x2f6) and 'netdev_get_drvinfo'
WARNING: drivers/net/82596.o - Section mismatch: reference to .init.text:i82596_probe from .text between 'init_module' (at offset 0x177) and 'i596_add_cmd'
WARNING: drivers/net/ac3200.o - Section mismatch: reference to .init.data:config2irqmap from .text between 'init_module' (at offset 0x422) and 'ac_close_card'
WARNING: drivers/net/appletalk/cops.o - Section mismatch: reference to .init.text:cops_probe from .text between 'init_module' (at offset 0xd6) and 'cops_rx'
WARNING: drivers/net/at1700.o - Section mismatch: reference to .init.text:at1700_probe from .text between 'init_module' (at offset 0x76) and 'net_get_stats'
WARNING: drivers/net/cs89x0.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x1698) and 'net_close'
WARNING: drivers/net/cs89x0.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x1991) and 'net_close'
WARNING: drivers/net/cs89x0.o - Section mismatch: reference to .init.data:version from .text between 'init_module' (at offset 0x1a60) and 'net_close'
WARNING: drivers/net/e2100.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x100) and 'e21_reset_8390'
WARNING: drivers/net/e2100.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x12e) and 'e21_reset_8390'
WARNING: drivers/net/eepro.o - Section mismatch: reference to .init.data:eepro_portlist from .text between 'init_module' (at offset 0x284) and 'eepro_ethtool_get_drvinfo'
WARNING: drivers/net/eepro.o - Section mismatch: reference to .init.data:eepro_portlist from .text between 'init_module' (at offset 0x29a) and 'eepro_ethtool_get_drvinfo'
WARNING: drivers/net/eepro.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x2b4) and 'eepro_ethtool_get_drvinfo'
WARNING: drivers/net/eepro.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x345) and 'eepro_ethtool_get_drvinfo'
WARNING: drivers/net/eexpress.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x762) and 'eexp_hw_lasttxstat'
WARNING: drivers/net/eexpress.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x79a) and 'eexp_hw_lasttxstat'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.data:cardname from .text between 'init_module' (at offset 0x7a1) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.data:cardname from .text between 'init_module' (at offset 0x7b6) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x7c5) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.data:cardname from .text between 'init_module' (at offset 0x84e) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.data:cardname from .text between 'init_module' (at offset 0x866) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x871) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x883) and 'eth16i_multicast'
WARNING: drivers/net/eth16i.o - Section mismatch: reference to .init.data:cardname from .text between 'init_module' (at offset 0x8cc) and 'eth16i_multicast'
WARNING: drivers/net/hp-plus.o - Section mismatch: reference to .init.data:hpplus_portlist from .text between 'init_module' (at offset 0xbb) and 'hpp_io_block_output'
WARNING: drivers/net/hp-plus.o - Section mismatch: reference to .init.data:hpplus_portlist from .text between 'init_module' (at offset 0xd0) and 'hpp_io_block_output'
WARNING: drivers/net/hp-plus.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0xdb) and 'hpp_io_block_output'
WARNING: drivers/net/hp-plus.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x10d) and 'hpp_io_block_output'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.data:hppclan_portlist from .text between 'init_module' (at offset 0xbb) and 'hp_close'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.data:hppclan_portlist from .text between 'init_module' (at offset 0xd0) and 'hp_close'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0xdb) and 'hp_close'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x10d) and 'hp_close'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0xf0) and '__param_str_ircc_dma'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0x108) and '__param_str_ircc_dma'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0x120) and '__param_str_ircc_dma'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0x138) and '__param_str_ircc_dma'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0x150) and '__param_str_ircc_dma'
WARNING: drivers/net/irda/smsc-ircc2.o - Section mismatch: reference to .init.text: from .data between 'subsystem_configurations' (at offset 0x168) and '__param_str_ircc_dma'
WARNING: drivers/net/lance.o - Section mismatch: reference to .init.data:lance_portlist from .text between 'init_module' (at offset 0xda) and 'lance_purge_ring'
WARNING: drivers/net/lance.o - Section mismatch: reference to .init.data:lance_portlist from .text between 'init_module' (at offset 0x124) and 'lance_purge_ring'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x169) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x183) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x18e) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x1ed) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x261) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x275) and 'ne_block_input'
WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x2b0) and 'ne_block_input'
WARNING: drivers/net/ni52.o - Section mismatch: reference to .init.text:ni52_probe from .text between 'init_module' (at offset 0xb18) and 'ni52_close'
WARNING: drivers/net/ni65.o - Section mismatch: reference to .init.text:ni65_probe from .text between 'init_module' (at offset 0x639) and 'ni65_stop_start'
WARNING: drivers/net/seeq8005.o - Section mismatch: reference to .init.text:seeq8005_probe from .text between 'init_module' (at offset 0x119) and 'seeq8005_open'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0xfa) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x116) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x12f) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x169) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x175) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x180) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x1cb) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x253) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x267) and 'ultra_close_card'
WARNING: drivers/net/smc-ultra.o - Section mismatch: reference to .init.data:ultra_device_ids from .text between 'init_module' (at offset 0x287) and 'ultra_close_card'
WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.text:smc_init from .text between 'init_module' (at offset 0x106) and 'smc_close'
WARNING: drivers/net/smc9194.o - Section mismatch: reference to .init.data:smc_devlist from .data between 'smcdev.17832' (at offset 0x0) and '__param_str_io'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_mem_base from .text between 'ibmtr_probe1' (at offset 0xa95) and 'ibmtr_probe_card'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_mem_base from .text between 'ibmtr_probe1' (at offset 0xad4) and 'ibmtr_probe_card'
WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_mem_base from .text between 'ibmtr_probe1' (at offset 0xbce) and 'ibmtr_probe_card'
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x3b48) and 'smctr_get_stats'
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text:smctr_probe from .text between 'init_module' (at offset 0x3b91) and 'smctr_get_stats'
WARNING: drivers/net/tulip/de2104x.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x28)
WARNING: drivers/net/wan/dlci.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x4)
WARNING: drivers/net/wan/sdla.o - Section mismatch: reference to .init.data:valid_port from .text between 'sdla_set_config' (at offset 0x208b) and 'sdla_poll'
WARNING: drivers/net/wan/sdla.o - Section mismatch: reference to .init.data:valid_port from .text between 'sdla_set_config' (at offset 0x2302) and 'sdla_poll'
WARNING: drivers/net/wd.o - Section mismatch: reference to .init.data:wd_portlist from .text between 'init_module' (at offset 0xf2) and 'wd_open'
WARNING: drivers/net/wd.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x124) and 'wd_open'
WARNING: drivers/net/wd.o - Section mismatch: reference to .init.data:wd_portlist from .text between 'init_module' (at offset 0x15d) and 'wd_open'
WARNING: drivers/net/wd.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x1c1) and 'wd_open'
WARNING: drivers/pci/hotplug/ibmphp.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x8)
WARNING: drivers/pci/hotplug/ibmphp.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xc)
WARNING: drivers/scsi/qla2xxx/qla2xxx.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x0)
WARNING: drivers/scsi/qla2xxx/qla2xxx.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x4)
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0x846) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xcf1) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xe9c) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xed1) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xeec) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xf12) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xf79) and 'wd7000_intr'
WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text between 'wd7000_detect' (at offset 0xfa5) and 'wd7000_intr'
WARNING: drivers/usb/storage/usb-storage.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x40)
WARNING: drivers/video/aty/atyfb.o - Section mismatch: reference to .init.data: from .text between 'atyfb_pci_probe' (at offset 0x2dc5) and 'aty_enable_irq'
WARNING: drivers/video/aty/atyfb.o - Section mismatch: reference to .init.text:aty_init_cursor from .text between 'atyfb_pci_probe' (at offset 0x2e22) and 'aty_enable_irq'
WARNING: drivers/video/macmodes.o - Section mismatch: reference to .init.text:mac_find_mode from __ksymtab after '__ksymtab_mac_find_mode' (at offset 0x18)
WARNING: fs/jffs2/jffs2.o - Section mismatch: reference to .init.text:jffs2_zlib_init from .text between 'jffs2_compressors_init' (at offset 0x24) and 'jffs2_free_comprbuf'
WARNING: fs/reiserfs/reiserfs.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x3d4)
WARNING: fs/reiserfs/reiserfs.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x3d8)
WARNING: net/ax25/ax25.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x0)
WARNING: net/ax25/ax25.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x78)
WARNING: net/ax25/ax25.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xb4)
WARNING: net/ax25/ax25.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xb8)
WARNING: net/bluetooth/rfcomm/rfcomm.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0xc)
WARNING: net/bluetooth/rfcomm/rfcomm.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x10)
WARNING: net/bridge/bridge.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x0)
WARNING: net/decnet/decnet.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x1dc)
WARNING: net/ipv4/ip_gre.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: net/ipv4/ipip.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: net/ipv4/netfilter/ip_conntrack.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x8)
WARNING: net/ipv4/netfilter/ipt_ROUTE.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x30)
WARNING: net/ipv4/netfilter/iptable_tproxy.o - Section mismatch: reference to .init.data:initial_table from .text between 'init_or_cleanup' (at offset 0xc) and 'ip_tproxy_fn'
WARNING: net/ipv6/ipv6.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x23c)
WARNING: net/ipv6/ipv6.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x240)
WARNING: net/ipv6/ipv6.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x280)
WARNING: net/ipx/ipx.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x10)
WARNING: net/netrom/netrom.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x50)
WARNING: net/netrom/netrom.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x54)
WARNING: net/netrom/netrom.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x58)
WARNING: net/netrom/netrom.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x5c)
WARNING: net/netrom/netrom.o - Section mismatch: reference to .exit.text: from .smp_locks after '' (at offset 0x60)
WARNING: sound/isa/sb/snd-sbawe.o - Section mismatch: reference to .init.text:snd_emu8000_new from .text between 'snd_sb16_probe' (at offset 0x47d) and 'snd_sb16_nonpnp_probe1'
WARNING: sound/isa/sb/snd-sbawe.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x0)
WARNING: sound/isa/sb/snd-sbawe.o - Section mismatch: reference to .init.text: from .smp_locks after '' (at offset 0x4)
WARNING: sound/isa/snd-opl3sa2.o - Section mismatch: reference to .init.text: from .text between 'snd_opl3sa2_pnp_cdetect' (at offset 0x112b) and 'snd_opl3sa2_pnp_remove'
WARNING: sound/isa/snd-opl3sa2.o - Section mismatch: reference to .init.text: from .text after 'snd_opl3sa2_pnp_detect' (at offset 0x1273)
WARNING: sound/isa/wavefront/snd-wavefront.o - Section mismatch: reference to .init.text:snd_wavefront_midi_start from .text between 'snd_wavefront_new_midi' (at offset 0x15b) and 'snd_wavefront_probe'
WARNING: sound/isa/wavefront/snd-wavefront.o - Section mismatch: reference to .init.text:snd_wavefront_detect from .text between 'snd_wavefront_probe' (at offset 0x3ac) and 'snd_wavefront_ics2115_interrupt'
WARNING: sound/isa/wavefront/snd-wavefront.o - Section mismatch: reference to .init.text:snd_wavefront_start from .text between 'snd_wavefront_probe' (at offset 0x3bc) and 'snd_wavefront_ics2115_interrupt'
WARNING: sound/isa/wavefront/snd-wavefront.o - Section mismatch: reference to .init.text:snd_wavefront_fx_start from .text between 'snd_wavefront_probe' (at offset 0x6d1) and 'snd_wavefront_ics2115_interrupt'

Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2006-06-23 17:40 Section mismatch warnings Jan Engelhardt
@ 2006-06-23 22:12 ` Sam Ravnborg
  2006-06-23 22:22   ` Al Viro
  2006-06-23 22:23   ` Al Viro
  0 siblings, 2 replies; 17+ messages in thread
From: Sam Ravnborg @ 2006-06-23 22:12 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

On Fri, Jun 23, 2006 at 07:40:12PM +0200, Jan Engelhardt wrote:
> Hello,
> 
> 
> as others have already seen to, 2.6.17 spits out a lot of section mismatch 
> warnings on modpost. Some of them have may already been addressed; here is 
> the output I get when MODPOST starts to run during the compile process of 
> an almost-completely-compiled kernel. Need .config?

All the .smp_locks related warnings are gone when I get the kbuild.git
tree pushed linus wise. Needs to spend only an hour or so before it is
ready and will do so during the weekend.

	Sam

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2006-06-23 22:12 ` Sam Ravnborg
@ 2006-06-23 22:22   ` Al Viro
  2006-06-24 21:02     ` Sam Ravnborg
  2006-06-23 22:23   ` Al Viro
  1 sibling, 1 reply; 17+ messages in thread
From: Al Viro @ 2006-06-23 22:22 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Jan Engelhardt, Linux Kernel Mailing List

On Sat, Jun 24, 2006 at 12:12:18AM +0200, Sam Ravnborg wrote:
> On Fri, Jun 23, 2006 at 07:40:12PM +0200, Jan Engelhardt wrote:
> > Hello,
> > 
> > 
> > as others have already seen to, 2.6.17 spits out a lot of section mismatch 
> > warnings on modpost. Some of them have may already been addressed; here is 
> > the output I get when MODPOST starts to run during the compile process of 
> > an almost-completely-compiled kernel. Need .config?
> 
> All the .smp_locks related warnings are gone when I get the kbuild.git
> tree pushed linus wise. Needs to spend only an hour or so before it is
> ready and will do so during the weekend.

BTW, I've also got some modpost.c patches dealing with false positives
(as well as fixes for real crap).  modpost.c delta follows, just in case
if some of that might be missing from your tree

>From nobody Mon Sep 17 00:00:00 2001
From: Al Viro <viro@zeniv.linux.org.uk>
Date: Wed, 14 Jun 2006 13:05:12 -0400
Subject: [PATCH] kill some false positives from modpost

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

---

 scripts/mod/modpost.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

919db28eefd21a9c9f7d790c9f37694bad3a0b9a
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 0b92ddf..cd94d6a 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -768,6 +768,8 @@ static int init_section_ref_ok(const cha
 		".pci_fixup_final",
 		".pdr",
 		"__param",
+		"__ex_table",
+		".fixup",
 		NULL
 	};
 	/* Start of section names */
@@ -793,6 +795,8 @@ static int init_section_ref_ok(const cha
 	for (s = namelist3; *s; s++)
 		if (strstr(name, *s) != NULL)
 			return 1;
+	if (strrcmp(name, ".init") == 0)
+		return 1;
 	return 0;
 }
 
@@ -837,6 +841,8 @@ static int exit_section_ref_ok(const cha
 		".exitcall.exit",
 		".eh_frame",
 		".stab",
+		"__ex_table",
+		".fixup",
 		NULL
 	};
 	/* Start of section names */
-- 
1.3.GIT


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2006-06-23 22:12 ` Sam Ravnborg
  2006-06-23 22:22   ` Al Viro
@ 2006-06-23 22:23   ` Al Viro
  2006-06-26 12:37     ` Roman Zippel
  1 sibling, 1 reply; 17+ messages in thread
From: Al Viro @ 2006-06-23 22:23 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Jan Engelhardt, Linux Kernel Mailing List

On Sat, Jun 24, 2006 at 12:12:18AM +0200, Sam Ravnborg wrote:
> All the .smp_locks related warnings are gone when I get the kbuild.git
> tree pushed linus wise. Needs to spend only an hour or so before it is
> ready and will do so during the weekend.

Another fun toy that might be interesting there:

>From nobody Mon Sep 17 00:00:00 2001
From: Al Viro <viro@zeniv.linux.org.uk>
Date: Fri, 26 May 2006 08:35:22 -0400
Subject: [PATCH] add make listconfig (show all kconfig symbols seen by parser)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

---

 scripts/kconfig/Makefile   |    8 ++++++--
 scripts/kconfig/confsyms.c |   31 +++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 2 deletions(-)
 create mode 100644 scripts/kconfig/confsyms.c

9af44436bd3940c50b7cf68a8f2bf14e07ad2081
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index fd518f0..b655f60 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -2,7 +2,7 @@ # ======================================
 # Kernel configuration targets
 # These targets are used from top-level makefile
 
-PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
+PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config listconfig
 
 xconfig: $(obj)/qconf
 	$< arch/$(ARCH)/Kconfig
@@ -23,6 +23,9 @@ oldconfig: $(obj)/conf
 silentoldconfig: $(obj)/conf
 	$< -s arch/$(ARCH)/Kconfig
 
+listconfig: $(obj)/confsyms
+	$< arch/$(ARCH)/Kconfig
+
 update-po-config: $(obj)/kxgettext
 	xgettext --default-domain=linux \
           --add-comments --keyword=_ --keyword=N_ \
@@ -95,10 +98,11 @@ # gconf:  Used for the gconfig target
 #         Based on GTK which needs to be installed to compile it
 # object files used by all kconfig flavours
 
-hostprogs-y	:= conf mconf qconf gconf kxgettext
+hostprogs-y	:= conf mconf qconf gconf kxgettext confsyms
 conf-objs	:= conf.o  zconf.tab.o
 mconf-objs	:= mconf.o zconf.tab.o
 kxgettext-objs	:= kxgettext.o zconf.tab.o
+confsyms-objs	:= confsyms.o zconf.tab.o
 
 ifeq ($(MAKECMDGOALS),xconfig)
 	qconf-target := 1
diff --git a/scripts/kconfig/confsyms.c b/scripts/kconfig/confsyms.c
new file mode 100644
index 0000000..3b20065
--- /dev/null
+++ b/scripts/kconfig/confsyms.c
@@ -0,0 +1,31 @@
+#define LKC_DIRECT_LINK
+#include "lkc.h"
+
+static char type[] = {
+	[S_BOOLEAN] = 'b',
+	[S_TRISTATE] = 't',
+	[S_INT] = 'i',
+	[S_HEX] = 'h',
+	[S_STRING] = 's',
+};
+
+static void list_symbols(struct menu *m)
+{
+	for (m = m->list; m; m = m->next) {
+		struct symbol *s = m->sym;
+		if (s && !sym_is_choice(s)) {
+			char c = s->type >= sizeof(type) ? '\0' : type[s->type];
+			printf("%c %s\n", c ? c : '?', s->name);
+		}
+		list_symbols(m);
+	}
+}
+
+int main(int argc, char **argv)
+{
+	if (argc > 1) {
+		conf_parse(argv[1]);
+		list_symbols(&rootmenu);
+	}
+	return 0;
+}
-- 
1.3.GIT


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2006-06-23 22:22   ` Al Viro
@ 2006-06-24 21:02     ` Sam Ravnborg
  0 siblings, 0 replies; 17+ messages in thread
From: Sam Ravnborg @ 2006-06-24 21:02 UTC (permalink / raw)
  To: Al Viro; +Cc: Jan Engelhardt, Linux Kernel Mailing List

On Fri, Jun 23, 2006 at 11:22:43PM +0100, Al Viro wrote:
> From nobody Mon Sep 17 00:00:00 2001
> From: Al Viro <viro@zeniv.linux.org.uk>
> Date: Wed, 14 Jun 2006 13:05:12 -0400
> Subject: [PATCH] kill some false positives from modpost

Applied,

	Sam

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2006-06-23 22:23   ` Al Viro
@ 2006-06-26 12:37     ` Roman Zippel
  0 siblings, 0 replies; 17+ messages in thread
From: Roman Zippel @ 2006-06-26 12:37 UTC (permalink / raw)
  To: Al Viro; +Cc: Sam Ravnborg, Jan Engelhardt, Linux Kernel Mailing List

Hi,

On Fri, 23 Jun 2006, Al Viro wrote:

> On Sat, Jun 24, 2006 at 12:12:18AM +0200, Sam Ravnborg wrote:
> > All the .smp_locks related warnings are gone when I get the kbuild.git
> > tree pushed linus wise. Needs to spend only an hour or so before it is
> > ready and will do so during the weekend.
> 
> Another fun toy that might be interesting there:
> 
> >From nobody Mon Sep 17 00:00:00 2001
> From: Al Viro <viro@zeniv.linux.org.uk>
> Date: Fri, 26 May 2006 08:35:22 -0400
> Subject: [PATCH] add make listconfig (show all kconfig symbols seen by parser)

I don't mind the functionality, but what I'd like to avoid is adding lots 
of little config targets, so what I'd like to add is something more like 
'make queryconfig', which maybe even could be extended to some simple 
scripting functionality.

> +static void list_symbols(struct menu *m)
> +{
> +	for (m = m->list; m; m = m->next) {
> +		struct symbol *s = m->sym;
> +		if (s && !sym_is_choice(s)) {

for_all_symbols() would be simpler and avoids possible duplicate menu 
entries and I think it's better to just test for s->name.

bye, Roman

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-08-02 17:59                 ` Sam Ravnborg
@ 2007-08-02 18:24                   ` Gabriel C
  0 siblings, 0 replies; 17+ messages in thread
From: Gabriel C @ 2007-08-02 18:24 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List

Sam Ravnborg wrote:
> Please forward it to akpm.
> I usually do not carry non-kbuild patches in my tree to keep 'noise' level down.

Ok done.

Thank you very much for your help on this.

I'll try to fix the remaining warnings soon.

> 
> 	Sam
> 

Gabriel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-08-02 17:12               ` Gabriel C
@ 2007-08-02 17:59                 ` Sam Ravnborg
  2007-08-02 18:24                   ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Sam Ravnborg @ 2007-08-02 17:59 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List

On Thu, Aug 02, 2007 at 07:12:36PM +0200, Gabriel C wrote:
> Sam Ravnborg wrote:
> > On Thu, Aug 02, 2007 at 04:27:34PM +0200, Gabriel C wrote:
> >>>>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
> >>>>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> >>>>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> >>>> When a function is marked __exit and used from an init function then the safe choice
> >>>> is to just remove the __exit marking. Usually this is small functions used
> >>>> only in error situations.
> >>>> Should be trivial too.
> >>> I'll look at those too
> >>>
> >>>> Sorry - no patch this time. Could you try to look at it yorself then I will review.
> >>> Ok I'll try.
> >>>
> >> The warnings gone with this patch but I'm not really sure it is correct.
> > Looks correct to me.
> > You drop the __devexit marking for functions used outside __exit.
> > Acked-by: Sam Ravnborg <sam@ravnborg.org>
> 
> Shall I send this one to akpm with your ACK or you take care of it ?
Please forward it to akpm.
I usually do not carry non-kbuild patches in my tree to keep 'noise' level down.

	Sam

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-08-02 16:31             ` Sam Ravnborg
@ 2007-08-02 17:12               ` Gabriel C
  2007-08-02 17:59                 ` Sam Ravnborg
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-08-02 17:12 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List

Sam Ravnborg wrote:
> On Thu, Aug 02, 2007 at 04:27:34PM +0200, Gabriel C wrote:
>>>>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
>>>>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>>>>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>>>> When a function is marked __exit and used from an init function then the safe choice
>>>> is to just remove the __exit marking. Usually this is small functions used
>>>> only in error situations.
>>>> Should be trivial too.
>>> I'll look at those too
>>>
>>>> Sorry - no patch this time. Could you try to look at it yorself then I will review.
>>> Ok I'll try.
>>>
>> The warnings gone with this patch but I'm not really sure it is correct.
> Looks correct to me.
> You drop the __devexit marking for functions used outside __exit.
> Acked-by: Sam Ravnborg <sam@ravnborg.org>

Shall I send this one to akpm with your ACK or you take care of it ?

> 
> 	Sam
>>
>>  drivers/mmc/host/wbsd.c |   10 +++++-----
>>  1 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
>> index e0c9808..9bf2a87 100644
>> --- a/drivers/mmc/host/wbsd.c
>> +++ b/drivers/mmc/host/wbsd.c
>> @@ -1266,7 +1266,7 @@ static int __devinit wbsd_alloc_mmc(struct device *dev)
>>  	return 0;
>>  }
>>  
>> -static void __devexit wbsd_free_mmc(struct device *dev)
>> +static void wbsd_free_mmc(struct device *dev)
>>  {
>>  	struct mmc_host *mmc;
>>  	struct wbsd_host *host;
>> @@ -1358,7 +1358,7 @@ static int __devinit wbsd_request_region(struct wbsd_host *host, int base)
>>  	return 0;
>>  }
>>  
>> -static void __devexit wbsd_release_regions(struct wbsd_host *host)
>> +static void wbsd_release_regions(struct wbsd_host *host)
>>  {
>>  	if (host->base)
>>  		release_region(host->base, 8);
>> @@ -1434,7 +1434,7 @@ err:
>>  		"Falling back on FIFO.\n", dma);
>>  }
>>  
>> -static void __devexit wbsd_release_dma(struct wbsd_host *host)
>> +static void wbsd_release_dma(struct wbsd_host *host)
>>  {
>>  	if (host->dma_addr) {
>>  		dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
>> @@ -1484,7 +1484,7 @@ static int __devinit wbsd_request_irq(struct wbsd_host *host, int irq)
>>  	return 0;
>>  }
>>  
>> -static void __devexit wbsd_release_irq(struct wbsd_host *host)
>> +static void  wbsd_release_irq(struct wbsd_host *host)
>>  {
>>  	if (!host->irq)
>>  		return;
>> @@ -1535,7 +1535,7 @@ static int __devinit wbsd_request_resources(struct wbsd_host *host,
>>   * Release all resources for the host.
>>   */
>>  
>> -static void __devexit wbsd_release_resources(struct wbsd_host *host)
>> +static void wbsd_release_resources(struct wbsd_host *host)
>>  {
>>  	wbsd_release_dma(host);
>>  	wbsd_release_irq(host);
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-08-02 14:27           ` Gabriel C
@ 2007-08-02 16:31             ` Sam Ravnborg
  2007-08-02 17:12               ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Sam Ravnborg @ 2007-08-02 16:31 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List

On Thu, Aug 02, 2007 at 04:27:34PM +0200, Gabriel C wrote:
> 
> >>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
> >>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> >>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> >> When a function is marked __exit and used from an init function then the safe choice
> >> is to just remove the __exit marking. Usually this is small functions used
> >> only in error situations.
> >> Should be trivial too.
> > 
> > I'll look at those too
> > 
> >> Sorry - no patch this time. Could you try to look at it yorself then I will review.
> > 
> > Ok I'll try.
> > 
> 
> The warnings gone with this patch but I'm not really sure it is correct.
Looks correct to me.
You drop the __devexit marking for functions used outside __exit.
Acked-by: Sam Ravnborg <sam@ravnborg.org>

	Sam
> 
> 
>  drivers/mmc/host/wbsd.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
> index e0c9808..9bf2a87 100644
> --- a/drivers/mmc/host/wbsd.c
> +++ b/drivers/mmc/host/wbsd.c
> @@ -1266,7 +1266,7 @@ static int __devinit wbsd_alloc_mmc(struct device *dev)
>  	return 0;
>  }
>  
> -static void __devexit wbsd_free_mmc(struct device *dev)
> +static void wbsd_free_mmc(struct device *dev)
>  {
>  	struct mmc_host *mmc;
>  	struct wbsd_host *host;
> @@ -1358,7 +1358,7 @@ static int __devinit wbsd_request_region(struct wbsd_host *host, int base)
>  	return 0;
>  }
>  
> -static void __devexit wbsd_release_regions(struct wbsd_host *host)
> +static void wbsd_release_regions(struct wbsd_host *host)
>  {
>  	if (host->base)
>  		release_region(host->base, 8);
> @@ -1434,7 +1434,7 @@ err:
>  		"Falling back on FIFO.\n", dma);
>  }
>  
> -static void __devexit wbsd_release_dma(struct wbsd_host *host)
> +static void wbsd_release_dma(struct wbsd_host *host)
>  {
>  	if (host->dma_addr) {
>  		dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
> @@ -1484,7 +1484,7 @@ static int __devinit wbsd_request_irq(struct wbsd_host *host, int irq)
>  	return 0;
>  }
>  
> -static void __devexit wbsd_release_irq(struct wbsd_host *host)
> +static void  wbsd_release_irq(struct wbsd_host *host)
>  {
>  	if (!host->irq)
>  		return;
> @@ -1535,7 +1535,7 @@ static int __devinit wbsd_request_resources(struct wbsd_host *host,
>   * Release all resources for the host.
>   */
>  
> -static void __devexit wbsd_release_resources(struct wbsd_host *host)
> +static void wbsd_release_resources(struct wbsd_host *host)
>  {
>  	wbsd_release_dma(host);
>  	wbsd_release_irq(host);

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-31 21:58         ` Gabriel C
@ 2007-08-02 14:27           ` Gabriel C
  2007-08-02 16:31             ` Sam Ravnborg
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-08-02 14:27 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List


>>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
>>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>> When a function is marked __exit and used from an init function then the safe choice
>> is to just remove the __exit marking. Usually this is small functions used
>> only in error situations.
>> Should be trivial too.
> 
> I'll look at those too
> 
>> Sorry - no patch this time. Could you try to look at it yorself then I will review.
> 
> Ok I'll try.
> 

The warnings gone with this patch but I'm not really sure it is correct.


 drivers/mmc/host/wbsd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c
index e0c9808..9bf2a87 100644
--- a/drivers/mmc/host/wbsd.c
+++ b/drivers/mmc/host/wbsd.c
@@ -1266,7 +1266,7 @@ static int __devinit wbsd_alloc_mmc(struct device *dev)
 	return 0;
 }
 
-static void __devexit wbsd_free_mmc(struct device *dev)
+static void wbsd_free_mmc(struct device *dev)
 {
 	struct mmc_host *mmc;
 	struct wbsd_host *host;
@@ -1358,7 +1358,7 @@ static int __devinit wbsd_request_region(struct wbsd_host *host, int base)
 	return 0;
 }
 
-static void __devexit wbsd_release_regions(struct wbsd_host *host)
+static void wbsd_release_regions(struct wbsd_host *host)
 {
 	if (host->base)
 		release_region(host->base, 8);
@@ -1434,7 +1434,7 @@ err:
 		"Falling back on FIFO.\n", dma);
 }
 
-static void __devexit wbsd_release_dma(struct wbsd_host *host)
+static void wbsd_release_dma(struct wbsd_host *host)
 {
 	if (host->dma_addr) {
 		dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
@@ -1484,7 +1484,7 @@ static int __devinit wbsd_request_irq(struct wbsd_host *host, int irq)
 	return 0;
 }
 
-static void __devexit wbsd_release_irq(struct wbsd_host *host)
+static void  wbsd_release_irq(struct wbsd_host *host)
 {
 	if (!host->irq)
 		return;
@@ -1535,7 +1535,7 @@ static int __devinit wbsd_request_resources(struct wbsd_host *host,
  * Release all resources for the host.
  */
 
-static void __devexit wbsd_release_resources(struct wbsd_host *host)
+static void wbsd_release_resources(struct wbsd_host *host)
 {
 	wbsd_release_dma(host);
 	wbsd_release_irq(host);

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-31 20:48       ` Sam Ravnborg
@ 2007-07-31 21:58         ` Gabriel C
  2007-08-02 14:27           ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-07-31 21:58 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List

Sam Ravnborg wrote:
> On Tue, Jul 31, 2007 at 09:45:22PM +0200, Gabriel C wrote:
>> Hi Sam ,
>>
>> me again. I got some more mismatch warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-14 )
>>
>>
>> ...
>>
>>
>>   MODPOST vmlinux.o
>> WARNING: vmlinux.o(.text+0x8adb): Section mismatch: reference to .init.text:register_cpu (between 'arch_register_cpu' and 'text_poke')
>> WARNING: vmlinux.o(.text+0xb790c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented')
> They need further analysis.

< big snip >

> All the hda_preset stuff should be marked __devinit as far as I can see.
> Care to give that a spin yourself?

Yes.

I'm not sure I can do it today but tomorrow for sure.
 
> 
>> WARNING: vmlinux.o(.data+0xacb10): Section mismatch: reference to .init.text:snd_ad1889_probe (between 'ad1889_pci' and 'ops.20707')
>> WARNING: vmlinux.o(.text+0x12f014): Section mismatch: reference to .exit.text:mlx4_remove_one (between 'mlx4_restart_one' and 'mlx4_cleanup_mcg_table')
> Did not look at these two yet.
> 
>> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
>> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
>> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> When a function is marked __exit and used from an init function then the safe choice
> is to just remove the __exit marking. Usually this is small functions used
> only in error situations.
> Should be trivial too.

I'll look at those too

> 
> Sorry - no patch this time. Could you try to look at it yorself then I will review.

Ok I'll try.


> 
> 	Sam
> 

Gabriel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-31 19:45     ` Gabriel C
@ 2007-07-31 20:48       ` Sam Ravnborg
  2007-07-31 21:58         ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Sam Ravnborg @ 2007-07-31 20:48 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List

On Tue, Jul 31, 2007 at 09:45:22PM +0200, Gabriel C wrote:
> Hi Sam ,
> 
> me again. I got some more mismatch warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-14 )
> 
> 
> ...
> 
> 
>   MODPOST vmlinux.o
> WARNING: vmlinux.o(.text+0x8adb): Section mismatch: reference to .init.text:register_cpu (between 'arch_register_cpu' and 'text_poke')
> WARNING: vmlinux.o(.text+0xb790c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented')
They need further analysis.

> WARNING: vmlinux.o(.text+0x12f01e): Section mismatch: reference to .init.text:mlx4_init_one (between 'mlx4_restart_one' and 'mlx4_cleanup_mcg_table')
> WARNING: vmlinux.o(.text+0x1dd831): Section mismatch: reference to .init.text:setup_TeleInt (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dd9e7): Section mismatch: reference to .init.text:setup_elsa (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dd9f8): Section mismatch: reference to .init.text:setup_avm_a1 (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda08): Section mismatch: reference to .init.text:setup_teles0 (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda18): Section mismatch: reference to .init.text:setup_netjet_u (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda28): Section mismatch: reference to .init.text:setup_hfcpci (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda38): Section mismatch: reference to .init.text:setup_saphir (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda48): Section mismatch: reference to .init.text:setup_avm_pcipnp (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda58): Section mismatch: reference to .init.text:setup_s0box (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda68): Section mismatch: reference to .init.text:setup_telespci (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda78): Section mismatch: reference to .init.text:setup_netjet_s (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1dda88): Section mismatch: reference to .init.text:setup_hfcs (between 'checkcard' and 'hisax_init_pcmcia')
> WARNING: vmlinux.o(.text+0x1f4e96): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'inithscxisac' and 'open_hscxstate')
> WARNING: vmlinux.o(.text+0x1f4ea4): Section mismatch: reference to .init.text:initisac (between 'inithscxisac' and 'open_hscxstate')
> WARNING: vmlinux.o(.text+0x1fa774): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'AVM_card_msg' and 'avm_pcipnp_interrupt')
> WARNING: vmlinux.o(.text+0x1fa77b): Section mismatch: reference to .init.text:initisac (between 'AVM_card_msg' and 'avm_pcipnp_interrupt')
> WARNING: vmlinux.o(.text+0x1fdbbf): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'TeleInt_card_msg' and 'WriteHFC')
> WARNING: vmlinux.o(.text+0x1fdbc6): Section mismatch: reference to .init.text:initisac (between 'TeleInt_card_msg' and 'WriteHFC')
> WARNING: vmlinux.o(.text+0x1ff98f): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'NETjet_S_card_msg' and 'netjet_s_interrupt')
> WARNING: vmlinux.o(.text+0x1ff996): Section mismatch: reference to .init.text:initisac (between 'NETjet_S_card_msg' and 'netjet_s_interrupt')
ISDN stuff can wait until Karsten and Jeff has finished the ongoing transition to the
new PCI API.

> WARNING: vmlinux.o(.text+0x2d6a77): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
> WARNING: vmlinux.o(.text+0x2d6aa1): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
> WARNING: vmlinux.o(.text+0x2d6abd): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
> WARNING: vmlinux.o(.text+0x2d994a): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'alc880_parse_auto_config' and 'alc882_gpio_mute')
> WARNING: vmlinux.o(.text+0x2da2fe): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc268' and 'patch_alc662')
> WARNING: vmlinux.o(.text+0x2da31c): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc268' and 'patch_alc662')
> WARNING: vmlinux.o(.text+0x2da6e8): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc662' and 'alc_mux_enum_info')
> WARNING: vmlinux.o(.text+0x2da7b5): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc662' and 'alc_mux_enum_info')
> WARNING: vmlinux.o(.text+0x2dae6a): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc880' and 'patch_alc260')
> WARNING: vmlinux.o(.text+0x2db036): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc260' and 'patch_alc882')
> WARNING: vmlinux.o(.text+0x2db0cc): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc260' and 'patch_alc882')
> WARNING: vmlinux.o(.text+0x2db4b0): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc882' and 'patch_alc883')
> WARNING: vmlinux.o(.text+0x2db77a): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc883' and 'patch_alc262')
> WARNING: vmlinux.o(.text+0x2db8ea): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc262' and 'patch_alc861')
> WARNING: vmlinux.o(.text+0x2db9b7): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc262' and 'patch_alc861')
> WARNING: vmlinux.o(.text+0x2dbca6): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc861' and 'patch_alc861vd')
> WARNING: vmlinux.o(.text+0x2dbd3c): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc861' and 'patch_alc861vd')
> WARNING: vmlinux.o(.text+0x2dc0c6): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc861vd' and 'cmi9880_build_pcms')
> WARNING: vmlinux.o(.text+0x2dc195): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc861vd' and 'cmi9880_build_pcms')
> WARNING: vmlinux.o(.text+0x2dc77d): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
> WARNING: vmlinux.o(.text+0x2dc796): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
> WARNING: vmlinux.o(.text+0x2dc7c6): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
> WARNING: vmlinux.o(.text+0x2dc7e6): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
> WARNING: vmlinux.o(.text+0x2dc93e): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cmi9880' and 'cmi_mux_enum_get')
> WARNING: vmlinux.o(.text+0x2dcab4): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_cmi9880' and 'cmi_mux_enum_get')
> WARNING: vmlinux.o(.text+0x2dd301): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
> WARNING: vmlinux.o(.text+0x2dd32b): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
> WARNING: vmlinux.o(.text+0x2dd347): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
> WARNING: vmlinux.o(.text+0x2ddbad): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1984' and 'patch_ad1882')
> WARNING: vmlinux.o(.text+0x2ddcfb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1882' and 'ad198x_free')
> WARNING: vmlinux.o(.text+0x2de7db): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1986a' and 'patch_ad1983')
> WARNING: vmlinux.o(.text+0x2deabb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1981' and 'patch_ad1988')
> WARNING: vmlinux.o(.text+0x2debfd): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1988' and 'stac92xx_dmux_enum_get')
> WARNING: vmlinux.o(.text+0x2dede6): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_ad1988' and 'stac92xx_dmux_enum_get')
> WARNING: vmlinux.o(.text+0x2e00dc): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e0105): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e012f): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e014b): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e06cf): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'stac92xx_parse_auto_config' and 'patch_stac9872')
> WARNING: vmlinux.o(.text+0x2e0e79): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9872' and 'vaio_master_sw_put')
> WARNING: vmlinux.o(.text+0x2e11dc): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9200' and 'patch_stac925x')
> WARNING: vmlinux.o(.text+0x2e1251): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_stac9200' and 'patch_stac925x')
> WARNING: vmlinux.o(.text+0x2e15bb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac925x' and 'patch_stac922x')
> WARNING: vmlinux.o(.text+0x2e172c): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac922x' and 'patch_stac927x')
> WARNING: vmlinux.o(.text+0x2e195f): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac927x' and 'patch_stac9205')
> WARNING: vmlinux.o(.text+0x2e1aef): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9205' and 'si3054_switch_info')
> WARNING: vmlinux.o(.text+0x2e2116): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'si3054_build_controls' and 'patch_si3054')
> WARNING: vmlinux.o(.text+0x2e2248): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'atihdmi_build_controls' and 'patch_atihdmi')
> WARNING: vmlinux.o(.text+0x2e2c51): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
> WARNING: vmlinux.o(.text+0x2e2c7b): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
> WARNING: vmlinux.o(.text+0x2e2c97): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
> WARNING: vmlinux.o(.text+0x2e2d99): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cxt5047' and 'cxt5047_hp_automic')
> WARNING: vmlinux.o(.text+0x2e3329): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cxt5045' and 'via_build_pcms')
> WARNING: vmlinux.o(.text+0x2e3617): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'via_build_controls' and 'via_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e3641): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'via_build_controls' and 'via_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e365d): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'via_build_controls' and 'via_mux_enum_put')
> WARNING: vmlinux.o(.text+0x2e3ab3): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'vt1709_parse_auto_config' and 'patch_vt1709_6ch')
> WARNING: vmlinux.o(.text+0x2e429d): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_vt1708' and 'patch_vt1709_10ch')
All the hda_preset stuff should be marked __devinit as far as I can see.
Care to give that a spin yourself? 

> WARNING: vmlinux.o(.data+0xacb10): Section mismatch: reference to .init.text:snd_ad1889_probe (between 'ad1889_pci' and 'ops.20707')
> WARNING: vmlinux.o(.text+0x12f014): Section mismatch: reference to .exit.text:mlx4_remove_one (between 'mlx4_restart_one' and 'mlx4_cleanup_mcg_table')
Did not look at these two yet.

> WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
> WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
> WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
When a function is marked __exit and used from an init function then the safe choice
is to just remove the __exit marking. Usually this is small functions used
only in error situations.
Should be trivial too.

Sorry - no patch this time. Could you try to look at it yorself then I will review.

	Sam

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-30 19:31   ` Gabriel C
@ 2007-07-31 19:45     ` Gabriel C
  2007-07-31 20:48       ` Sam Ravnborg
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-07-31 19:45 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List

Hi Sam ,

me again. I got some more mismatch warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-14 )


...


  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x8adb): Section mismatch: reference to .init.text:register_cpu (between 'arch_register_cpu' and 'text_poke')
WARNING: vmlinux.o(.text+0xb790c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented')
WARNING: vmlinux.o(.text+0x12f01e): Section mismatch: reference to .init.text:mlx4_init_one (between 'mlx4_restart_one' and 'mlx4_cleanup_mcg_table')
WARNING: vmlinux.o(.text+0x1dd831): Section mismatch: reference to .init.text:setup_TeleInt (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dd9e7): Section mismatch: reference to .init.text:setup_elsa (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dd9f8): Section mismatch: reference to .init.text:setup_avm_a1 (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda08): Section mismatch: reference to .init.text:setup_teles0 (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda18): Section mismatch: reference to .init.text:setup_netjet_u (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda28): Section mismatch: reference to .init.text:setup_hfcpci (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda38): Section mismatch: reference to .init.text:setup_saphir (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda48): Section mismatch: reference to .init.text:setup_avm_pcipnp (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda58): Section mismatch: reference to .init.text:setup_s0box (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda68): Section mismatch: reference to .init.text:setup_telespci (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda78): Section mismatch: reference to .init.text:setup_netjet_s (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1dda88): Section mismatch: reference to .init.text:setup_hfcs (between 'checkcard' and 'hisax_init_pcmcia')
WARNING: vmlinux.o(.text+0x1f4e96): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'inithscxisac' and 'open_hscxstate')
WARNING: vmlinux.o(.text+0x1f4ea4): Section mismatch: reference to .init.text:initisac (between 'inithscxisac' and 'open_hscxstate')
WARNING: vmlinux.o(.text+0x1fa774): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'AVM_card_msg' and 'avm_pcipnp_interrupt')
WARNING: vmlinux.o(.text+0x1fa77b): Section mismatch: reference to .init.text:initisac (between 'AVM_card_msg' and 'avm_pcipnp_interrupt')
WARNING: vmlinux.o(.text+0x1fdbbf): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'TeleInt_card_msg' and 'WriteHFC')
WARNING: vmlinux.o(.text+0x1fdbc6): Section mismatch: reference to .init.text:initisac (between 'TeleInt_card_msg' and 'WriteHFC')
WARNING: vmlinux.o(.text+0x1ff98f): Section mismatch: reference to .init.text:clear_pending_isac_ints (between 'NETjet_S_card_msg' and 'netjet_s_interrupt')
WARNING: vmlinux.o(.text+0x1ff996): Section mismatch: reference to .init.text:initisac (between 'NETjet_S_card_msg' and 'netjet_s_interrupt')
WARNING: vmlinux.o(.text+0x2d6a77): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
WARNING: vmlinux.o(.text+0x2d6aa1): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
WARNING: vmlinux.o(.text+0x2d6abd): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'alc_build_controls' and 'alc662_auto_set_output_and_unmute')
WARNING: vmlinux.o(.text+0x2d994a): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'alc880_parse_auto_config' and 'alc882_gpio_mute')
WARNING: vmlinux.o(.text+0x2da2fe): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc268' and 'patch_alc662')
WARNING: vmlinux.o(.text+0x2da31c): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc268' and 'patch_alc662')
WARNING: vmlinux.o(.text+0x2da6e8): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc662' and 'alc_mux_enum_info')
WARNING: vmlinux.o(.text+0x2da7b5): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc662' and 'alc_mux_enum_info')
WARNING: vmlinux.o(.text+0x2dae6a): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc880' and 'patch_alc260')
WARNING: vmlinux.o(.text+0x2db036): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc260' and 'patch_alc882')
WARNING: vmlinux.o(.text+0x2db0cc): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc260' and 'patch_alc882')
WARNING: vmlinux.o(.text+0x2db4b0): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc882' and 'patch_alc883')
WARNING: vmlinux.o(.text+0x2db77a): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc883' and 'patch_alc262')
WARNING: vmlinux.o(.text+0x2db8ea): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc262' and 'patch_alc861')
WARNING: vmlinux.o(.text+0x2db9b7): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc262' and 'patch_alc861')
WARNING: vmlinux.o(.text+0x2dbca6): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc861' and 'patch_alc861vd')
WARNING: vmlinux.o(.text+0x2dbd3c): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc861' and 'patch_alc861vd')
WARNING: vmlinux.o(.text+0x2dc0c6): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_alc861vd' and 'cmi9880_build_pcms')
WARNING: vmlinux.o(.text+0x2dc195): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_alc861vd' and 'cmi9880_build_pcms')
WARNING: vmlinux.o(.text+0x2dc77d): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
WARNING: vmlinux.o(.text+0x2dc796): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
WARNING: vmlinux.o(.text+0x2dc7c6): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
WARNING: vmlinux.o(.text+0x2dc7e6): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'cmi9880_build_controls' and 'cmi_ch_mode_put')
WARNING: vmlinux.o(.text+0x2dc93e): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cmi9880' and 'cmi_mux_enum_get')
WARNING: vmlinux.o(.text+0x2dcab4): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_cmi9880' and 'cmi_mux_enum_get')
WARNING: vmlinux.o(.text+0x2dd301): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
WARNING: vmlinux.o(.text+0x2dd32b): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
WARNING: vmlinux.o(.text+0x2dd347): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'ad198x_build_controls' and 'ad1988_laptop_unsol_event')
WARNING: vmlinux.o(.text+0x2ddbad): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1984' and 'patch_ad1882')
WARNING: vmlinux.o(.text+0x2ddcfb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1882' and 'ad198x_free')
WARNING: vmlinux.o(.text+0x2de7db): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1986a' and 'patch_ad1983')
WARNING: vmlinux.o(.text+0x2deabb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1981' and 'patch_ad1988')
WARNING: vmlinux.o(.text+0x2debfd): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_ad1988' and 'stac92xx_dmux_enum_get')
WARNING: vmlinux.o(.text+0x2dede6): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_ad1988' and 'stac92xx_dmux_enum_get')
WARNING: vmlinux.o(.text+0x2e00dc): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e0105): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e012f): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e014b): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'stac92xx_build_controls' and 'stac92xx_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e06cf): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'stac92xx_parse_auto_config' and 'patch_stac9872')
WARNING: vmlinux.o(.text+0x2e0e79): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9872' and 'vaio_master_sw_put')
WARNING: vmlinux.o(.text+0x2e11dc): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9200' and 'patch_stac925x')
WARNING: vmlinux.o(.text+0x2e1251): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_stac9200' and 'patch_stac925x')
WARNING: vmlinux.o(.text+0x2e15bb): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac925x' and 'patch_stac922x')
WARNING: vmlinux.o(.text+0x2e172c): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac922x' and 'patch_stac927x')
WARNING: vmlinux.o(.text+0x2e195f): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac927x' and 'patch_stac9205')
WARNING: vmlinux.o(.text+0x2e1aef): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_stac9205' and 'si3054_switch_info')
WARNING: vmlinux.o(.text+0x2e2116): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'si3054_build_controls' and 'patch_si3054')
WARNING: vmlinux.o(.text+0x2e2248): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'atihdmi_build_controls' and 'patch_atihdmi')
WARNING: vmlinux.o(.text+0x2e2c51): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
WARNING: vmlinux.o(.text+0x2e2c7b): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
WARNING: vmlinux.o(.text+0x2e2c97): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'conexant_build_controls' and 'patch_cxt5047')
WARNING: vmlinux.o(.text+0x2e2d99): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cxt5047' and 'cxt5047_hp_automic')
WARNING: vmlinux.o(.text+0x2e3329): Section mismatch: reference to .init.text:snd_hda_check_board_config (between 'patch_cxt5045' and 'via_build_pcms')
WARNING: vmlinux.o(.text+0x2e3617): Section mismatch: reference to .init.text:snd_hda_add_new_ctls (between 'via_build_controls' and 'via_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e3641): Section mismatch: reference to .init.text:snd_hda_create_spdif_in_ctls (between 'via_build_controls' and 'via_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e365d): Section mismatch: reference to .init.text:snd_hda_create_spdif_out_ctls (between 'via_build_controls' and 'via_mux_enum_put')
WARNING: vmlinux.o(.text+0x2e3ab3): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'vt1709_parse_auto_config' and 'patch_vt1709_6ch')
WARNING: vmlinux.o(.text+0x2e429d): Section mismatch: reference to .init.text:snd_hda_parse_pin_def_config (between 'patch_vt1708' and 'patch_vt1709_10ch')
WARNING: vmlinux.o(.data+0xacb10): Section mismatch: reference to .init.text:snd_ad1889_probe (between 'ad1889_pci' and 'ops.20707')
WARNING: vmlinux.o(.text+0x12f014): Section mismatch: reference to .exit.text:mlx4_remove_one (between 'mlx4_restart_one' and 'mlx4_cleanup_mcg_table')
WARNING: vmlinux.o(.init.text+0x29d40): Section mismatch: reference to .exit.text:wbsd_release_resources (between 'wbsd_init' and 'wbsd_probe')
WARNING: vmlinux.o(.init.text+0x29d49): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')
WARNING: vmlinux.o(.init.text+0x29f28): Section mismatch: reference to .exit.text:wbsd_free_mmc (between 'wbsd_init' and 'wbsd_probe')

...


Gabriel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-30 18:51 ` Sam Ravnborg
@ 2007-07-30 19:31   ` Gabriel C
  2007-07-31 19:45     ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-07-30 19:31 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Linux Kernel Mailing List, J.E.J.Bottomley

Sam Ravnborg wrote:
> On Mon, Jul 30, 2007 at 07:48:09PM +0200, Gabriel C wrote:
>> Hi Sam ,
>>
>> I get this warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-36 ) :
>>
>>
>> ...
>>
> I only looked at the Section mismatch warnings.
> They are fixed by following patch.

Wow you are fast :)

Yes all warnings are fixed.


Gabriel

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Section mismatch warnings
  2007-07-30 17:48 Gabriel C
@ 2007-07-30 18:51 ` Sam Ravnborg
  2007-07-30 19:31   ` Gabriel C
  0 siblings, 1 reply; 17+ messages in thread
From: Sam Ravnborg @ 2007-07-30 18:51 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List, J.E.J.Bottomley

On Mon, Jul 30, 2007 at 07:48:09PM +0200, Gabriel C wrote:
> Hi Sam ,
> 
> I get this warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-36 ) :
> 
> 
> ...
> 
I only looked at the Section mismatch warnings.
They are fixed by following patch.

James - I assume you will take this forward?

	Sam 

[PATCH] i386/voyager: fix section mismatch warnings
> WARNING: vmlinux.o(.text+0xeaf7): Section mismatch: reference to .init.text:init_gdt (between 'voyager_smp_prepare_boot_cpu' and 'smp_vic_cmn_interrupt')

voyager_smp_prepare_boot_cpu is marked __devinit and calls init_gdt.
init_gdt is marked __cpuinit

Fix seems to make voyager_smp_prepare_boot_cpu __init since I cannot see that
function being used for HOTPLUG. Maybe HOTPLUG_CPU but not HOTPLUG.

> WARNING: vmlinux.o(.text+0x104e3): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')

> WARNING: vmlinux.o(.text+0x1050a): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10510): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10517): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x1054a): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x1055b): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10765): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10778): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x107b6): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x107c9): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x1090e): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10935): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10944): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x10951): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x109aa): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x109b4): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x109ba): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x109c1): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
> WARNING: vmlinux.o(.text+0x109e4): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
voyager_cat_init is used only by smp_boot_cpus that is marked __init.
So fix is to mark voyager_cat_init as __init

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/arch/i386/mach-voyager/voyager_cat.c b/arch/i386/mach-voyager/voyager_cat.c
index 26a2d4c..f5acf06 100644
--- a/arch/i386/mach-voyager/voyager_cat.c
+++ b/arch/i386/mach-voyager/voyager_cat.c
@@ -568,8 +568,7 @@ static voyager_module_t *voyager_initial_module;
  * boot cpu *after* all memory initialisation has been done (so we can
  * use kmalloc) but before smp initialisation, so we can probe the SMP
  * configuration and pick up necessary information.  */
-void
-voyager_cat_init(void)
+void __init voyager_cat_init(void)
 {
 	voyager_module_t **modpp = &voyager_initial_module;
 	voyager_asic_t **asicpp;
diff --git a/arch/i386/mach-voyager/voyager_smp.c b/arch/i386/mach-voyager/voyager_smp.c
index b87f854..ac06a1c 100644
--- a/arch/i386/mach-voyager/voyager_smp.c
+++ b/arch/i386/mach-voyager/voyager_smp.c
@@ -1899,7 +1899,7 @@ voyager_smp_prepare_cpus(unsigned int max_cpus)
 	smp_boot_cpus();
 }
 
-static void __devinit voyager_smp_prepare_boot_cpu(void)
+static void __init voyager_smp_prepare_boot_cpu(void)
 {
 	init_gdt(smp_processor_id());
 	switch_to_new_gdt();

^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Section mismatch warnings
@ 2007-07-30 17:48 Gabriel C
  2007-07-30 18:51 ` Sam Ravnborg
  0 siblings, 1 reply; 17+ messages in thread
From: Gabriel C @ 2007-07-30 17:48 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Sam Ravnborg, J.E.J.Bottomley

Hi Sam ,

I get this warnings with a randconfig ( http://194.231.229.228/git-current/randconfig-auto-36 ) :


...

WARNING: vmlinux.o(.text+0xeaf7): Section mismatch: reference to .init.text:init_gdt (between 'voyager_smp_prepare_boot_cpu' and 'smp_vic_cmn_interrupt')
WARNING: vmlinux.o(.text+0x104e3): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x1050a): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10510): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10517): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x1054a): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x1055b): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10765): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10778): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x107b6): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x107c9): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x1090e): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10935): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10944): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x10951): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x109aa): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x109b4): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x109ba): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x109c1): Section mismatch: reference to .init.data:eprom_buf (between 'voyager_cat_init' and 'twofish_enc_blk')
WARNING: vmlinux.o(.text+0x109e4): Section mismatch: reference to .init.data: (between 'voyager_cat_init' and 'twofish_enc_blk')


...

With the same config I see this warnings as well but I think this is a different problem.

...

arch/i386/mach-voyager/voyager_cat.c: In function 'voyager_cat_init':
arch/i386/mach-voyager/voyager_cat.c:685: warning: comparison is always false due to limited range of data type
arch/i386/mach-voyager/voyager_cat.c:755: warning: comparison is always false due to limited range of data type

...


Regards,

Gabriel

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-08-02 18:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23 17:40 Section mismatch warnings Jan Engelhardt
2006-06-23 22:12 ` Sam Ravnborg
2006-06-23 22:22   ` Al Viro
2006-06-24 21:02     ` Sam Ravnborg
2006-06-23 22:23   ` Al Viro
2006-06-26 12:37     ` Roman Zippel
2007-07-30 17:48 Gabriel C
2007-07-30 18:51 ` Sam Ravnborg
2007-07-30 19:31   ` Gabriel C
2007-07-31 19:45     ` Gabriel C
2007-07-31 20:48       ` Sam Ravnborg
2007-07-31 21:58         ` Gabriel C
2007-08-02 14:27           ` Gabriel C
2007-08-02 16:31             ` Sam Ravnborg
2007-08-02 17:12               ` Gabriel C
2007-08-02 17:59                 ` Sam Ravnborg
2007-08-02 18:24                   ` Gabriel C

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).