aic7xxx: Avoid name collision with <linux/list.h>
authorMichal Marek <mmarek@suse.com>
Wed, 14 Oct 2015 08:35:23 +0000 (10:35 +0200)
committerMichal Marek <mmarek@suse.com>
Tue, 5 Jan 2016 21:10:35 +0000 (22:10 +0100)
Rename the local definition of LIST_HEAD to BSD_LIST_HEAD. This fixes a
ctags error if we apply the C rules to header files  as well:

ctags: Warning: drivers/scsi/aic7xxx/aic79xx.h:1072: null expansion of name pattern "\3"
ctags: Warning: drivers/scsi/aic7xxx/aic7xxx.h:919: null expansion of name pattern "\3"

Signed-off-by: Michal Marek <mmarek@suse.com>
drivers/scsi/aic7xxx/aic79xx.h
drivers/scsi/aic7xxx/aic79xx_osm.h
drivers/scsi/aic7xxx/aic7xxx.h
drivers/scsi/aic7xxx/aic7xxx_osm.h
drivers/scsi/aic7xxx/queue.h

index df2e0e5..d47b527 100644 (file)
@@ -624,7 +624,7 @@ struct scb {
 };
 
 TAILQ_HEAD(scb_tailq, scb);
-LIST_HEAD(scb_list, scb);
+BSD_LIST_HEAD(scb_list, scb);
 
 struct scb_data {
        /*
@@ -1069,7 +1069,7 @@ struct ahd_softc {
        /*
         * SCBs that have been sent to the controller
         */
-       LIST_HEAD(, scb)          pending_scbs;
+       BSD_LIST_HEAD(, scb)      pending_scbs;
 
        /*
         * Current register window mode information.
index c58fa33..728193a 100644 (file)
 /* Core SCSI definitions */
 #define AIC_LIB_PREFIX ahd
 
-/* Name space conflict with BSD queue macros */
-#ifdef LIST_HEAD
-#undef LIST_HEAD
-#endif
-
 #include "cam.h"
 #include "queue.h"
 #include "scsi_message.h"
index f695774..4ce4e90 100644 (file)
@@ -916,7 +916,7 @@ struct ahc_softc {
        /*
         * SCBs that have been sent to the controller
         */
-       LIST_HEAD(, scb)          pending_scbs;
+       BSD_LIST_HEAD(, scb)      pending_scbs;
 
        /*
         * Counting lock for deferring the release of additional
index bc4cca9..54c7028 100644 (file)
 /* Core SCSI definitions */
 #define AIC_LIB_PREFIX ahc
 
-/* Name space conflict with BSD queue macros */
-#ifdef LIST_HEAD
-#undef LIST_HEAD
-#endif
-
 #include "cam.h"
 #include "queue.h"
 #include "scsi_message.h"
index 8adf800..ba60298 100644 (file)
@@ -246,7 +246,7 @@ struct {                                                            \
 /*
  * List declarations.
  */
-#define        LIST_HEAD(name, type)                                           \
+#define        BSD_LIST_HEAD(name, type)                                       \
 struct name {                                                          \
        struct type *lh_first;  /* first element */                     \
 }