Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1478705

Re: [PATCH] qed: mark symbols static where possible

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] qed: mark symbols static where possible
Date 2016-09-08 02:50 +0200
Message-ID <seVHs-7bz-15@gated-at.bofh.it> (permalink)
References <seJdg-7vS-17@gated-at.bofh.it> <seJGh-7FE-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date: Wed, 7 Sep 2016 11:55:34 +0000

>> We get a few warnings when building kernel with W=1:
>> drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous
>> prototype for 'qed_sp_vport_start' [-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 <baoyou.xie@linaro.org>
> 
> Most of this changes are correct. I have 2 reservations, though:
> 
> 1. qed_get_vport_stats() is in use in net-next by qed_main.c starting with
> 6c75424612a7 ("qed: Add support for NCSI statistics."), so we shouldn't
> make it static.
> [This raises the question of which repository was this patch built against?]
> 
> 2. Regarding the changes in qed_cxt.c - some of the functions you're turning
> into static are going to be used be other files in our pending RoCE driver
> submissions [you could say those ARE really missing their prototypes].
> I don't have a real objection to this change - I'm just stating that if you'll
> change those now to static, we'll probably 'revert' the change in the near
> future.

Baoyou, please respin this against net-next, thanks.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] qed: mark symbols static where possible Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-07 13:30 +0200
  RE: [PATCH] qed: mark symbols static where possible Yuval Mintz <Yuval.Mintz@qlogic.com> - 2016-09-07 14:00 +0200
    Re: [PATCH] qed: mark symbols static where possible David Miller <davem@davemloft.net> - 2016-09-08 02:50 +0200

csiph-web