kernel: owl-loader: fix sparse endian warnings
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 25 Feb 2019 14:35:23 +0000 (15:35 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 28 Feb 2019 10:26:11 +0000 (11:26 +0100)
commitddece08bf4569d0eec865d2cbeecc551701d4467
tree82ad6e05bd18efb96cc690eea75e98e631e98e1e
parentca769e081f22fce0d23ee3e54e1594d3daf9c821
kernel: owl-loader: fix sparse endian warnings

owl-loader.c:83:21: sparse: warning: incorrect type in assignment (different base types)
owl-loader.c:83:21: sparse:    expected unsigned short [usertype] reg
owl-loader.c:83:21: sparse:    got restricted __be16 const [usertype] reg
owl-loader.c:84:21: sparse: warning: incorrect type in assignment (different base types)
owl-loader.c:84:21: sparse:    expected unsigned int [usertype] val
owl-loader.c:84:21: sparse:    got restricted __be16 const [usertype] low_val
owl-loader.c:85:28: sparse: warning: restricted __be16 degrades to integer

Reported-by: kbuild test robot
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/generic/files/drivers/misc/owl-loader.c