Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2127708rwb; Wed, 30 Nov 2022 02:44:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf73Ams374G5TAMGIWFUphPO/JNqx21v4HSN59hiyTuVXMeQT6Mye8key1MDv1FQCIaBDMBj X-Received: by 2002:a05:6402:c6:b0:468:3d69:ace0 with SMTP id i6-20020a05640200c600b004683d69ace0mr37747880edu.356.1669805040829; Wed, 30 Nov 2022 02:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669805040; cv=none; d=google.com; s=arc-20160816; b=sBh3Y9BtW4MSg8WKWIFR9f+0hVnwdDHWQiCsjCkk50vGpMyJqtyagXSFeWkjatcVZL zqp4Ca98JRnk3BjSvQGZA1a70fS0JXI2zfysbfA65pNQhJP9EF/pQSBhC7XNe+xNrgTi 11xdEhd7dr19+E1m390weQ9dA9oRt6eXJrp6k3e8X1Ima1OfSpBi/+prBtmH0l6R+i5d Wa+llvdFIB6KxbYukN1uUXg1kVkx1B9K9POI/E0pcxf4YtbXLEOoT9fZXw1WWaWfGUVI opKa2ExaA8R9WJbZq11tL/zGylCdFzzfsT1rMS9UjawXGGhtPldfowKaQJ2zyxB3sShP g4ww== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=EQONyH4UMybd+48vjM4eYZ8XVwBzIxQ/KeESkzPZCr4=; b=Qta39eTHGxJhoaZfxJ4OmCCkrnjDEkcJEh8Wh9w+1n9zXg5sY9ADidIj2nJVT3g+As n0eVV2f9DTPsRhXGd2KTI6BFpnM3MzAwFlmxYwTk27APmHYg+6nt8/XdpX5uHKYzMWOt gYVvSX6qfZY8mLl8G45chqCXGCge6rj8HNwjSh0iUVeFwBPV9WXZmPQfc0M9/yqEKfZl FrGyEnGBE2QwcFvgeopjXFPHL+tIcQ/EsJRdAZC8zUtqKG1D7B4wTOTqv0P3A7CUVBBI dip0tRZ4EVv+ZIX1F3kaY+Wgr5PQanNDas/jNIZKbtVSXUlpvhgRfwgq2qeIgNrQsneU KUOA== 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 oq19-20020a170906cc9300b007bea4cb61d6si740640ejb.424.2022.11.30.02.43.39; Wed, 30 Nov 2022 02:44:00 -0800 (PST) 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 S234399AbiK3Jcf (ORCPT + 84 others); Wed, 30 Nov 2022 04:32:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234225AbiK3Jb4 (ORCPT ); Wed, 30 Nov 2022 04:31:56 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79BE663C3 for ; Wed, 30 Nov 2022 01:31:37 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4NMYqr2S0vz4xZp; Wed, 30 Nov 2022 20:31:36 +1100 (AEDT) From: Michael Ellerman To: Benjamin Herrenschmidt , Finn Thain Cc: Christophe Leroy , linuxppc-dev@lists.ozlabs.org, Randy Dunlap , linux-kernel@vger.kernel.org In-Reply-To: <0c11c0770fc4ec7e80a4b2e0ffce1055b792cfdb.1647854880.git.fthain@linux-m68k.org> References: <0c11c0770fc4ec7e80a4b2e0ffce1055b792cfdb.1647854880.git.fthain@linux-m68k.org> Subject: Re: [PATCH v2] macintosh/via-pmu: Avoid compiler warnings when CONFIG_PROC_FS is disabled Message-Id: <166980022042.3017288.9367198168572746077.b4-ty@ellerman.id.au> Date: Wed, 30 Nov 2022 20:23:40 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Mon, 21 Mar 2022 20:28:00 +1100, Finn Thain wrote: > drivers/macintosh/via-pmu.c:897:12: warning: 'pmu_battery_proc_show' defined but not used [-Wunused-function] > static int pmu_battery_proc_show(struct seq_file *m, void *v) > ^~~~~~~~~~~~~~~~~~~~~ > drivers/macintosh/via-pmu.c:871:12: warning: 'pmu_irqstats_proc_show' defined but not used [-Wunused-function] > static int pmu_irqstats_proc_show(struct seq_file *m, void *v) > ^~~~~~~~~~~~~~~~~~~~~~ > drivers/macintosh/via-pmu.c:860:12: warning: 'pmu_info_proc_show' defined but not used [-Wunused-function] > static int pmu_info_proc_show(struct seq_file *m, void *v) > ^~~~~~~~~~~~~~~~~~ > > [...] Applied to powerpc/next. [1/1] macintosh/via-pmu: Avoid compiler warnings when CONFIG_PROC_FS is disabled https://git.kernel.org/powerpc/c/27f9690a81d7acf185b78be8d03d4b3a243116b1 cheers