Skip to contentSkip to conversation

scsi: mptfusion: Remove #ifndef __GENKSYMS__ / #endif

PATCH Applied Bart Van Assche 2 participants 3 messages Sep 30, 2024 – Oct 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: mptfusion: Remove #ifndef __GENKSYMS__ / #endif

Except for preventing build errors, there shouldn't be any conditionals in kernel drivers on __GENKSYMS__. Hence remove an #ifndef __GENKSYMS__ / #endif pair from the MPT Fusion driver.

Cc Sathya Prakash <[email protected]>
Cc Sreekanth Reddy <[email protected]>
Cc Suganath Prabu Subramani <[email protected]>
---
 drivers/message/fusion/mptlan.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/message/fusion/mptlan.h +0 -3
index a1ec7e84d6fe..40b34f670065 100644
@@ -51,10 +51,7 @@
 #define LINUX_MPTLAN_H_INCLUDED
 /*****************************************************************************/
 
-#if !defined(__GENKSYMS__)
 #include <linux/module.h>
-#endif
-
 #include <linux/netdevice.h>
 #include <linux/errno.h>
 // #include <linux/etherdevice.h>
#1 lore raw

Bart,

Quoted 3 lines

Except for preventing build errors, there shouldn't be any conditionals in kernel drivers on __GENKSYMS__. Hence remove an #ifndef __GENKSYMS__ / #endif pair from the MPT Fusion driver.

Applied to 6.13/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#2 lore raw
In reply to Bart Van Assche
Quoted 5 lines · Bart Van Assche

Except for preventing build errors, there shouldn't be any conditionals in kernel drivers on __GENKSYMS__. Hence remove an #ifndef __GENKSYMS__ / #endif pair from the MPT Fusion driver.

Applied to 6.13/scsi-queue, thanks!

[1/1] scsi: mptfusion: Remove #ifndef __GENKSYMS__ / #endif

      https://git.kernel.org/mkp/scsi/c/09822c231ae6
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering