Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2930875iog; Mon, 20 Jun 2022 07:43:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4knEmkDHLGN6zKJsq8e8t3RgWomw09hKdrp49QITWXm4sgAQquHofeV/JmN/c9ya8HohJ X-Received: by 2002:a17:902:e746:b0:164:1974:e46c with SMTP id p6-20020a170902e74600b001641974e46cmr24223759plf.139.1655736237758; Mon, 20 Jun 2022 07:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736237; cv=none; d=google.com; s=arc-20160816; b=H8oApyfvWgmYwnOgZb0aN3FnzF7/2UtyUuTxDk1B6EDN0tFLAlk0srRjveYBdHS++V IaDdZszDoLodvqAvoRWqfh3x2XVJ02TiLqQPdww7zUttNRdc2b9pWadEJgenK1LOSsL+ cTpp60IF0QsVvbWtwry7gpXPVsZSc8akXVH0mBywU4Lv47Of8s/h/IgtnRndshvhxT0u xoXhzEf8kFOpx0slWhIRtINXy9U71ya4k3LZlrVDCvaQM/NMP3Sb/MWsTtHL/1kWl7rQ /gRDliPKG635+6kIud9TiYQDPx5K8eNf2XoMu/GVLpRRbIN8FFw+2OvJ2CkwRafNyGKV Einw== 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=XgvbKTKMtFWnQo4fasmI3Ed2TLCVlVwf/daNUf6QoVM=; b=LUQc3ssYzuSsOpmlmkNT2W/f1LlRoa2g6NZfeK82zxGy/E/Rb1nj+GX6e83sw17OVU Ct0uGLHwz9C8fP5A8Y/Ry5nk72urq6dX9A1zZQRDY0EFWIZUMB+Y3GeR4eN7fe8pHU08 miEfGh/KzdAoXnlH24eZmuy6EF9JP9FNihyUnXLhOh4cA+94bLtO77ieKjfZb6N5P2sm /5fWOTuZ0qf+GJs/u3OggJLiRrFpAwW5AQoar+W4hZyEVE64CkAaLWn9zMwLsq4SxClj EXNjJdAVDU+RiGe321/gS7IfuSnAuTVJG+Y1e9C6+04ID5CTU6fLB1AC+M9zGwTbeMVI TwFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IJPMpN6T; 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 k22-20020a170902761600b00161a0786fc3si9854730pll.60.2022.06.20.07.43.44; Mon, 20 Jun 2022 07:43:57 -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=IJPMpN6T; 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 S245388AbiFTOHy (ORCPT + 99 others); Mon, 20 Jun 2022 10:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352818AbiFTN5H (ORCPT ); Mon, 20 Jun 2022 09:57:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78BE736B76; Mon, 20 Jun 2022 06:23:01 -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 8048360FAD; Mon, 20 Jun 2022 13:23:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 754DDC341C0; Mon, 20 Jun 2022 13:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655731380; bh=XaQf1WtlNVXvORkpGmBBusqXihg7/XyyCNcKtkHJsc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJPMpN6TvW5MuBdwtEJVACuX14OSQF4VNf7yVo0b2v1tVQArBaGO6X6Rm6op2ESb7 IT4z5T/8EGG654qwQIoe0Y9WhooE4Wt3ul4lBXujzO5vEfbwvLjh6xb3N+XdaJ8zTC O08yxPbYECeVLNpUWbypoUc/hgtrFqCyEFZej4pc= 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 5.4 238/240] RISC-V: fix barrier() use in Date: Mon, 20 Jun 2022 14:52:19 +0200 Message-Id: <20220620124745.846319559@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124737.799371052@linuxfoundation.org> References: <20220620124737.799371052@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 @@ -22,6 +22,8 @@ #ifndef __ASSEMBLY__ +#include + struct task_struct; struct pt_regs;