]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: avoid max() in array size
authorEdward Cree <ecree@solarflare.com>
Fri, 3 Mar 2017 15:22:09 +0000 (15:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 18:06:38 +0000 (10:06 -0800)
commit7478fafc30126822afaba7d77725936d8c8396f3
tree9afa9a52d221bdedb2523a3d343972b86b5a9c05
parentc94c34c01497808df7a29e8676b14b9c2e3032cc
sfc: avoid max() in array size

It confuses sparse, which thinks the size isn't constant.  Let's achieve
 the same thing with a BUILD_BUG_ON, since we know which one should be
 bigger and don't expect them ever to change.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c