From: Philip J Perry Date: Sat, 18 Jan 2014 23:20:25 +0000 (+0000) Subject: make define release_region conditional X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f361ce9049e115e479fd0fb79a76e1ace1365b2f;p=groeck-nct6775 make define release_region conditional release_region is defined on RHEL6 although request_muxed_region isn't so generates a warning: warning: "release_region" redefined Making it conditional eliminates the warning. Signed-off-by: Guenter Roeck --- diff --git a/compat.h b/compat.h index 49642d2..a697a62 100644 --- a/compat.h +++ b/compat.h @@ -208,6 +208,8 @@ module_exit(__driver##_exit); #ifndef request_muxed_region #define request_muxed_region(a, b, c) (true) +#endif +#ifndef release_region #define release_region(a, b) #endif