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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8835EC77B7A for ; Tue, 16 May 2023 19:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjEPTxW (ORCPT ); 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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++; \ -- 2.39.2