diff options
| author | Guenter Roeck <[email protected]> | 2015-05-05 23:23:57 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-05-06 00:10:11 +0000 |
| commit | 05836c378c7af9527b98a83746f32c7289a5f3c8 (patch) | |
| tree | 007baa4d6090b46190f97c5c7e0bd6926995043c /lib/mpi/mpicoder.c | |
| parent | configfs: init configfs module earlier at boot time (diff) | |
| download | kernel-05836c378c7af9527b98a83746f32c7289a5f3c8.tar.gz kernel-05836c378c7af9527b98a83746f32c7289a5f3c8.zip | |
util_macros.h: have array pointer point to array of constants
Using the new find_closest() macro can result in the following sparse
warnings.
drivers/hwmon/lm85.c:194:16: warning:
incorrect type in initializer (different modifiers)
drivers/hwmon/lm85.c:194:16: expected int *__fc_a
drivers/hwmon/lm85.c:194:16: got int static const [toplevel] *<noident>
drivers/hwmon/lm85.c:210:16: warning:
incorrect type in initializer (different modifiers)
drivers/hwmon/lm85.c:210:16: expected int *__fc_a
drivers/hwmon/lm85.c:210:16: got int const *map
This is because the array passed to find_closest() will typically be
declared as array of constants, but the macro declares a non-constant
pointer to it.
Signed-off-by: Guenter Roeck <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
