diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-10-08 02:02:42 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-08 03:46:30 +0200 |
commit | 589a9785ee3a7cb85f1dedc3dad1c9754c691880 (patch) | |
tree | 2a58cb3d8c4c0e1c9e025750dd4801f99352d7f1 /arch/mips/include/asm/irq.h | |
parent | Documentation/filesystems/proc.txt: add more description for maps/smaps (diff) | |
download | linux-589a9785ee3a7cb85f1dedc3dad1c9754c691880.tar.xz linux-589a9785ee3a7cb85f1dedc3dad1c9754c691880.zip |
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/1471519773-29882-1-git-send-email-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/include/asm/irq.h')
0 files changed, 0 insertions, 0 deletions