]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Fix fasttrap ioctls and headers_check.
authorNick Alcock <nick.alcock@oracle.com>
Wed, 31 Jul 2013 19:01:52 +0000 (20:01 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 31 Jul 2013 19:01:52 +0000 (20:01 +0100)
commit471a3549a96b3792db9f3bf038100ab8306efb4c
treeba90d0b61734d2c4cab451f22104aade0521596b
parent97f35a0237f0ab2ff6566c886d74993437812b2f
Fix fasttrap ioctls and headers_check.

These were being included before their structure definitions, leading to the
possibility of wrong values for FASTTRAPIOC_*.

Instead, split the FASTTRAPIOC* definitions into a new header, fasttrap_ioctl.h:
this includes fasttrap.h to get the structure definitions, and is also included
by it, so that either header can be included to get the ioctl definitions. We
then extend "make headers_check" so that it does the extended ioctl checks on
all headers named *ioctl.h, not just ioctl.h. (These checks are quite grotesque:
we don't want to run them on every DTrace uapi header if that can be avoided.)

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/Makefile
dtrace/include/uapi/linux/dtrace/fasttrap.h
dtrace/include/uapi/linux/dtrace/fasttrap_ioctl.h [new file with mode: 0644]