mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
For gcc-16, the CONST_CAST macro family was removed. Add back what
we were using in gcc-common.h, as they are simple wrappers.
See GCC commits:
c3d96ff9e916c02584aa081f03ab999292efbb50
458c7926d48959abcb2c1adaa22458e27459a551
Suggested-by: Ingo Saitz <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Fixes: 6b90bd4ba4 ("GCC plugin infrastructure")
Tested-by: Ivan Bulatovic <[email protected]>
Tested-by: Christopher Cradock <[email protected]>
Signed-off-by: Kees Cook <[email protected]>