Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108274
b: refs/heads/master
c: 5f8c3c8
h: refs/heads/master
v: v3
  • Loading branch information
Michael Abbott authored and Linus Torvalds committed Aug 12, 2008
1 parent 4d4a3f0 commit 6a4fae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 666593137185dc0ad1ee8966c8d7fef8f4bb84b2
refs/heads/master: 5f8c3c8edff426fd87098f057688463107fcd9ce
4 changes: 4 additions & 0 deletions trunk/include/asm-generic/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,16 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))

#ifdef __KERNEL__
/* provoke compile error for invalid uses of size argument */
extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
#else
#define _IOC_TYPECHECK(t) (sizeof(t))
#endif

/* used to create numbers */
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
Expand Down

0 comments on commit 6a4fae9

Please sign in to comment.