From patchwork Thu Feb 9 01:01:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 54651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp42308wrn; Wed, 8 Feb 2023 17:05:00 -0800 (PST) X-Google-Smtp-Source: AK7set9YltKqBXSyvpyJbIef3OOhXfDoEOLdwe5NfLP1LzNWeNr3U7HboHjhmb0pEYHsbE6R1LgE X-Received: by 2002:a17:906:19b:b0:8ae:a4db:ba6e with SMTP id 27-20020a170906019b00b008aea4dbba6emr3715928ejb.2.1675904700349; Wed, 08 Feb 2023 17:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675904700; cv=none; d=google.com; s=arc-20160816; b=WLYXMs1ZcIxaOmB9vPoc8kfqi0f0eYtoVGdwHYBlypZtJA7f2jX079Gp7zqGC+8Zjw hIGY4pexN5QNenYU5Lo3h4rWvyhS6R1LpzprhRvX0HjWQG9bYzyKLnG7LN9hgq+jvArD 8uolLl2Lax6CHso7nUd6A+k6qSMTGcRebACLk8445Iqk3HVoTP3b8c1hJ1yZNoJ/aSlU P+hTtyXaRstpAMH/QvuN+uyg3Jt0bP+pUPYgi7XD+Iwjvy0W3NwP30X3NzexxGyvhiu0 g2KGw4Qh3hKpVKpmfWh1T7VgL0BWvDTbuqni/MRPe3431EkZ0MRnK401RsN2aT8CGxYb mHQA== 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=cRJurgsy1gaC1lctHFZC/IKRwcYLjz/t3VnD1fiYHJo=; b=xI17Vst76uM9e+kO8UX8yZ87bnIAwR6gncFskCdy8RnyM43UtTZqCgBtFCxvrUZpg2 TwkJHn+CjGFeBaX+HSC85KDWg0Jqpq5Z8dy+iTiv0tMSZXl6Lmub/m444pCtAmgkuwzd qBNaxoRc0AEWeHY6oEjR38TGpS5IDIK1mVstnVF+5hm7D3h9WVEc09v00T1pdxKsc4Xn +93agsiFW8uAsJrSFyaBqbdkFs9dLTaoSYSZNZp7nFMZ5Ljs//GLDvKWDTqqu92iAOA7 OYw7NfduJXQEU26nN38dETMvhAz68RafSne1vXkhmrs6jWQBeQWHjtLR85EJcPqTnfRh uljg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZUdmS+Tj; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd17-20020a1709072a1100b00871a4e8d7bfsi490768ejc.230.2023.02.08.17.04.30; Wed, 08 Feb 2023 17:05: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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZUdmS+Tj; 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 S230457AbjBIBBa (ORCPT + 99 others); Wed, 8 Feb 2023 20:01:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbjBIBB3 (ORCPT ); Wed, 8 Feb 2023 20:01:29 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE6A22780; Wed, 8 Feb 2023 17:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=cRJurgsy1gaC1lctHFZC/IKRwcYLjz/t3VnD1fiYHJo=; b=ZUdmS+Tj7J2Oi5jQXtmCacgF7o Px/Z5vk0mf7TG45dmbeBTDsm4Ni4Te0F4o28sDmUYo39zaCp5/PSh00djQjEOBkGLA0MsMdGzFZh+ R7fyRsYeoSQrrxEro0wqgkqSLf5qI3rgZq4xbg/tq2Zc4PRLZP7+H5Wpjrqou2zYCkMkKtg7d+L+o 39HpblME8c7dUV9JeQsGa8ftD4q+qUjJoitjko5vC1o10LfQUtLwVZvkg9lalHE+XP7+s5ItanC9B uNfNcUYQ1uhCZ7mBEeXuuw5dQWt+064l21QPWPTkbyJyb8QHikTuv87s3bkRlL4t1rVr0JXOVxGx0 y+wZXuPQ==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPvJV-00HMDn-Qa; Thu, 09 Feb 2023 01:01:25 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , David Howells , Helge Deller , linux-m68k@lists.linux-m68k.org, "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Al Viro , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH] input/misc: hp_sdc_rtc: mark an unused function as __maybe_unused Date: Wed, 8 Feb 2023 17:01:25 -0800 Message-Id: <20230209010125.23690-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757313446984661666?= X-GMAIL-MSGID: =?utf-8?q?1757313446984661666?= When CONFIG_PROC_FS is not set, one procfs-related function is not used, causing a build error or warning. Mark this function as __maybe_unused to quieten the build. ../drivers/input/misc/hp_sdc_rtc.c:268:12: warning: 'hp_sdc_rtc_proc_show' defined but not used [-Wunused-function] 268 | static int hp_sdc_rtc_proc_show(struct seq_file *m, void *v) | ^~~~~~~~~~~~~~~~~~~~ Fixes: c18bd9a1ff47 ("hp_sdc_rtc: Don't use create_proc_read_entry()") Signed-off-by: Randy Dunlap Cc: David Howells Cc: Helge Deller Cc: linux-m68k@lists.linux-m68k.org Cc: "James E.J. Bottomley" Cc: linux-parisc@vger.kernel.org Cc: Al Viro Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org Reviewed-by: Geert Uytterhoeven --- drivers/input/misc/hp_sdc_rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c --- a/drivers/input/misc/hp_sdc_rtc.c +++ b/drivers/input/misc/hp_sdc_rtc.c @@ -265,7 +265,7 @@ static inline int hp_sdc_rtc_read_ct(str return 0; } -static int hp_sdc_rtc_proc_show(struct seq_file *m, void *v) +static int __maybe_unused hp_sdc_rtc_proc_show(struct seq_file *m, void *v) { #define YN(bit) ("no") #define NY(bit) ("yes")