Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3088337rwb; Mon, 15 Aug 2022 17:50:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Qp8YXQN6WXrwauHI9rO0fBvKxmb56TZf1xlJG6X1wpj0DVxR/mB9pSwMh7yJgtaAEonjD X-Received: by 2002:a17:907:720f:b0:731:8a9d:5ade with SMTP id dr15-20020a170907720f00b007318a9d5ademr11628881ejc.768.1660611039910; Mon, 15 Aug 2022 17:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611039; cv=none; d=google.com; s=arc-20160816; b=eixGg01Vw/rI6FWnhfOZKgg5bQ8u/GtbWLvQik2TZEDo+dCbqlCorVk2MnpszmaNUb lSVXm/c86/wHdy3KTXMnoI7y8xI0IpQ9xu75spLM1SM0xAr9ZXZzEva1l9KFQJjRlNit ILYXWbEqJvup2fWhmkXAdLcBITwUHbmdilsh4dYWfjrVt3YXBKkkCRO/reFc28ez2Ym6 bc6y3G2V/xtxEFDMQuA/OIhBDtI80tjqF5zuOsnQdhRXVyhJK0DuTPiVqZfOsb5FradB T71ufX+ppvD/e9aKv/XK8miNdnC0eXxJX8AauLFS+WhlhRflZYoloikBqK1XmjMJs9/Y 2VAQ== 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=oeeaDT+dzI1jvceqOjtTh48GKfJlO4CPwlbl5WxQoZxw7ASq4yupP2q9WYoKOVBKg/ IDVSJSjw9U3vDtIX2VmslhT2svd2s7LnEiKkN28I4D938jeKABmw00heOf2NxBgJb0if fyi5kCQLRKIht9skw3NKJRCGQzHljKKHIDhR95vWKT+LznOwadW+GFQedzyMMS9x7EtE cztiQfR2DaQbxCB4KAI+ivFl7zsq2QFLBjMCj+wWQTp5+v33WnKj4b2xgRKzKhW6sSYs +3dvpkwKQhIvpqcVGHgXiE2b6IvQ9e1sIKcW0gIako2U5zhdJQyYR1b28lhNoQzMEXPp d3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gI2t37zL; 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 m6-20020aa7d346000000b0043d14d03dd9si7723248edr.496.2022.08.15.17.50.13; Mon, 15 Aug 2022 17:50:39 -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=gI2t37zL; 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 S1351086AbiHOWhg (ORCPT + 99 others); Mon, 15 Aug 2022 18:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350159AbiHOWb2 (ORCPT ); Mon, 15 Aug 2022 18:31:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D1CC719A0; Mon, 15 Aug 2022 12:48:28 -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 D8CF3B81144; Mon, 15 Aug 2022 19:48:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 200A9C433C1; Mon, 15 Aug 2022 19:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592905; bh=tFMruD26R0zJmsKIkmvOkf54yAsxhFD3bcYpfWVgLpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gI2t37zLghxy12bUcdRePOLGLUGjJQqbA3YLsC7VAqFJOZHWGc4kbm7D9//FwEq8T dYuOTNYQB/MDKiCFTL5cCyGM+xuQYVlBMv7bI52C35CQJECczFR8DFm7lo8JQEzVXb S6sU+VBQ3yKrH0M5EMTuGe6m5CI4zZrZ5wXJ63A0= 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.18 0864/1095] MIPS: Loongson64: Fix section mismatch warning Date: Mon, 15 Aug 2022 20:04:23 +0200 Message-Id: <20220815180505.100421388@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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