Files
scst/srpt/src/Kbuild
Tony Battersby 63f2375fe4 kbuild: Remove stack protector flags
-fstack-protector-strong is controlled by the in-tree
CONFIG_STACKPROTECTOR_STRONG config option.  If the flag is set without
the config option, scst fails to build:
ERROR: modpost: "__stack_chk_fail" [scst/src/scst.ko] undefined!

-fstack-clash-protection is disabled in the kernel's Makefile due to an
incompatibility with randomize_kstack_offset.

Fixes: 86d3d4bb1d ("kbuild: Enable additional compiler warnings")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
2025-09-08 16:40:12 +03:00

22 lines
589 B
Makefile

LINUXINCLUDE := $(CONFTEST_CFLAGS) $(LINUXINCLUDE)
KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \
$(shell for d in /usr/src/ofa_kernel/default/Module.symvers; do\
[ -e $$d ] || continue; echo $$d; break; done)
ccflags-y += -I$(src)/../../scst/include \
-Wall \
-Wextra \
-Wno-type-limits \
-Wno-missing-field-initializers \
-Wno-unused-parameter \
-Wformat \
-O2 \
-Werror=format-security \
-Werror=implicit-function-declaration \
-pipe \
-g \
-grecord-gcc-switches \
-Wstrict-prototypes
obj-m += ib_srpt.o