Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fddi/skfp: Avoid the use of one-element array

One-element arrays are being deprecated[1]. Replace the one-element array
with a simple object of type u_char: 'u_char rm_pad1'[2], once it seems
this is just a placeholder for padding.

[1] https://www.kernel.org/doc/html/v5.9-rc1/process/deprecated.html#zero-length-and-one-element-arrays
[2] https://github.com/KSPP/linux/issues/86

Built-tested-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/5f72c23f.%2FkPBWcZBu+W6HKH4%25lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
2c956a5a 3f47cb4c

+1 -1
+1 -1
drivers/net/fddi/skfp/h/smc.h
··· 122 122 u_char timer1_exp ; /* flag : timer 1 expired */ 123 123 u_char timer2_exp ; /* flag : timer 2 expired */ 124 124 125 - u_char rm_pad1[1] ; 125 + u_char rm_pad1; 126 126 } ; 127 127 128 128 /*