diff --git a/debian/patches/pve/0013-add-cflags.patch b/debian/patches/pve/0013-add-cflags.patch new file mode 100644 index 0000000..88bebcf --- /dev/null +++ b/debian/patches/pve/0013-add-cflags.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile.orig b/Makefile +index cc23c329111e..28c526aac06c 100644 +--- a/Makefile.orig ++++ b/Makefile +@@ -951,6 +951,11 @@ include scripts/Makefile.kasan + include scripts/Makefile.extrawarn + include scripts/Makefile.ubsan + ++KBUILD_CFLAGS += -Wno-format-truncation ++KBUILD_CFLAGS += -Wno-array-bounds ++KBUILD_CFLAGS += -Wno-stringop-overflow ++KBUILD_CLFAGS += -Wno-compare-distinct-pointer-types ++ + # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments + KBUILD_CPPFLAGS += $(KCPPFLAGS) + KBUILD_AFLAGS += $(KAFLAGS) diff --git a/debian/patches/series.linux b/debian/patches/series.linux index 6bd20ed..747d732 100644 --- a/debian/patches/series.linux +++ b/debian/patches/series.linux @@ -10,3 +10,4 @@ pve/0009-NFSv4-pnfs-Fix-a-use-after-free-bug-in-open.patch pve/0010-scsi-Revert-scsi-qla2xxx-Fix-disk-failure-to-redisco.patch pve/0011-ext4-recover-csum-seed-of-tmp_inode-after-migrating-.patch pve/0012-drm-i915-gt-Serialize-TLB-invalidates-with-GT-resets.patch +pve/0013-add-cflags.patch