Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3025371rwb; Mon, 15 Aug 2022 16:23:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR42fmb0aDdgesnOw1drvYcFSXijxqeD3T0sKYCkB/sMVZHjIMOY90kmXoj+3AcBF9aEFeFG X-Received: by 2002:a17:903:1c7:b0:171:3ba4:9bb8 with SMTP id e7-20020a17090301c700b001713ba49bb8mr19104510plh.105.1660605802781; Mon, 15 Aug 2022 16:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605802; cv=none; d=google.com; s=arc-20160816; b=gxGDAD3kj0Zqc1I0k6DDdB+KxcZv5ceEm4H8e4lRiHGH5n9ePRof0PYR8gQs2sqB85 oQd30IXOzIOzcV6JhosfbwO9lX9k2Wlisat5YU9S4klqhkP1QGha60RI9j0poUrUPGGr PZJXTX+04lWeEoQK7VJDq2FVxNCVvTKeQ1k1miCOWRvQo8Vpcyr+uRwmfd31N92HgfyI 14+1/cEXQkMePGyVOMzyL9G6OGcCAbfO4dgmJ1r5P2wCZ0C4yAEEeSk9niVDCB/Idsxy P7yvc+G7UJVcKb/40OEqO1esEKuW4kABA6w3QL2E2TadMevUPYnIwoF+hXjBUnWS+Dro ToZg== 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=zYaxDoC8KOz5+JmQPKx3IBZ4ktIxIiIovPSjJFI9f4E=; b=RKSgtENWd4pIqOYD66dOT7uiJ4u79D6OHN12CcvOH7Oq471wf9XE+lpn8e0kv5Js5o KFYdGOOogvoXvJW3q/bAXDDBSGrmg/G8eXskv7Pjty/68xkOU92QWYLO+Yg3gYr6fFZu TqgPMzFXPr0Und4i44i8WLHEAySqgYvqHtvA6MJ/rMqRe1CvG2gBBBqJiaoYXjoX8Ktm l+pF1iNDLnGV9m9etFqVEzQ4neClt5B/qiiJOnjyZRXgWy5gb9hHwljIrEVhT2fUK/Ff QjmrwD+m/jT/HJWg0fMrs/AtIss62+0x2JwOw8OfSF84fomEENrdnKRtWOBWbqT3vST+ uZ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=euS0r8B2; 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 t37-20020a056a0013a500b0052d45b66299si11410087pfg.312.2022.08.15.16.23.11; Mon, 15 Aug 2022 16:23: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=euS0r8B2; 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 S1347247AbiHOWHa (ORCPT + 99 others); Mon, 15 Aug 2022 18:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350418AbiHOWCG (ORCPT ); Mon, 15 Aug 2022 18:02:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D1BE27CCA; Mon, 15 Aug 2022 12:36:36 -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 F207EB80EA8; Mon, 15 Aug 2022 19:36:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39BC6C433C1; Mon, 15 Aug 2022 19:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592193; bh=BquEyuFVINTO9pj6c/C0lL1koQzpgtW1m20hzVLlITU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=euS0r8B2uZfnkCb2hU4L9YbPD3htWGDoiEKJAxEUBJR3LIKrkgxvkbQOOVrXEuNZV S1mOBahi6vvC9k271699F/YB48j6DpafA3QCjFQ9EP2bRq8xXPAw4AgGLH9+mXS6rW tCCnWQdoU1ib8LshGNCkNkf9rz/8Fe0oE4JroKXM= 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 0072/1157] RISC-V: Declare cpu_ops_spinwait in Date: Mon, 15 Aug 2022 19:50:28 +0200 Message-Id: <20220815180442.405075717@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 da6d2128e56a50a0d497c8e41ca1d33d88bcc0aa upstream. The cpu_ops_spinwait is used in a couple of places in arch/riscv and is causing a sparse warning due to no declaration. Add this to with the others to fix the following: arch/riscv/kernel/cpu_ops_spinwait.c:16:29: warning: symbol 'cpu_ops_spinwait' was not declared. Should it be static? Signed-off-by: Ben Dooks Link: https://lore.kernel.org/r/20220714071811.187491-1-ben.dooks@sifive.com [Palmer: Drop the extern from cpu_ops.c] Fixes: 2ffc48fc7071 ("RISC-V: Move spinwait booting method to its own config") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/include/asm/cpu_ops.h | 1 + arch/riscv/kernel/cpu_ops.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) --- a/arch/riscv/include/asm/cpu_ops.h +++ b/arch/riscv/include/asm/cpu_ops.h @@ -38,6 +38,7 @@ struct cpu_operations { #endif }; +extern const struct cpu_operations cpu_ops_spinwait; extern const struct cpu_operations *cpu_ops[NR_CPUS]; void __init cpu_set_ops(int cpu); --- a/arch/riscv/kernel/cpu_ops.c +++ b/arch/riscv/kernel/cpu_ops.c @@ -15,9 +15,7 @@ const struct cpu_operations *cpu_ops[NR_CPUS] __ro_after_init; extern const struct cpu_operations cpu_ops_sbi; -#ifdef CONFIG_RISCV_BOOT_SPINWAIT -extern const struct cpu_operations cpu_ops_spinwait; -#else +#ifndef CONFIG_RISCV_BOOT_SPINWAIT const struct cpu_operations cpu_ops_spinwait = { .name = "", .cpu_prepare = NULL,