From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49537C433E0 for ; Fri, 24 Jul 2020 09:45:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13CA82070B for ; Fri, 24 Jul 2020 09:45:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KtFEVQ/c"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VMc7Te6u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13CA82070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8ToTsF9xT6/Ob69vRz1T8cs3obKy7Lbf40DVYOKBmWY=; b=KtFEVQ/cfa5Q7SH64XGFlec1z VQ4EJzE/tZAjRxlkjlxAexa++vyPkKA58e7jZc+oobJV3pwv1A+uf7ScrEhjk+pgDudhTkTB8VKZ3 4xaPcT2tPjY5P5TFo34pHqi2qFUUGMIynu782x4nmI0YsTbb7J1a0ltjgs9XXqbXqyjniFz+Zzow4 U32UIC6p/ZOTZMr1bvoutLvCIrXf8Cu1uPwek9V8I5/U/l25AsaTeSNLbbJ2cJ2C9gMiv8MQeZeDV 9OsYKsJCTd+IUFW1kLjIq48LW+uKPg2XO8iXxlrGkjTpWsqJs/YpEYMaV1dWaKTO5O/9rdJDhdbSY Hf+1+LchQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyuEw-0002Zd-D4; Fri, 24 Jul 2020 09:43:42 +0000 Received: from casper.infradead.org ([90.155.50.34]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyuEu-0002Z9-4x for linux-arm-kernel@merlin.infradead.org; Fri, 24 Jul 2020 09:43:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kNkEtUhN6G10j8lkCGnOIYtN8tdnhHhV6JVj3Tz3i4k=; b=VMc7Te6uaHHWKfyUJLz6ZoC6eX 5ltTiCU4C2aEwBm2VhccQCTQMZDsPc/8ieCjJ1nWUcRgXEhZk/Ha6EWyJNIujA/1kIniyMT/y/T+l OMZJ/KZPqzu+6ybAC6uU58ndj9UTuH3tIMv+wK7KH3RYJwJU1AYyKX1gtQ3hGZ4813oln82QC2fw4 Dtb4c2js11Awtcixp+ofweY147nUC6R3QGuu968OPYwnHbFV41Cnd43T1rt0FQiaVxfbtPaBVHZ6e xSh7Lh1ND68Ev0Ry6Ao0XTVencQqHm/T7kL/xGXvpLuYIx7bKUWcBL07rDjG5k4i0shH0vG3gR25x Z3ez/7ug==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyuEq-0005sG-U5; Fri, 24 Jul 2020 09:43:36 +0000 Date: Fri, 24 Jul 2020 10:43:36 +0100 From: Christoph Hellwig To: Kefeng Wang Subject: Re: [PATCH -next] arm64: Export __cpu_logical_map Message-ID: <20200724094336.GA22178@infradead.org> References: <20200724030433.22287-1-wangkefeng.wang@huawei.com> <82f750c4-d423-1ed8-a158-e75153745e07@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <82f750c4-d423-1ed8-a158-e75153745e07@huawei.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , "linux-kernel@vger.kernel.org List" , Mikko Perttunen , Hulk Robot , Viresh Kumar , Sumit Gupta , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 24, 2020 at 11:08:03AM +0800, Kefeng Wang wrote: > +maillist > > On 2020/7/24 11:04, Kefeng Wang wrote: > > ERROR: modpost: "__cpu_logical_map" [drivers/cpufreq/tegra194-cpufreq.ko] undefined! > > > > ARM64 tegra194-cpufreq driver use cpu_logical_map, export > > __cpu_logical_map to fix build issue. > > > > Reported-by: Hulk Robot > > Signed-off-by: Kefeng Wang > > --- > > arch/arm64/kernel/setup.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > > index c793276ec7ad9..3aea05fbb9998 100644 > > --- a/arch/arm64/kernel/setup.c > > +++ b/arch/arm64/kernel/setup.c > > @@ -275,6 +275,7 @@ static int __init reserve_memblock_reserved_regions(void) > > arch_initcall(reserve_memblock_reserved_regions); > > u64 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID }; > > +EXPORT_SYMBOL(__cpu_logical_map); EXPORT_SYMBOL_GPL, please. Also consider turning the wrapper into an out of line function instead of exporting the data structure. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel