Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2199059rwa; Mon, 22 Aug 2022 04:05:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Y5nDX28pZ/kUrs3TuYni2JGFjIpJkKLb2w6qhD1VGlr6mlMl/FL8KTMIXvuh7UZSJYxsI X-Received: by 2002:a63:5f17:0:b0:427:8dbf:52b8 with SMTP id t23-20020a635f17000000b004278dbf52b8mr16116054pgb.64.1661166306131; Mon, 22 Aug 2022 04:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661166306; cv=none; d=google.com; s=arc-20160816; b=bGRfhNduR1lHUQ+/Y8PZoGT45I7ZxWDbXJbZ0L494n2QMRCNyuUMNq/7ekFybxl7vo o5L0fQ3mkGPSI2G2ze0eSVB6qrAuNqU7IMSZeyUOE+IWcvk/JDm1cr6VR8L+if4cgS5S /rfb3eAJM5DErMdE4aRfFt3WuooMSJAhEW+JtQtIXpzthK/c0EY+3CHIhBRyZ86d4ou4 +vc0j0id0Agx/gJvalqeSyYgXlzFeiuOEUsW7CblbMeO8sJHVKg+hCfzsA/ffXEPIeGm zdeSn2tv8NsLnnXEfCRZo0eBcwyS+Yce3izFTomdX3SLqLF1rVFJt2JpkTxU9fjGRFA3 WLbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1JBBO1Gon6h+53jLetxo2erRdLEP73QBoztcgKCnoH0=; b=I+kvDN9dAV97Xbvx71IkpVvxB/+dh8n5wvDcpRf+fqvrPeu6TDpZK9zrGgiMSu4mgn hdW30C6PSxubLE0dJdZDEhk9FrQMy+Wy6mRYNTtthy2JiJk8l9+1JDiffrvHKiZTAPqm zFgun3ctE7TQgJ846i3vVyrJEeV3Vz1GyCIz8F5HJDPCnqmQzVZUlADp3G75+nNPsXV2 MlssM/mxhacFiIgdAGzaalwOFhEKVNeG8Y+JpTw0VJepsv/ZQVIyRgPkdkyJqT6cGlc7 MuKctFETKG2Ml3w7fI4Jxfa23ke3I//26VY+PBnMZjVsoISNPY058X2VbgwYD5dUTkdr dFdA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 127-20020a630285000000b0042a5176fd2asi9411539pgc.747.2022.08.22.04.04.40; Mon, 22 Aug 2022 04:05:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233260AbiHVKq2 (ORCPT + 99 others); Mon, 22 Aug 2022 06:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233411AbiHVKqH (ORCPT ); Mon, 22 Aug 2022 06:46:07 -0400 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14B933121A; Mon, 22 Aug 2022 03:46:06 -0700 (PDT) Received: by mail-qk1-f176.google.com with SMTP id j6so7488738qkl.10; Mon, 22 Aug 2022 03:46:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=1JBBO1Gon6h+53jLetxo2erRdLEP73QBoztcgKCnoH0=; b=SHNNDQgGLFHMoprNZ8RBRgbrsVmPUDYGa/CquB35xtF/i+lxhssclR7cjFrzNWs7gq 1xxO4uG9f+wwwT65w92ktVAi4DOxSbUmAfpofkt+oGZC8NNRTE32XuOQaApLMI7EivGp ZELhtfEaasmSD1PLhjzc2HCz+SvJpEyAJ+YkwtQk2+IOqWYOa2vF0hm8izhBmd4hit+6 eYFOGUHAAk3eU2z29NBjjd81Bmje4f1HVhFN5fZg/xcUnz9D/ABANREEXp2boRyAeCMv lnypZ2cHjTlmURHkddCriTZhPye5qLyj0TWZF60vGNfGv5Gl7/NOqVyLLem2dpgfm7db oe3g== X-Gm-Message-State: ACgBeo219vGkbx+BZkBIl7uvPbsxz8sCpb1ZlwvZ0ezBCHoO7B5ePG1j i2XzR2wJDLn9w0hYDfb9Mqy4tkBbxOYaPg== X-Received: by 2002:a05:620a:408a:b0:6bb:58dc:1e66 with SMTP id f10-20020a05620a408a00b006bb58dc1e66mr12493251qko.707.1661165164918; Mon, 22 Aug 2022 03:46:04 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id v16-20020a05620a0f1000b006b97151d2b3sm10725387qkl.67.2022.08.22.03.46.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 03:46:04 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-33387bf0c4aso280418437b3.11; Mon, 22 Aug 2022 03:46:04 -0700 (PDT) X-Received: by 2002:a25:e004:0:b0:695:d8b6:57e7 with SMTP id x4-20020a25e004000000b00695d8b657e7mr510074ybg.380.1661165164007; Mon, 22 Aug 2022 03:46:04 -0700 (PDT) MIME-Version: 1.0 References: <20220821113512.2056409-1-mail@conchuod.ie> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 22 Aug 2022 12:45:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/6] Add an asm-generic cpuinfo_op declaration To: Conor Dooley Cc: Conor Dooley , 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 , "the arch/x86 maintainers" , "H. Peter Anvin" , Arnd Bergmann , Kees Cook , Peter Zijlstra , Linux Kernel Mailing List , linux-riscv , linux-s390 , Linux-sh list , sparclinux , Linux-Arch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Conor, On Mon, Aug 22, 2022 at 12:05 PM wrote: > On 22/08/2022 10:36, Geert Uytterhoeven wrote: > > On Sun, Aug 21, 2022 at 1:36 PM Conor Dooley wrote: > >> 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 > > > > I was a bit surprised not to find fs/proc/cpuinfo.c in the diffstat > > above. That file already has an external declaration for cpuinfo_op, > > and uses it rather unconditionally (that is, if CONFIG_PROC_FS=y) > > on all architectures. > > > > So I think you can just move that to include/linux/processor.h, include > > the latter everywhere, and drop all architecture-specific copies. > > This is the sort of thing I was really hoping to hear, so fine by > me.. When you say "everywhere", I assume you mean in every arch > and not just the ones listed here that already have it in an arch > specific header? Yes, above every user, to silence the sparse "foo was not declared. Should it be static?" warnings. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds