Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1270365rwa; Sun, 21 Aug 2022 05:04:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BqO/VPAjfDIBgNwaFekWE8Dl+kwm8KnGNvHyBQqsDTwdFjLXZZgsKouHoWabaUnXnQXkc X-Received: by 2002:a17:906:5d08:b0:734:bf6a:6309 with SMTP id g8-20020a1709065d0800b00734bf6a6309mr9828727ejt.516.1661083494494; Sun, 21 Aug 2022 05:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661083494; cv=none; d=google.com; s=arc-20160816; b=I//ru+I43pFdew67q++a+v2bDVjhRZ5AsOBH1DgVPt/Mnp17NV8Pmh08e76M17Nc4o FjKyfyu12rRhqU44KUdS3oBq37YsVLb8fwOxP/nu3kZiNX+ZlOb/WyExr/UQxyTrPxP0 0mpfhbl0jrI7oQ2XGHPNIPAY91nhF2wXzqAvIM1xVRV3/QSWpzzLvsR7YVL6E+93vrSw NyaVmgi5QquIAGBYCSwKPm4SZnBt/AHyv4YBQSXVQ3sfgNV2gX54/dtL4CQzff67aaa5 Pl8aIEacTBc0EKLzTt6d0AkwDk1tYzGv1Kalj0ZnTk+X0RZbQcwIub9ImGM96lhJm+39 TLYQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tBERBJeFmsU2gk0DqsvVk7OhaA+vX7d504uAWoZh04w=; b=0yK2FIQEjTyeAQjdts+72q7x2bET6WsWNbDNbXyqHzr0LigDgSN+lrxV++CWIZiPze HCnqKhnFf4bZw2o1Y4mEwoee5hvezgrTWEe8iyjtj2Mtpxu8N+5M0YF63nZUCu8Im6yJ EyXSmaxO9Bf3azlclEjiuDbdzKowG1u2CLELwN4FBs9NZE8SVDR4arU5ohQfWiYJ3CPa CLbA3FxtJkP1wD3+YaWxk6OO2vfDDi9en+VUXtynEFaZEP4QMjsulzpNvdPzqZBaouAY 5u66wa85O/LEeaHcPz3Q2Mxk9+QlPCwo6CBdliis8PUKIQLKy5Xa/vqaK57RDFELm7XZ DHhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=IunUk0SK; 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 m2-20020aa7d342000000b00445e037c70fsi6772068edr.426.2022.08.21.05.04.29; Sun, 21 Aug 2022 05:04:54 -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=IunUk0SK; 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 S230184AbiHULgX (ORCPT + 99 others); Sun, 21 Aug 2022 07:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbiHULgU (ORCPT ); Sun, 21 Aug 2022 07:36:20 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB40626565 for ; Sun, 21 Aug 2022 04:36:18 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id k9so10091618wri.0 for ; Sun, 21 Aug 2022 04:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=tBERBJeFmsU2gk0DqsvVk7OhaA+vX7d504uAWoZh04w=; b=IunUk0SKEn1nH9A85B2rFGOdzLzvhKfM0gFlEIcPkoAPXo4AzUcYqEXCcOxLXWrj1z AbEUWDg+04+jy3Fu0QvCXD1xFMIRaMvfxUVnKnfrfmoXEdYXprWWC/XNOT0FPBo1vL6D k/3vEXLEjiDdQGt2zOykFohvkYMDkXZWpHoMkByk2xiRiRzlTuyOA4g+ASE0gOQttgih o1Sl/4dF/zhAUA2z1C2A8eUPNoNGVU/0tLRmMgf56tCheoPeqQpcK3dL+sDn3uY5JQx3 hmmiLwc2CcOeVdFoM49uCkFVV7nbhStM9cZTEJKNIzPUk1T632l/nVD040fstWJ8inVu e1bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=tBERBJeFmsU2gk0DqsvVk7OhaA+vX7d504uAWoZh04w=; b=bdzXQhAzyPoSNhUmOXDEKzJqbNuKszW9rZKtoU+XbRytTWKGmqxLDCC7Dtqdas3JHn eZU0glmD8LPv0heHa7KVf4JkEV2BLovf54OpSrUu68iKoOYDkkpnRhbLkXJOzZaD3q4I mkOKiNPCb58+MFoyxmz4d5x6viKqBMNKw3UJvVI0LNNXKjIb4jI7R8svEQ+QyT887kTE InaZwPRZiA5wv1UwnpW4xfrvrqSvcEBWDiIfxyqFGKoqSwTik9uX6IkIaL5ThhEgd9q7 PY6AtzpUU6/y/3C8/zSqg/g0Bd4hUh844p4v5hqEBK9gCBSBz58Fhb3dN/dheU6m/pF3 ZwwQ== X-Gm-Message-State: ACgBeo3mds3WxCE1SK7bUFtu9/OdW9Cv4YrDznO7vXBk6sMkgtvgG1pN o4GNYLivjjay38WUv+qv83zjHA== X-Received: by 2002:a5d:4882:0:b0:225:3148:9f85 with SMTP id g2-20020a5d4882000000b0022531489f85mr7667679wrq.224.1661081777100; Sun, 21 Aug 2022 04:36:17 -0700 (PDT) Received: from henark71.. ([51.37.149.245]) by smtp.gmail.com with ESMTPSA id m9-20020a7bce09000000b003a3442f1229sm14071361wmc.29.2022.08.21.04.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 04:36:16 -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 0/6] Add an asm-generic cpuinfo_op declaration Date: Sun, 21 Aug 2022 12:35:07 +0100 Message-Id: <20220821113512.2056409-1-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 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 RISC-V is missing a prototype for cpuinfo_op. Rather than adding yet another `extern const struct seq_operations cpuinfo_op;` to an arch specific header file, create an asm-generic variant and migrate the existing arch variants there too. Obv. there are other archs that use cpuinfo_op but don't declare it and surely also have the same warning? I went for the minimum change here, but would be perfectly happy to extend the change to all archs if this change is worthwhile. Or just make a header in arch/riscv, any of the three work for me! If this isn't the approach I should've gone for, any direction would be great :) I tried pushing this last weekend to get LKP to test it but I got neither a build success nor a build failure email from it, so I figured I may as well just send the patches.. I wasn't too sure if this could be a single patch, so I split it out into a patch fixing the issue on RISC-V & copy-paste patches for each arch that I moved. Thanks, Conor. Conor Dooley (6): asm-generic: add a cpuinfo_ops definition in shared code microblaze: use the asm-generic version of cpuinfo_op s390: use the asm-generic version of cpuinfo_op sh: use the asm-generic version of cpuinfo_op sparc: use the asm-generic version of cpuinfo_op x86: use the asm-generic version of cpuinfo_op arch/microblaze/include/asm/processor.h | 2 +- arch/riscv/include/asm/processor.h | 1 + arch/s390/include/asm/processor.h | 2 +- arch/sh/include/asm/processor.h | 2 +- arch/sparc/include/asm/cpudata.h | 3 +-- arch/x86/include/asm/processor.h | 2 +- include/asm-generic/processor.h | 7 +++++++ 7 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 include/asm-generic/processor.h -- 2.37.1