Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4301910pxu; Tue, 1 Dec 2020 01:18:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4HmRpsLlslJ2MaQ+sJHu/PPG8QwBIJ+XVM4+tW0sYnw323uZ49RNWsyxwwWY2efFRF+ap X-Received: by 2002:a17:906:70d7:: with SMTP id g23mr2046740ejk.443.1606814296811; Tue, 01 Dec 2020 01:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606814296; cv=none; d=google.com; s=arc-20160816; b=BDsprC5f7roWczb4qh1USCQQbPonpfMfN8m+gqOtOqrNIwGAdnM+vm89kaqqtyxSFi Oh/tJYD18gdaLFqvlY30LO6Qe8HZVjm91lt20fT2XZAHh1gHScYMhafrtUU8u/QdNJF3 +ix7gcjVtRne7vxMyHxDa8t4o7/sd/thzAWOklZgrCK58+ggJF8VscS3RVyBCsct4ypt OaZ1vgG26CAZGIDTztToOJdZp+hVj2wV1x28PDOiK3U4m8av/x/Jxva0+xTzLpsfrNJO wonPS85CyTd5Xh5/LKtwyJsb9TD0rLufXaUVeK9WaY+bgg14kHwpJYur4+H+fChoy4Pm h2Xg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dz2J7rMWQ/C+hFSJtOztncJNIGTWZ3u+aBbYpMF/Lh0=; b=J+IRo7I70oghkIUkSm4hkwJMq/5uS24M5zPk7hPS+Uvp4fc3+MdKfYFo+UqhnQ6ZoK 7s5VG6/HBzKgaQy9x1mpZhVpod/Cf6xcBenEQw1SluCqrVe8A66iZ7ff7nYhjeHjxn9B 3b0mWsLc4YdzdE4E3Jyq2uzWS4F0P/uY3A4DQyQzo+Ywwp3/osFdp8DBZddOBPJJ7DVB cP14hvx62qXXhyORCx61swRj3bJJDZGinn/zO1P1EU3MTCW9c/dAUv3c61TD1yFCbmGI s+QT4IxQtMXCz1J8cWjIOfpUoecD+BozazV9PwVKv0htFe8toqgza1QBbPP/SeXKY5Md vyqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zk2b4VEa; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id se3si521532ejb.527.2020.12.01.01.17.50; Tue, 01 Dec 2020 01:18:16 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=zk2b4VEa; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390156AbgLAJNq (ORCPT + 99 others); Tue, 1 Dec 2020 04:13:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:52082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390150AbgLAJNo (ORCPT ); Tue, 1 Dec 2020 04:13:44 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C026E20656; Tue, 1 Dec 2020 09:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813978; bh=1y1EnHCggBSrN+kP9QH7fU+iKszKeC/wn4B5PpRxN58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zk2b4VEa6nuB8IhvoxCaAlfds/HFYMMKPN15vP9ubnlNeVTaABI6JjyABDF+HK5Qk FyJYhdR7LUjS8cB0pLwraFXnEZJaGMthfjhc07D11Hq5hsB+KCW2pSX3vq02eMEGDw PbO3QBCH2Uilq/24UzV/S0m3fau11nZeTQExsiJI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andreas Schwab , Randy Dunlap , Arvind Sankar , Palmer Dabbelt , Nick Desaulniers , Sasha Levin Subject: [PATCH 5.9 125/152] RISC-V: fix barrier() use in Date: Tue, 1 Dec 2020 09:54:00 +0100 Message-Id: <20201201084728.182880570@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 30aca1bacb398dec6c1ed5eeca33f355bd7b6203 ] riscv's uses barrier() so it should include Fixes this build error: CC [M] drivers/net/ethernet/emulex/benet/be_main.o In file included from ./include/vdso/processor.h:10, from ./arch/riscv/include/asm/processor.h:11, from ./include/linux/prefetch.h:15, from drivers/net/ethernet/emulex/benet/be_main.c:14: ./arch/riscv/include/asm/vdso/processor.h: In function 'cpu_relax': ./arch/riscv/include/asm/vdso/processor.h:14:2: error: implicit declaration of function 'barrier' [-Werror=implicit-function-declaration] 14 | barrier(); This happens with a total of 5 networking drivers -- they all use . rv64 allmodconfig now builds cleanly after this patch. Fixes fallout from: 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") Fixes: ad5d1122b82f ("riscv: use vDSO common flow to reduce the latency of the time-related functions") Reported-by: Andreas Schwab Signed-off-by: Randy Dunlap Acked-by: Arvind Sankar Signed-off-by: Palmer Dabbelt Reviewed-by: Nick Desaulniers Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/include/asm/vdso/processor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/vdso/processor.h b/arch/riscv/include/asm/vdso/processor.h index 82a5693b18614..134388cbaaa1d 100644 --- a/arch/riscv/include/asm/vdso/processor.h +++ b/arch/riscv/include/asm/vdso/processor.h @@ -4,6 +4,8 @@ #ifndef __ASSEMBLY__ +#include + static inline void cpu_relax(void) { #ifdef __riscv_muldiv -- 2.27.0