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


Groups > linux.kernel > #1557926 > unrolled thread

linux-next: build warning after merge of the wireless-drivers-next tree

Started byStephen Rothwell <sfr@canb.auug.org.au>
First post2017-01-13 01:20 +0100
Last post2017-01-13 14:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  linux-next: build warning after merge of the wireless-drivers-next  tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-01-13 01:20 +0100
    Re: linux-next: build warning after merge of the wireless-drivers-next tree Kalle Valo <kvalo@codeaurora.org> - 2017-01-13 14:50 +0100

#1557926 — linux-next: build warning after merge of the wireless-drivers-next tree

FromStephen Rothwell <sfr@canb.auug.org.au>
Date2017-01-13 01:20 +0100
Subjectlinux-next: build warning after merge of the wireless-drivers-next tree
Message-ID<sYXL3-2gB-3@gated-at.bofh.it>
Hi all,

After merging the wireless-drivers-next tree, today's linux-next build
(x86_64 allmodconfig) produced this warning:

drivers/net/wireless/marvell/mwifiex/pcie.c: In function 'mwifiex_pcie_remove':
drivers/net/wireless/marvell/mwifiex/pcie.c:303:5: warning: 'fw_status' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (fw_status == FIRMWARE_READY_PCIE && !adapter->mfg_mode) {
     ^

Introduced by commit

  045f0c1b5e26 ("mwifiex: get rid of global user_rmmod flag")

This is not a false positive since "reg" could be NULL just above
(otherwise it would be tested for).

-- 
Cheers,
Stephen Rothwell

[toc] | [next] | [standalone]


#1558416 — Re: linux-next: build warning after merge of the wireless-drivers-next tree

FromKalle Valo <kvalo@codeaurora.org>
Date2017-01-13 14:50 +0100
SubjectRe: linux-next: build warning after merge of the wireless-drivers-next tree
Message-ID<sZaoW-1ux-27@gated-at.bofh.it>
In reply to#1557926
Stephen Rothwell <sfr@canb.auug.org.au> writes:

> Hi all,
>
> After merging the wireless-drivers-next tree, today's linux-next build
> (x86_64 allmodconfig) produced this warning:
>
> drivers/net/wireless/marvell/mwifiex/pcie.c: In function 'mwifiex_pcie_remove':
> drivers/net/wireless/marvell/mwifiex/pcie.c:303:5: warning: 'fw_status' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   if (fw_status == FIRMWARE_READY_PCIE && !adapter->mfg_mode) {
>      ^
>
> Introduced by commit
>
>   045f0c1b5e26 ("mwifiex: get rid of global user_rmmod flag")
>
> This is not a false positive since "reg" could be NULL just above
> (otherwise it would be tested for).

Thanks, I noticed this myself yesterday (after I had applied the patch)
and I have asked Marvell to send a fix.

-- 
Kalle Valo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web