Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361934
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net: smc911x: avoid unused variable warnings |
| Date | 2016-03-21 16:30 +0100 |
| Message-ID | <rf9Wi-7Az-17@gated-at.bofh.it> (permalink) |
| References | <rf3Hc-337-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Arnd Bergmann <arnd@arndb.de>
Date: Mon, 21 Mar 2016 09:30:59 +0100
> The change to use the generic DMA engine API in the smc911x
> driver has led to a harmless warning about unused local variables:
>
> smsc/smc911x.c: In function 'smc911x_probe':
> smsc/smc911x.c:1796:20: error: unused variable 'param'
> smsc/smc911x.c:1795:17: error: unused variable 'mask'
> smsc/smc911x.c:1794:26: error: unused variable 'config'
>
> This puts the variable declarations inside of the same #ifdef
> that protects their use.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 79d3b59a93ba ("net: smc911x: convert pxa dma to dmaengine")
Applied.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] net: smc911x: avoid unused variable warnings Arnd Bergmann <arnd@arndb.de> - 2016-03-21 09:50 +0100 Re: [PATCH] net: smc911x: avoid unused variable warnings David Miller <davem@davemloft.net> - 2016-03-21 16:30 +0100
csiph-web