Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6132441iog; Thu, 23 Jun 2022 12:02:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHnOodk3aJ7zTXoFaKw4vFj7+sREH6GFCgV9F8mLsBuU5l+1NEM8VJyO6qPBSmTxcE08// X-Received: by 2002:a17:907:629a:b0:6d7:b33e:43f4 with SMTP id nd26-20020a170907629a00b006d7b33e43f4mr9801484ejc.149.1656010942945; Thu, 23 Jun 2022 12:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010942; cv=none; d=google.com; s=arc-20160816; b=Z8hqLE8kiymQ+K396yNlLle8XUFiPlj2xFuqq2ejEp1sBj/SZv5VkVhRlAgrlEAEPr +exqyIruc3RBRaOfZsin9j/NE19RdaIJD+YB+AAUKRJ1NeLKCZzbz5sVx4dObp4F+Dlw qAcCNQwNXR2EBGPB+2d4QEHNCWM0KuXdN9dJZ8YjxPkKfOJMe8khBuylBKVYuhv//M4O TbSHTm2B4yHMjv+HoqinamWI49md0YiZtF8QkkFfCdtQVtb1BrySFw2OQS3ggJBHLZsC +hfInj4EbzZRdYakxULQLDXOE+cJrpWHj/u69q+iyZs3JTpa9mLiDO4wP33UQlD7mS3I ATkQ== 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=0C0vwAPEIyIvMirWupTwdyBUi7w7VyLd5tUa+iUWB90=; b=QR7N5jPRyVk97X4mJernWCSFCjuWjkmfVuHXV/iUxklZSJOuVsSCeoAO1ZhKWEB1IB d7bGoXI/8Pog0sVct6BWD/EIpvy8Auxv7amveDiYFslN1FtfQreXTSg5f/xtOT/3w4AX IeABgSj0KeTMpSD0/Lpxn6r/xzpOOA+wcN5byOMtS46Iu9a8KLhlHEj7FUNytf41fFck zyPCs9pLuCP3SVbxmv/E5SQ2x8OLPq9yvYrcPtCC5gUgVVa+45ZrIf/naP/VuE4VMvAO a/jM7v39wlfNudFmNo/S+gGBRJq6ujsT5YzriX7T0LWPCkQ4r4AC5sakWmMge5MwUkWY ahDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=srG1d5Bh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec48-20020a0564020d7000b004358a8128d0si343750edb.296.2022.06.23.12.01.57; Thu, 23 Jun 2022 12:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=srG1d5Bh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237043AbiFWSUS (ORCPT + 99 others); Thu, 23 Jun 2022 14:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236879AbiFWSQ5 (ORCPT ); Thu, 23 Jun 2022 14:16:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C87B62BC0; Thu, 23 Jun 2022 10:23:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21B1E61EA7; Thu, 23 Jun 2022 17:23:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8DE3C3411B; Thu, 23 Jun 2022 17:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656005010; bh=/T/e1N9YLiwK9V5+3P5zlJujZu1xfXX+AeCN9RlNAmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=srG1d5Bhc5TObdNhfbdMCpv+SEjQNlVA1bYShN721jog4vFLV0/vAPjZlDiyGfL4X Nk1oX8pFVqqFRLeNxf9zgTjAhSds977Z9CRDVFHRXPsWUiy+vHcxHuIRqY7h4ZDnMR cNaodQOE6A+wkbym6Qddv7TOZguiFKFxYyUEz16I= 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 , Sudip Mukherjee Subject: [PATCH 4.19 223/234] RISC-V: fix barrier() use in Date: Thu, 23 Jun 2022 18:44:50 +0200 Message-Id: <20220623164349.360556198@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap commit 30aca1bacb398dec6c1ed5eeca33f355bd7b6203 upstream. 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 [sudip: change in old path] Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- arch/riscv/include/asm/processor.h | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -30,6 +30,8 @@ #ifndef __ASSEMBLY__ +#include + struct task_struct; struct pt_regs;