Christian Marangi
fbed9c1429
kernel: ltq-vdsl-vr9-mei: fix compilation warning
Fix simple compilation warning due to cast and wrong include.
Fix compilation warning:
In file included from ./include/linux/compat.h:18,
from ./include/linux/filter.h:10,
from ./include/net/sock.h:59,
from /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:70:
./include/uapi/linux/aio_abi.h:77:45: error: "__LITTLE_ENDIAN" is not defined, evaluates to 0 [-Werror=undef]
77 | #if defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
| ^~~~~~~~~~~~~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c: In function 'MEI_MeminfoProcPerDevGet':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:1715:56: error: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'IFX_uint8_t *' {aka 'unsigned char *'} [-Werror=format=]
1715 | seq_printf(s, "chunk[%02d]: addr = 0x%08X (0x%08X), "
| ~~~^
| |
| unsigned int
| %08hhn
......
1721 | chunkIdx, pChunk[chunkIdx].pImageChunk_aligned,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| IFX_uint8_t * {aka unsigned char *}
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:1715:64: error: format '%X' expects argument of type 'unsigned int', but argument 5 has type 'IFX_uint8_t *' {aka 'unsigned char *'} [-Werror=format=]
1715 | seq_printf(s, "chunk[%02d]: addr = 0x%08X (0x%08X), "
| ~~~^
| |
| unsigned int
| %08hhn
......
1722 | pChunk[chunkIdx].pImageChunk_allocated,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| IFX_uint8_t * {aka unsigned char *}
cc1: all warnings being treated as errors
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-14 02:42:53 +02:00
..
2023-05-12 03:15:37 +02:00
2022-05-17 15:11:22 +02:00
2021-06-22 13:27:41 +02:00
2023-03-04 17:18:56 +01:00
2023-05-12 03:15:45 +02:00
2022-10-24 20:49:34 +02:00
2021-09-29 22:56:59 +02:00
2017-11-06 16:39:41 +01:00
2022-12-17 20:12:31 +01:00
2023-05-12 03:15:35 +02:00
2023-04-20 14:23:04 +02:00
2023-05-14 02:42:53 +02:00
2022-12-16 21:41:57 +08:00
2023-05-12 13:02:44 +02:00
2023-05-12 03:15:37 +02:00
2023-03-30 11:40:11 +02:00
2020-07-08 16:07:05 +02:00
2023-05-12 03:15:44 +02:00
2023-05-12 03:15:33 +02:00
2023-01-16 12:42:23 +01:00
2023-05-12 13:02:43 +02:00
2022-12-17 20:12:31 +01:00
2023-01-09 00:23:22 +01:00
2020-07-15 18:33:56 +02:00
2022-09-30 13:29:58 +01:00