lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 8 Jun 2008 17:12:35 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Dean Nelson <dcn@....com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [Patch 03/18] define BYTES_PER_WORD

On Fri, 6 Jun 2008 11:44:55 -0500 Dean Nelson <dcn@....com> wrote:

> Add a BYTES_PER_WORD #define.
> 
> Signed-off-by: Dean Nelson <dcn@....com>
> 
> ---
> 
>  drivers/misc/sgi-xp/xp.h |    3 +++
>  1 file changed, 3 insertions(+)
> 
> Index: linux-2.6/drivers/misc/sgi-xp/xp.h
> ===================================================================
> --- linux-2.6.orig/drivers/misc/sgi-xp/xp.h	2008-05-30 13:59:29.580809165 -0500
> +++ linux-2.6/drivers/misc/sgi-xp/xp.h	2008-05-30 14:00:00.200614111 -0500
> @@ -19,6 +19,9 @@
>  #include <asm/sn/types.h>
>  #include <asm/sn/bte.h>
>  
> +/* >>> Add this #define to some linux header file some day. */

The patches fill the code with this ">>>" string - which can cause
false positives when people are searching for git rejects.  Although I
(and I suspect most other people) search for "<<<<<<<".

> +#define BYTES_PER_WORD	sizeof(void *)

Dunno if this is a desirable thing to have, really.  A "word" is a
somewhat ill-defined thing.  The definition you have here is always
equal to BYTES_PER_LONG.  If BYTES_PER_LONG is inappropriate then
BYTES_PER_POINTER would be clearer.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ