Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2961042rwd; Wed, 14 Jun 2023 09:21:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WtDmL4QkTlttQLd8SJ+ASJbOTu9ruTLEzhqlaiSNru5U0uVBYNMzWWIhniNTpSaTO61VC X-Received: by 2002:a05:6808:169f:b0:39c:798e:6d1f with SMTP id bb31-20020a056808169f00b0039c798e6d1fmr12630505oib.16.1686759713624; Wed, 14 Jun 2023 09:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686759713; cv=none; d=google.com; s=arc-20160816; b=1IVGxLffm3qWLwZPiMwmkOPaEaq20NDW5uPVDCxEAKr/XPEBVj45hnsYwo32kSK2Ya xv3jIED+d7O3eLoWRhbhOXFc9/VPGiXbIToeyfkcVi+xVSw5pbUYCURZl3XfYTPmUupt eLFtBXsiMQyyCQPsshPOKvw2JoUdfM2i+sJkydyLspVmHZGAsQ4N0BrzxlFCbqrIhKvD SvcCMQzLdamW7iHYk4A+KFzfHVXazvFcomWnzS1M0GIxFsQq1NpfVtMF/k76WRSiAi4e NI4TtlAw6b+IpvB6erAiJlAFbpoieu6vAbejWWRoxPu4/K86wPS+yu2Bcd0UOlhyHtSb /2LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4NuQo0gKBxrcZxtYCs5sMJl+CvnlRB73xhVEIlMdfzM=; b=y/qZQsjl4PjEcOwQtCSiEJyN4N0Pb0OG5tqLmWnQggYMnviJv3+udEi+kFj+GfXjNk dV42nV/jIwLILHvHxKE5KzdIiiFhXqG4gDPfc/3p4/lJOuxVv6Zds8ARWeMFQSgJzAuD Fto7KADaeRGijbZRNzSHwdYG0IU3IQpdNsgGwO74X/zNZkxn3wIRAhnVBL8wX/h9cIhI 8N2Jc/4+mx9d9EG9xLqTg1L5VJo+mJ9jCcCFaUp3PD/UN+nu+EB1j762R3iGFAcGNM7c XA0dEQURGnXJg9l5j5kJYhRrL+f5PEEHdbKAmqrwT7EOzz3W3/8jMjLWxst0PTVuZMrm tDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=D+afP+Tb; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r71-20020a632b4a000000b0053fb768afc8si11162544pgr.748.2023.06.14.09.21.40; Wed, 14 Jun 2023 09:21:53 -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=@mediatek.com header.s=dk header.b=D+afP+Tb; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244355AbjFNPjb (ORCPT + 99 others); Wed, 14 Jun 2023 11:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236010AbjFNPj3 (ORCPT ); Wed, 14 Jun 2023 11:39:29 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1FDA123; Wed, 14 Jun 2023 08:39:24 -0700 (PDT) X-UUID: 9838dc480ac911ee9cb5633481061a41-20230614 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=4NuQo0gKBxrcZxtYCs5sMJl+CvnlRB73xhVEIlMdfzM=; b=D+afP+TbkHa+ign/9qntY9pl89G+SWOpEVA7xnu7KLjvKS2WYRpD2aiahD7wXy7S/8LRFk8OH5iTSweUMYBS1YJ4bFbp5aVYC+zO+BtTQd0U0f6JNki9h88I3/MDnhPK0yQDhDHOerHs+M7voqqLP5/0LpmMf4twtpFFus/SEL8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:0cd6b2c6-be35-4d6c-81cb-cca38bd23cdc,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:cb9a4e1,CLOUDID:66f8116f-2f20-4998-991c-3b78627e4938,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 9838dc480ac911ee9cb5633481061a41-20230614 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 186060915; Wed, 14 Jun 2023 23:39:05 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 14 Jun 2023 23:39:04 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 14 Jun 2023 23:39:04 +0800 From: Wei Chin Tsai To: CC: , , , , , , , , , , , Subject: [PATCH v3 1/1] memory: Fix export symbol twice compiler error for "export symbols for memory related functions" patch Date: Wed, 14 Jun 2023 23:39:02 +0800 Message-ID: <20230614153902.26206-1-Wei-chin.Tsai@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <202306142030.GjGWnIkY-lkp@intel.com> References: <202306142030.GjGWnIkY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 User could not add the export symbol "arch_vma_name" in arch/arm/kernel/process.c and kernel/signal.c both. It would cause the export symbol twice compiler error Reported-by: kernel test robot Signed-off-by: Wei Chin Tsai --- arch/arm/kernel/process.c | 3 +++ kernel/signal.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index df91412a1069..d71a9bafb584 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -343,7 +343,10 @@ const char *arch_vma_name(struct vm_area_struct *vma) { return is_gate_vma(vma) ? "[vectors]" : NULL; } + +#ifdef CONFIG_ARM EXPORT_SYMBOL_GPL(arch_vma_name); +#endif /* If possible, provide a placement hint at a random offset from the * stack for the sigpage and vdso pages. diff --git a/kernel/signal.c b/kernel/signal.c index a1abe77fcdc3..f7d03450781e 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -4700,7 +4700,10 @@ __weak const char *arch_vma_name(struct vm_area_struct *vma) { return NULL; } + +#ifdef CONFIG_ARM64 EXPORT_SYMBOL_GPL(arch_vma_name); +#endif static inline void siginfo_buildtime_checks(void) { -- 2.18.0