From 0451f149c4b5ffe687758725548a7c30858cbad3 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 21 Jan 2025 08:55:10 -0500 Subject: [PATCH] Disable warning errors --- .forgejo/workflows/release-build.yml | 2 ++ .../pve/0013-cast-pthreatd-stack-min-to-int.patch | 13 +++++++++++++ debian/patches/series.linux | 1 + debian/rules | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 debian/patches/pve/0013-cast-pthreatd-stack-min-to-int.patch diff --git a/.forgejo/workflows/release-build.yml b/.forgejo/workflows/release-build.yml index c1e2a3e..d2a1d1a 100644 --- a/.forgejo/workflows/release-build.yml +++ b/.forgejo/workflows/release-build.yml @@ -4,6 +4,8 @@ on: push: tags: - 'v*' +env: + PVE_KERNEL_CFLAGS: -Wno-error=format-truncation -Wno-error=array-bounds -Wno-error=stringop-overflow jobs: release-build: diff --git a/debian/patches/pve/0013-cast-pthreatd-stack-min-to-int.patch b/debian/patches/pve/0013-cast-pthreatd-stack-min-to-int.patch new file mode 100644 index 0000000..a5775e9 --- /dev/null +++ b/debian/patches/pve/0013-cast-pthreatd-stack-min-to-int.patch @@ -0,0 +1,13 @@ +diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c +index 954ce2f..aaf1cde 100644 +--- a/tools/perf/builtin-sched.c ++++ b/tools/perf/builtin-sched.c +@@ -670,7 +670,7 @@ static void create_tasks(struct perf_sched *sched) + err = pthread_attr_init(&attr); + BUG_ON(err); + err = pthread_attr_setstacksize(&attr, +- (size_t) max(16 * 1024, PTHREAD_STACK_MIN)); ++ (size_t) max(16 * 1024, (int)PTHREAD_STACK_MIN)); + BUG_ON(err); + err = pthread_mutex_lock(&sched->start_work_mutex); + BUG_ON(err); diff --git a/debian/patches/series.linux b/debian/patches/series.linux index 6bd20ed..3c65889 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-cast-pthreatd-stack-min-to-int.patch diff --git a/debian/rules b/debian/rules index 04e4644..57ab5ab 100755 --- a/debian/rules +++ b/debian/rules @@ -59,7 +59,6 @@ override_dh_auto_build: # Kernel dh_auto_build -D ${KERNEL_SRC} -- \ CC="${PVE_KERNEL_CC}" \ - KCFLAGS="${PVE_KERNEL_CFLAGS}" \ EXTRAVERSION="${EXTRAVERSION}" \ LOCALVERSION="${LOCALVERSION}" \ KBUILD_BUILD_VERSION_TIMESTAMP="${PKG_DISTRIBUTOR} ${DEB_VERSION} (${PKG_DATE_UTC_ISO})" @@ -133,6 +132,7 @@ debian/${PVE_KERNEL_PKG}.%: debian/templates/pve-kernel.%.in NO_LIBPYTHON=1 \ NO_LIBPERL=1 \ NO_LIBCRYPTO=1 \ + EXTRA_CFLAGS="${PVE_KERNEL_CFLAGS}" \ PYTHON=python3 # echo "checking GPL-2 only perf binary for library linkage with incompatible licenses.." # ! ldd ${KERNEL_SRC}/tools/perf/perf | grep -q -E '\blibbfd'