mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 05:39:42 -04:00
staging: wilc1000: fix compilation warning for ARCH PowerPC
Fix below warning reported for PowerPC arch compilation
include/uapi/linux/byteorder/big_endian.h:95:37: warning: passing
argument 1 of '__swab32s' makes pointer from integer without a cast
[-Wint-conversion]
Fixes: 02211edc9a ("staging: wilc1000: fix endianness warnings reported by sparse")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
156c3df8d4
commit
3f285135bc
@@ -563,7 +563,7 @@ static int sdio_read_reg(struct wilc *wilc, u32 addr, u32 *data)
|
||||
}
|
||||
}
|
||||
|
||||
le32_to_cpus(*data);
|
||||
le32_to_cpus(data);
|
||||
|
||||
return 1;
|
||||
|
||||
|
||||
@@ -699,7 +699,7 @@ static int spi_internal_read(struct wilc *wilc, u32 adr, u32 *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
le32_to_cpus(*data);
|
||||
le32_to_cpus(data);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -778,7 +778,7 @@ static int wilc_spi_read_reg(struct wilc *wilc, u32 addr, u32 *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
le32_to_cpus(*data);
|
||||
le32_to_cpus(data);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user