Message ID | 20231123110506.707903-2-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp362821vqx; Thu, 23 Nov 2023 03:05:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSM7ddnCBI36mY/fr/zjXxYfMNBCJjNlxGhOtSrNXTSRgDhhiCzCrVU4ywNpAaK3Pv8XNV X-Received: by 2002:a05:6a00:e10:b0:6cb:8dba:ce6f with SMTP id bq16-20020a056a000e1000b006cb8dbace6fmr5092774pfb.15.1700737547104; Thu, 23 Nov 2023 03:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700737547; cv=none; d=google.com; s=arc-20160816; b=IpFvg9J5NxxcowTzid0fsXUA50mwjooRXITbek6FaQ6AG/BMGtTaT7+GHkealpELfO jXvfpnJpgW2kSLcUscuqMvms2vjT19jqoAUNVUAK1uh02LG3ZaRLubu3wF4MlvOro+qi M50W8H5ntAOhfNYNElRD2rX8V34RZlseIjBl2ZtqsmfQSDu1emeAmKuxnLd4mS7jrWvx S7bYxLU9Ys0eQhQV6WuPYcdLH+zlQAlWigTZlXYSLQeDEccBJ7PlNS6kTIzpXcP/yYjC 5PVNUOmmBGjEHYCt5UAb8O9swzXiLA3Zyfkb4Q4WEkOp+TZ3xyALruFValxIaqt6HpVD 30cg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TO0fIxXJcdjJMFsCL0Lc8Hz4Q5RFjRY63fLhHT3O94s=; fh=TVF/ZsHt3bxRzFOIn6fcgDTEV6FaGOs0DFr4KT/S8uU=; b=I3iiIVLUNffDdIta1Jm5Q4t1pD6r/0xb+drKhMG5fGAG/T1f3zxaKBtrYPUKLscFQa yxXzQr/7R8NkkpGpyOACo17+DE4xnl0lh28RfW6BuM4niwDkXZhXpUQo6dE/pSbdgOLN mnEHOvJ2uy/mQ/vV8DiRioZXmVYO0LERWNTtgilojnBEOl/4rDq6U2KtT+p20yVd9Fas AMqC8wNOR2XaPot20qH1tRsqvBiSdL+pPz5UNSuNs5Vg58AVY9AiqjLwsTaxnfBA8LAA Xv+t60eQuw+i3MUKHtVJ2ng3XHNc+JBKjPjHAv1jNsAdUl9EIYM5o6Bri0K9l1w63mOq U8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nXSKUa80; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o66-20020a634145000000b00585463c36fbsi1143781pga.44.2023.11.23.03.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 03:05:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nXSKUa80; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3A99B8082701; Thu, 23 Nov 2023 03:05:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344912AbjKWLFZ (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Thu, 23 Nov 2023 06:05:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbjKWLFV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 23 Nov 2023 06:05:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC761BE for <linux-kernel@vger.kernel.org>; Thu, 23 Nov 2023 03:05:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32336C433C8; Thu, 23 Nov 2023 11:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700737528; bh=PTPvyroKGj+bJmSOqebpW9CjBUzzYiO7xPn/MeixGLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nXSKUa807rZ29ZDLQfJmvRhSi4N8WHovmHbAfyMVEficfSwAV9byFeM2EehuHMPvf 2plHjQPIGprL9a+CvVI91LktsH4dCLOTw85PLAzRHbTDWS8PBJ+HD6a6zbcFYzYA7S /LF4mUwnNE/22hs/ycyxoIHFHiNWy/JLf4Gu9DuVWVIbobN3N9tuy8iVJrVYE3ouLt kJi1liD6r+5hhz0cNDST79u04zevwc68Rku5RvjzatdqYLmQop3cbiP1tDQ8ikihWg Ed5QrWidUanGzm2kwC1ytck42YRJYbIN/BD477srlxzuaH3tVo4HVndRuycbh+BrmA FTpBsaIVkDHAA== From: Arnd Bergmann <arnd@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, "David S. Miller" <davem@davemloft.net>, David Woodhouse <dwmw2@infradead.org>, Dinh Nguyen <dinguyen@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, Michael Ellerman <mpe@ellerman.id.au>, Masahiro Yamada <masahiroy@kernel.org>, Matt Turner <mattst88@gmail.com>, Nathan Chancellor <nathan@kernel.org>, Nicolas Schier <nicolas@fjasle.eu>, Peter Zijlstra <peterz@infradead.org>, Rich Felker <dalias@libc.org>, Richard Henderson <richard.henderson@linaro.org>, Richard Weinberger <richard@nod.at>, Stephen Rothwell <sfr@canb.auug.org.au>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Tudor Ambarus <tudor.ambarus@linaro.org>, Yoshinori Sato <ysato@users.sourceforge.jp>, linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mtd@lists.infradead.org, linux-sh@vger.kernel.org, linux-usb@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Subject: [PATCH v3 1/6] ida: make 'ida_dump' static Date: Thu, 23 Nov 2023 12:05:01 +0100 Message-Id: <20231123110506.707903-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231123110506.707903-1-arnd@kernel.org> References: <20231123110506.707903-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 03:05:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783352574342307018 X-GMAIL-MSGID: 1783352574342307018 |
Series |
Treewide: enable -Wmissing-prototypes
|
|
Commit Message
Arnd Bergmann
Nov. 23, 2023, 11:05 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- 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++; \