OpenCloudOS-Kernel/drivers/net/ethernet/smsc
Andrew Lunn 6015e6f2ef drivers: net: smc911x: Work around set but unused status
drivers/net/ethernet/smsc/smc911x.c: In function ‘smc911x_phy_interrupt’:
drivers/net/ethernet/smsc/smc911x.c:976:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
  976 |  int status;

A comment indicates the status needs to be read from the PHY,
otherwise bad things happen. But due to the macro magic, it is hard to
perform the read without assigning it to a variable. So add
_always_unused attribute to status to tell the compiler we don't
expect to use the value.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-12 14:49:39 -08:00
..
Kconfig docs: networking: reorganize driver documentation again 2020-06-26 16:08:44 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
epic100.c epic100: switch from 'pci_' to 'dma_' API 2020-09-03 16:53:11 -07:00
smc91c92_cs.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
smc91x.c drivers: net: smc91x: Fix missing kerneldoc reported by W=1 2020-11-12 14:49:39 -08:00
smc91x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smc911x.c drivers: net: smc911x: Work around set but unused status 2020-11-12 14:49:39 -08:00
smc911x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smc9194.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
smc9194.h
smsc911x.c net: smsc911x: Remove unused variables 2020-09-08 19:52:45 -07:00
smsc911x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smsc9420.c smsc9420: switch from 'pci_' to 'dma_' API 2020-09-03 16:53:28 -07:00
smsc9420.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00