diff options
| author | Wei Yongjun <[email protected]> | 2020-07-07 10:55:43 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-07-07 19:59:37 +0000 |
| commit | 847d97e013dc8359312e2376c4805ef9d2a52f64 (patch) | |
| tree | fb216de92e11b2aa023759d9840a670ffe885669 /tools/bpf/bpftool/common.c | |
| parent | sun/niu: add __maybe_unused attribute to PM functions (diff) | |
| download | kernel-847d97e013dc8359312e2376c4805ef9d2a52f64.tar.gz kernel-847d97e013dc8359312e2376c4805ef9d2a52f64.zip | |
sun/cassini: mark cas_resume() as __maybe_unused
In certain configurations without power management support, gcc report
the following warning:
drivers/net/ethernet/sun/cassini.c:5206:12: warning:
'cas_resume' defined but not used [-Wunused-function]
5206 | static int cas_resume(struct device *dev_d)
| ^~~~~~~~~~
Mark cas_resume() as __maybe_unused to make it clear.
Fixes: f193f4ebde3d ("sun/cassini: use generic power management")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions
