Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp384662pxt; Wed, 4 Aug 2021 13:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSy9ePuoQgY57r7oNdn8aT9M87f1Vj58A8m43JmUKSeFmXNqxkt78goMAinAqn6ASuIUqF X-Received: by 2002:a6b:7209:: with SMTP id n9mr344812ioc.67.1628110328739; Wed, 04 Aug 2021 13:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628110328; cv=none; d=google.com; s=arc-20160816; b=Tgk9gBiFeHSbZ9GoFEI1JTZdKjj9iQsnTAmjKWQwRT6bnuhcvlFm4NihV4y7akElbt 4a/pDkpHyVnEgN1VkbcCfor8IGXLUePXXAW5ODM3iPxCCijgF/R1KgSBF0NK31tzXM94 P71mJlbJ2F+6EwWjiAp+V7b9BHQNpPDRkm1ddi+GszuOKYyCZAqmI3Dk012aRsXVjker OQPCmBbjJkMImzNz9Oe3FgfTDJY/AI9L+FpS1ewntJyGlsT1Fic6db8zZsCJJUzVwN0x yXbAGBqSDieAGVEgPYxUFurSdTVV7Z3XAoilbAzVAaxn1C36hMkUpo7i5sC52pmx9Ngn TEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NZgcLOw4C4n9UCCOKVJDyYjS794vHuoBsMDwq/26r+Q=; b=Q1Kuaea9W6pYmyrowMIp/bpnQJcDMBKDiIwjmq22cNJWeo7bO7jQt6405YzbpI1Vfm HL4l45phEvuy+dYxDCgsfmDPIpD73gpwRR5ZX7+Jtvwwd//32hkjGI8mSSdYMSng1m2b JAVeSWQKAGWO+9UjFibKtjK3nzicCLjhv+A/lLCXx7FkiLMlnP6rG0IxtySdew1M7YvR wu0alaaq0RLFOcTUTwtRm8PtYmQ90G9+xfe+RYn2wHmKs+5mwTT6bMlpVjT3ggdH/itD m170x5NR9HVof+/JMlCrb/0yqTAb2+CzgQjvnMHq6s8Cr5c3QH2KPwlgJuuDk7vfKK0B IyLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WcuxIXe8; 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 h21si2687545ila.73.2021.08.04.13.51.56; Wed, 04 Aug 2021 13:52:08 -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=WcuxIXe8; 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 S240208AbhHDS00 (ORCPT + 99 others); Wed, 4 Aug 2021 14:26:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:53530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238954AbhHDS00 (ORCPT ); Wed, 4 Aug 2021 14:26:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F93960F01; Wed, 4 Aug 2021 18:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628101573; bh=eu6gWKfDmcUbAsKPH2f98nE1iXPAlJY+n+Fd2RCc0qI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WcuxIXe8HqZSlthoPccmW/9rpFkgs/smn4gNWXZW26NJYaeZ/aigatRBRlf/LUtka RpuZHE0bswz3UjBZRMFab4UWa9KNI0a7VoMkYyNrgLEinXNtBYci6sOxztURQ2ehry MLWOCa7AElc8q3u/QDt37KbUW3vq92aLDHRumCJYtVzmZqkbmUOQ7raMZhk26bPxTz lF/pRcJ7/FB64DJh1jxWEiPzRCMETZQAhnkifJjjHwv3ImnGQ7s7oMCcht/ypvFy6n 7ImOn78NTrRSX2k4XZ44khSD2ua79Sj4ImLj9y+R7+dVF6uKSHy5zwwVHNpLPucZvz TR5sxoqUoGEig== Date: Wed, 4 Aug 2021 11:26:10 -0700 From: Nathan Chancellor To: Andrew Morton Cc: Nick Desaulniers , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Brian Cain Subject: Re: [PATCH] Hexagon: Export raw I/O routines for modules Message-ID: References: <20210708233849.3140194-1-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708233849.3140194-1-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew, could you pick this up? Brian gave his ack and we just got a 0day report about this: https://lore.kernel.org/r/202108041936.52T4sUU6-lkp@intel.com/ If you need me to resend this, I can. Cheers, Nathan On Thu, Jul 08, 2021 at 04:38:50PM -0700, Nathan Chancellor wrote: > 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