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: <20200827142536.587f0ecc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date:   Thu, 27 Aug 2020 14:25:36 -0700
From:   Jakub Kicinski <kuba@...nel.org>
To:     Shannon Nelson <snelson@...sando.io>
Cc:     netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH v2 net-next 07/12] ionic: reduce contiguous memory
 allocation requirement

On Thu, 27 Aug 2020 12:53:17 -0700 Shannon Nelson wrote:
> On 8/27/20 12:46 PM, Jakub Kicinski wrote:
> > On Thu, 27 Aug 2020 11:07:30 -0700 Shannon Nelson wrote:  
> >> +	q_base = (void *)PTR_ALIGN((uintptr_t)new->q_base, PAGE_SIZE);  
> > The point of PTR_ALIGN is to make the casts unnecessary. Does it not
> > work?  
> Here's what I see from two different compiler versions:
> 
> drivers/net/ethernet/pensando/ionic/ionic_lif.c:514:9: warning: 
> assignment makes pointer from integer without a cast [-Wint-conversion]
>    q_base = PTR_ALIGN((uintptr_t)new->q_base, PAGE_SIZE);
> 
> 
> drivers/net/ethernet/pensando/ionic/ionic_lif.c:514:9: warning: 
> assignment to 'void *' from 'long unsigned int' makes pointer from 
> integer without a cast [-Wint-conversion]
>    q_base = PTR_ALIGN((uintptr_t)new->q_base, PAGE_SIZE);

Just

	q_base = PTR_ALIGN(new->q_base, PAGE_SIZE);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ