Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp413519imi; Fri, 22 Jul 2022 01:40:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOw9kMUVdojnlsy/RD3hgmLDKp445dr1/yKVwdSpELEmX9ggE0hEIumCJ/veDMkIlZ+75v X-Received: by 2002:a17:907:6091:b0:72b:88c5:2a2f with SMTP id ht17-20020a170907609100b0072b88c52a2fmr2220451ejc.715.1658479256439; Fri, 22 Jul 2022 01:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658479256; cv=none; d=google.com; s=arc-20160816; b=Ok8IzQn2Mf58o/Fcsp4qFQsE6t8fOVtNRIG6nPuCWKK7NpiLm9buXJ+w7doL8tUM2T 01N21LW0YxY6RJmZnXrDxmVjWWXK4oJ7ZBNRi4MxRfEQTMsjUjvXsB2OlSjMYe3xco9O 7XVgMevp7zX9t7Ro7pIVt8Tis7gjSS55E/nSptp9Dy3Ycryrj6f70Up4Wc2hek13P//V 90Fvc9YwyxmEQBNrK3J8s0acSxpBs4gd6bptld5MZJKb8UcaelM4VVAfGLxsayR440Hr pnleSUyWLvMmVh2Vtg1ilFipriEAxG7hvgQreM41FcF0aRZZX4VLpWgLI51/HhxDZ+3Z GzaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zFogndTXzBlJJg+/g5GbE3ak6uvVB8Sb1itXCqR8Kiw=; b=MOSASfCIZWKLED9KRCh/GvJykAF3Y4NbY2/QabMmEV5I2GQJaqMwEzmtiP4mZYmL+y sh9hK2P6zZ/PJPDhAbncSosUyiTVRaq7MGhhwxz36eEoW1MSagjzpsQI/8q5ivcdr2Kz X9r9G2ms+A3hLreEHFS3JypPAIvDs0sfgh+VgF4IaSOvvereg8MxKFqZ2D9Y6YbuQ6t+ CcRXxurNYFiyCXsRRtCBadnQM27FLI427cERkYswY9HssziCEaguG4rLxUN6jtx3dJeh hMIj4BMc65X0RbJTMIzJ1hmfV7AShpLrhkoWNh3fXJH29TQ6iauNrQ8Mfk1ru8soX3gF MLuw== 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 z1-20020a05640240c100b0043a4f6a0127si5857488edb.105.2022.07.22.01.40.31; Fri, 22 Jul 2022 01:40:56 -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 S234564AbiGVIJd (ORCPT + 99 others); Fri, 22 Jul 2022 04:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbiGVIJc (ORCPT ); Fri, 22 Jul 2022 04:09:32 -0400 Received: from hetzy.fluff.org (test-v6.fluff.org [IPv6:2a01:4f8:222:2004::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 316299B9E9 for ; Fri, 22 Jul 2022 01:09:31 -0700 (PDT) Received: from ben by hetzy.fluff.org with local (Exim 4.89) (envelope-from ) id 1oEnb1-0004YL-H3; Fri, 22 Jul 2022 09:01:15 +0100 Date: Fri, 22 Jul 2022 09:01:15 +0100 From: Ben Dooks To: Christoph Hellwig Cc: Ben Dooks , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kallsyms: make arch_get_kallsym() static Message-ID: <20220722080115.pzryb7dy2ijbp6p7@hetzy.fluff.org> References: <20220721151040.359389-1-ben-linux@fluff.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Disclaimer: These are my views alone. X-URL: http://www.fluff.org/ User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ben@fluff.org X-SA-Exim-Scanned: No (on hetzy.fluff.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 On Thu, Jul 21, 2022 at 08:22:39AM -0700, Christoph Hellwig wrote: > On Thu, Jul 21, 2022 at 04:10:40PM +0100, Ben Dooks wrote: > > The arch_get_kallsym() function is not used anywhere in the kernel > > now, so it should at-least be static or just be removed as there > > are no users. Making it static fixes the following sparse warning: > > > > kernel/kallsyms.c:590:12: warning: symbol 'arch_get_kallsym' was not declared. Should it be static? > > It fixes the warning, but isn't exactly useful. Please just remove it, > get_ksymbol_arch and iter->pos_arch_end entirely instead. Ok, probably the best. I didn't have time to do any archeaology on it to find out if it has ever been used. -- Ben Dooks, ben@fluff.org, http://www.fluff.org/ben/ Large Hadron Colada: A large Pina Colada that makes the universe disappear.