diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-11 04:51:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-11 04:51:56 -0700 |
| commit | 6406b41a17722a0c7d92efc6e507c2f35d9cb883 (patch) | |
| tree | 4cacbb7f4008dd726fab54c9f37d5cff34532df5 /include/linux | |
| parent | 6ff5815eb499a4ef58102a1fded32a1bd7cfc9bd (diff) | |
Add infrastructure to easily make _correct_ bitmap members
in structures and unions (and why not other variables too..)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index c102bcf8be83..3ee38ccc272c 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -3,6 +3,9 @@ #ifdef __KERNEL__ #include <linux/config.h> + +#define bitmap_member(name,bits) \ + unsigned long name[((bits)+BITS_PER_LONG-1)/BITS_PER_LONG] #endif #include <linux/posix_types.h> |
