linux_dsm_epyc7002/drivers/net/ethernet/amd
Nathan Chancellor 75603a3112 pcnet32: Mark PM functions as __maybe_unused
In certain configurations without power management support, the
following warnings happen:

../drivers/net/ethernet/amd/pcnet32.c:2928:12: warning:
'pcnet32_pm_resume' defined but not used [-Wunused-function]
 2928 | static int pcnet32_pm_resume(struct device *device_d)
      |            ^~~~~~~~~~~~~~~~~
../drivers/net/ethernet/amd/pcnet32.c:2916:12: warning:
'pcnet32_pm_suspend' defined but not used [-Wunused-function]
 2916 | static int pcnet32_pm_suspend(struct device *device_d)
      |            ^~~~~~~~~~~~~~~~~~

Mark these functions as __maybe_unused to make it clear to the compiler
that this is going to happen based on the configuration, which is the
standard for these types of functions.

Fixes: a86688fbef ("pcnet32: Convert to generic power management")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-30 18:17:54 -07:00
..
xgbe amd-xgbe: Convert to generic power management 2020-06-23 20:31:18 -07:00
7990.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
7990.h net: 7990: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:26:14 -07:00
a2065.c net: amd: a2065: Use print_hex_dump_debug() helper 2020-01-12 16:20:26 -08:00
a2065.h
am79c961a.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
am79c961a.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
amd8111e.c amd8111e: Mark PM functions as __maybe_unused 2020-06-30 18:17:53 -07:00
amd8111e.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
ariadne.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ariadne.h
atarilance.c net: atarilance: Replace zero-length array with flexible-array 2020-05-11 13:18:54 -07:00
au1000_eth.c net/amd: Remove useless driver version 2020-02-24 11:24:47 -08:00
au1000_eth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 400 2019-06-05 17:37:13 +02:00
declance.c drivers: net: declance: fix comparing pointer to 0 2020-01-21 12:04:57 +01:00
hplance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hplance.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
lance.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mvme147.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
ni65.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ni65.h
nmclan_cs.c net/amd: Remove useless driver version 2020-02-24 11:24:47 -08:00
pcnet32.c pcnet32: Mark PM functions as __maybe_unused 2020-06-30 18:17:54 -07:00
sun3lance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
sunlance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00