diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2002-12-30 19:01:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-30 19:01:43 -0800 |
| commit | ee0d7c25e5c9385337db9ffe4eba0a1bfde3b19f (patch) | |
| tree | ad0e344f9bd1eb2dc68257a1a841be899c62f406 /include/linux | |
| parent | d04aa04949b4acdf0503749423b64a7d58585d2b (diff) | |
[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
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <linux/posix_types.h> |
