]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: check usleep_range() arguments
authorJoe Perches <joe@perches.com>
Mon, 30 Jul 2012 21:41:20 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:17 +0000 (17:25 -0700)
commitb4ff155f6e348e2b3798c183d801d836ae17edd1
treef6dd0354f66679adea5cab8aab0a620a6832e181
parent2a93199ead68ecc208776f638de36e443904c189
checkpatch: check usleep_range() arguments

usleep_range() shouldn't use the same args for min and max.

Report it when it happens and when both args are decimal and min > max.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Yuval Mintz <yuvalmin@broadcom.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl