[PATCH] ata: use clamp_t macro to avoid sparse warnings

2008-02-20 Thread Harvey Harrison
Nesting min_t/max_t macros produces many shadowed variable warnings due to use of __x. Add a clamp_t macro to linux/kernel.h and use it in the FIT macro. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> --- include/linux/kernel.h |9 + include/linux/libata.h |2 +- 2 files

[PATCH] ata: use clamp_t macro to avoid sparse warnings

2008-02-20 Thread Harvey Harrison
Nesting min_t/max_t macros produces many shadowed variable warnings due to use of __x. Add a clamp_t macro to linux/kernel.h and use it in the FIT macro. Signed-off-by: Harvey Harrison [EMAIL PROTECTED] --- include/linux/kernel.h |9 + include/linux/libata.h |2 +- 2 files