diff options
| author | Andy Shevchenko <[email protected]> | 2019-12-16 19:38:50 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-12-29 15:20:05 +0000 |
| commit | be4ac8321ff2c0085573500ce819e80cfa38d770 (patch) | |
| tree | fce34f86598c02cd3346b73fb9ae00a8d3e2d12a /tools/perf/scripts/python | |
| parent | 2e8bd34a16f833c6e4d2fd725bac2cdb8faf61fc (diff) | |
iio: pressure: st_press: Mark default_press_pdata with __maybe_unused
Since we put static variable to a header file it's copied to each module
that includes the header. But not all of them are actually used it.
Mark default_press_pdata with __maybe_unused to calm a compiler down:
In file included from drivers/iio/pressure/st_pressure_spi.c:18:
drivers/iio/pressure/st_pressure.h:40:46: warning: ‘default_press_pdata’ defined but not used [-Wunused-const-variable=]
40 | static const struct st_sensors_platform_data default_press_pdata = {
| ^~~~~~~~~~~~~~~~~~~
...
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions