From patchwork Thu Aug 10 14:19:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13349504 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 C7D60C001B0 for ; Thu, 10 Aug 2023 14:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235605AbjHJOVu (ORCPT ); Thu, 10 Aug 2023 10:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235072AbjHJOVt (ORCPT ); Thu, 10 Aug 2023 10:21:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A51B1B4; Thu, 10 Aug 2023 07:21:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A951165D8B; Thu, 10 Aug 2023 14:21:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38266C433C7; Thu, 10 Aug 2023 14:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691677308; bh=I6IRExNYqo8UBCebkpvu5GaQ8IK18y0eKaizpHUnkOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ucGTS2xqPZOWGCOiL4qxDpX0/atupBXJSJsS5X0BeogQKCNK8mvO/s4zrFaS4mdV0 4tRS00rUtYhZhqPBbVEq1nsrbkQ1lt/oByUyVv8gIa93XrULsHAJ3F29gm/xewTMwR BgZW94H8UYDjdvEN0+i9td4FcSHiSTouaX1nEmc/+6yQVdHlByuG/ymqJLmZFCX7Nn +2Bbbn3jlVg+XriGkRnzx2yjy0H0humi2wKvisIDQndBVATh9ziQdP56sdpDmsiQLB Gwnn9FXohCKRlMe5ku8CdWsDG2Wg8n5zTbQZHGafcNW1LhhT13CEgUolsiV3XJJ+M0 KjgcMyLswfCGw== From: Arnd Bergmann To: Andrew Morton , linux-kernel@vger.kernel.org, Jens Axboe Cc: Arnd Bergmann , Christian Brauner , Hannes Reinecke , Jack Wang , linux-block@vger.kernel.org Subject: [PATCH 05/17] swim3: mark swim3_init() static Date: Thu, 10 Aug 2023 16:19:23 +0200 Message-Id: <20230810141947.1236730-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810141947.1236730-1-arnd@kernel.org> References: <20230810141947.1236730-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Arnd Bergmann This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/block/swim3.c:1280:5: error: no previous prototype for 'swim3_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann Reviewed-by: Jack Wang --- drivers/block/swim3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index dc43a63b34694..c2bc85826358e 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1277,7 +1277,7 @@ static struct macio_driver swim3_driver = }; -int swim3_init(void) +static int swim3_init(void) { macio_register_driver(&swim3_driver); return 0;