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


Groups > linux.kernel > #1475622 > unrolled thread

Re: fix:rtl8xxxu_core: mark symbols static where possible

Started byJes Sorensen <Jes.Sorensen@redhat.com>
First post2016-09-03 14:40 +0200
Last post2016-09-03 14:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: fix:rtl8xxxu_core: mark symbols static where possible Jes Sorensen <Jes.Sorensen@redhat.com> - 2016-09-03 14:40 +0200

#1475622 — Re: fix:rtl8xxxu_core: mark symbols static where possible

FromJes Sorensen <Jes.Sorensen@redhat.com>
Date2016-09-03 14:40 +0200
SubjectRe: fix:rtl8xxxu_core: mark symbols static where possible
Message-ID<sdioN-58V-5@gated-at.bofh.it>
Kalle Valo <kvalo@codeaurora.org> writes:
> Baoyou Xie <baoyou.xie@linaro.org> wrote:
>> We get 1 warning about global functions without a declaration
>> in the rtl8xxxu rtl8xxxu_core.c when building with W=1:
>> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:898:1:
>> warning: no previous prototype for 'rtl8xxxu_gen1_h2c_cmd'
>> [-Wmissing-prototypes]
>> 
>> In fact, this function is only used in the file in which it is declared
>> and don't need a declaration, but can be made static.
>> so this patch marks it 'static'.
>> 
>> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
>
> The title should be "rtl8xxxu: ". See:
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#subject_name
>
> Also I assume Jes will take this.

Yes to both accounts!

Thanks,
Jes

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web