Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbcJDHnN (ORCPT ); Tue, 4 Oct 2016 03:43:13 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:60945 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbcJDHnK (ORCPT ); Tue, 4 Oct 2016 03:43:10 -0400 From: Arnd Bergmann To: Baoyou Xie Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, yankejian@huawei.com, huangdaode@hisilicon.com, lisheng011@huawei.com, xieqianqian@huawei.com, fabf@skynet.be, lipeng321@huawei.com, colin.king@canonical.com, simon.horman@netronome.com, andrew@lunn.ch, ivecera@redhat.com, chenny.xu@huawei.com, xypron.glpk@gmx.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: Re: [PATCH v3] net: hns: mark symbols static where possible Date: Tue, 04 Oct 2016 09:42:24 +0200 Message-ID: <44733796.adHYRchuZI@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <1475309726-21334-1-git-send-email-baoyou.xie@linaro.org> References: <1475309726-21334-1-git-send-email-baoyou.xie@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:zesvq6YPPhwywDwVMNIUTPHoq+FwA0GpQaFRt47KeYQYB6jB0Vv phhaHkOBkGtk4I8CSHY/kevoMXsWime7ys2u0Y98RPRNvcIJI+t7ZcJKpj9qXkhe/P/5bTZ se0JCsKpRBRkJC3/2HBu/EtreTwfHMADIXt2hVa/4QLqzCSgidFLL4IQXgdKOyyksXkPpO3 THIAC01hyIi3F4D/jx3Kw== X-UI-Out-Filterresults: notjunk:1;V01:K0:svxAnBL+NcY=:PeJ7ZpMbnctODrKnz27F9K MJReXBdLGnwhomxayJ7gUPvFqAqY52JQ4iWRutyfhIsR1A20xoSHkytm+HyPzGMV3Jwn1k5Pg A95JuGUzPlgzQjmHpx0pjDcEviLZZ1gbpmgpnPNfoUdb07gF5EXxmWHpNEYA26Bb23xd37joc Jybc5iBt5tmxCIUp2F/8vlfRAm4n6kGFRm7x8gd8YDG3ZPG4In1lbjCD1Fy4MH2FpBRBRymov S1ggrQaAgJxV/4smiSfHAbTHCW3Z9FGymfpMmKrrEqLFw3wJ3z7UG/zoaIdkkmX8ckKRs+pEs /uOcVOWPJzolAJntE8QNe8wrZklVBiyoXDXrG2EEjhNoG9R5HVlHAIpLNZyE+6BeNJZTCOts2 FZcj7dXeKjtMcgDwbdwQN5HC80mNItaS6jfCfnNkyEZ0pJXnkLPUFL/mpYpuLR0o6Ik2SwTaL zaM7Pal4wrJte/oKK9TZj919h1cO04M8qY6c4NCLSz8T0phQLGKSOqrn44jIEXTvkjVmSr1n0 x1AyrFa0+Yrz1oRCujtd1Gqan/DahIYgSTD4FKvpMI6IYTmL6CI1X3D9lN7XHbUY4WsdHV72y Vk/8qQIFBsc8nqs0Z8yqIZZtpxcUdk8VqSJPxemFLCmqe8M/++IOSvOx9vP2Hlqqwsfd8eEt3 UTEpufZQfT8tMgBPA84c0d2KIQDiovoY20nGXq6WbaOeFCKRcYqju6AZPGlDogGz9hA0dquc5 FYS3P2PkIl45rDmj Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2227 Lines: 36 On Saturday, October 1, 2016 4:15:26 PM CEST Baoyou Xie wrote: > We get a few warnings when building kernel with W=1: > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:76:21: warning: no previous prototype for 'hns_ae_get_handle' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:274:6: warning: no previous prototype for 'hns_ae_stop' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:302:6: warning: no previous prototype for 'hns_ae_toggle_ring_irq' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:490:6: warning: no previous prototype for 'hns_ae_update_stats' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:573:6: warning: no previous prototype for 'hns_ae_get_stats' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:605:6: warning: no previous prototype for 'hns_ae_get_strings' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:638:5: warning: no previous prototype for 'hns_ae_get_sset_count' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:687:6: warning: no previous prototype for 'hns_ae_update_led_status' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:698:5: warning: no previous prototype for 'hns_ae_cpld_set_led_id' [-Wmissing-prototypes] > drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:710:6: warning: no previous prototype for 'hns_ae_get_regs' [-Wmissing-prototypes] > .... > > In fact, these functions are only used in the file in which they are > declared and don't need a declaration, but can be made static. > So this patch marks these functions with 'static'. > > Signed-off-by: Baoyou Xie > --- > drivers/net/ethernet/hisilicon/hip04_eth.c | 2 +- > drivers/net/ethernet/hisilicon/hisi_femac.c | 6 ++--- These two changes have already gone in as separate patches that you have sent earlier. Baoyou, please stop sending patches for now until you have had a chance to discuss your workflow with me. You are doing something really wrong here and we need to figure out what is causing this so you don't cause maintainers extra work. Arnd