Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3095231rwb; Mon, 15 Aug 2022 18:00:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4MNPqPaMIo2/dqoqoZ+ADeUwr3ZhFdhGR6nzXVmABIckuorNhs3oEhZ5O9jFmk3LHMOSB7 X-Received: by 2002:a17:907:272a:b0:731:4699:b375 with SMTP id d10-20020a170907272a00b007314699b375mr11971641ejl.633.1660611648576; Mon, 15 Aug 2022 18:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611648; cv=none; d=google.com; s=arc-20160816; b=qwS6EnCBIjCY2L4rWN/pYsfJM2SttBtNvpxBPMgpTRk3z8wEzss4mLxHqJDE5DAyS2 71Azx+IGBaTqe4Da5aeUZ2Q1/qY/9ZgAj+TMhUZT6/GJwPgWX2EyyCpJbouQeWjVEZbl 57DEZwHjrrOIqjkX4L2mkxtJjKNkS9J8lVoAPHj0LfZseEHJle/bkuQjrlUz7kNVRaoo 5WGupMV4YA98z1obx0syD4AORH9LUK0szkgv7pnb3a+u9o8sHKTKm9ZI2JYlmZ7q4phM Oo0vt51LBXEweRy+YUBJzpbQAYBZOLsc9vdwz2AyUkQQYNUJfXWkolGtQ/3qTz0OQr6i eAwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Zi5Uq3lnXOvyCNV7QmRnZIeShRvi22B2Xeb8Ek6mA4k=; b=C5mE/MsvV2vEJmF9Vufy6Vt0pX/hJ1Ga1/fAznBAw07Vh726z1l9pANvR5jLRAzI4C VUAsyevO5jXiFjPenc6SHY/6rKpylfTYPa3lhPOnYaCxQslJS0GwHs90aPCJgQmZcvFu lwFDZByL+bzXCSSAbUwOufISXafYSAnpIsGhpf48X4uoWgQb1+7SPe8ft4OBzf6SrnEt 1xbCf+qB71TNIvSguYx7i5Nb8bC/9wYreK8kWKgE3uQinsJLtJGUAxfJ7LTPss8dG75K iS/aMDG4+tJu753PdLoXyh+83KyLHutwMY3KbnyVdR70TGoDUW4iZZQMxy/HFi2vZTdG NItg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n1Nfu9NY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a17090671cc00b00730a25f03fdsi8670873ejk.197.2022.08.15.18.00.23; Mon, 15 Aug 2022 18:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n1Nfu9NY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242290AbiHPAxC (ORCPT + 99 others); Mon, 15 Aug 2022 20:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240319AbiHPAoE (ORCPT ); Mon, 15 Aug 2022 20:44:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5E0AED99; Mon, 15 Aug 2022 13:40:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 79B56B8114A; Mon, 15 Aug 2022 20:40:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A66C6C433C1; Mon, 15 Aug 2022 20:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596034; bh=tFMruD26R0zJmsKIkmvOkf54yAsxhFD3bcYpfWVgLpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n1Nfu9NYR1fctv/FDsZbh5nKas72CguQ7zUlgVziDe1ZotECg3MNQuu3Kgr9hHwKX FYDQ4EfWCLXdigLs6z46n3dRSL+srviBUvahM2/RSXfbjYde6gCn0fYKeqpEDKwMgF A/I0UqBZ1WzIfb1iWmA8djToma7c5EFoUBgYaB48= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tiezhu Yang , Huacai Chen , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.19 0935/1157] MIPS: Loongson64: Fix section mismatch warning Date: Mon, 15 Aug 2022 20:04:51 +0200 Message-Id: <20220815180516.905931442@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tiezhu Yang [ 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 Reviewed-by: Huacai Chen Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/loongson64/numa.c | 1 - 1 file changed, 1 deletion(-) 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) { -- 2.35.1