Subject: linux-next: build warnings after merge of the kbuild tree

From: Stephen Rothwell <[email-masked]>
Date: Thu, 2 Jun 2022 09:28:09 +1000

Hi all,

After merging the kbuild tree, today's linux-next build (arm
multi_v7_defconfig) produced these warnings:

WARNING: modpost: vmlinux.o(___ksymtab_gpl+mdio_bus_init+0x0): Section mismatch in reference from the variable __ksymtab_mdio_bus_init to the function .init.text:mdio_bus_init()
The symbol mdio_bus_init is exported and annotated __init 
Fix this by removing the __init annotation of mdio_bus_init or drop the export.

WARNING: modpost: vmlinux.o(___ksymtab+xfrm4_protocol_init+0x0): Section mismatch in reference from the variable __ksymtab_xfrm4_protocol_init to the function .init.text:xfrm4_protocol_init()
The symbol xfrm4_protocol_init is exported and annotated __init 
Fix this by removing the __init annotation of xfrm4_protocol_init or drop the export.

The x86_64 allmodconfig build added these:

WARNING: modpost: vmlinux.o(___ksymtab_gpl+xen_xlate_map_ballooned_pages+0x0): Section mismatch in reference from the variable __ksymtab_xen_xlate_map_ballooned_pages to the function .init.text:xen_xlate_map_ballooned_pages()
The symbol xen_xlate_map_ballooned_pages is exported and annotated __init 
Fix this by removing the __init annotation of xen_xlate_map_ballooned_pages or drop the export.

WARNING: modpost: vmlinux.o(___ksymtab_gpl+ixp4xx_timer_setup+0x0): Section mismatch in reference from the variable __ksymtab_ixp4xx_timer_setup to the function .init.text:ixp4xx_timer_setup()
The symbol ixp4xx_timer_setup is exported and annotated __init 
Fix this by removing the __init annotation of ixp4xx_timer_setup or drop the export.

WARNING: modpost: vmlinux.o(___ksymtab_gpl+hv_init_clocksource+0x0): Section mismatch in reference from the variable __ksymtab_hv_init_clocksource to the function .init.text:hv_init_clocksource()
The symbol hv_init_clocksource is exported and annotated __init 
Fix this by removing the __init annotation of hv_init_clocksource or drop the export.

WARNING: modpost: net/ipv6/ipv6.o(___ksymtab+seg6_hmac_init+0x0): Section mismatch in reference from the variable __ksymtab_seg6_hmac_init to the function .init.text:seg6_hmac_init()
The symbol seg6_hmac_init is exported and annotated __init 
Fix this by removing the __init annotation of seg6_hmac_init or drop the export.
Exposed by commit

  cf2cbe28c6a2 ("modpost: fix section mismatch check for exported init/exit sections")

Introduced by commits

  90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs")
  2f32b51b609f ("xfrm: Introduce xfrm_input_afinfo to access the the callbacks properly")
  243848fc018c ("xen/grant-table: Move xlated_setup_gnttab_pages to common place")
  13e0b4059b98 ("clocksource/drivers/ixp4xx: Add driver")
  dd2cb348613b ("clocksource/drivers: Continue making Hyper-V clocksource ISA agnostic")
  bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support")

-- 
Cheers,
Stephen Rothwell