From: Joe Perches <joe@perches.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>, davem@davemloft.net
Cc: Helin Zhang <helin.zhang@intel.com>,
netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
jogreene@redhat.com
Subject: Re: [net-next 06/16] i40e: Properly cast type for arithmetic
Date: Wed, 25 Nov 2015 02:58:22 -0800 [thread overview]
Message-ID: <1448449102.20113.28.camel@perches.com> (raw)
In-Reply-To: <1448448411.3154.32.camel@intel.com>
On Wed, 2015-11-25 at 02:46 -0800, Jeff Kirsher wrote:
> On Tue, 2015-11-24 at 16:43 -0800, Joe Perches wrote:
> > On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote:
> > > From: Helin Zhang <helin.zhang@intel.com>
> > >
> > > Pointer of type void * shouldn't be used in arithmetic, which may
> > > result in compilation error. Casting of (u8 *) can be added to fix
> > > that.
> > >
> >
> > void * arithmetic is used quite frequently in the kernel.
> >
> > What compiler emits an error?
>
> When you use the gcc -Wpointer-arith, it generates the warning.
make W=3 does that
$ make help
[...]
make W=n [targets] Enable extra gcc checks, n=1,2,3 where
1: warnings which may be relevant and do not occur too often
2: warnings which occur quite often but may still be relevant
3: more obscure warnings, can most likely be ignored
but I think it should be ignored.
next prev parent reply other threads:[~2015-11-25 10:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 0:04 [net-next 00/16][pull request] Intel Wired LAN Driver Updates 2015-11-24 Jeff Kirsher
2015-11-25 0:04 ` [net-next 01/16] fm10k: use napi_schedule_irqoff() Jeff Kirsher
2015-11-25 0:04 ` [net-next 02/16] i40e/i40evf: remove unused tunnel parameter Jeff Kirsher
2015-11-25 0:04 ` [net-next 03/16] i40e: Change BUG_ON to WARN_ON in service event complete Jeff Kirsher
2015-11-25 0:04 ` [net-next 04/16] i40e: remove BUG_ON from feature string building Jeff Kirsher
2015-11-25 0:04 ` [net-next 05/16] i40e: remove BUG_ON from FCoE setup Jeff Kirsher
2015-11-25 0:04 ` [net-next 06/16] i40e: Properly cast type for arithmetic Jeff Kirsher
2015-11-25 0:43 ` Joe Perches
2015-11-25 1:57 ` David Miller
2015-11-25 10:46 ` Jeff Kirsher
2015-11-25 10:55 ` David Laight
2015-11-25 10:58 ` Joe Perches [this message]
2015-11-25 17:12 ` Rustad, Mark D
2015-11-25 0:04 ` [net-next 07/16] i40e: Workaround fix for mss < 256 issue Jeff Kirsher
2015-11-25 0:04 ` [net-next 08/16] i40e/i40evf: Add a stat to track how many times we have to do a force WB Jeff Kirsher
2015-11-25 0:04 ` [net-next 09/16] i40e: Move the saving of old link info from handle_link_event to link_event Jeff Kirsher
2015-11-25 0:04 ` [net-next 10/16] i40e/i40evf: Add comment to #endif Jeff Kirsher
2015-11-25 0:04 ` [net-next 11/16] i40e/i40evf: clean up error messages Jeff Kirsher
2015-11-25 0:49 ` Joe Perches
2015-11-25 0:04 ` [net-next 12/16] i40evf: handle many MAC filters correctly Jeff Kirsher
2015-11-25 0:04 ` [net-next 13/16] i40e: return the number of enabled queues for ETHTOOL_GRXRINGS Jeff Kirsher
2015-11-25 0:04 ` [net-next 14/16] i40e: rework the functions to configure RSS with similar parameters Jeff Kirsher
2015-11-25 0:04 ` [net-next 15/16] i40e: create a generic configure rss function Jeff Kirsher
2015-11-25 0:04 ` [net-next 16/16] i40e: Bump version to 1.4.2 Jeff Kirsher
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=1448449102.20113.28.camel@perches.com \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=helin.zhang@intel.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jogreene@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
--cc=sassmann@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).