On Tue, 2022-05-24 at 14:33 +0300, viktor.barna@xxxxxxxxxx wrote: > > +ccflags-y += -I$(src) -I$(srctree)/net/wireless -I$(srctree)/net/mac80211/ > +ccflags-y += -I$(src) -Werror Neither of these should be here. *Maybe* -I$(src), but that's probably not even needed. > + > +define cc_ver_cmp > +$(shell [ "$$($(CC) -dumpversion | cut -d. -f1)" -$(1) "$(2)" ] && echo "true" || echo "false") > +endef > + > +ifeq ($(call cc_ver_cmp,ge,8),true) > +ccflags-y += -Wno-error=stringop-truncation > +ccflags-y += -Wno-error=format-truncation > +endif > + > +# Stop these C90 warnings. We use C99. > +ccflags-y += -Wno-declaration-after-statement -g No no, all of that needs to go, don't make up your own stuff here. johannes