sparc asm/ptrace.h use of bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Dave.  Some of your recent changes to asm/ptrace.h made it require that
the 'bool' typedef be defined by linux/types.h or something else prior.
This broke userland, where linux/types.h does not define bool.

e.g.
http://buildd.debian.org/build.php?arch=sparc&pkg=strace&ver=4.5.17+cvs080723-1

It's easy to work around this in strace, and we have.

But you probably want to fix asm/ptrace.h before you start breaking other
things people try to recompile against the latest kernel headers.  Try:
	echo '#include <asm/ptrace.h>' | gcc -S -o - -xc - > /dev/null
to check it's usable.  (Possibly we could add something like that into
some version of make headers_check.)

You could either move those new functions inside #ifdef __KERNEL__, or if
you want them exported for userland, just make them use int instead of bool.


Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux