Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2248355rdb; Thu, 17 Aug 2023 15:38:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5dMGobzIzriEgCkMln45oy1EVZMZTkaVV732tPmo8YJuPPqv5KKTemodTnN2xvaCMsNte X-Received: by 2002:a19:8c01:0:b0:4f8:6bca:50d7 with SMTP id o1-20020a198c01000000b004f86bca50d7mr429683lfd.13.1692311915039; Thu, 17 Aug 2023 15:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692311915; cv=none; d=google.com; s=arc-20160816; b=gD8ZHVGQDPLGjcF0/4jTpsLucy9aKNQAoM0zxPES8oLCD97RWkHgmug2om3Rz+QJdv CX+RbDGzoMOGmCZwxcMnmJ0eJuQKWTyrfwNntwD0TVqH18gkFMKb4QfohTqdJaGMu9SF 2F8m0qjF0+BUFMOLeaWO7fuSY4y00Nm9cI8U627QEhE3L1Jk6th+UyIyQbifSTF+q02p 0Ax9LyE7p0C/VhfZxYDnoLL52dRTRi2EaqJsuhnjd0XQtjGG9D5nI/2IGGmaaJQyMiYY XW7DAgirebHybx6/H0tCDTcoHMqw3KbgeftNgvkRN4tl0xvBZRglAxs1VOI8bTRgnhMI MbEg== 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; bh=4U+x+J9q3NtnIAY+1GPI2GAieXjOfYEoqQVw1aU/zd4=; fh=jv89TwBrWAoqYRPn6A6n8Q4NzjxX6PtrsvQNR9Je1Yw=; b=VR4iZredl/qY0wVRWdt7vel2s63OOwFiKT/35cY61LJM5gSvithEJCI7BVo9J6ywre fFoamZkdvbKKlT4V5TQ85vkcj/3U64ivUGB0kJtssZ3ldukFvnDpCt9xT5t8OcZTYNmt pw4mMeNoAZRzH/COUrQPAZC7EfnvIDZTJPru8fAC88p3qu8wWc4Z9I3gT21LZcA3B+y4 YK7aCcoeErzTqqxrQZMcUHuEmLv45VGbeW7nZEXMP6qipZcmlLGkzlgoFhbI+3ssWW8+ aPAl+fc/2DTDc/XZ4zxZaKddikdsWdwoewdp1zZGCvN+AihTkG72SnFjvSE3VSp86ELN /pYg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020aa7d512000000b005256d6fdb23si377328edq.58.2023.08.17.15.38.02; Thu, 17 Aug 2023 15:38:35 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353144AbjHQPUm (ORCPT + 99 others); Thu, 17 Aug 2023 11:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353125AbjHQPUM (ORCPT ); Thu, 17 Aug 2023 11:20:12 -0400 X-Greylist: delayed 1684 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 17 Aug 2023 08:20:10 PDT Received: from pegase1.c-s.fr (unknown [90.115.179.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 781F31AE; Thu, 17 Aug 2023 08:20:10 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4RRSdd3c0Wz9wDZ; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xu1Wi41DeIWd; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4RRSdd2zBVz9wDR; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 5E5298B76C; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id YD0PK2gt8x9D; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [172.19.54.59]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2C13F8B763; Thu, 17 Aug 2023 16:52:05 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 37HEq05R469319 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 17 Aug 2023 16:52:00 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 37HEprmG469307; Thu, 17 Aug 2023 16:51:53 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Jens Axboe Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Arnd Bergmann Subject: [PATCH] block: swim3: Mark swim3_init() static to fix no previous prototype error Date: Thu, 17 Aug 2023 16:51:40 +0200 Message-ID: <4798f19879b0470c07ee6a37aa79eae04db5d433.1692283840.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1692283899; l=838; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=wlYp3VeZpONLYQueB+H0V50QRiOXOc6nd6WiozapWLA=; b=OEdpamS1V+IuoDmX+sUxNq62U71ABstA2/v+nkid48E3b8hfIbTwe3conzyA2Cz2DrCWU+Zax /DRiNiTyj1oD/KtaQ3iscVsDr9UCmsxcE+V1DwKTzV1qGh1aY2yYtee X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_FAIL,SPF_HELO_NONE autolearn=no 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 With pmac32_defconfig W=1: CC [M] drivers/block/swim3.o drivers/block/swim3.c:1280:5: warning: no previous prototype for 'swim3_init' [-Wmissing-prototypes] 1280 | int swim3_init(void) | ^~~~~~~~~~ swim3_init() is called locally via module_init(), it should be static. Signed-off-by: Christophe Leroy Cc: Arnd Bergmann --- 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 dc43a63b3469..c2bc85826358 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; -- 2.41.0