[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160629091848.23bb780c@xeon-e3>
Date: Wed, 29 Jun 2016 09:18:48 -0700
From: Stephen Hemminger <shemming@...cade.com>
To: Phil Sutter <phil@....cc>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [iproute PATCH v4] Use ARRAY_SIZE macro everywhere
On Tue, 28 Jun 2016 16:42:15 +0000
Phil Sutter <phil@....cc> wrote:
> This patch was generated by the following semantic patch (a trimmed down
> version of what is shipped with Linux sources):
>
> @@
> type T;
> T[] E;
> @@
> (
> - (sizeof(E)/sizeof(*E))
> + ARRAY_SIZE(E)
> |
> - (sizeof(E)/sizeof(E[...]))
> + ARRAY_SIZE(E)
> |
> - (sizeof(E)/sizeof(T))
> + ARRAY_SIZE(E)
> )
>
> The only manual adjustment was to include utils.h in misc/nstat.c to make
> the macro known there.
>
> Signed-off-by: Phil Sutter <phil@....cc>
Applied
Powered by blists - more mailing lists