Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp461145rwe; Fri, 26 Aug 2022 08:08:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR5L5G020//zgBEArYqqkGi3nskyEz+NomG3f5DA6cMJ44mtw5RKGIp12qpjm6PgOgqRId9o X-Received: by 2002:a17:90b:4c8e:b0:1f7:2083:a91b with SMTP id my14-20020a17090b4c8e00b001f72083a91bmr4780458pjb.119.1661526495614; Fri, 26 Aug 2022 08:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661526495; cv=none; d=google.com; s=arc-20160816; b=lbslPBXTdY4yCP1Bj1imsU15RiVaQOOAabCOo7NUnHSFwnilxzux16nFvqx7tV+HSU 8Rs7hKwzAbZmw/rTN2cFQKVrgp1fqh/hx0bV5LAjY6Fa3z9i1NFXTtCZ3Ey76nD/MqcD BJBtfzYlRq3mltb/s+aFgOwzx3PXCnywNtofXyVrl7iqBk/7Kn++k7qGvsXheuDavObd 3IX3ZPWD12OCSf+Rrc8/Cuav9jSrrclzdOsK/0o+ygB1+2wpPtoi3JcspjGEM1wkVvQM Tt+HY9pcfql9YRQ5UXOYPtIEVVr/INxS48+kddsck9lmsXdgF1euUlCGT7SrffOldpov Ns9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=pzSEnzVb4PRuwPohD2SDHsa5KY0tRkBlHuhkY0oHs0w=; b=wNF7m/yqwMWC5MeTzspp0JjB9OB0yDArUX1xeGsqjbUnSYVOp14/6ANEO0+2QSv2ba QrnpVluFWm2PYTlfmR2mWeEAILE/Wi6KUnmdFfrftbWCbifpKnMgZuV5nK0Yl2wTWray d5PQOmsn3cXYaRtQ0ekWlvE8yQxp5UFlhU1Si/wK9t8/ZCARrxohII/b8CZ8PdA8xOq8 bBURw4QFswwMQWEZ+4kogeOF6FBTOhA2uva0KpWh7RVEtXTUoRObth/US9PKpEok3efu nybwH8jgghBO3IEjQRKvbSD3wHMpS+vGkDz4md9F3R2oV83OTS4QAtiLluSZCM6EFC3Y v1ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b="NCRe3O/x"; dkim=neutral (no key) header.i=@ravnborg.org; 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 l15-20020a170903244f00b00172ae4584easi1889395pls.495.2022.08.26.08.07.46; Fri, 26 Aug 2022 08:08:15 -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=@ravnborg.org header.s=rsa1 header.b="NCRe3O/x"; dkim=neutral (no key) header.i=@ravnborg.org; 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 S1344608AbiHZOra (ORCPT + 99 others); Fri, 26 Aug 2022 10:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240616AbiHZOrQ (ORCPT ); Fri, 26 Aug 2022 10:47:16 -0400 Received: from mailrelay2-1.pub.mailoutpod1-cph3.one.com (mailrelay2-1.pub.mailoutpod1-cph3.one.com [46.30.210.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031DFD8B1A for ; Fri, 26 Aug 2022 07:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=pzSEnzVb4PRuwPohD2SDHsa5KY0tRkBlHuhkY0oHs0w=; b=NCRe3O/xZCHJ8hDEpD57d6zrmZ/D/l0pxGva3S+GafoGTaEBI8V+8dRJcau2lXRHDYLk3R1tpxP1j 3KhToFhOZVyitlnJ0xRfBBHfLRdUC92ngLyYi8++VZngl+6FIPMMSswvmOKlwmrA48SEArDfjlrrZp aLUYNtoPbfHie2QZuWN/5gmc96n89BeYnrY4HhmXJ0VYbMK/Nwimvglfg4ZslyKY8HJv9B0kGS+jUd iAj6qBZTfiE8K/3fT3d5xnIszRsKWAcgiOTrubWRizGAPwPa3VkkroaVH+3Yp57Mf7SsdGZtyGg98g yEaoCAI90mioch8sotzXt8Sz2DOGFiA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=pzSEnzVb4PRuwPohD2SDHsa5KY0tRkBlHuhkY0oHs0w=; b=czLkABglyklPhRImctvsIg7tPPnc0HaIPVvkP1cQzOjoIxLxHBn86D/l7MTIWNazZ6K+XJ8mOPOkH 5qB81ZOBw== X-HalOne-Cookie: f226e6ab43f82fd861952f49718ba8a608aa1fbd X-HalOne-ID: f6029a30-254d-11ed-a920-d0431ea8a290 Received: from mailproxy3.cst.dirpod4-cph3.one.com (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id f6029a30-254d-11ed-a920-d0431ea8a290; Fri, 26 Aug 2022 14:47:09 +0000 (UTC) Date: Fri, 26 Aug 2022 16:47:07 +0200 From: Sam Ravnborg To: Conor Dooley Cc: 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 , 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: Re: [PATCH 5/6] sparc: use the asm-generic version of cpuinfo_op Message-ID: References: <20220821113512.2056409-1-mail@conchuod.ie> <20220821113512.2056409-6-mail@conchuod.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220821113512.2056409-6-mail@conchuod.ie> 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_PASS,SPF_NONE,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 Hi Conor. Thanks for this nice simplification, but I think you can make it even better. On Sun, Aug 21, 2022 at 12:35:12PM +0100, Conor Dooley wrote: > From: Conor Dooley > > There's little point in duplicating the declaration of cpuinfo_op now > that there's a shared version of it, so drop it & include the generic > header. > > Signed-off-by: Conor Dooley > --- > arch/sparc/include/asm/cpudata.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/sparc/include/asm/cpudata.h b/arch/sparc/include/asm/cpudata.h > index d213165ee713..af6ef3c028a9 100644 > --- a/arch/sparc/include/asm/cpudata.h > +++ b/arch/sparc/include/asm/cpudata.h > @@ -6,8 +6,7 @@ > > #include > #include > - > -extern const struct seq_operations cpuinfo_op; > +#include Since the header file did not need then it should not need it now after deleting stuff. The better fix is to add the missing include to arch/sparc/kernel/cpu.c, where we have the user of it. A header file should include what it needs, and no more. I looked only at this patch, this comment may also be relevant for the other patches. Sam