From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EF08C433EF for ; Mon, 18 Oct 2021 14:10:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBD8860F56 for ; Mon, 18 Oct 2021 14:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EBD8860F56 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R9DvHdRvHrYHhmvv5ho6HoYjpIkevy26TYwwPIsFtz8=; b=FA/6BxtCQqMsvC aARtizcmRAUVw+bnlW8WoneQ/mRM7crYJtWFs/CmGnz4U7zNpVNpP5lcR3PpgcWEiWtCEo3vjeOGP tuogY/lxZ03tANdofELnOJhgOlSgkSqjezEHrGODTPQ+dELRZShDi8y1ZR4gx+zFpvhFMzwhUj1h0 gVPaVnieANOMLw6E6QxD3qNyg+OiNztC7et3USwalIG6gCn84MJ1r6ouwrhVUXazFFvQoCn+JZbiI DhYB2WVqy/yxm9qGbYpZPIPo5OxTTmwWe67mkOGhVB9CN49SaMFamVsbCYtJQoaQvq9M+eAJg4zxr peIua1PbuetOXHZIkqxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcTIz-00FzwQ-KI; Mon, 18 Oct 2021 14:07:59 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcTDw-00FyCk-OD for linux-arm-kernel@lists.infradead.org; Mon, 18 Oct 2021 14:02:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 87E9060EE3; Mon, 18 Oct 2021 14:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634565764; bh=7TPgNHlrJpKSHgGO//F03Byd0s7+xG9te1uNPoU2+cY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TSwEZ8sTtPgqs0eQWRRoOEu2D9I/FQQY6zVyrBSIi/A3HJo3YE8ukq6RqM9yQBU66 jG7bmByKFa9g3ZvOG42PwtUr9Tj3ILuSwAo6jl5MlKD811htsFjDnvI6cWQFgaD7qi h7XMddUrdkziN5JPAZX5SkVB1XuSW0AXRZ3wKX86rk/pK0MdK9xmleV/7GUwcTNAOE xJcorpWxS813WtO+69X4ToDaTMrj2EzP1xdUHQc2p2BdqaEU6Ek41FZUZJfEwPnmDK 0tGIUcN9BX7o9QcAucG++X0wVA6ce8M4qzmad0Vf5O4EYlBxAdlWutmQXjUN2F8oym tBrV7wiMAkHYQ== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann Subject: [PATCH 2/3] ARM: rpc: ecard: fix unused-function warning Date: Mon, 18 Oct 2021 16:02:17 +0200 Message-Id: <20211018140218.3421945-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211018140218.3421945-1-arnd@kernel.org> References: <20211018140218.3421945-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211018_070244_843424_388F4D13 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann When CONFIG_PROC_FS is disabled, gcc warns about an unused function: arch/arm/mach-rpc/ecard.c:650:12: error: unused function 'ecard_devices_proc_show' [-Werror,-Wunused-function] Mark it as __maybe_unused to avoid adding an extra #ifdef. Signed-off-by: Arnd Bergmann --- arch/arm/mach-rpc/ecard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index 27df70013569..864b251282af 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -647,7 +647,7 @@ static int ecard_prints(struct seq_file *m, ecard_t *ec) return 0; } -static int ecard_devices_proc_show(struct seq_file *m, void *v) +static int __maybe_unused ecard_devices_proc_show(struct seq_file *m, void *v) { ecard_t *ec = cards; -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel