Skip to contentSkip to conversation

staging: rtl8723bs: Add missing include <linux/of.h> to fix compile error

PATCH In review Hans de Goede 3 participants 3 messages Apr 10, 2017 – Apr 11, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: Add missing include <linux/of.h> to fix compile error

As reported by Stephen Rothwell when merging staging-next, drivers/staging/rtl8723bs/core/rtw_ieee80211.c does not compile due to of_get_property not being declared.

Explicitly include <linux/of.h> to fix this compile error.

Cc Stephen Rothwell <[email protected]>
---
 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +1 -1
index af44a8c..74f5ee0 100644
@@ -16,7 +16,7 @@
 
 #include <drv_types.h>
 #include <rtw_debug.h>
-
+#include <linux/of.h>
 
 u8 RTW_WPA_OUI_TYPE[] = { 0x00, 0x50, 0xf2, 1 };
 u16 RTW_WPA_VERSION = 1;
Signature · 1 line
2.9.3
#1 lore raw

Hi Hans,

Quoted 28 lines · On Mon, 10 Apr 2017 21:13:07 +0200 Hans de Goede <[email protected]> wrote:

As reported by Stephen Rothwell when merging staging-next, drivers/staging/rtl8723bs/core/rtw_ieee80211.c does not compile due to of_get_property not being declared.

Explicitly include <linux/of.h> to fix this compile error.

Cc Stephen Rothwell <[email protected]>
---
 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +1 -1
index af44a8c..74f5ee0 100644
@@ -16,7 +16,7 @@
 
 #include <drv_types.h>
 #include <rtw_debug.h>
-
+#include <linux/of.h>
 
 u8 RTW_WPA_OUI_TYPE[] = { 0x00, 0x50, 0xf2, 1 };
 u16 RTW_WPA_VERSION = 1;
Signature · 1 line
2.9.3

I will add this to linux-next today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
In reply to Hans de Goede
Quoted 7 lines · Hans de Goede

As reported by Stephen Rothwell when merging staging-next, drivers/staging/rtl8723bs/core/rtw_ieee80211.c does not compile due to of_get_property not being declared.

Explicitly include <linux/of.h> to fix this compile error.

Cc Stephen Rothwell <[email protected]>

You should use "Reported-by:" here in the future...

thanks,

greg k-h