• X
    arm64/mpam: fix __mpam_device_create() section mismatch error · 6238a402
    Xingang Wang 提交于
    ascend inclusion
    category: bugfix
    bugzilla: https://gitee.com/openeuler/kernel/issues/I4L735
    CVE: NA
    
    ---------------------------------------------------
    
    Fix modpost Section mismatch error in __mpam_device_create() and others.
    These warnings will occur in high version gcc, for example 10.1.0.
    
      [...]
      WARNING: vmlinux.o(.text+0x2ed88): Section mismatch in reference from the
      function __mpam_device_create() to the function .init.text:mpam_device_alloc()
      The function __mpam_device_create() references
      the function __init mpam_device_alloc().
      This is often because __mpam_device_create lacks a __init
      annotation or the annotation of mpam_device_alloc is wrong.
    
      WARNING: vmlinux.o(.text.unlikely+0xa5c): Section mismatch in reference from
      the function mpam_resctrl_init() to the function .init.text:mpam_init_padding()
      The function mpam_resctrl_init() references
      the function __init mpam_init_padding().
      This is often because mpam_resctrl_init lacks a __init
      annotation or the annotation of mpam_init_padding is wrong.
    
      WARNING: vmlinux.o(.text.unlikely+0x5a9c): Section mismatch in reference from
      the function resctrl_group_init() to the function .init.text:resctrl_group_setup_root()
      The function resctrl_group_init() references
      the function __init resctrl_group_setup_root().
      This is often because resctrl_group_init lacks a __init
      annotation or the annotation of resctrl_group_setup_root is wrong.
      [...]
    
    Fixes: 682eefba ("arm64/mpam: remove __init macro to support driver probe")
    Signed-off-by: NXingang Wang <wangxingang5@huawei.com>
    Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
    Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    6238a402
resctrlfs.c 27.5 KB