Have you tried this out? - if it works, what I'm about to say is
complete bull ;)
> case 1: __get_user_x(1,__ret_gu,__val_gu,ptr); break; \
You're not passing an integer 1 here. You're passing a symbol(string)
called 1 which using #size is turned into this
"call __put_user_" "1"
> __get_user_x(sizeof (*(ptr)),__ret_gu,__val_gu,ptr); \
Here you're trying to do the same with a compiletime/runtime function
integer result. It's just not going to work the same way.
I don't have time to check this out - its just a hunch.
Good Luck,
Mark.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!