diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-12-01 12:46:43 +0100 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-01-14 15:15:54 +0100 |
| commit | c4f7f3117e80fd12f898f24630f146316c809189 (patch) | |
| tree | ac7f066a3cdaa62aea699511a13c2bb6f176da42 /tools/perf/scripts/python/bin | |
| parent | agp/ati: Return error from ati_create_page_map() (diff) | |
| download | linux-c4f7f3117e80fd12f898f24630f146316c809189.tar.gz linux-c4f7f3117e80fd12f898f24630f146316c809189.zip | |
agp/nvidia: Declare value returned by readl() as unused
Fix the compiler warning
drivers/char/agp/nvidia-agp.c: In function 'nvidia_tlbflush':
drivers/char/agp/nvidia-agp.c:264:22: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
264 | u32 wbc_reg, temp;
by marking the temp variable with __maybe_unused. The affected readl()
is only required for flushing caches, but the returned value is not of
interest.
v2:
* declare temp as __maybe_unused (Helge)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211201114645.15384-6-tzimmermann@suse.de
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
