[PATCH/RFC] __kernel_long and __kernel_ulong
Chris Packham
chris.packham at alliedtelesis.co.nz
Tue Jul 31 05:38:10 UTC 2012
Hi,
A change in linux 3.4 introduced __kernel_long_t and __kernel_ulong_t
[1] and further changes used them in header files exported for userspace
apps [2]. This causes various userpsace apps to fail to build when using
uclibc and linux 3.4 with the error
error: expected specifier-qualifier-list before ‘__kernel_long_t’
What follows is my attempt to add the definitions of these types to the
various kernel_types.h header files. I generated the changes using the
coccinelle semantic patching tool[3]. I'm a bit of a novice when it
comes to using spatch so if anyone knows how to convince spatch to get
the whitespace right that'd really help. Failing that I can fix it up
manually if the direction of my change is acceptable.
I've only been able to test that this change compiles on powerpc but the
changes for the other architectures look sane.
Thanks,
Chris
P.S. Sorry if my corporate email system adds a disclaimer. If it's too
annoying I can re-submit from a gmail account.
--
[1] - http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=afead38d01
[2] - http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=109a1f32d0
[3] - http://coccinelle.lip6.fr/
More information about the uClibc
mailing list