From: Joe Perches <joe@perches.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH 1/1] igb: Use ARRAY_SIZE instead fo sizeof(a)/sizeof(a[0])
Date: Tue, 30 Jun 2015 13:52:30 -0700 [thread overview]
Message-ID: <1435697550.12101.33.camel@perches.com> (raw)
In-Reply-To: <9B4A1B1917080E46B64F07F2989DADD653571BF0@ORSMSX114.amr.corp.intel.com>
On Tue, 2015-06-30 at 20:16 +0000, Fujinaka, Todd wrote:
> Sorry for the top-posting, but I'm provided with the tools they give me
> and bottom posting from Outlook just confuses email threads. Plus, this
> was crossposted all over creation and cc-ed to anyone with an intel
> address.
Not quite. It was posted to the names listed under the
MAINTAINERS entry.
INTEL ETHERNET DRIVERS
M: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
R: Jesse Brandeburg <jesse.brandeburg@intel.com>
R: Shannon Nelson <shannon.nelson@intel.com>
R: Carolyn Wyborny <carolyn.wyborny@intel.com>
R: Don Skidmore <donald.c.skidmore@intel.com>
R: Matthew Vick <matthew.vick@intel.com>
R: John Ronciak <john.ronciak@intel.com>
R: Mitch Williams <mitch.a.williams@intel.com>
L: intel-wired-lan at lists.osuosl.org
btw: You aren't listed there Todd. Should you be?
> I still would say no if I'm allowed, because to guarantee that this
> change - that I don't think fixes anything
Simplicity for the reader is generally a good thing.
Removing the macros altogether is likely better.
> - works in all cases, we
> need to do an incredible amount of regression testing.
Compilers should not produce different object code.
Verification of no object changes should be good enough.
> Every variant of
> every Intel part that uses this driver (and there are many) should be
> tested and will end up being used by the community.
>
> Plus, you have no idea the number of obscure bugs I have to deal with
> as the guy answering customer questions. If this triggers some odd
> embedded compiler bug, I'm going to have to dig it out. Unless there is
> an actual bug, I'd like to leave it as it is.
If any compiler miscompiles the ARRAY_SIZE macro, there are bound to
be real issues with using that compiler in a production environment.
WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: "Fujinaka, Todd" <todd.fujinaka@intel.com>
Cc: Richard Weinberger <richard.weinberger@gmail.com>,
Maninder Singh <maninder1.s@samsung.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com>,
"Brandeburg, Jesse" <jesse.brandeburg@intel.com>,
"Nelson, Shannon" <shannon.nelson@intel.com>,
"Wyborny, Carolyn" <carolyn.wyborny@intel.com>,
"Skidmore, Donald C" <donald.c.skidmore@intel.com>,
"Vick, Matthew" <matthew.vick@intel.com>,
"Ronciak, John" <john.ronciak@intel.com>,
"Williams, Mitch A" <mitch.a.williams@intel.com>,
"intel-wired-lan@lists.osuosl.org"
<intel-wired-lan@lists.osuosl.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"pankaj.m@samsung.com" <pankaj.m@samsung.com>
Subject: Re: [Intel-wired-lan] [PATCH 1/1] igb: Use ARRAY_SIZE instead fo sizeof(a)/sizeof(a[0])
Date: Tue, 30 Jun 2015 13:52:30 -0700 [thread overview]
Message-ID: <1435697550.12101.33.camel@perches.com> (raw)
In-Reply-To: <9B4A1B1917080E46B64F07F2989DADD653571BF0@ORSMSX114.amr.corp.intel.com>
On Tue, 2015-06-30 at 20:16 +0000, Fujinaka, Todd wrote:
> Sorry for the top-posting, but I'm provided with the tools they give me
> and bottom posting from Outlook just confuses email threads. Plus, this
> was crossposted all over creation and cc-ed to anyone with an intel
> address.
Not quite. It was posted to the names listed under the
MAINTAINERS entry.
INTEL ETHERNET DRIVERS
M: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
R: Jesse Brandeburg <jesse.brandeburg@intel.com>
R: Shannon Nelson <shannon.nelson@intel.com>
R: Carolyn Wyborny <carolyn.wyborny@intel.com>
R: Don Skidmore <donald.c.skidmore@intel.com>
R: Matthew Vick <matthew.vick@intel.com>
R: John Ronciak <john.ronciak@intel.com>
R: Mitch Williams <mitch.a.williams@intel.com>
L: intel-wired-lan@lists.osuosl.org
btw: You aren't listed there Todd. Should you be?
> I still would say no if I'm allowed, because to guarantee that this
> change - that I don't think fixes anything
Simplicity for the reader is generally a good thing.
Removing the macros altogether is likely better.
> - works in all cases, we
> need to do an incredible amount of regression testing.
Compilers should not produce different object code.
Verification of no object changes should be good enough.
> Every variant of
> every Intel part that uses this driver (and there are many) should be
> tested and will end up being used by the community.
>
> Plus, you have no idea the number of obscure bugs I have to deal with
> as the guy answering customer questions. If this triggers some odd
> embedded compiler bug, I'm going to have to dig it out. Unless there is
> an actual bug, I'd like to leave it as it is.
If any compiler miscompiles the ARRAY_SIZE macro, there are bound to
be real issues with using that compiler in a production environment.
next prev parent reply other threads:[~2015-06-30 20:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 4:55 [Intel-wired-lan] [PATCH 1/1] igb: Use ARRAY_SIZE instead fo sizeof(a)/sizeof(a[0]) Maninder Singh
2015-06-30 4:55 ` Maninder Singh
2015-06-30 5:12 ` [Intel-wired-lan] " Joe Perches
2015-06-30 5:12 ` Joe Perches
2015-06-30 14:53 ` [Intel-wired-lan] " Fujinaka, Todd
2015-06-30 14:53 ` Fujinaka, Todd
2015-06-30 19:01 ` Richard Weinberger
2015-06-30 19:01 ` Richard Weinberger
2015-06-30 20:16 ` Fujinaka, Todd
2015-06-30 20:16 ` Fujinaka, Todd
2015-06-30 20:16 ` Fujinaka, Todd
2015-06-30 20:24 ` Richard Weinberger
2015-06-30 20:24 ` Richard Weinberger
2015-06-30 20:38 ` Alex Gartrell
2015-06-30 20:38 ` Alex Gartrell
2015-06-30 20:52 ` Joe Perches [this message]
2015-06-30 20:52 ` Joe Perches
2015-06-30 22:25 ` Fujinaka, Todd
2015-06-30 22:25 ` Fujinaka, Todd
2015-06-30 22:32 ` Joe Perches
2015-06-30 22:32 ` Joe Perches
-- strict thread matches above, loose matches on Subject: below --
2015-06-30 8:01 Maninder Singh
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=1435697550.12101.33.camel@perches.com \
--to=joe@perches.com \
--cc=intel-wired-lan@osuosl.org \
/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.