From: Stefan Richter Date: Wed, 7 Jul 2010 12:13:14 +0000 (+0200) Subject: firewire: core: ensure some userspace API constants match corresponding kernel API... X-Git-Tag: v2.6.36-rc1~490^2^3~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb5b35a560510efc6bb62f05c3c82e9596cdfafe;p=pandora-kernel.git firewire: core: ensure some userspace API constants match corresponding kernel API constants The FW_ISO_ constants of the in-kernel API of firewire-core and FW_CDEV_ISO_ constants of the userspace API of firewire-core have nothing to do with each other --- except that the core-cdev.c implementation relies on them having the same values. Hence put some compile-time assertions into core-cdev.c. It's lame but I prefer it over including the userspace API header into the kernelspace API header and defining kernelspace API constants from userspace API constants. Nor do I want to expose the kernelspace constants in one of the two firewire headers that are exported to userland since this only concerns the core-cdev.c implementation. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed