Files
scst/fcst/Kbuild
Gleb Chesnokov 86d3d4bb1d kbuild: Enable additional compiler warnings
Add additional compiler flags to improve code compliance.
2025-03-25 18:57:32 +03:00

27 lines
913 B
Makefile

KBUILD_EXTRA_SYMBOLS = $(src)/../scst/src/Module.symvers
ccflags-y := -I$(src)/../scst/include $(shell if [ -e include/scsi ]; then header_dir=.; else header_dir=$$(sed -n 's/^include[[:blank:]]\+\(.*\)\/Makefile$$/\1/p;s/^MAKEARGS := -C \([^ ]*\) .*/\1/p' Makefile); fi; if false; then echo "header_dir=$${header_dir}" >&2; fi; grep -qw fc_fill_fc_hdr "$${header_dir}/include/scsi/fc_encode.h" 2>/dev/null && echo -DFC_FILL_FC_HDR_IN_SCSI_FC_ENCODE_H)
ccflags-y += -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 \
-fstack-clash-protection \
-fstack-protector-strong \
-Wstrict-prototypes
obj-$(CONFIG_FCST) += fcst.o
fcst-objs := ft_cmd.o \
ft_io.o \
ft_scst.o \
ft_sess.o