From ee0d7c25e5c9385337db9ffe4eba0a1bfde3b19f Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Mon, 30 Dec 2002 19:01:43 -0800 Subject: [PATCH] Atari NCR5380 SCSI: bitops operate on long Atari NCR5380 SCSI driver tag bitmap updates: - Use DECLARE_BITMAP() to declare the tag bitmap - Remove `MAX_TAGS must be a multiple of 32', which is no longer true - Declare and use CLEAR_BITMAP() to set all bits in a bitmap to zero - Fix bitops call problems that got unnoticed before --- include/linux/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/types.h b/include/linux/types.h index 87985824b16e..94ceb057eb64 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -6,6 +6,8 @@ #define DECLARE_BITMAP(name,bits) \ unsigned long name[((bits)+BITS_PER_LONG-1)/BITS_PER_LONG] +#define CLEAR_BITMAP(name,bits) \ + memset(name, 0, ((bits)+BITS_PER_LONG-1)/8) #endif #include -- cgit v1.2.3