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]
Message-ID: <alpine.DEB.2.00.1107131037480.29034@router.home>
Date:	Wed, 13 Jul 2011 10:39:52 -0500 (CDT)
From:	Christoph Lameter <cl@...ux.com>
To:	Hugh Dickins <hughd@...gle.com>
cc:	Pekka Enberg <penberg@...nel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH next/mmotm] slab: fix DEBUG_SLAB build

On Tue, 12 Jul 2011, Hugh Dickins wrote:

> On Tue, 12 Jul 2011, Christoph Lameter wrote:
> > On Mon, 11 Jul 2011, Hugh Dickins wrote:
> >
> > > -#if ARCH_SLAB_MINALIGN
> > > -	if ((u32)objp & (ARCH_SLAB_MINALIGN-1)) {
> > > +	if ((unsigned long)objp & (ARCH_SLAB_MINALIGN-1)) {
> > >  		printk(KERN_ERR "0x%p: not aligned to ARCH_SLAB_MINALIGN=%d\n",
> >
> > Change %d to %ul for consistencies sake and drop the cast of
> > ARCH_SLAB_MINALIGN?
>
> I don't think we can drop the cast of ARCH_SLAB_MINALIGN, or not without
> a wander through all the architectures: it could well be defined as a bare
> integer in some of them, even if the default definition as __alignof__
> comes out as an unsigned long (which itself surprised me).

A bare integer can be handled by a %lu in a printk without the need for a
cast.

--
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