[ofw] [Patches 15/26][Core] Adjust code to remove Prefast errors and warning
Smith, Stan
stan.smith at intel.com
Wed Jun 22 11:15:17 PDT 2011
See previous email on duplicate definitions...
-#define spin_lock_irq spin_lock
-#define spin_unlock_irq spin_unlock
+#define spin_lock_irq(_lock_) cl_spinlock_acquire((cl_spinlock_t *)(_lock_))
+#define spin_unlock_irq(_lock_) cl_spinlock_release((cl_spinlock_t *)(_lock_))
#define spin_lock_nested(a,b) spin_lock(a)
>-----Original Message-----
>From: Alex Naslednikov [mailto:xalex at mellanox.co.il]
>Sent: Sunday, June 19, 2011 5:32 AM
>To: Alex Naslednikov; ofw at lists.openfabrics.org; Smith, Stan
>Subject: RE: [ofw] [Patches 15/26][Core] Adjust code to remove Prefast errors and warning
>
>
>Prefast: more robust macro definitions
>
>
>
>
>Alexander (XaleX) Naslednikov
>SW Networking Team
>Mellanox Technologies
More information about the ofw
mailing list