Christophe Leroy 6ab7c3d6ba Fix sparse checks processing
A lot of errors are encountered when building with sparse checking
activated (make C=1 or make C=2).

Many of them are fixed in Linux.

Resynchronise Makefile and include/linux/build_bug.h with Linux
kernel sources by porting the following Linux commits into u-boot:
- 6c49f359ca14 ("kbuild: disable sparse warnings about unknown attributes")
- 80591e61a0f7 ("kbuild: tell sparse about the $ARCH")
- 8788994376d8 ("linux/build_bug.h: change type to int")
- 527edbc18a70 ("build_bug.h: remove most of dummy BUILD_BUG_ON stubs for Sparse")
- c60d3b79423a ("build_bug.h: remove negative-array fallback for BUILD_BUG_ON()")
- 14e83077d55f ("include: drop pointless __compiler_offsetof indirection")

Also revert commit aa9e891c63 ("include/linux/stddef.h: avoid
'warning: preprocessor token offsetof redefined'") because the
error it creates is worse than the warning it is trying to fix.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
2023-05-15 14:08:45 -04:00
..
2023-02-07 14:33:49 -05:00
2022-07-12 21:59:54 +02:00
2019-12-06 16:44:20 -05:00
2019-12-06 16:44:20 -05:00
2019-12-06 16:44:20 -05:00
2021-03-01 09:54:11 -05:00
2018-06-07 17:08:06 -04:00
2023-05-15 14:08:45 -04:00
2018-11-20 13:08:15 +01:00
2017-07-06 16:17:19 -04:00
2021-11-23 09:57:55 +02:00
2022-11-28 10:25:17 -05:00
2019-12-06 16:44:20 -05:00
2021-03-01 09:54:11 -05:00
2018-11-20 13:08:15 +01:00
2017-07-06 16:17:19 -04:00
2023-05-15 14:08:45 -04:00
2022-01-19 18:11:34 +01:00
2019-05-05 08:48:50 -04:00