Re: [PATCH 3/4] sys/reboot: boolize C_A_D

2013-06-02 Thread Joe Perches
On Fri, 2013-05-31 at 16:02 -0700, Andrew Morton wrote: > there's no rule > which states that sizeof(bool) must equal sizeof(int). For gcc, sizeof(_Bool) isn't sizeof(int) so it would work for one endian but not the other. gcc has sizeof(_Bool) == sizeof(unsigned char) -- To unsubscribe from thi

Re: [PATCH 3/4] sys/reboot: boolize C_A_D

2013-06-02 Thread li guang
在 2013-05-31五的 16:02 -0700,Andrew Morton写道: > On Thu, 30 May 2013 15:58:05 +0800 liguang wrote: > > > --- a/include/linux/reboot.h > > +++ b/include/linux/reboot.h > > @@ -35,7 +35,7 @@ extern void kernel_restart(char *cmd); > > extern void kernel_halt(void); > > extern void kernel_power_off(vo

Re: [PATCH 3/4] sys/reboot: boolize C_A_D

2013-05-31 Thread Andrew Morton
On Thu, 30 May 2013 15:58:05 +0800 liguang wrote: > --- a/include/linux/reboot.h > +++ b/include/linux/reboot.h > @@ -35,7 +35,7 @@ extern void kernel_restart(char *cmd); > extern void kernel_halt(void); > extern void kernel_power_off(void); > > -extern int C_A_D; /* for sysctl */ > +extern b

[PATCH 3/4] sys/reboot: boolize C_A_D

2013-05-30 Thread liguang
Signed-off-by: liguang --- include/linux/reboot.h |2 +- kernel/sys.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 23b3630..a8c5e4c 100644 --- a/include/linux/reboot.h +++ b/include/linux/reboot.h