Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2890135rwb; Mon, 15 Aug 2022 13:24:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR74SStBm9Bn5EJS5vVwwe2xKj/tHbl4aKLUIGIUjLZ1UnpQsrmtdofYjT7wHLxORPuLu/0q X-Received: by 2002:a65:6a55:0:b0:41b:7a0b:672c with SMTP id o21-20020a656a55000000b0041b7a0b672cmr15417475pgu.594.1660595054626; Mon, 15 Aug 2022 13:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660595054; cv=none; d=google.com; s=arc-20160816; b=sGqXK+cJBRzB3c2+VsHvesEXB6lO52cKbHaD6d0vZygKD4q4uJo69r/BxZYldIFBXj ymQ2+NMMlM61wUs20tUS3G6Q6u1Srxr9FoVOeWy/6PBysC8W2xmHaOH7/vOuqeyhOjvt rzUMLuLcqKJtJ9arOjgOiibULoyW5vho2RBohgvyqAc2mXpyNYLZmaS7pCQkkuZz756C jUJwkNxy39GRDw4nSGljK4CV1nQwZW2qWbrJZa/hBHyt9eattFRIA559WvpLQNAZcj7c 28j5Zxf63ErT4ahPzi1ZWNJ+p5O/NfapNg8bIsfCFdvw5tFeiGzZgihMqAbrz2O5cAeA 05DQ== 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=X/YYjm89L0ic1+12t24GyRfMsmtgQVv+EhXEmzkx0BQ=; b=Qo+TwPtJUqmwC+khCqQrI4hN9L9cgOxyIPiio0gjWkbK5m1HYwTR7igly4sCUj1xIJ d64Rqm8PVaSG1+X5lBz1EYeZZHzWKODQiY1Huvqx8wrrI+VT6mGc1b0qVt+m4DEoS39l a1CaHc/aHjtyh7PiUAJWLsTWvApUhlrqR+UKUnQ7/DIyaLA/xLUkQRYic76r4oYKzh9J fAzUZEHKaB1noxBM2L2Kf/DrIkBkwSu9Dww1J3NA2RCCrfjVSt6xVS/J4FFBbhMr2zpE YevjPh86YxfXdk96tdyp3sBPAneMTT7CGITdyBLWWLwGB8jX6O3YP961hBJ8jEiUipNi dD3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PuCNnrSi; 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 j7-20020a17090276c700b0017086b1c40dsi10692009plt.400.2022.08.15.13.24.02; Mon, 15 Aug 2022 13:24:14 -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=PuCNnrSi; 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 S240590AbiHOUTF (ORCPT + 99 others); Mon, 15 Aug 2022 16:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346983AbiHOUMn (ORCPT ); Mon, 15 Aug 2022 16:12:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7553B89914; Mon, 15 Aug 2022 11:58:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9F112B8109E; Mon, 15 Aug 2022 18:58:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B4EAC433D7; Mon, 15 Aug 2022 18:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589920; bh=AG+Uiec8voQAxe4xbm6dYZ5iaa1ZLFeWAYPNJDAg5og=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PuCNnrSiZPSVQpD9Ssf528fKP+CTepLhKvVFMcpbUMBlSVDcXdLCFgzGUUtroaSP2 q0a2DnOt/QBwcltrt41+jID0tjFhNtZn4x4bbRbV80ZJVmhamDPHK+eXghOXLF4ebq KU8nnPo8PBW2TsdS3lyMZLlyuBujq7lk5/XqjOVM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Dooks , Palmer Dabbelt Subject: [PATCH 5.18 0064/1095] RISC-V: cpu_ops_spinwait.c should include head.h Date: Mon, 15 Aug 2022 19:51:03 +0200 Message-Id: <20220815180432.143299948@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: Ben Dooks commit e4aa991c05aedc3ead92d1352af86db74090dc3c upstream. Running sparse shows cpu_ops_spinwait.c is missing two definitions found in head.h, so include it to stop the following warnings: arch/riscv/kernel/cpu_ops_spinwait.c:15:6: warning: symbol '__cpu_spinwait_stack_pointer' was not declared. Should it be static? arch/riscv/kernel/cpu_ops_spinwait.c:16:6: warning: symbol '__cpu_spinwait_task_pointer' was not declared. Should it be static? Signed-off-by: Ben Dooks Link: https://lore.kernel.org/r/20220713215306.94675-1-ben.dooks@sifive.com Fixes: c78f94f35cf6 ("RISC-V: Use __cpu_up_stack/task_pointer only for spinwait method") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/kernel/cpu_ops_spinwait.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/riscv/kernel/cpu_ops_spinwait.c +++ b/arch/riscv/kernel/cpu_ops_spinwait.c @@ -11,6 +11,8 @@ #include #include +#include "head.h" + const struct cpu_operations cpu_ops_spinwait; void *__cpu_spinwait_stack_pointer[NR_CPUS] __section(".data"); void *__cpu_spinwait_task_pointer[NR_CPUS] __section(".data");