From: Marti Bolivar Date: Fri, 1 May 2015 21:10:59 +0000 (-0400) Subject: staging: rtl8192u: don't redefine container_of() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac04b3b73bbcbee48112fb516b1fdd67d0146da5;p=linux-beck.git staging: rtl8192u: don't redefine container_of() This file already includes . Signed-off-by: Marti Bolivar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h index 702bef6e2f56..23af2aad458e 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h @@ -24,7 +24,7 @@ #ifndef IEEE80211_H #define IEEE80211_H #include /* ETH_ALEN */ -#include /* ARRAY_SIZE */ +#include #include #include #include @@ -49,21 +49,6 @@ #define IWEVCUSTOM 0x8c02 #endif - -#ifndef container_of -/** - * container_of - cast a member of a structure out to the containing structure - * - * @ptr: the pointer to the member. - * @type: the type of the container struct this is embedded in. - * @member: the name of the member within the struct. - * - */ -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) -#endif - #define KEY_TYPE_NA 0x0 #define KEY_TYPE_WEP40 0x1 #define KEY_TYPE_TKIP 0x2