]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: dump: fix sparse warnings
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 23 Dec 2020 19:51:10 +0000 (20:51 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 22 Jan 2021 11:38:17 +0000 (12:38 +0100)
commit03a2753936e85beb8239fd20ae3fb2ce90209212
treea310106e094d57fae53beb4da7cf4f6b01fff51b
parent1ff79a4a49c239dedd67a12a16a8c3a8b53cf838
drm/etnaviv: dump: fix sparse warnings

This patch fixes the following sparse warnings, by adding the missing endianess
conversion functions.

| etnaviv/etnaviv_dump.c:78:26: warning: restricted __le32 degrades to integer
| etnaviv/etnaviv_dump.c:88:26: warning: incorrect type in assignment (different base types)
| etnaviv/etnaviv_dump.c:88:26:    expected restricted __le32 [usertype] reg
| etnaviv/etnaviv_dump.c:88:26:    got unsigned short const
| etnaviv/etnaviv_dump.c:89:28: warning: incorrect type in assignment (different base types)
| etnaviv/etnaviv_dump.c:89:28:    expected restricted __le32 [usertype] value
| etnaviv/etnaviv_dump.c:89:28:    got unsigned int
| etnaviv/etnaviv_dump.c:210:43: warning: incorrect type in assignment (different base types)
| etnaviv/etnaviv_dump.c:210:43:    expected restricted __le32
| etnaviv/etnaviv_dump.c:210:43:    got long

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_dump.c