Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1111769rwl; Thu, 10 Aug 2023 06:42:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKYjDi3H3cySnRowJ4g4NZILCQkLy153iHIEPtpf/efDTXJK5H4nHmp4zF6eTfXxFrxDW+ X-Received: by 2002:a50:fa84:0:b0:51e:2305:931 with SMTP id w4-20020a50fa84000000b0051e23050931mr1879130edr.22.1691674963610; Thu, 10 Aug 2023 06:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691674963; cv=none; d=google.com; s=arc-20160816; b=C4z7L8J7IiUwDgIvlSGJMnyBa9p17kV5+Sp/Y5CGzSvaZlc2SDlxYzPqyZdVDywj0x 1maVhjumFVbuYJgdWOaAmv+IvpoUn7/Zr0LWrArs3n/rx0v+uvOIFwLFztvCZ+u0e7T3 mUI8nzy4uHl1Fo4CZjedrK3E8eieDfnnFaReCEe4aAwSg2FgJOj++EENHXlCWMFuyNKX 7FGmsbPskSjBGuqkFDi09fa5Z5b2g8WTALYvPzLCEIx2sP0MODo6IzgRkOnbwNJdADFT YY3YSYW853/pgzpR+pPCHra4LLNuS5cI+bh3/9aOB3Dableb7xlHGbGOfJA90zHNXqXv M8Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=nUFT6eMWEAqS9QNeW0dc3vxruDtjBS+2euXmoGQmGYs=; fh=P/rgYGBfnNnEO7nlUQmBfhNlliM2ItmUQI9XAnK7Bas=; b=DeQHXqQvl4AVVyUiseZh7Zf/wKAYfv642sR4uJIoTfbtHyaEodFh5fgkxD1Yslhked U69B14r+SEcnJ+ULTO1gdxS6r0s1QLg7XnlMIP62v/Zs3uQK21TEKaWusxdsGhj5joEz rdjxSbsskqZIpSXtlY2Ez1elNymaz4E0sPMWFznCOlx06MTEkqs9lBiYRTAu+XX1v6KF XRA2+F4G7YOnVYCXh1Y9jwDnW6BOuG9Gsy06WGQ9UuvPZQPkuix8TKbz6A/WfXS1hGmi Qrht9L1j/RGXc0fdJZBMlG/6Z0VSmFqxCHuVHKXsvq/1mk0a2HC9s3MOWs/GCeyjU1G9 Bu0g== 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=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020aa7de03000000b00522d7b6b25dsi1440526edv.243.2023.08.10.06.42.17; Thu, 10 Aug 2023 06:42:43 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235266AbjHJMuo (ORCPT + 99 others); Thu, 10 Aug 2023 08:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235080AbjHJMun (ORCPT ); Thu, 10 Aug 2023 08:50:43 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5FFB26AC; Thu, 10 Aug 2023 05:50:41 -0700 (PDT) Received: from dggpemm100022.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RM6CS4SFjzqT26; Thu, 10 Aug 2023 20:47:48 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm100022.china.huawei.com (7.185.36.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 10 Aug 2023 20:50:39 +0800 Received: from [10.174.178.174] (10.174.178.174) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 10 Aug 2023 20:50:39 +0800 Subject: Re: [PATCH 2/2] ethernet: atarilance: mark init function static To: Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" CC: Arnd Bergmann , Haoyue Xu , Guofeng Yue , , References: <20230810122528.1220434-1-arnd@kernel.org> <20230810122528.1220434-2-arnd@kernel.org> From: Yang Yingliang Message-ID: Date: Thu, 10 Aug 2023 20:50:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20230810122528.1220434-2-arnd@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.178.174] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 On 2023/8/10 20:25, Arnd Bergmann wrote: > From: Arnd Bergmann > > The init function is only referenced locally, so it should be static to > avoid this warning: > > drivers/net/ethernet/amd/atarilance.c:370:28: error: no previous prototype for 'atarilance_probe' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann Reviewed-by: Yang Yingliang