From patchwork Tue May 16 19:53:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94902 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp672344vqo; Tue, 16 May 2023 13:06:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46aiBUu+iO4uZFzfNdqvGOwS7mx5a8ljNiZkV9PNx1YbJvTuLlRlHrsqk+chT7r7YgdlYN X-Received: by 2002:a17:90a:e613:b0:252:7c76:ba7c with SMTP id j19-20020a17090ae61300b002527c76ba7cmr22131558pjy.24.1684267577582; Tue, 16 May 2023 13:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684267577; cv=none; d=google.com; s=arc-20160816; b=INElh6qM88HtNRjdM8dNXkC1gzwzOuDv/l2tomtB+lpzJrEuPOI/EVR1WPsExyOTCb n8vUQB6bpWR1G2CJuAQYSxyybSzbOzP00ukQ6skT4O2XDM4ej21bzx0KEp+XvcBAf6Cz 0QQ31Z9qu/YlgJSE9MuzTifyFHrltah+DrgLUZ63NDvrNAji5zN7wcz9X3GKF38dp4Dl 6TeDREsAf4bsQTRaSYOE0WyXHBE9QJiGxSiZmnIEEIdeCmUFcnUPW/6OpX2p8PDBHbZ4 eZKGnL77ew3hPgqyjTZJfJuJYSv5+vUJwPQZBjNlw1xGwq8Kmjl8cZjDK+GZZEZSsl0z ePRA== 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=TO0fIxXJcdjJMFsCL0Lc8Hz4Q5RFjRY63fLhHT3O94s=; b=kTQGqP6FvxNAPXBB9um5Mw2euOYOIzk7i4p5KhnGJHMWXIBEeSaw6eBUanls3CdXf2 kOgTgXke/1MR2eN0TkHyaUWHOZO469g+gz4mgUke9BiMB1nb1QFSc+hAJdHZrZ/8Bh18 dirERyZw9QTez7AES8bicYqxx3onL2TrUfU/Tm38jw+tDnn1OWNqW2cA+mJ7ZYqUMaPt GWMpWsNtg2ehufzO4qYFm/NQy7ViXSG51+XTV9H2JEJGdgi70I9yMr84EOqlwY9aIXRf YIegZqzuIs64iRWf08bHtoJgvq0ZKFxAOQhScUO4aze/UjH8CTXdcnPvXHEnkxDdinF4 7RCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ppL060Tx; 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 q10-20020a17090a2e0a00b0024e0254d807si160622pjd.143.2023.05.16.13.05.53; Tue, 16 May 2023 13:06:17 -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=ppL060Tx; 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 S229590AbjEPTxW (ORCPT + 99 others); Tue, 16 May 2023 15:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjEPTxU (ORCPT ); Tue, 16 May 2023 15:53:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64F2BF for ; Tue, 16 May 2023 12:53:19 -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 5272D61370 for ; Tue, 16 May 2023 19:53:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5C4FC4339B; Tue, 16 May 2023 19:53:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684266798; bh=PTPvyroKGj+bJmSOqebpW9CjBUzzYiO7xPn/MeixGLs=; h=From:To:Cc:Subject:Date:From; b=ppL060Txl/hQeUahEVwXo+wBPX0yFWguf97Pt6DWiA8C7TsiLenCKty5DYF+v0jKg PY/PfZgQDrcDzDgPWxKrQ+C4buOWV9W3HwliTkTBUmS/xWRt2Jgco+v/ZT1Nlp2186 PgCn6DFj0lncZ9Erv/I7pJ7qthYwTXYqJT/L4D4A41/HphWt6QYSEc9JzAZnoGwsKY z+Yf+wxcOoDBWtMrrpBIgtqIPtwEnWMDAmqISnjfzrHn8EcFacGGFt9wXyMi1UFMaF laqQW69yevX5nQ6Qxl0gkovf5ycA06a7Lo2aTcGqMDAOBgpIzS3n0iGqZFIfQnjEOy jMImFXnae/U6g== From: Arnd Bergmann To: Matthew Wilcox Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] ida: make 'ida_dump' static Date: Tue, 16 May 2023 21:53:10 +0200 Message-Id: <20230516195314.551057-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?1766082559228574047?= X-GMAIL-MSGID: =?utf-8?q?1766082559228574047?= From: Arnd Bergmann There is no global declaration for ida_dump() and no other callers, so make it static to avoid this warning: lib/test_ida.c:16:6: error: no previous prototype for 'ida_dump' Fixes: 8ab8ba38d488 ("ida: Start new test_ida module") Signed-off-by: Arnd Bergmann --- lib/test_ida.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_ida.c b/lib/test_ida.c index b06880625961..f946c80ced8b 100644 --- a/lib/test_ida.c +++ b/lib/test_ida.c @@ -13,7 +13,7 @@ static unsigned int tests_run; static unsigned int tests_passed; #ifdef __KERNEL__ -void ida_dump(struct ida *ida) { } +static void ida_dump(struct ida *ida) { } #endif #define IDA_BUG_ON(ida, x) do { \ tests_run++; \