Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3021621rwb; Mon, 15 Aug 2022 16:18:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7tzHYUC5keX8l9b2I0ZYnb56RWDINaKKKw8yR+NlVCZaTOkGP6JiaUakblmUgsPAFCxS84 X-Received: by 2002:a17:90b:30d4:b0:1f3:bfa:4c88 with SMTP id hi20-20020a17090b30d400b001f30bfa4c88mr20786584pjb.53.1660605538252; Mon, 15 Aug 2022 16:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605538; cv=none; d=google.com; s=arc-20160816; b=Ew6bDeibLq8Rkk/9qmTi19ogUFBaadIi/y0nSxxnvtfXskBlBzUr2Ai8EKl2KZl7fR zdzfi2XfoiM5cR2XwndBvVmBnxEDVHOqVC6k/Umr4y3atJDPyZ2tWFR/2qzM07VF0Q4L ERmANMslNBWWxIjtTy/Y4ocJRDxdlj9CBOluwutfT+e7yl99OXJHTyc6cjOXjxDBv3Lk O7rSlY+FCKy4gLD44tg95X3aAStvrgexzeRxYV2SRuxQVrmzgaqoWteJ/XEVYKkXJxJK S1Qyg6SQbXRQy9jzcYyAii33riuJww5f1pKDRAUrgnNVeKeaq790W12SGNboSJYHb2BO sZsg== 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=cb0cF02IjjWC3g9xJIIvCBWTF6TV6u7g/N7nBH+GDKLnFuQJy1VO9T7rD29eA6zIYv OAYLnGMfqr6UwVw3OsVJYdX3SJhAXlirLlKYRYdpuwaxMKWYi3MBPqKSO25hrAz5JPIU 0XHnAUWYoUPUDwhgbpd40KiY+2BqWd8YNvaaJQsWzutn6FmSs1Ji6t9bJGZ+a99pznWu qWifMfYpj0TYG1PrHKz4qsedSq3xCoz838pbk8XrOGvsXP2VIWBjpocGY0uRL4PyceQV CeSEujuCKT/atThFJcJ98MXPyXPh+QFoEUjLxHs93eqf0IoYr9u6YRJctVFrrNO44l74 u3kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="o/6j2ZfM"; 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 il16-20020a17090b165000b001f4c9f920f6si18689471pjb.157.2022.08.15.16.18.47; Mon, 15 Aug 2022 16:18:58 -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="o/6j2ZfM"; 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 S1343864AbiHOWGs (ORCPT + 99 others); Mon, 15 Aug 2022 18:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350391AbiHOWCE (ORCPT ); Mon, 15 Aug 2022 18:02:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B70211EACE; Mon, 15 Aug 2022 12:36:26 -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 22B1FB80EAB; Mon, 15 Aug 2022 19:36:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6481DC433C1; Mon, 15 Aug 2022 19:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592183; bh=AG+Uiec8voQAxe4xbm6dYZ5iaa1ZLFeWAYPNJDAg5og=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o/6j2ZfME7lG4oTi3d4kIqDYysxhZ36+NDFj/SFAIqSdKNFQg9r68HBoh2pzPLpZI rTAgHzmMYAMNVWh3Xw0/A6SEqeNhepW+UGJlrt07MdUo4KcKjpWdt7kWvxdgy/3KgM fFRGtTHgVOVJ2cOkAKrg3IOaSfo0KvYRqzsRVFQw= 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.19 0071/1157] RISC-V: cpu_ops_spinwait.c should include head.h Date: Mon, 15 Aug 2022 19:50:27 +0200 Message-Id: <20220815180442.354897045@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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");