All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Knutsson <ricknu-0@student.ltu.se>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] standardizing on boolean variables?
Date: Mon, 22 Jan 2007 09:03:39 +0000	[thread overview]
Message-ID: <45B47DEB.5070007@student.ltu.se> (raw)
In-Reply-To: <Pine.LNX.4.64.0701210324380.13751@CPE00045a9c397f-CM001225dbafb6>

Robert P. J. Day wrote:
>   by the way, part of my style script looks for code that insists on
> redefining booleans in one way or another.  at the moment, it looks
> like this:
>
> $ grep -ri "^typedef.*bool" .
>   
Is the script also checking for booleans defined by "#define" or "enum" 
(without typedef)?
> ./drivers/scsi/BusLogic.h:typedef bool boolean;
>   
Sent a patch on this one yesterday to LKML.
> ./drivers/scsi/pci2000.h:typedef        BOOL    *PBOOL;
> ./drivers/telephony/ixj.h:typedef __u8 BOOL;
> ./drivers/block/DAC960.h:typedef bool boolean;
>   
How did I miss this one?
> ./drivers/video/riva/riva_hw.h:typedef int Bool;
> ./drivers/video/sis/vgatypes.h:typedef unsigned int BOOLEAN;
> ./arch/parisc/math-emu/float.h:typedef int boolean;
> ./include/acpi/actypes.h:typedef unsigned char BOOLEAN;
> ./include/linux/types.h:typedef _Bool                   bool;
>   
The "generic" one.
> ./include/linux/efi.h:typedef u8 efi_bool_t;
> ./include/linux/efi.h:typedef efi_status_t efi_get_wakeup_time_t (efi_bool_t *enabled, efi_bool_t *pending,
> ./include/linux/efi.h:typedef efi_status_t efi_set_wakeup_time_t (efi_bool_t enabled, efi_time_t *tm);
> ./fs/xfs/xfs_types.h:typedef enum { B_FALSE,B_TRUE }    boolean_t;
>   
Have sent them a patch before but they seemed not too interested for the 
moment. Will come back when most of the cleanup is done.
>  did you want to submit a patch to clean up any of that, if it can be
> done at the moment?
>   
Should get DAC960.h out today. But the rest should be checked, to see if 
it is used when declaring in struct's and that struct is 
mem(cmp|cpy|move|...) (or something that may be size-sensitive).

Any help appreciated ;)
Richard Knutsson

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2007-01-22  9:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21  8:36 [KJ] standardizing on boolean variables? Robert P. J. Day
2007-01-21  9:02 ` Alexey Dobriyan
2007-01-21  9:30 ` Robert P. J. Day
2007-01-21 10:36 ` Tobias Klauser
2007-01-21 10:58 ` Richard Knutsson
2007-01-21 11:30 ` Robert P. J. Day
2007-01-21 11:54 ` Robert P. J. Day
2007-01-21 12:29 ` Richard Knutsson
2007-01-21 12:47 ` Robert P. J. Day
2007-01-22  8:08 ` Robert P. J. Day
2007-01-22  9:03 ` Richard Knutsson [this message]
2007-01-22  9:15 ` Robert P. J. Day
2007-01-22 10:00 ` Robert P. J. Day

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B47DEB.5070007@student.ltu.se \
    --to=ricknu-0@student.ltu.se \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.