Skip to content

Commit d11cbde

Browse files
TeddyEngelgregkh
authored andcommitted
staging: rtl8192e: Fix conflicting types error with net_device.
Add a pre-declaration of struct net_device so the compiler is able to use rtl_pci.h / rtl_cam.h. Signed-off-by: Teddy Engel <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 7dff0b2 ("staging: rtl8192e: Remove unnecessary pre-declaration of struct net_device") Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 22b65ba commit d11cbde

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/staging/rtl8192e/rtl8192e/rtl_cam.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include <linux/types.h>
1414

15+
struct net_device;
16+
1517
void rtl92e_cam_reset(struct net_device *dev);
1618
void rtl92e_enable_hw_security_config(struct net_device *dev);
1719
void rtl92e_set_key(struct net_device *dev, u8 EntryNo, u8 KeyIndex,

drivers/staging/rtl8192e/rtl8192e/rtl_pci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <linux/types.h>
1414
#include <linux/pci.h>
1515

16+
struct net_device;
17+
1618
bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
1719

1820
#endif

0 commit comments

Comments
 (0)