diff options
author | Johannes Berg <[email protected]> | 2016-10-07 17:02:42 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-10-07 18:46:30 -0700 |
commit | 589a9785ee3a7cb85f1dedc3dad1c9754c691880 (patch) | |
tree | 2a58cb3d8c4c0e1c9e025750dd4801f99352d7f1 /lib/mpi/mpi-bit.c | |
parent | 53aeee7a86620b4dca81f6b807b37f36e7f99b09 (diff) |
min/max: remove sparse warnings when they're nested
Currently, when min/max are nested within themselves, sparse will warn:
warning: symbol '_min1' shadows an earlier one
originally declared here
warning: symbol '_min1' shadows an earlier one
originally declared here
warning: symbol '_min2' shadows an earlier one
originally declared here
This also immediately happens when min3() or max3() are used.
Since sparse implements __COUNTER__, we can use __UNIQUE_ID() to
generate unique variable names, avoiding this.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions