From patchwork Sat Nov 20 00:43:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12629923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 405BDC433F5 for ; Sat, 20 Nov 2021 00:45:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68A9A6B0078; Fri, 19 Nov 2021 19:43:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 639D56B007B; Fri, 19 Nov 2021 19:43:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 529176B007D; Fri, 19 Nov 2021 19:43:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0188.hostedemail.com [216.40.44.188]) by kanga.kvack.org (Postfix) with ESMTP id 44F7D6B0078 for ; Fri, 19 Nov 2021 19:43:40 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0A7A38190501 for ; Sat, 20 Nov 2021 00:43:30 +0000 (UTC) X-FDA: 78827460180.04.4ECD6EA Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf13.hostedemail.com (Postfix) with ESMTP id 52EC810529B2 for ; Sat, 20 Nov 2021 00:43:28 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id B37F661B1B; Sat, 20 Nov 2021 00:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1637369009; bh=w4Gqj6gB4x23MZz1h6PoQLudENfzvVA6v09Dq9JsJsE=; h=Date:From:To:Subject:In-Reply-To:From; b=fBYXKk5/Tfy+eH5k7cpKL4AK6FZiXeDe7eacYaJGAlj6GQshu5AkJlzfJDzfwgUnv bzARdR/pIoBO1xOozzqe8ipiA5ApuEZi0f/iUTSkBWEZcRmQx0pYVcREK7pMq77mFp V4Gg/FE0/N6hXxoVv37BQCYjD5VHHhC/Xr7ogIkM= Date: Fri, 19 Nov 2021 16:43:28 -0800 From: Andrew Morton To: akpm@linux-foundation.org, bcain@codeaurora.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, nathan@kernel.org, ndesaulniers@google.com, stable@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 05/15] hexagon: export raw I/O routines for modules Message-ID: <20211120004328.PW1DgeT_0%akpm@linux-foundation.org> In-Reply-To: <20211119164248.50feee07c5d2cc6cc4addf97@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 52EC810529B2 X-Stat-Signature: 4611yoefmkbbd8j5cgbriinaa8bwfmmj Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b="fBYXKk5/"; dmarc=none; spf=pass (imf13.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-HE-Tag: 1637369008-756619 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Nathan Chancellor Subject: hexagon: export raw I/O routines for modules Patch series "Fixes for ARCH=hexagon allmodconfig", v2. This series fixes some issues noticed with ARCH=hexagon allmodconfig. This patch (of 3): When building ARCH=hexagon allmodconfig, the following errors occur: ERROR: modpost: "__raw_readsl" [drivers/i3c/master/svc-i3c-master.ko] undefined! ERROR: modpost: "__raw_writesl" [drivers/i3c/master/dw-i3c-master.ko] undefined! ERROR: modpost: "__raw_readsl" [drivers/i3c/master/dw-i3c-master.ko] undefined! ERROR: modpost: "__raw_writesl" [drivers/i3c/master/i3c-master-cdns.ko] undefined! ERROR: modpost: "__raw_readsl" [drivers/i3c/master/i3c-master-cdns.ko] undefined! Export these symbols so that modules can use them without any errors. Link: https://lkml.kernel.org/r/20211115174250.1994179-1-nathan@kernel.org Link: https://lkml.kernel.org/r/20211115174250.1994179-2-nathan@kernel.org Fixes: 013bf24c3829 ("Hexagon: Provide basic implementation and/or stubs for I/O routines.") Signed-off-by: Nathan Chancellor Acked-by: Brian Cain Cc: Nick Desaulniers Cc: Signed-off-by: Andrew Morton --- arch/hexagon/lib/io.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/hexagon/lib/io.c~hexagon-export-raw-i-o-routines-for-modules +++ a/arch/hexagon/lib/io.c @@ -27,6 +27,7 @@ void __raw_readsw(const void __iomem *ad *dst++ = *src; } +EXPORT_SYMBOL(__raw_readsw); /* * __raw_writesw - read words a short at a time @@ -47,6 +48,7 @@ void __raw_writesw(void __iomem *addr, c } +EXPORT_SYMBOL(__raw_writesw); /* Pretty sure len is pre-adjusted for the length of the access already */ void __raw_readsl(const void __iomem *addr, void *data, int len) @@ -62,6 +64,7 @@ void __raw_readsl(const void __iomem *ad } +EXPORT_SYMBOL(__raw_readsl); void __raw_writesl(void __iomem *addr, const void *data, int len) { @@ -76,3 +79,4 @@ void __raw_writesl(void __iomem *addr, c } +EXPORT_SYMBOL(__raw_writesl);