Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp119186pxv; Thu, 8 Jul 2021 16:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuMffWMe1a85zsXowP2lTkCrn0l3s7LcAQwdKTrFaDcT7XEfdOnqFWCl7Cg5B/wa0cfEBI X-Received: by 2002:a92:c7a6:: with SMTP id f6mr9251112ilk.20.1625787693641; Thu, 08 Jul 2021 16:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625787693; cv=none; d=google.com; s=arc-20160816; b=vIuxLqaErt+/7gofqJxiXUBH6LbOS6m03e2GQz4uZV6xG4a+nrnbOdVJ8TL7vu9te+ zT5+kyotzqLzw1sTNMLE5SYXl4fQbU2YwZ75X0H7pZPxdLT+/qMtXbQZhrF2dNH6LhkH xB2TpjYAFeP/UlcSc2X21nYl7WybsdYmROHNTsmjQ0Fq+FWTPNhTdM0P0TpaN7H+Wl2I zDw2ZavGtWACbBMd41Iqq/ANqgOsfK+XENi0jClBK1n+df610dyA+MlwfFrSNmIJcrGC AP89VdD3LcCJlFgk0unNa9hkCcL7vJD/2QSqpXwXUh+WxrRNP/W93Bx9v7iaXvtu/8Y4 2WeA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UMDziYGTDLHuvtoocSRasj+CIBK4JS2WyWX0AKRdHHc=; b=YoVugrAdTYuRY/hAL5aHZb0tSjFo7Ecm+joZwdZxBkHZ6JcFsfRZLd2RSSiMvK08Qq NFrddjWKgAxkgUxU7H1oFmXDGcoXnHP/mxmn52fUexoDz1Z5qeGhd2irsbDlObfkwpSJ t4Y1wddw/+bEelxxaO1d3kh4rpYuXPy0lohFO7xkPL3oQAC4zWL3Nvly41W6kiN3wLpl phmO5lCjT+Hs5S/Ra7HG5iv6XQiUmduUpLginXbffqYxzbofjyZUkZQ55ZtIeyWSaFET mQCAYW680OwKRfSY4LGfsaJowC+l2xX0yvFDbva+MwiZIrx1iR3+zKzU4Gln3PpjwH1S ACIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXpCmUHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si4130364jap.105.2021.07.08.16.41.21; Thu, 08 Jul 2021 16:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXpCmUHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbhGHXmf (ORCPT + 99 others); Thu, 8 Jul 2021 19:42:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:55902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhGHXmf (ORCPT ); Thu, 8 Jul 2021 19:42:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BB7D61409; Thu, 8 Jul 2021 23:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625787592; bh=kfQyKRysnqk2rwMhGbwxmhAhfrh6e/bHBlkPvbh8xX4=; h=From:To:Cc:Subject:Date:From; b=lXpCmUHcL3GCOKWWsZ4Svs6avH76vsfB03TkOw1vTUFKjontO124Snt0vckmqQjcs xjbip2YWWHxMODSWKSW5eaeAsRi4HToYsdZb95JNmHrnY0ZPDb2/4XDG8vdjViXjOG 2FGN5UxPbSZE/UcnaLCCe0Ve0ZpXrdkQyaNVvvPlWcoIFSAfQrJu9WtDV7HMYpnuIb I4zFaMHlRi59Uvn2SHhj8khwUnfi7NkudrU6D5roXj5LM9alMnH2xDoRI3D2SQRfUJ oswtYDfgD4svfdARUgfnVuIumG2F+1ub8Kygt5DV9JJTfGjQtPs6elbk3WHEsYdTRO s6mzNkRPsAhyw== From: Nathan Chancellor To: Brian Cain , Andrew Morton Cc: Nick Desaulniers , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] Hexagon: Export raw I/O routines for modules Date: Thu, 8 Jul 2021 16:38:50 -0700 Message-Id: <20210708233849.3140194-1-nathan@kernel.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Fixes: 013bf24c3829 ("Hexagon: Provide basic implementation and/or stubs for I/O routines.") Signed-off-by: Nathan Chancellor --- It would be nice if this could get into 5.14 at some point so that we can build ARCH=hexagon allmodconfig in our CI. arch/hexagon/lib/io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/hexagon/lib/io.c b/arch/hexagon/lib/io.c index d35d69d6588c..55f75392857b 100644 --- a/arch/hexagon/lib/io.c +++ b/arch/hexagon/lib/io.c @@ -27,6 +27,7 @@ void __raw_readsw(const void __iomem *addr, void *data, int len) *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, const void *data, int len) } +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 *addr, void *data, int len) } +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, const void *data, int len) } +EXPORT_SYMBOL(__raw_writesl); base-commit: f55966571d5eb2876a11e48e798b4592fa1ffbb7 -- 2.32.0.93.g670b81a890