Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145548
b: refs/heads/master
c: 3a55314
h: refs/heads/master
v: v3
  • Loading branch information
Jaswinder Singh Rajput authored and Ralf Baechle committed Jun 8, 2009
1 parent c40af20 commit e8f4a90
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: e25bfc9243f2eab12a2ce92b7f4b8a2e3e6949a6
refs/heads/master: 3a553147eaad5d4de90ab1f695aa13ddbea684ec
4 changes: 4 additions & 0 deletions trunk/arch/mips/include/asm/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,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 e8f4a90

Please sign in to comment.