Patch "MIPS: Loongson64: Fix section mismatch warning" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    MIPS: Loongson64: Fix section mismatch warning

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mips-loongson64-fix-section-mismatch-warning.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5f17e15618798f9075a1582b32a31fb182507b21
Author: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
Date:   Mon Jun 27 15:07:13 2022 +0800

    MIPS: Loongson64: Fix section mismatch warning
    
    [ Upstream commit 08472f6ebdc23334ad11dcd761d2d52c32897793 ]
    
    prom_init_numa_memory() is annotated __init and not used by any module,
    thus don't export it.
    
    Remove not needed EXPORT_SYMBOL for prom_init_numa_memory() to fix the
    following section mismatch warning:
    
      LD      vmlinux.o
      MODPOST vmlinux.symvers
    WARNING: modpost: vmlinux.o(___ksymtab+prom_init_numa_memory+0x0): Section mismatch in reference
    from the variable __ksymtab_prom_init_numa_memory to the function .init.text:prom_init_numa_memory()
    The symbol prom_init_numa_memory is exported and annotated __init
    Fix this by removing the __init annotation of prom_init_numa_memory or drop the export.
    
    This is build on Linux 5.19-rc4.
    
    Fixes: 6fbde6b492df ("MIPS: Loongson64: Move files to the top-level directory")
    Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
    Reviewed-by: Huacai Chen <chenhuacai@xxxxxxxxxx>
    Signed-off-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c
index 69a533148efd..8f61e93c0c5b 100644
--- a/arch/mips/loongson64/numa.c
+++ b/arch/mips/loongson64/numa.c
@@ -196,7 +196,6 @@ void __init prom_init_numa_memory(void)
 	pr_info("CP0_PageGrain: CP0 5.1 (0x%x)\n", read_c0_pagegrain());
 	prom_meminit();
 }
-EXPORT_SYMBOL(prom_init_numa_memory);
 
 pg_data_t * __init arch_alloc_nodedata(int nid)
 {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux