Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1278204rwa; Sun, 21 Aug 2022 05:12:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR48NL1cn8NngOxWs2AEnq9OPIh77DF8k2ckOLqu3NhpcGfTILW0R6JfNi0Db8/nb5BEQW7A X-Received: by 2002:a17:907:2e19:b0:730:acf0:4924 with SMTP id ig25-20020a1709072e1900b00730acf04924mr9663229ejc.629.1661083959826; Sun, 21 Aug 2022 05:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661083959; cv=none; d=google.com; s=arc-20160816; b=s06VHoX3BvQbUa0FsaZc0XPhiEihhwnwShhiceP5+K5UcNmiKRGhb9VGBSc9up9o+Z MWg6V+aLHBTcSyamfUzfyUNFPjMG2XXsVGGFdS5lVYFTuaXvIznwY+L47rEtuB4ZgKtP zhO4nCsJy0YoIfq0bFw2W9jyNAReyVO47wPuzV/SXWi/cxz4BgT563f9O8qauAp+t+Ie 8BP7fNJWckKXP8+h4sVgX62wT0bORGBOe/e0guYaq7pFjqal3Q43ZlD6F/ySYEPyz7Js YCU0m6jzUQfsPLkw9iUng71czwPn7EGeT5TkOBgflGAbSuce2chzJJXALQFxymdbVyET ag0Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UGvwPzXngv88+qXXF2O4AJ0Z86Zyohdzp8L49ZwcrUI=; b=scsoOhZSeDD3LkmCHmAQeLF9vtQMoNbG5U4eNSKxMwHpU9++Ll21GqKT21GV4snXye zWJkOEGDGvx1ePON41G4MPJfDCQ3Y6u7HLE0H3Y/9K9Yb9nhKTe2d6jwPcRBQ46Nv3LI qVOjZadaKTbuqnXXU3ktBuPe3pThJpLRh1AeTErtcV514EA74HLg23MV/x7EcGAlnGh1 XWG8b0d6f/WWTC7JAscPMqvQMSys6uzTMepNn8cpRV31brfSxu2bTL9xaBjvSIjIQtsH jcLR8Y8shLl5Tud269/yyAAfro9U2AbjE3Hc0DWquS2lyEwljtJT4fng6MEJougGBOxX YRAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=RFEWL69Q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d5cb000000b0043e1d52fd9fsi6497811eds.594.2022.08.21.05.12.14; Sun, 21 Aug 2022 05:12:39 -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=@conchuod.ie header.s=google header.b=RFEWL69Q; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbiHULgc (ORCPT + 99 others); Sun, 21 Aug 2022 07:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbiHULgW (ORCPT ); Sun, 21 Aug 2022 07:36:22 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8165E2656C for ; Sun, 21 Aug 2022 04:36:20 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id u5so2244108wrt.11 for ; Sun, 21 Aug 2022 04:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=UGvwPzXngv88+qXXF2O4AJ0Z86Zyohdzp8L49ZwcrUI=; b=RFEWL69QfCRQQBK2lSa24K7nmexDHde5oOE9gK1KPgEWu/3N9BF1FKy/yant22fc7r SovDED+cd6fyc8s48RsE9t5Hb3/EgfWZ8sE3O0GnkOdMg4SdBVoDYmAToK0UlC8wMjST Dy83emsgcvHF06ICzpd5w01aqlAlScw3qmuXagdS4mHF7olMtod+7IqWIhUdkXJ+916y U1Es8YS/+TK13ci36gErubIgfOBWFCDMDaoX4eO6VW8NZFXjHEZ/W3FjivuixLu0wK4X zDWTdTcgDyHjq82/Wl3ihmDAM4A9lKTGfM1UAU6X5jcP18LNvlgBNWHiNIjIB1igLJZQ vXWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=UGvwPzXngv88+qXXF2O4AJ0Z86Zyohdzp8L49ZwcrUI=; b=5LOOp/1IdV3k5/TYB8BbgpRAO3Wzm7kDNdHN1IXnpP5I9BJHsDuXId1QC/RrlEwyWb crKjc5wDgi9436FYf+zCmLa4NEwrat58g0rnUuU60c4TS/+MsXC4y5c24liadOk+iGPV hSRa8QqzqveyH2JnJSuLpl3pLAJRDpmZmzXJVUbcYYnJuWfeEjuiEvEK3p4rn+6orCC1 P6oqP6nGOKu8d7dOE8XTj3b9e5XVPWW0ijFbCKXjnZYTWyih9ehM04Tg0AwkyfKtwPK+ XQkxJ2MjuKSYtXUzciZo2MAzD/Yx7zA1rPIeG2c1Tu8FywhVhS78Vm5mFzlFD/Vmj99q NhlA== X-Gm-Message-State: ACgBeo0UIYKPPVjPJOMSREp/esFeJC4Rib4qqFk0JNpxfgPZzm4ptkba 04+Ot1DGF0zvNksnWy3rvyXW7Q== X-Received: by 2002:a5d:6841:0:b0:225:3558:972d with SMTP id o1-20020a5d6841000000b002253558972dmr6441695wrw.461.1661081778602; Sun, 21 Aug 2022 04:36:18 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:18 -0700 (PDT) From: Conor Dooley To: Michal Simek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann Cc: Geert Uytterhoeven , Conor Dooley , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 1/6] asm-generic: add a cpuinfo_ops definition in shared code Date: Sun, 21 Aug 2022 12:35:08 +0100 Message-Id: <20220821113512.2056409-2-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220821113512.2056409-1-mail@conchuod.ie> References: <20220821113512.2056409-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Conor Dooley On RISC-V sparse complains that: arch/riscv/kernel/cpu.c:204:29: warning: symbol 'cpuinfo_op' was not declared. Should it be static? Sure, it could be dumped into asm/processor.h like other archs have done, but putting it in an asm-generic header seems to be a saner strategy. Fixes: 76d2a0493a17 ("RISC-V: Init and Halt Code") Signed-off-by: Conor Dooley --- arch/riscv/include/asm/processor.h | 1 + include/asm-generic/processor.h | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 include/asm-generic/processor.h diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index 19eedd4af4cd..dd2c9a382192 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -9,6 +9,7 @@ #include #include +#include #include diff --git a/include/asm-generic/processor.h b/include/asm-generic/processor.h new file mode 100644 index 000000000000..2ec9af562e9b --- /dev/null +++ b/include/asm-generic/processor.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_PROCESSOR_H +#define __ASM_PROCESSOR_H + +extern const struct seq_operations cpuinfo_op; + +#endif /* __ASM_PROCESSOR_H */ -- 2.37.1