diff --git a/.github/workflows/arm64-clang-13.yml b/.github/workflows/arm64-clang-13.yml index b5dc0e72..62a21d43 100644 --- a/.github/workflows/arm64-clang-13.yml +++ b/.github/workflows/arm64-clang-13.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-13.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-13.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -126,7 +126,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-13.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-13.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-14.yml b/.github/workflows/arm64-clang-14.yml index 2490e2eb..b952dec8 100644 --- a/.github/workflows/arm64-clang-14.yml +++ b/.github/workflows/arm64-clang-14.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-14.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-14.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -126,7 +126,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-14.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-14.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-15.yml b/.github/workflows/arm64-clang-15.yml index 0a02172f..859734e4 100644 --- a/.github/workflows/arm64-clang-15.yml +++ b/.github/workflows/arm64-clang-15.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-15.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-15.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-15.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-15.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-16.yml b/.github/workflows/arm64-clang-16.yml index 319f1ce4..fb66065d 100644 --- a/.github/workflows/arm64-clang-16.yml +++ b/.github/workflows/arm64-clang-16.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-16.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-16.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-16.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-16.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-17.yml b/.github/workflows/arm64-clang-17.yml index 3af56f15..99f6fa39 100644 --- a/.github/workflows/arm64-clang-17.yml +++ b/.github/workflows/arm64-clang-17.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-17.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-17.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-17.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-17.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-18.yml b/.github/workflows/arm64-clang-18.yml index 20676ebb..322ecb65 100644 --- a/.github/workflows/arm64-clang-18.yml +++ b/.github/workflows/arm64-clang-18.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-18.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-18.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-18.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-18.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-19.yml b/.github/workflows/arm64-clang-19.yml index c956fea4..f527882c 100644 --- a/.github/workflows/arm64-clang-19.yml +++ b/.github/workflows/arm64-clang-19.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-19.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-19.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-19.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-19.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/.github/workflows/arm64-clang-20.yml b/.github/workflows/arm64-clang-20.yml index 818afb56..a248bede 100644 --- a/.github/workflows/arm64-clang-20.yml +++ b/.github/workflows/arm64-clang-20.yml @@ -57,7 +57,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-20.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-20.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py @@ -154,7 +154,7 @@ jobs: if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - name: tuxsuite if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} - run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-20.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name allconfigs --json-out builds.json tuxsuite/arm64-clang-20.tux.yml || true - name: Update Cache Build Status if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} run: python caching/update.py diff --git a/patches/arm64/1c07c9be87dd3dd0634033bf08728b32465f08fb.patch b/patches/arm64/1c07c9be87dd3dd0634033bf08728b32465f08fb.patch deleted file mode 100644 index 04168d01..00000000 --- a/patches/arm64/1c07c9be87dd3dd0634033bf08728b32465f08fb.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 1c07c9be87dd3dd0634033bf08728b32465f08fb Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Wed, 29 May 2024 14:29:42 -0700 -Subject: tty: mxser: Remove __counted_by from mxser_board.ports[] - -Work for __counted_by on generic pointers in structures (not just -flexible array members) has started landing in Clang 19 (current tip of -tree). During the development of this feature, a restriction was added -to __counted_by to prevent the flexible array member's element type from -including a flexible array member itself such as: - - struct foo { - int count; - char buf[]; - }; - - struct bar { - int count; - struct foo data[] __counted_by(count); - }; - -because the size of data cannot be calculated with the standard array -size formula: - - sizeof(struct foo) * count - -This restriction was downgraded to a warning but due to CONFIG_WERROR, -it can still break the build. The application of __counted_by on the -ports member of 'struct mxser_board' triggers this restriction, -resulting in: - - drivers/tty/mxser.c:291:2: error: 'counted_by' should not be applied to an array with element of unknown size because 'struct mxser_port' is a struct type with a flexible array member. This will be an error in a future compiler version [-Werror,-Wbounds-safety-counted-by-elt-type-unknown-size] - 291 | struct mxser_port ports[] __counted_by(nports); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ - 1 error generated. - -Remove this use of __counted_by to fix the warning/error. However, -rather than remove it altogether, leave it commented, as it may be -possible to support this in future compiler releases. - -Cc: -Closes: https://github.com/ClangBuiltLinux/linux/issues/2026 -Fixes: f34907ecca71 ("mxser: Annotate struct mxser_board with __counted_by") -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20240529-drop-counted-by-ports-mxser-board-v1-1-0ab217f4da6d@kernel.org -Signed-off-by: Kees Cook ---- - drivers/tty/mxser.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c -index 458bb1280ebf9d..5b97e420a95f84 100644 ---- a/drivers/tty/mxser.c -+++ b/drivers/tty/mxser.c -@@ -288,7 +288,7 @@ struct mxser_board { - enum mxser_must_hwid must_hwid; - speed_t max_baud; - -- struct mxser_port ports[] __counted_by(nports); -+ struct mxser_port ports[] /* __counted_by(nports) */; - }; - - static DECLARE_BITMAP(mxser_boards, MXSER_BOARDS); --- -cgit 1.2.3-korg - diff --git a/patches/arm64/2bac084468847cfe5bbc7166082b2a208514bb1c.patch b/patches/arm64/2bac084468847cfe5bbc7166082b2a208514bb1c.patch deleted file mode 100644 index 4153f48e..00000000 --- a/patches/arm64/2bac084468847cfe5bbc7166082b2a208514bb1c.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 2bac084468847cfe5bbc7166082b2a208514bb1c Mon Sep 17 00:00:00 2001 -From: Bill Wendling -Date: Wed, 29 May 2024 14:54:44 -0700 -Subject: [PATCH] drm/radeon: Remove __counted_by from StateArray.states[] - -Work for __counted_by on generic pointers in structures (not just -flexible array members) has started landing in Clang 19 (current tip of -tree). During the development of this feature, a restriction was added -to __counted_by to prevent the flexible array member's element type from -including a flexible array member itself such as: - - struct foo { - int count; - char buf[]; - }; - - struct bar { - int count; - struct foo data[] __counted_by(count); - }; - -because the size of data cannot be calculated with the standard array -size formula: - - sizeof(struct foo) * count - -This restriction was downgraded to a warning but due to CONFIG_WERROR, -it can still break the build. The application of __counted_by on the -states member of 'struct _StateArray' triggers this restriction, -resulting in: - - drivers/gpu/drm/radeon/pptable.h:442:5: error: 'counted_by' should not be applied to an array with element of unknown size because 'ATOM_PPLIB_STATE_V2' (aka 'struct _ATOM_PPLIB_STATE_V2') is a struct type with a flexible array member. This will be an error in a future compiler version [-Werror,-Wbounds-safety-counted-by-elt-type-unknown-size] - 442 | ATOM_PPLIB_STATE_V2 states[] __counted_by(ucNumEntries); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 1 error generated. - -Remove this use of __counted_by to fix the warning/error. However, -rather than remove it altogether, leave it commented, as it may be -possible to support this in future compiler releases. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2028 -Fixes: efade6fe50e7 ("drm/radeon: silence UBSAN warning (v3)") -Signed-off-by: Bill Wendling -Co-developed-by: Nathan Chancellor -Signed-off-by: Nathan Chancellor -Signed-off-by: Alex Deucher ---- -Link: https://gitlab.freedesktop.org/agd5f/linux/-/commit/2bac084468847cfe5bbc7166082b2a208514bb1c ---- - drivers/gpu/drm/radeon/pptable.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/radeon/pptable.h b/drivers/gpu/drm/radeon/pptable.h -index b7f22597ee95e..969a8fb0ee9e0 100644 ---- a/drivers/gpu/drm/radeon/pptable.h -+++ b/drivers/gpu/drm/radeon/pptable.h -@@ -439,7 +439,7 @@ typedef struct _StateArray{ - //how many states we have - UCHAR ucNumEntries; - -- ATOM_PPLIB_STATE_V2 states[] __counted_by(ucNumEntries); -+ ATOM_PPLIB_STATE_V2 states[] /* __counted_by(ucNumEntries) */; - }StateArray; - - --- -GitLab - diff --git a/patches/arm64/440e2051c577896275c0e0513ec26964e04c7810.patch b/patches/arm64/440e2051c577896275c0e0513ec26964e04c7810.patch deleted file mode 100644 index d81e35cf..00000000 --- a/patches/arm64/440e2051c577896275c0e0513ec26964e04c7810.patch +++ /dev/null @@ -1,67 +0,0 @@ -From 440e2051c577896275c0e0513ec26964e04c7810 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Wed, 29 May 2024 14:42:40 -0700 -Subject: nvmet-fc: Remove __counted_by from nvmet_fc_tgt_queue.fod[] - -Work for __counted_by on generic pointers in structures (not just -flexible array members) has started landing in Clang 19 (current tip of -tree). During the development of this feature, a restriction was added -to __counted_by to prevent the flexible array member's element type from -including a flexible array member itself such as: - - struct foo { - int count; - char buf[]; - }; - - struct bar { - int count; - struct foo data[] __counted_by(count); - }; - -because the size of data cannot be calculated with the standard array -size formula: - - sizeof(struct foo) * count - -This restriction was downgraded to a warning but due to CONFIG_WERROR, -it can still break the build. The application of __counted_by on the fod -member of 'struct nvmet_fc_tgt_queue' triggers this restriction, -resulting in: - - drivers/nvme/target/fc.c:151:2: error: 'counted_by' should not be applied to an array with element of unknown size because 'struct nvmet_fc_fcp_iod' is a struct type with a flexible array member. This will be an error in a future compiler version [-Werror,-Wbounds-safety-counted-by-elt-type-unknown-size] - 151 | struct nvmet_fc_fcp_iod fod[] __counted_by(sqsize); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 1 error generated. - -Remove this use of __counted_by to fix the warning/error. However, -rather than remove it altogether, leave it commented, as it may be -possible to support this in future compiler releases. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2027 -Fixes: ccd3129aca28 ("nvmet-fc: Annotate struct nvmet_fc_tgt_queue with __counted_by") -Signed-off-by: Nathan Chancellor -Signed-off-by: Keith Busch ---- -Link: https://git.kernel.org/linus/440e2051c577896275c0e0513ec26964e04c7810 ---- - drivers/nvme/target/fc.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c -index 337ee1cb09ae64..381b4394731f1d 100644 ---- a/drivers/nvme/target/fc.c -+++ b/drivers/nvme/target/fc.c -@@ -148,7 +148,7 @@ struct nvmet_fc_tgt_queue { - struct workqueue_struct *work_q; - struct kref ref; - /* array of fcp_iods */ -- struct nvmet_fc_fcp_iod fod[] __counted_by(sqsize); -+ struct nvmet_fc_fcp_iod fod[] /* __counted_by(sqsize) */; - } __aligned(sizeof(unsigned long long)); - - struct nvmet_fc_hostport { --- -cgit 1.2.3-korg - diff --git a/patches/arm64/series b/patches/arm64/series deleted file mode 100644 index 0a290932..00000000 --- a/patches/arm64/series +++ /dev/null @@ -1,3 +0,0 @@ -1c07c9be87dd3dd0634033bf08728b32465f08fb.patch -2bac084468847cfe5bbc7166082b2a208514bb1c.patch -440e2051c577896275c0e0513ec26964e04c7810.patch diff --git a/tuxsuite/arm64-clang-13.tux.yml b/tuxsuite/arm64-clang-13.tux.yml index 5be90f84..3f2ff8a3 100644 --- a/tuxsuite/arm64-clang-13.tux.yml +++ b/tuxsuite/arm64-clang-13.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-13.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-13.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-13.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-14.tux.yml b/tuxsuite/arm64-clang-14.tux.yml index e533d71b..e0515ba2 100644 --- a/tuxsuite/arm64-clang-14.tux.yml +++ b/tuxsuite/arm64-clang-14.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-14.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-14.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-14.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-15.tux.yml b/tuxsuite/arm64-clang-15.tux.yml index 638b8b2b..91d5c68b 100644 --- a/tuxsuite/arm64-clang-15.tux.yml +++ b/tuxsuite/arm64-clang-15.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-15.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-15.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-15.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-16.tux.yml b/tuxsuite/arm64-clang-16.tux.yml index e8a2d9f4..792b8769 100644 --- a/tuxsuite/arm64-clang-16.tux.yml +++ b/tuxsuite/arm64-clang-16.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-16.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-16.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-16.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-17.tux.yml b/tuxsuite/arm64-clang-17.tux.yml index 3af3e8c3..2dd27f91 100644 --- a/tuxsuite/arm64-clang-17.tux.yml +++ b/tuxsuite/arm64-clang-17.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-17.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-17.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-17.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-18.tux.yml b/tuxsuite/arm64-clang-18.tux.yml index 5bcacb16..b3988ee3 100644 --- a/tuxsuite/arm64-clang-18.tux.yml +++ b/tuxsuite/arm64-clang-18.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-18.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-18.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-18.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-19.tux.yml b/tuxsuite/arm64-clang-19.tux.yml index 2ba64a60..601e7865 100644 --- a/tuxsuite/arm64-clang-19.tux.yml +++ b/tuxsuite/arm64-clang-19.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-19.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-19.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-19.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core diff --git a/tuxsuite/arm64-clang-20.tux.yml b/tuxsuite/arm64-clang-20.tux.yml index 187d4179..e793bddd 100644 --- a/tuxsuite/arm64-clang-20.tux.yml +++ b/tuxsuite/arm64-clang-20.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py arm64 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json --patch-series patches/arm64 tuxsuite/arm64-clang-20.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git --git-ref for-next/core --job-name defconfigs --json-out builds.json tuxsuite/arm64-clang-20.tux.yml # Invoke locally via: # $ git clone -b for-next/core --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git linux -# $ git -C linux quiltimport --patches ../patches/arm64 # $ scripts/build-local.py -C linux -f tuxsuite/arm64-clang-20.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git at for-next/core