From 823d9c021da010234653a736d29c6807b6c900c0 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 13 Oct 2009 15:46:56 -0700 Subject: [PATCH] compat-2.6.32.h: cast const'd 4th argument on wireless_send_event() 2.6.32 constified the 4th argument to wireless_send_event(), we can avoid these pesky warning by casting for older kernels. Signed-off-by: Luis R. Rodriguez --- compat/compat-2.6.32.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/compat-2.6.32.h b/compat/compat-2.6.32.h index 9c2dba980bc2..ad7f01b7a175 100644 --- a/compat/compat-2.6.32.h +++ b/compat/compat-2.6.32.h @@ -9,6 +9,7 @@ #include #include +#include #define SDIO_VENDOR_ID_INTEL 0x0089 #define SDIO_DEVICE_ID_INTEL_IWMC3200WIMAX 0x1402 @@ -68,6 +69,7 @@ struct dev_pm_ops name = { \ #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) #endif /* >= 2.6.29 */ +#define wireless_send_event(a, b, c, d) wireless_send_event(a, b, c, (char * ) d) #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)) */ -- 2.30.2