Subject: Re: [iproute PATCH] Use ARRAY_SIZE macro everywhere

From: Stephen Hemminger <[email-masked]>
Date: Mon, 21 Mar 2016 11:59:05 -0700

On Thu, 17 Mar 2016 20:28:08 +0100
Phil Sutter <[email-masked]> 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 <[email-masked]>

I went ahead and did some checkpatch spring cleaning to code.
This is no longer needed.