]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fddi/skfp: Avoid the use of one-element array
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 29 Sep 2020 13:27:51 +0000 (08:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:27:43 +0000 (13:27 -0700)
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>
drivers/net/fddi/skfp/h/smc.h

index 991857f6a83c26787bd2cb0da10ecdafa9d2ce2c..706fa619b703fb3bf2da0c590fc52290623d9023 100644 (file)
@@ -122,7 +122,7 @@ struct s_rmt {
        u_char timer1_exp ;             /* flag : timer 1 expired */
        u_char timer2_exp ;             /* flag : timer 2 expired */
 
-       u_char rm_pad1[1] ;
+       u_char rm_pad1;
 } ;
 
 /*