From patchwork Tue May 16 20:27:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp690688vqo; Tue, 16 May 2023 13:46:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FVbekj+biH6BrQvcsGV10QQhiZ36gJWTBTcwN0zqo7iHId5P37TKd8iV3ALPKirlo/8F1 X-Received: by 2002:a17:903:1d1:b0:19a:bbd0:c5cc with SMTP id e17-20020a17090301d100b0019abbd0c5ccmr49135506plh.60.1684269968113; Tue, 16 May 2023 13:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684269968; cv=none; d=google.com; s=arc-20160816; b=liLo0W5W84jaAb/oTl2KelehCABucZd7TbqF42fIeHOBFTxE602a/EbRYIgwbrvglN KUzdnyt1JNCe846stIDKXECo+c5J0NQPUxRDCzrTp1anR/ugJArOL3xXun73B1iohmdI RdzeIP1hMqqsxK7iri9FzxUNJApZsKHh8NHJey6cBbVlcnUwqfDR7fukMJR/iezjDNDZ 3J2+3AUYfWYaWeC4wGErQfRnATYrinTMovHGAEBu0Qqo/EambtMXIVUzc+UM3FQ2y0Wc 9eCuuLRdP0fTLJfzsg0yQC0AxoI6/vJJZFEVUAZQa2ZO7V+4MOPtr+uXZ3CsV26mL/2V ELDw== 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=Nmnk6N2/mVRPHib/6QGSMLQtHV3vXvbWo6X+tlpESWY=; b=p8dR621HXhMSUveF3HqHrdWFfJ05q4GRjyAmmer9YtcAIoXvrJfC2qkVKNnnUggx6r aTBny0Lnqc8edlQLNqt7cdNijxflpwwj0IjwgkmnfHkpqD8yd2XppcgbNni10vciAtnB cu9rKNIew71vnvY+HyNTa819pIbGMZmYlf/I8to6FqRqFNToyglJcq9ToLMhi8cPWkul W3UerK6B23LaRuccGxOyuHlxywN645c5BitvsvK2v0rJbLfjOEACP+ftZmwuQvOtOEhZ /QdZCxTesCFfiBWOxQ1J8H5KJKBYLA9JTnZELVSb0vP6wMFUcyie5d4cEOghGme+BZJt 5z2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qBPOjc7d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a170903018600b001ab115a868esi20904430plg.49.2023.05.16.13.45.55; Tue, 16 May 2023 13:46:08 -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=@kernel.org header.s=k20201202 header.b=qBPOjc7d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229539AbjEPU1u (ORCPT + 99 others); Tue, 16 May 2023 16:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjEPU1t (ORCPT ); Tue, 16 May 2023 16:27:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D51A5DE; Tue, 16 May 2023 13:27:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3759863823; Tue, 16 May 2023 20:27:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6572C433D2; Tue, 16 May 2023 20:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684268839; bh=Pi3QwEAHjDQvPaoIXiWDZQeAw2CxTt+KeUV+52GtFc0=; h=From:To:Cc:Subject:Date:From; b=qBPOjc7dPDTZ3LakRVd5je3hHk3tTUNceLjlNO6D7hSR9kaMItl0W3hjmkI73I8+/ 4weSXi4sKIl2SlLRbRx86pXI9C7PbIpAmvw1Z86HBNJqnGo+/6cDYJ45dFhLvZnX/i YhoaycvFlxJmbnEc1zgvM+Yqw+yLGnUkwkYyYWmpYNyscf/DUmVTRreBRkaM9jrjH0 Rq1eNi3nTVMnnSZgVv3j0e6wdGoIXCJUbFBdz4h3uYpFIDTeXAUldCX/EoVIhRfKKQ SEnb0aMwEAJHMKGXW4LB2WlybPPFhsd7O5+9V1fD4JTyZVem+H9zN/EXFNVRbSPqkl +HcpG1ka7/Mpg== From: Arnd Bergmann To: Maxim Levitsky , Alex Dubov , Ulf Hansson , Andrew Morton Cc: Arnd Bergmann , Zheng Wang , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] memstick r592: make memstick_debug_get_tpc_name() static Date: Tue, 16 May 2023 22:27:04 +0200 Message-Id: <20230516202714.560929-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766085065991837732?= X-GMAIL-MSGID: =?utf-8?q?1766085065991837732?= From: Arnd Bergmann There are no other files referencing this function, apparently it was left global to avoid an 'unused function' warning when the only caller is left out. With a 'W=1' build, it causes a 'missing prototype' warning though: drivers/memstick/host/r592.c:47:13: error: no previous prototype for 'memstick_debug_get_tpc_name' [-Werror=missing-prototypes] Annotate the function as 'static __maybe_unused' to avoid both problems. Fixes: 926341250102 ("memstick: add driver for Ricoh R5C592 card reader") Signed-off-by: Arnd Bergmann --- drivers/memstick/host/r592.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c index 42bfc46842b8..461f5ffd02bc 100644 --- a/drivers/memstick/host/r592.c +++ b/drivers/memstick/host/r592.c @@ -44,12 +44,10 @@ static const char *tpc_names[] = { * memstick_debug_get_tpc_name - debug helper that returns string for * a TPC number */ -const char *memstick_debug_get_tpc_name(int tpc) +static __maybe_unused const char *memstick_debug_get_tpc_name(int tpc) { return tpc_names[tpc-1]; } -EXPORT_SYMBOL(memstick_debug_get_tpc_name); - /* Read a register*/ static inline u32 r592_read_reg(struct r592_device *dev, int address)