From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: Joe Perches <joe@perches.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:46:51 -0800 [thread overview]
Message-ID: <1448448411.3154.32.camel@intel.com> (raw)
In-Reply-To: <1448412212.20113.12.camel@perches.com>
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-11-25 10:47 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 [this message]
2015-11-25 10:55 ` David Laight
2015-11-25 10:58 ` Joe Perches
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=1448448411.3154.32.camel@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=davem@davemloft.net \
--cc=helin.zhang@intel.com \
--cc=joe@perches.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 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.