Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4447270pxb; Tue, 2 Nov 2021 09:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9S2x2D/cm6sQAOUef/Uj8ikT1jSWwlgMEy0lWu3Pp6qtQPkKHO9sAIs+HFnBLXlJ0BjIb X-Received: by 2002:a05:6e02:20ca:: with SMTP id 10mr9963466ilq.310.1635871935121; Tue, 02 Nov 2021 09:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871935; cv=none; d=google.com; s=arc-20160816; b=AgqDKvRedZooJW1xqq2B8ENa+4RH157XhYHMw3RpuwHxcW/EGu6+/uo/8wnCtpoB7D 1AFKE1pLcXiqrbkJg5lIkeyXFeVsmPti0TSN0mtcMQB4DiP/jAYsqQR2eo9Zhle3mAiX mbfLfFRCjNRkZLcXEYFw/Q4OcIrUQU6hI8HE+E78d4cPW1WKlYHHApsuwB4Tc4I58xy7 UrOmUynTPEA6scv5HX6ecrHEyt0pB2H+tCqd29C+t8sjAuPCg6VJSjs26jWAQUmibUTM baoHdNL8RxaA0ikbcyXA9LZVjSys20vHKDbsWvkkxJ6gu0HoGHU5m1CQRB1AX9uPlJWq G1GQ== 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=ITy7yEmR4PpmRrRr5yEmfT2Gf2Tt3UJGxuVwX8f6G7A=; b=EY0KzA2bzcIWXshpT01Zn1WS165iowzZU0UpSZVOm+NnBh0o4q4/0YvwIOkb9iE6af SgSiubJU6Han2qbsXZo9lO4X5PZ16v/I5RNVbviY7vJVQ0JolgExHReDcNQNV/64MpSU UH9PS+UufagosTQvgljcNCJgS6PrNiUjCK3uUTdD57Ny3OyAAT55oflhDsvM93asE13X oShuOOVK5K+l7msWnXSfCMyuUda/jgTHt8xaM7z/k3uitQRDM8PlAtlzRqyKpIXumKLG BJncIFmTqGx6u4xWQkXFNwYAKEFNszVPxMKFx4cJ1+/nkcGXI+07O0lgYOWOS0YpHozw hhcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d4q1/o67"; 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 i16si24349389ila.84.2021.11.02.09.52.03; Tue, 02 Nov 2021 09:52:15 -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="d4q1/o67"; 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 S235002AbhKBQvS (ORCPT + 99 others); Tue, 2 Nov 2021 12:51:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:52432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234806AbhKBQvI (ORCPT ); Tue, 2 Nov 2021 12:51:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4CE796112D; Tue, 2 Nov 2021 16:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635871713; bh=7ILamZGe9w+I3NxSwD0YsX5zvTJuLuPf8sWfHLzgVXw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d4q1/o678ZngzUTXAkN205OWRP72Ndz9WH/ZNZdVqxRSNVl6zOdjkD9xewDnfjWH9 rAf9wIKqo4DuQoRO/AlOqrzaupc+jwSXduLWQvXbwnXefXdFPauzb3QFySrsQVfnhJ 7BkqTbzl2p92Xw0AAebJCl+LgPq9Et8W4no7aNDtd/FtrvjsXWIQJAhJPT0B354S2D +gX92juzprvtkU1Ik7wOcaamGCD9KwWdeGkHCb8WPgeM3tnSS5YITDGd+XyCNN8nC6 q3zJchHbwe1aZ0x0XkLOT0rXHPYRuCvAABBqwxPNnR3LlU2aLocqoK89cEfxLBvXDh A7bziBKyg4Fdw== Date: Tue, 2 Nov 2021 09:48:28 -0700 From: Nathan Chancellor To: Andreas Schwab Cc: linux-riscv@lists.infradead.org, Saleem Abdulrasool , linux-kernel@vger.kernel.org, Palmer Dabbelt , Nick Desaulniers , Bill Wendling , clang-built-linux@googlegroups.com Subject: Re: [PATCH] riscv: fix building external modules Message-ID: References: <20210804173214.1027994-1-abdulras@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 04:51:43PM +0100, Andreas Schwab wrote: > When building external modules, vdso_prepare should not be run. If the > kernel sources are read-only, it will fail. > > Fixes: fde9c59aebaf ("riscv: explicitly use symbol offsets for VDSO") > Signed-off-by: Andreas Schwab Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor > --- > arch/riscv/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 0eb4568fbd29..41f3a75fe2ec 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -108,11 +108,13 @@ PHONY += vdso_install > vdso_install: > $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ > > +ifeq ($(KBUILD_EXTMOD),) > ifeq ($(CONFIG_MMU),y) > prepare: vdso_prepare > vdso_prepare: prepare0 > $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso include/generated/vdso-offsets.h > endif > +endif > > ifneq ($(CONFIG_XIP_KERNEL),y) > ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN),yy) > -- > 2.33.1 > > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv >