diff --git a/.github/workflows/5.4-clang-13.yml b/.github/workflows/5.4-clang-13.yml index e707acdd..7bc6cc7d 100644 --- a/.github/workflows/5.4-clang-13.yml +++ b/.github/workflows/5.4-clang-13.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-13.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -371,7 +371,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-13.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-14.yml b/.github/workflows/5.4-clang-14.yml index 37e241a8..83c9dec3 100644 --- a/.github/workflows/5.4-clang-14.yml +++ b/.github/workflows/5.4-clang-14.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-14.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -371,7 +371,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-14.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-15.yml b/.github/workflows/5.4-clang-15.yml index ef515ea9..69409d13 100644 --- a/.github/workflows/5.4-clang-15.yml +++ b/.github/workflows/5.4-clang-15.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-15.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-15.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-16.yml b/.github/workflows/5.4-clang-16.yml index 98c5049b..7e02aeaa 100644 --- a/.github/workflows/5.4-clang-16.yml +++ b/.github/workflows/5.4-clang-16.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-16.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-16.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-17.yml b/.github/workflows/5.4-clang-17.yml index cd7b96f7..5022f401 100644 --- a/.github/workflows/5.4-clang-17.yml +++ b/.github/workflows/5.4-clang-17.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-17.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-17.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-18.yml b/.github/workflows/5.4-clang-18.yml index c8354904..adcb5dd7 100644 --- a/.github/workflows/5.4-clang-18.yml +++ b/.github/workflows/5.4-clang-18.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-18.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-18.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-19.yml b/.github/workflows/5.4-clang-19.yml index 3620c1ef..da46cdb4 100644 --- a/.github/workflows/5.4-clang-19.yml +++ b/.github/workflows/5.4-clang-19.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-19.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-19.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/5.4-clang-20.yml b/.github/workflows/5.4-clang-20.yml index 4e370b9e..94f701c4 100644 --- a/.github/workflows/5.4-clang-20.yml +++ b/.github/workflows/5.4-clang-20.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-20.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-20.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-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/.github/workflows/5.4-clang-21.yml b/.github/workflows/5.4-clang-21.yml index fdeff7ae..bd19f005 100644 --- a/.github/workflows/5.4-clang-21.yml +++ b/.github/workflows/5.4-clang-21.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-21.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-21.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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-21.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-clang-21.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/5.4-clang-22.yml b/.github/workflows/5.4-clang-22.yml index 0c06868f..3eaf6332 100644 --- a/.github/workflows/5.4-clang-22.yml +++ b/.github/workflows/5.4-clang-22.yml @@ -67,7 +67,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/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-22.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-22.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 @@ -400,7 +400,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/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-22.tux.yml || true + run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-clang-22.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/5.15/17ba793f381eb813596d6de1cc6820bcbda5ed8b.patch b/patches/5.15/17ba793f381eb813596d6de1cc6820bcbda5ed8b.patch deleted file mode 100644 index d49554ca..00000000 --- a/patches/5.15/17ba793f381eb813596d6de1cc6820bcbda5ed8b.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 17ba793f381eb813596d6de1cc6820bcbda5ed8b Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 16:15:40 -0700 -Subject: phonet/pep: Move call to pn_skb_get_dst_sockaddr() earlier in - pep_sock_accept() - -A new warning in clang [1] points out a place in pep_sock_accept() where -dst is uninitialized then passed as a const pointer to pep_find_pipe(): - - net/phonet/pep.c:829:37: error: variable 'dst' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 829 | newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); - | ^~~: - -Move the call to pn_skb_get_dst_sockaddr(), which initializes dst, to -before the call to pep_find_pipe(), so that dst is consistently used -initialized throughout the function. - -Cc: stable@vger.kernel.org -Fixes: f7ae8d59f661 ("Phonet: allocate sock from accept syscall rather than soft IRQ") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Closes: https://github.com/ClangBuiltLinux/linux/issues/2101 -Signed-off-by: Nathan Chancellor -Link: https://patch.msgid.link/20250715-net-phonet-fix-uninit-const-pointer-v1-1-8efd1bd188b3@kernel.org -Signed-off-by: Jakub Kicinski ---- -Link: https://git.kernel.org/linus/17ba793f381eb813596d6de1cc6820bcbda5ed8b ---- - net/phonet/pep.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/net/phonet/pep.c b/net/phonet/pep.c -index 53a858478e22f0..62527e1ebb883d 100644 ---- a/net/phonet/pep.c -+++ b/net/phonet/pep.c -@@ -826,6 +826,7 @@ static struct sock *pep_sock_accept(struct sock *sk, - } - - /* Check for duplicate pipe handle */ -+ pn_skb_get_dst_sockaddr(skb, &dst); - newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); - if (unlikely(newsk)) { - __sock_put(newsk); -@@ -850,7 +851,6 @@ static struct sock *pep_sock_accept(struct sock *sk, - newsk->sk_destruct = pipe_destruct; - - newpn = pep_sk(newsk); -- pn_skb_get_dst_sockaddr(skb, &dst); - pn_skb_get_src_sockaddr(skb, &src); - newpn->pn_sk.sobject = pn_sockaddr_get_object(&dst); - newpn->pn_sk.dobject = pn_sockaddr_get_object(&src); --- -cgit 1.2.3-korg - diff --git a/patches/5.15/21b34a3a204ed616373a12ec17dc127ebe51eab3.patch b/patches/5.15/21b34a3a204ed616373a12ec17dc127ebe51eab3.patch deleted file mode 100644 index b308963a..00000000 --- a/patches/5.15/21b34a3a204ed616373a12ec17dc127ebe51eab3.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 21b34a3a204ed616373a12ec17dc127ebe51eab3 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 15:56:05 -0700 -Subject: memstick: core: Zero initialize id_reg in h_memstick_read_dev_id() - -A new warning in clang [1] points out that id_reg is uninitialized then -passed to memstick_init_req() as a const pointer: - - drivers/memstick/core/memstick.c:330:59: error: variable 'id_reg' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 330 | memstick_init_req(&card->current_mrq, MS_TPC_READ_REG, &id_reg, - | ^~~~~~ - -Commit de182cc8e882 ("drivers/memstick/core/memstick.c: avoid -Wnonnull -warning") intentionally passed this variable uninitialized to avoid an --Wnonnull warning from a NULL value that was previously there because -id_reg is never read from the call to memstick_init_req() in -h_memstick_read_dev_id(). Just zero initialize id_reg to avoid the -warning, which is likely happening in the majority of builds using -modern compilers that support '-ftrivial-auto-var-init=zero'. - -Cc: stable@vger.kernel.org -Fixes: de182cc8e882 ("drivers/memstick/core/memstick.c: avoid -Wnonnull warning") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Closes: https://github.com/ClangBuiltLinux/linux/issues/2105 -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250715-memstick-fix-uninit-const-pointer-v1-1-f6753829c27a@kernel.org -Signed-off-by: Ulf Hansson ---- -Link: https://git.kernel.org/linus/21b34a3a204ed616373a12ec17dc127ebe51eab3 ---- - drivers/memstick/core/memstick.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/memstick/core/memstick.c b/drivers/memstick/core/memstick.c -index 043b9ec756ff27..7f3f47db4c98a5 100644 ---- a/drivers/memstick/core/memstick.c -+++ b/drivers/memstick/core/memstick.c -@@ -324,7 +324,7 @@ EXPORT_SYMBOL(memstick_init_req); - static int h_memstick_read_dev_id(struct memstick_dev *card, - struct memstick_request **mrq) - { -- struct ms_id_register id_reg; -+ struct ms_id_register id_reg = {}; - - if (!(*mrq)) { - memstick_init_req(&card->current_mrq, MS_TPC_READ_REG, &id_reg, --- -cgit 1.2.3-korg - diff --git a/patches/5.15/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch b/patches/5.15/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch deleted file mode 100644 index 2a7f9eef..00000000 --- a/patches/5.15/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 81284e86bf8849f8e98e8ead3ff5811926b2107f Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 19:45:23 -0700 -Subject: wifi: brcmsmac: Remove const from tbl_ptr parameter in - wlc_lcnphy_common_read_table() - -A new warning in clang [1] complains that diq_start in -wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to -wlc_lcnphy_common_read_table(): - - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 2728 | &diq_start, 1, 16, 69); - | ^~~~~~~~~ - -The table pointer passed to wlc_lcnphy_common_read_table() should not be -considered constant, as wlc_phy_read_table() is ultimately going to -update it. Remove the const qualifier from the tbl_ptr to clear up the -warning. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2108 -Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Signed-off-by: Nathan Chancellor -Acked-by: Arend van Spriel > -Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org -Signed-off-by: Johannes Berg ---- -Link: https://git.kernel.org/linus/81284e86bf8849f8e98e8ead3ff5811926b2107f ---- - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -index d0faba24056105..b4bba67a45ec36 100644 ---- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -@@ -919,7 +919,7 @@ void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) - - static void - wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, -- const u16 *tbl_ptr, u32 tbl_len, -+ u16 *tbl_ptr, u32 tbl_len, - u32 tbl_width, u32 tbl_offset) - { - struct phytbl_info tab; --- -cgit 1.2.3-korg - diff --git a/patches/5.15/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch b/patches/5.15/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch deleted file mode 100644 index 650ce96c..00000000 --- a/patches/5.15/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch +++ /dev/null @@ -1,234 +0,0 @@ -From 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 22 Jul 2025 12:11:18 -0700 -Subject: usb: atm: cxacru: Merge cxacru_upload_firmware() into - cxacru_heavy_init() - -After a recent change in clang to expose uninitialized warnings from -const variables [1], there is a warning in cxacru_heavy_init(): - - drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here - 1113 | cxacru_upload_firmware(instance, fw, bp); - | ^~ - drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning - 1095 | const struct firmware *fw, *bp; - | ^ - | = NULL - -While the warning is technically correct that bp is conditionally passed -uninitialized to cxacru_upload_firmware(), it is ultimately a false -positive warning on the uninitialized use of bp because the same -condition that initializes bp, instance->modem_type->boot_rom_patch, is -the same one that gates the use of bp within cxacru_upload_firmware(). -As this warning occurs in clang's frontend before inlining occurs, it -cannot know that these conditions are indentical to avoid the warning. - -Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as -that is its only callsite, so that clang can see that bp is initialized -and used under the same condition, clearing up the warning without any -functional changes to the code (LLVM was already doing this inlining -later). - -Cc: stable@vger.kernel.org -Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") -Closes: https://github.com/ClangBuiltLinux/linux/issues/2102 -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org -Signed-off-by: Greg Kroah-Hartman ---- -Link: https://git.kernel.org/linus/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 ---- - drivers/usb/atm/cxacru.c | 106 ++++++++++++++++++++++------------------------- - 1 file changed, 49 insertions(+), 57 deletions(-) - -diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c -index a12ab90b3db75b..68a8e9de8b4fe9 100644 ---- a/drivers/usb/atm/cxacru.c -+++ b/drivers/usb/atm/cxacru.c -@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, - return ret; - } - --static void cxacru_upload_firmware(struct cxacru_data *instance, -- const struct firmware *fw, -- const struct firmware *bp) -+ -+static int cxacru_find_firmware(struct cxacru_data *instance, -+ char *phase, const struct firmware **fw_p) - { -- int ret; -+ struct usbatm_data *usbatm = instance->usbatm; -+ struct device *dev = &usbatm->usb_intf->dev; -+ char buf[16]; -+ -+ sprintf(buf, "cxacru-%s.bin", phase); -+ usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -+ -+ if (request_firmware(fw_p, buf, dev)) { -+ usb_dbg(usbatm, "no stage %s firmware found\n", phase); -+ return -ENOENT; -+ } -+ -+ usb_info(usbatm, "found firmware %s\n", buf); -+ -+ return 0; -+} -+ -+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -+ struct usb_interface *usb_intf) -+{ -+ const struct firmware *fw, *bp; -+ struct cxacru_data *instance = usbatm_instance->driver_data; - struct usbatm_data *usbatm = instance->usbatm; - struct usb_device *usb_dev = usbatm->usb_dev; - __le16 signature[] = { usb_dev->descriptor.idVendor, - usb_dev->descriptor.idProduct }; - __le32 val; -+ int ret; - -- usb_dbg(usbatm, "%s\n", __func__); -+ ret = cxacru_find_firmware(instance, "fw", &fw); -+ if (ret) { -+ usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -+ return ret; -+ } -+ -+ if (instance->modem_type->boot_rom_patch) { -+ ret = cxacru_find_firmware(instance, "bp", &bp); -+ if (ret) { -+ usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -+ release_firmware(fw); -+ return ret; -+ } -+ } - - /* FirmwarePllFClkValue */ - val = cpu_to_le32(instance->modem_type->pll_f_clk); - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* FirmwarePllBClkValue */ -@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* Enable SDRAM */ -@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "Enable SDRAM failed: %d\n", ret); -- return; -+ goto done; - } - - /* Firmware */ -@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size); - if (ret) { - usb_err(usbatm, "Firmware upload failed: %d\n", ret); -- return; -+ goto done; - } - - /* Boot ROM patch */ -@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size); - if (ret) { - usb_err(usbatm, "Boot ROM patching failed: %d\n", ret); -- return; -+ goto done; - } - } - -@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4); - if (ret) { - usb_err(usbatm, "Signature storing failed: %d\n", ret); -- return; -+ goto done; - } - - usb_info(usbatm, "starting device\n"); -@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - } - if (ret) { - usb_err(usbatm, "Passing control to firmware failed: %d\n", ret); -- return; -+ goto done; - } - - /* Delay to allow firmware to start up. */ -@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0); - if (ret < 0) { - usb_err(usbatm, "modem failed to initialize: %d\n", ret); -- return; -- } --} -- --static int cxacru_find_firmware(struct cxacru_data *instance, -- char *phase, const struct firmware **fw_p) --{ -- struct usbatm_data *usbatm = instance->usbatm; -- struct device *dev = &usbatm->usb_intf->dev; -- char buf[16]; -- -- sprintf(buf, "cxacru-%s.bin", phase); -- usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -- -- if (request_firmware(fw_p, buf, dev)) { -- usb_dbg(usbatm, "no stage %s firmware found\n", phase); -- return -ENOENT; -- } -- -- usb_info(usbatm, "found firmware %s\n", buf); -- -- return 0; --} -- --static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -- struct usb_interface *usb_intf) --{ -- const struct firmware *fw, *bp; -- struct cxacru_data *instance = usbatm_instance->driver_data; -- int ret = cxacru_find_firmware(instance, "fw", &fw); -- -- if (ret) { -- usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -- return ret; -+ goto done; - } - -- if (instance->modem_type->boot_rom_patch) { -- ret = cxacru_find_firmware(instance, "bp", &bp); -- if (ret) { -- usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -- release_firmware(fw); -- return ret; -- } -- } -- -- cxacru_upload_firmware(instance, fw, bp); -- -+done: - if (instance->modem_type->boot_rom_patch) - release_firmware(bp); - release_firmware(fw); --- -cgit 1.2.3-korg - diff --git a/patches/5.15/series b/patches/5.15/series index 237c0ca8..e6246312 100644 --- a/patches/5.15/series +++ b/patches/5.15/series @@ -1,9 +1,5 @@ 0001-HACK-rtl8712-Zero-initialize-val-in-read_rfreg_hdl.patch 5b1e38c0792cc7a44997328de37d393f81b2501a.patch -8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch -17ba793f381eb813596d6de1cc6820bcbda5ed8b.patch -21b34a3a204ed616373a12ec17dc127ebe51eab3.patch -81284e86bf8849f8e98e8ead3ff5811926b2107f.patch 20250728_justinstitt_kvm_arm64_sys_regs_disable_wuninitialized_const_pointer_warning.patch ccc35ff2fd2911986b716a87fe65e03fac2312c9.patch fc7bf4c0d65a342b29fe38c332db3fe900b481b9.patch diff --git a/patches/5.4/0001-d5c8d6e0fa61401a729e9eb6a9c7077b2d3aebb0.patch b/patches/5.4/0001-d5c8d6e0fa61401a729e9eb6a9c7077b2d3aebb0.patch deleted file mode 100644 index fcc0a142..00000000 --- a/patches/5.4/0001-d5c8d6e0fa61401a729e9eb6a9c7077b2d3aebb0.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 53842cd1ecb80f2347244af2a4fdfd2956e010b6 Mon Sep 17 00:00:00 2001 -From: Nick Desaulniers -Date: Wed, 11 Jan 2023 20:05:01 -0700 -Subject: [PATCH 1/5] kbuild: Update assembler calls to use proper flags and - language target - -commit d5c8d6e0fa61401a729e9eb6a9c7077b2d3aebb0 upstream. - -as-instr uses KBUILD_AFLAGS, but as-option uses KBUILD_CFLAGS. This can -cause as-option to fail unexpectedly when CONFIG_WERROR is set, because -clang will emit -Werror,-Wunused-command-line-argument for various -m -and -f flags in KBUILD_CFLAGS for assembler sources. - -Callers of as-option and as-instr should be adding flags to -KBUILD_AFLAGS / aflags-y, not KBUILD_CFLAGS / cflags-y. Use -KBUILD_AFLAGS in all macros to clear up the initial problem. - -Unfortunately, -Wunused-command-line-argument can still be triggered -with clang by the presence of warning flags or macro definitions because -'-x assembler' is used, instead of '-x assembler-with-cpp', which will -consume these flags. Switch to '-x assembler-with-cpp' in places where -'-x assembler' is used, as the compiler is always used as the driver for -out of line assembler sources in the kernel. - -Finally, add -Werror to these macros so that they behave consistently -whether or not CONFIG_WERROR is set. - -[nathan: Reworded and expanded on problems in commit message - Use '-x assembler-with-cpp' in a couple more places] - -Link: https://github.com/ClangBuiltLinux/linux/issues/1699 -Suggested-by: Masahiro Yamada -Signed-off-by: Nick Desaulniers -Signed-off-by: Nathan Chancellor -Tested-by: Linux Kernel Functional Testing -Tested-by: Anders Roxell -Signed-off-by: Masahiro Yamada -Signed-off-by: Nathan Chancellor ---- - scripts/Kbuild.include | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include -index 5d247d8f1e04..e6bbe1fd7add 100644 ---- a/scripts/Kbuild.include -+++ b/scripts/Kbuild.include -@@ -99,16 +99,16 @@ try-run = $(shell set -e; \ - fi) - - # as-option --# Usage: cflags-y += $(call as-option,-Wa$(comma)-isa=foo,) -+# Usage: aflags-y += $(call as-option,-Wa$(comma)-isa=foo,) - - as-option = $(call try-run,\ -- $(CC) $(KBUILD_CFLAGS) $(1) -c -x assembler /dev/null -o "$$TMP",$(1),$(2)) -+ $(CC) -Werror $(KBUILD_AFLAGS) $(1) -c -x assembler-with-cpp /dev/null -o "$$TMP",$(1),$(2)) - - # as-instr --# Usage: cflags-y += $(call as-instr,instr,option1,option2) -+# Usage: aflags-y += $(call as-instr,instr,option1,option2) - - as-instr = $(call try-run,\ -- printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3)) -+ printf "%b\n" "$(1)" | $(CC) -Werror $(KBUILD_AFLAGS) -c -x assembler-with-cpp -o "$$TMP" -,$(2),$(3)) - - # __cc-option - # Usage: MY_CFLAGS += $(call __cc-option,$(CC),$(MY_CFLAGS),-march=winchip-c6,-march=i586) --- -2.50.0 - diff --git a/patches/5.4/0002-08f6554ff90ef189e6b8f0303e57005bddfdd6a7.patch b/patches/5.4/0002-08f6554ff90ef189e6b8f0303e57005bddfdd6a7.patch deleted file mode 100644 index 97f55c10..00000000 --- a/patches/5.4/0002-08f6554ff90ef189e6b8f0303e57005bddfdd6a7.patch +++ /dev/null @@ -1,40 +0,0 @@ -From ee72d68bba47e0a0f045ff33638601ef7ec14260 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Thu, 1 Jun 2023 11:38:24 -0700 -Subject: [PATCH 2/5] mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation - -commit 08f6554ff90ef189e6b8f0303e57005bddfdd6a7 upstream. - -A future change will move CLANG_FLAGS from KBUILD_{A,C}FLAGS to -KBUILD_CPPFLAGS so that '--target' is available while preprocessing. -When that occurs, the following error appears when building ARCH=mips -with clang (tip of tree error shown): - - clang: error: unsupported option '-mabi=' for target 'x86_64-pc-linux-gnu' - -Add KBUILD_CPPFLAGS in the CHECKFLAGS invocation to keep everything -working after the move. - -Signed-off-by: Nathan Chancellor -Signed-off-by: Masahiro Yamada -Signed-off-by: Nathan Chancellor ---- - arch/mips/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/arch/mips/Makefile b/arch/mips/Makefile -index 4542258027a7..cc6f8265f28c 100644 ---- a/arch/mips/Makefile -+++ b/arch/mips/Makefile -@@ -319,7 +319,7 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables - KBUILD_LDFLAGS += -m $(ld-emul) - - ifdef CONFIG_MIPS --CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ -+CHECKFLAGS += $(shell $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ - egrep -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \ - sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/" -e 's/\$$/&&/g') - endif --- -2.50.0 - diff --git a/patches/5.4/0003-cff6e7f50bd315e5b39c4e46c704ac587ceb965f.patch b/patches/5.4/0003-cff6e7f50bd315e5b39c4e46c704ac587ceb965f.patch deleted file mode 100644 index 78b548f2..00000000 --- a/patches/5.4/0003-cff6e7f50bd315e5b39c4e46c704ac587ceb965f.patch +++ /dev/null @@ -1,45 +0,0 @@ -From b7e68767a827168474d68a6f5ab998eac82f8c90 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Thu, 1 Jun 2023 12:50:39 -0700 -Subject: [PATCH 3/5] kbuild: Add CLANG_FLAGS to as-instr - -commit cff6e7f50bd315e5b39c4e46c704ac587ceb965f upstream. - -A future change will move CLANG_FLAGS from KBUILD_{A,C}FLAGS to -KBUILD_CPPFLAGS so that '--target' is available while preprocessing. -When that occurs, the following errors appear multiple times when -building ARCH=powerpc powernv_defconfig: - - ld.lld: error: vmlinux.a(arch/powerpc/kernel/head_64.o):(.text+0x12d4): relocation R_PPC64_ADDR16_HI out of range: -4611686018409717520 is not in [-2147483648, 2147483647]; references '__start___soft_mask_table' - ld.lld: error: vmlinux.a(arch/powerpc/kernel/head_64.o):(.text+0x12e8): relocation R_PPC64_ADDR16_HI out of range: -4611686018409717392 is not in [-2147483648, 2147483647]; references '__stop___soft_mask_table' - -Diffing the .o.cmd files reveals that -DHAVE_AS_ATHIGH=1 is not present -anymore, because as-instr only uses KBUILD_AFLAGS, which will no longer -contain '--target'. - -Mirror Kconfig's as-instr and add CLANG_FLAGS explicitly to the -invocation to ensure the target information is always present. - -Signed-off-by: Nathan Chancellor -Signed-off-by: Masahiro Yamada -Signed-off-by: Nathan Chancellor ---- - scripts/Kbuild.include | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include -index e6bbe1fd7add..1aa02e7125e7 100644 ---- a/scripts/Kbuild.include -+++ b/scripts/Kbuild.include -@@ -108,7 +108,7 @@ as-option = $(call try-run,\ - # Usage: aflags-y += $(call as-instr,instr,option1,option2) - - as-instr = $(call try-run,\ -- printf "%b\n" "$(1)" | $(CC) -Werror $(KBUILD_AFLAGS) -c -x assembler-with-cpp -o "$$TMP" -,$(2),$(3)) -+ printf "%b\n" "$(1)" | $(CC) -Werror $(CLANG_FLAGS) $(KBUILD_AFLAGS) -c -x assembler-with-cpp -o "$$TMP" -,$(2),$(3)) - - # __cc-option - # Usage: MY_CFLAGS += $(call __cc-option,$(CC),$(MY_CFLAGS),-march=winchip-c6,-march=i586) --- -2.50.0 - diff --git a/patches/5.4/0004-feb843a469fb0ab00d2d23cfb9bcc379791011bb.patch b/patches/5.4/0004-feb843a469fb0ab00d2d23cfb9bcc379791011bb.patch deleted file mode 100644 index 2f3032ab..00000000 --- a/patches/5.4/0004-feb843a469fb0ab00d2d23cfb9bcc379791011bb.patch +++ /dev/null @@ -1,55 +0,0 @@ -From a846e1c74e2c17443e84efefb632f0d759d5f6e1 Mon Sep 17 00:00:00 2001 -From: Masahiro Yamada -Date: Sun, 9 Apr 2023 23:53:57 +0900 -Subject: [PATCH 4/5] kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGS - -commit feb843a469fb0ab00d2d23cfb9bcc379791011bb upstream. - -When preprocessing arch/*/kernel/vmlinux.lds.S, the target triple is -not passed to $(CPP) because we add it only to KBUILD_{C,A}FLAGS. - -As a result, the linker script is preprocessed with predefined macros -for the build host instead of the target. - -Assuming you use an x86 build machine, compare the following: - - $ clang -dM -E -x c /dev/null - $ clang -dM -E -x c /dev/null -target aarch64-linux-gnu - -There is no actual problem presumably because our linker scripts do not -rely on such predefined macros, but it is better to define correct ones. - -Move $(CLANG_FLAGS) to KBUILD_CPPFLAGS, so that all *.c, *.S, *.lds.S -will be processed with the proper target triple. - -[Note] -After the patch submission, we got an actual problem that needs this -commit. (CBL issue 1859) - -Link: https://github.com/ClangBuiltLinux/linux/issues/1859 -Reported-by: Tom Rini -Signed-off-by: Masahiro Yamada -Reviewed-by: Nathan Chancellor -Tested-by: Nathan Chancellor -Signed-off-by: Nathan Chancellor ---- - Makefile | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index cc8e29781c25..624dc619104a 100644 ---- a/Makefile -+++ b/Makefile -@@ -568,8 +568,7 @@ ifneq ($(LLVM_IAS),1) - CLANG_FLAGS += -no-integrated-as - endif - CLANG_FLAGS += -Werror=unknown-warning-option --KBUILD_CFLAGS += $(CLANG_FLAGS) --KBUILD_AFLAGS += $(CLANG_FLAGS) -+KBUILD_CPPFLAGS += $(CLANG_FLAGS) - export CLANG_FLAGS - endif - --- -2.50.0 - diff --git a/patches/5.4/0005-43fc0a99906e04792786edf8534d8d58d1e9de0c.patch b/patches/5.4/0005-43fc0a99906e04792786edf8534d8d58d1e9de0c.patch deleted file mode 100644 index 0c204cbf..00000000 --- a/patches/5.4/0005-43fc0a99906e04792786edf8534d8d58d1e9de0c.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 869854f263162dc80dc632fed8db396789bdf3ab Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 6 Jun 2023 15:40:35 -0700 -Subject: [PATCH 5/5] kbuild: Add KBUILD_CPPFLAGS to as-option invocation - -commit 43fc0a99906e04792786edf8534d8d58d1e9de0c upstream. - -After commit feb843a469fb ("kbuild: add $(CLANG_FLAGS) to -KBUILD_CPPFLAGS"), there is an error while building certain PowerPC -assembly files with clang: - - arch/powerpc/lib/copypage_power7.S: Assembler messages: - arch/powerpc/lib/copypage_power7.S:34: Error: junk at end of line: `0b01000' - arch/powerpc/lib/copypage_power7.S:35: Error: junk at end of line: `0b01010' - arch/powerpc/lib/copypage_power7.S:37: Error: junk at end of line: `0b01000' - arch/powerpc/lib/copypage_power7.S:38: Error: junk at end of line: `0b01010' - arch/powerpc/lib/copypage_power7.S:40: Error: junk at end of line: `0b01010' - clang: error: assembler command failed with exit code 1 (use -v to see invocation) - -as-option only uses KBUILD_AFLAGS, so after removing CLANG_FLAGS from -KBUILD_AFLAGS, there is no more '--target=' or '--prefix=' flags. As a -result of those missing flags, the host target -will be tested during as-option calls and likely fail, meaning necessary -flags may not get added when building assembly files, resulting in -errors like seen above. - -Add KBUILD_CPPFLAGS to as-option invocations to clear up the errors. -This should have been done in commit d5c8d6e0fa61 ("kbuild: Update -assembler calls to use proper flags and language target"), which -switched from using the assembler target to the assembler-with-cpp -target, so flags that affect preprocessing are passed along in all -relevant tests. as-option now mirrors cc-option. - -Fixes: feb843a469fb ("kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGS") -Reported-by: Linux Kernel Functional Testing -Closes: https://lore.kernel.org/CA+G9fYs=koW9WardsTtora+nMgLR3raHz-LSLr58tgX4T5Mxag@mail.gmail.com/ -Signed-off-by: Nathan Chancellor -Tested-by: Naresh Kamboju -Signed-off-by: Masahiro Yamada -Signed-off-by: Nathan Chancellor ---- - scripts/Kbuild.include | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include -index 1aa02e7125e7..d91d06c52da8 100644 ---- a/scripts/Kbuild.include -+++ b/scripts/Kbuild.include -@@ -102,7 +102,7 @@ try-run = $(shell set -e; \ - # Usage: aflags-y += $(call as-option,-Wa$(comma)-isa=foo,) - - as-option = $(call try-run,\ -- $(CC) -Werror $(KBUILD_AFLAGS) $(1) -c -x assembler-with-cpp /dev/null -o "$$TMP",$(1),$(2)) -+ $(CC) -Werror $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(1) -c -x assembler-with-cpp /dev/null -o "$$TMP",$(1),$(2)) - - # as-instr - # Usage: aflags-y += $(call as-instr,instr,option1,option2) --- -2.50.0 - diff --git a/patches/5.4/0006-20250618_nathan_arm_use_an_absolute_path_to_unified_h_in_kbuild_aflags.patch b/patches/5.4/0006-20250618_nathan_arm_use_an_absolute_path_to_unified_h_in_kbuild_aflags.patch deleted file mode 100644 index 10353412..00000000 --- a/patches/5.4/0006-20250618_nathan_arm_use_an_absolute_path_to_unified_h_in_kbuild_aflags.patch +++ /dev/null @@ -1,65 +0,0 @@ -From git@z Thu Jan 1 00:00:00 1970 -Subject: [PATCH] ARM: Use an absolute path to unified.h in KBUILD_AFLAGS -From: Nathan Chancellor -Date: Wed, 18 Jun 2025 12:29:09 -0700 -Message-Id: <20250618-arm-expand-include-unified-h-path-v1-1-aef6eb4c44ca@kernel.org> -MIME-Version: 1.0 -Content-Type: text/plain; charset="utf-8" -Content-Transfer-Encoding: 7bit - -After commit d5c8d6e0fa61 ("kbuild: Update assembler calls to use proper -flags and language target"), which updated as-instr to use the -'assembler-with-cpp' language option, the Kbuild version of as-instr -always fails internally for arch/arm with - - : fatal error: asm/unified.h: No such file or directory - compilation terminated. - -because '-include' flags are now taken into account by the compiler -driver and as-instr does not have '$(LINUXINCLUDE)', so unified.h is not -found. - -This went unnoticed at the time of the Kbuild change because the last -use of as-instr in Kbuild that arch/arm could reach was removed in 5.7 -by commit 541ad0150ca4 ("arm: Remove 32bit KVM host support") but a -stable backport of the Kbuild change to before that point exposed this -potential issue if one were to be reintroduced. - -Follow the general pattern of '-include' paths throughout the tree and -make unified.h absolute using '$(srctree)' to ensure KBUILD_AFLAGS can -be used independently. - -Cc: stable@vger.kernel.org -Fixes: d5c8d6e0fa61 ("kbuild: Update assembler calls to use proper flags and language target") -Reported-by: KernelCI bot -Closes: https://lore.kernel.org/CACo-S-1qbCX4WAVFA63dWfHtrRHZBTyyr2js8Lx=Az03XHTTHg@mail.gmail.com/ -Reviewed-by: Masahiro Yamada -Link: https://lore.kernel.org/r/20250618-arm-expand-include-unified-h-path-v1-1-aef6eb4c44ca@kernel.org -Signed-off-by: Nathan Chancellor ---- -Submitted to rmk's tracker: https://www.armlinux.org.uk/developer/patches/viewpatch.php?id=9448/1 ---- - arch/arm/Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/arch/arm/Makefile b/arch/arm/Makefile -index 4f098edfbf20..cb33ed8de5f8 100644 ---- a/arch/arm/Makefile -+++ b/arch/arm/Makefile -@@ -136,7 +136,7 @@ endif - - # Need -Uarm for gcc < 3.x - KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm --KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float -+KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include $(srctree)/arch/arm/include/asm/unified.h -msoft-float - - CHECKFLAGS += -D__arm__ - ---- -base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e -change-id: 20250618-arm-expand-include-unified-h-path-60e65adcda1e - -Best regards, --- -Nathan Chancellor - diff --git a/patches/5.4/series b/patches/5.4/series deleted file mode 100644 index 1816a4dd..00000000 --- a/patches/5.4/series +++ /dev/null @@ -1,6 +0,0 @@ -0001-d5c8d6e0fa61401a729e9eb6a9c7077b2d3aebb0.patch -0002-08f6554ff90ef189e6b8f0303e57005bddfdd6a7.patch -0003-cff6e7f50bd315e5b39c4e46c704ac587ceb965f.patch -0004-feb843a469fb0ab00d2d23cfb9bcc379791011bb.patch -0005-43fc0a99906e04792786edf8534d8d58d1e9de0c.patch -0006-20250618_nathan_arm_use_an_absolute_path_to_unified_h_in_kbuild_aflags.patch diff --git a/patches/6.1/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch b/patches/6.1/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch deleted file mode 100644 index 2a7f9eef..00000000 --- a/patches/6.1/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 81284e86bf8849f8e98e8ead3ff5811926b2107f Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 19:45:23 -0700 -Subject: wifi: brcmsmac: Remove const from tbl_ptr parameter in - wlc_lcnphy_common_read_table() - -A new warning in clang [1] complains that diq_start in -wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to -wlc_lcnphy_common_read_table(): - - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 2728 | &diq_start, 1, 16, 69); - | ^~~~~~~~~ - -The table pointer passed to wlc_lcnphy_common_read_table() should not be -considered constant, as wlc_phy_read_table() is ultimately going to -update it. Remove the const qualifier from the tbl_ptr to clear up the -warning. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2108 -Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Signed-off-by: Nathan Chancellor -Acked-by: Arend van Spriel > -Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org -Signed-off-by: Johannes Berg ---- -Link: https://git.kernel.org/linus/81284e86bf8849f8e98e8ead3ff5811926b2107f ---- - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -index d0faba24056105..b4bba67a45ec36 100644 ---- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -@@ -919,7 +919,7 @@ void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) - - static void - wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, -- const u16 *tbl_ptr, u32 tbl_len, -+ u16 *tbl_ptr, u32 tbl_len, - u32 tbl_width, u32 tbl_offset) - { - struct phytbl_info tab; --- -cgit 1.2.3-korg - diff --git a/patches/6.1/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch b/patches/6.1/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch deleted file mode 100644 index 650ce96c..00000000 --- a/patches/6.1/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch +++ /dev/null @@ -1,234 +0,0 @@ -From 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 22 Jul 2025 12:11:18 -0700 -Subject: usb: atm: cxacru: Merge cxacru_upload_firmware() into - cxacru_heavy_init() - -After a recent change in clang to expose uninitialized warnings from -const variables [1], there is a warning in cxacru_heavy_init(): - - drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here - 1113 | cxacru_upload_firmware(instance, fw, bp); - | ^~ - drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning - 1095 | const struct firmware *fw, *bp; - | ^ - | = NULL - -While the warning is technically correct that bp is conditionally passed -uninitialized to cxacru_upload_firmware(), it is ultimately a false -positive warning on the uninitialized use of bp because the same -condition that initializes bp, instance->modem_type->boot_rom_patch, is -the same one that gates the use of bp within cxacru_upload_firmware(). -As this warning occurs in clang's frontend before inlining occurs, it -cannot know that these conditions are indentical to avoid the warning. - -Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as -that is its only callsite, so that clang can see that bp is initialized -and used under the same condition, clearing up the warning without any -functional changes to the code (LLVM was already doing this inlining -later). - -Cc: stable@vger.kernel.org -Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") -Closes: https://github.com/ClangBuiltLinux/linux/issues/2102 -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org -Signed-off-by: Greg Kroah-Hartman ---- -Link: https://git.kernel.org/linus/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 ---- - drivers/usb/atm/cxacru.c | 106 ++++++++++++++++++++++------------------------- - 1 file changed, 49 insertions(+), 57 deletions(-) - -diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c -index a12ab90b3db75b..68a8e9de8b4fe9 100644 ---- a/drivers/usb/atm/cxacru.c -+++ b/drivers/usb/atm/cxacru.c -@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, - return ret; - } - --static void cxacru_upload_firmware(struct cxacru_data *instance, -- const struct firmware *fw, -- const struct firmware *bp) -+ -+static int cxacru_find_firmware(struct cxacru_data *instance, -+ char *phase, const struct firmware **fw_p) - { -- int ret; -+ struct usbatm_data *usbatm = instance->usbatm; -+ struct device *dev = &usbatm->usb_intf->dev; -+ char buf[16]; -+ -+ sprintf(buf, "cxacru-%s.bin", phase); -+ usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -+ -+ if (request_firmware(fw_p, buf, dev)) { -+ usb_dbg(usbatm, "no stage %s firmware found\n", phase); -+ return -ENOENT; -+ } -+ -+ usb_info(usbatm, "found firmware %s\n", buf); -+ -+ return 0; -+} -+ -+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -+ struct usb_interface *usb_intf) -+{ -+ const struct firmware *fw, *bp; -+ struct cxacru_data *instance = usbatm_instance->driver_data; - struct usbatm_data *usbatm = instance->usbatm; - struct usb_device *usb_dev = usbatm->usb_dev; - __le16 signature[] = { usb_dev->descriptor.idVendor, - usb_dev->descriptor.idProduct }; - __le32 val; -+ int ret; - -- usb_dbg(usbatm, "%s\n", __func__); -+ ret = cxacru_find_firmware(instance, "fw", &fw); -+ if (ret) { -+ usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -+ return ret; -+ } -+ -+ if (instance->modem_type->boot_rom_patch) { -+ ret = cxacru_find_firmware(instance, "bp", &bp); -+ if (ret) { -+ usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -+ release_firmware(fw); -+ return ret; -+ } -+ } - - /* FirmwarePllFClkValue */ - val = cpu_to_le32(instance->modem_type->pll_f_clk); - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* FirmwarePllBClkValue */ -@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* Enable SDRAM */ -@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "Enable SDRAM failed: %d\n", ret); -- return; -+ goto done; - } - - /* Firmware */ -@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size); - if (ret) { - usb_err(usbatm, "Firmware upload failed: %d\n", ret); -- return; -+ goto done; - } - - /* Boot ROM patch */ -@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size); - if (ret) { - usb_err(usbatm, "Boot ROM patching failed: %d\n", ret); -- return; -+ goto done; - } - } - -@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4); - if (ret) { - usb_err(usbatm, "Signature storing failed: %d\n", ret); -- return; -+ goto done; - } - - usb_info(usbatm, "starting device\n"); -@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - } - if (ret) { - usb_err(usbatm, "Passing control to firmware failed: %d\n", ret); -- return; -+ goto done; - } - - /* Delay to allow firmware to start up. */ -@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0); - if (ret < 0) { - usb_err(usbatm, "modem failed to initialize: %d\n", ret); -- return; -- } --} -- --static int cxacru_find_firmware(struct cxacru_data *instance, -- char *phase, const struct firmware **fw_p) --{ -- struct usbatm_data *usbatm = instance->usbatm; -- struct device *dev = &usbatm->usb_intf->dev; -- char buf[16]; -- -- sprintf(buf, "cxacru-%s.bin", phase); -- usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -- -- if (request_firmware(fw_p, buf, dev)) { -- usb_dbg(usbatm, "no stage %s firmware found\n", phase); -- return -ENOENT; -- } -- -- usb_info(usbatm, "found firmware %s\n", buf); -- -- return 0; --} -- --static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -- struct usb_interface *usb_intf) --{ -- const struct firmware *fw, *bp; -- struct cxacru_data *instance = usbatm_instance->driver_data; -- int ret = cxacru_find_firmware(instance, "fw", &fw); -- -- if (ret) { -- usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -- return ret; -+ goto done; - } - -- if (instance->modem_type->boot_rom_patch) { -- ret = cxacru_find_firmware(instance, "bp", &bp); -- if (ret) { -- usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -- release_firmware(fw); -- return ret; -- } -- } -- -- cxacru_upload_firmware(instance, fw, bp); -- -+done: - if (instance->modem_type->boot_rom_patch) - release_firmware(bp); - release_firmware(fw); --- -cgit 1.2.3-korg - diff --git a/patches/6.1/series b/patches/6.1/series index 4f16cf07..9e6600e6 100644 --- a/patches/6.1/series +++ b/patches/6.1/series @@ -1,5 +1,3 @@ 0001-HACK-rtl8712-Zero-initialize-val-in-read_rfreg_hdl.patch -8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch -81284e86bf8849f8e98e8ead3ff5811926b2107f.patch 20250728_justinstitt_kvm_arm64_sys_regs_disable_wuninitialized_const_pointer_warning.patch ccc35ff2fd2911986b716a87fe65e03fac2312c9.patch diff --git a/patches/6.12/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch b/patches/6.12/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch deleted file mode 100644 index 2a7f9eef..00000000 --- a/patches/6.12/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 81284e86bf8849f8e98e8ead3ff5811926b2107f Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 19:45:23 -0700 -Subject: wifi: brcmsmac: Remove const from tbl_ptr parameter in - wlc_lcnphy_common_read_table() - -A new warning in clang [1] complains that diq_start in -wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to -wlc_lcnphy_common_read_table(): - - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 2728 | &diq_start, 1, 16, 69); - | ^~~~~~~~~ - -The table pointer passed to wlc_lcnphy_common_read_table() should not be -considered constant, as wlc_phy_read_table() is ultimately going to -update it. Remove the const qualifier from the tbl_ptr to clear up the -warning. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2108 -Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Signed-off-by: Nathan Chancellor -Acked-by: Arend van Spriel > -Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org -Signed-off-by: Johannes Berg ---- -Link: https://git.kernel.org/linus/81284e86bf8849f8e98e8ead3ff5811926b2107f ---- - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -index d0faba24056105..b4bba67a45ec36 100644 ---- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -@@ -919,7 +919,7 @@ void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) - - static void - wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, -- const u16 *tbl_ptr, u32 tbl_len, -+ u16 *tbl_ptr, u32 tbl_len, - u32 tbl_width, u32 tbl_offset) - { - struct phytbl_info tab; --- -cgit 1.2.3-korg - diff --git a/patches/6.12/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch b/patches/6.12/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch deleted file mode 100644 index 650ce96c..00000000 --- a/patches/6.12/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch +++ /dev/null @@ -1,234 +0,0 @@ -From 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 22 Jul 2025 12:11:18 -0700 -Subject: usb: atm: cxacru: Merge cxacru_upload_firmware() into - cxacru_heavy_init() - -After a recent change in clang to expose uninitialized warnings from -const variables [1], there is a warning in cxacru_heavy_init(): - - drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here - 1113 | cxacru_upload_firmware(instance, fw, bp); - | ^~ - drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning - 1095 | const struct firmware *fw, *bp; - | ^ - | = NULL - -While the warning is technically correct that bp is conditionally passed -uninitialized to cxacru_upload_firmware(), it is ultimately a false -positive warning on the uninitialized use of bp because the same -condition that initializes bp, instance->modem_type->boot_rom_patch, is -the same one that gates the use of bp within cxacru_upload_firmware(). -As this warning occurs in clang's frontend before inlining occurs, it -cannot know that these conditions are indentical to avoid the warning. - -Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as -that is its only callsite, so that clang can see that bp is initialized -and used under the same condition, clearing up the warning without any -functional changes to the code (LLVM was already doing this inlining -later). - -Cc: stable@vger.kernel.org -Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") -Closes: https://github.com/ClangBuiltLinux/linux/issues/2102 -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org -Signed-off-by: Greg Kroah-Hartman ---- -Link: https://git.kernel.org/linus/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 ---- - drivers/usb/atm/cxacru.c | 106 ++++++++++++++++++++++------------------------- - 1 file changed, 49 insertions(+), 57 deletions(-) - -diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c -index a12ab90b3db75b..68a8e9de8b4fe9 100644 ---- a/drivers/usb/atm/cxacru.c -+++ b/drivers/usb/atm/cxacru.c -@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, - return ret; - } - --static void cxacru_upload_firmware(struct cxacru_data *instance, -- const struct firmware *fw, -- const struct firmware *bp) -+ -+static int cxacru_find_firmware(struct cxacru_data *instance, -+ char *phase, const struct firmware **fw_p) - { -- int ret; -+ struct usbatm_data *usbatm = instance->usbatm; -+ struct device *dev = &usbatm->usb_intf->dev; -+ char buf[16]; -+ -+ sprintf(buf, "cxacru-%s.bin", phase); -+ usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -+ -+ if (request_firmware(fw_p, buf, dev)) { -+ usb_dbg(usbatm, "no stage %s firmware found\n", phase); -+ return -ENOENT; -+ } -+ -+ usb_info(usbatm, "found firmware %s\n", buf); -+ -+ return 0; -+} -+ -+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -+ struct usb_interface *usb_intf) -+{ -+ const struct firmware *fw, *bp; -+ struct cxacru_data *instance = usbatm_instance->driver_data; - struct usbatm_data *usbatm = instance->usbatm; - struct usb_device *usb_dev = usbatm->usb_dev; - __le16 signature[] = { usb_dev->descriptor.idVendor, - usb_dev->descriptor.idProduct }; - __le32 val; -+ int ret; - -- usb_dbg(usbatm, "%s\n", __func__); -+ ret = cxacru_find_firmware(instance, "fw", &fw); -+ if (ret) { -+ usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -+ return ret; -+ } -+ -+ if (instance->modem_type->boot_rom_patch) { -+ ret = cxacru_find_firmware(instance, "bp", &bp); -+ if (ret) { -+ usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -+ release_firmware(fw); -+ return ret; -+ } -+ } - - /* FirmwarePllFClkValue */ - val = cpu_to_le32(instance->modem_type->pll_f_clk); - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* FirmwarePllBClkValue */ -@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* Enable SDRAM */ -@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "Enable SDRAM failed: %d\n", ret); -- return; -+ goto done; - } - - /* Firmware */ -@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size); - if (ret) { - usb_err(usbatm, "Firmware upload failed: %d\n", ret); -- return; -+ goto done; - } - - /* Boot ROM patch */ -@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size); - if (ret) { - usb_err(usbatm, "Boot ROM patching failed: %d\n", ret); -- return; -+ goto done; - } - } - -@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4); - if (ret) { - usb_err(usbatm, "Signature storing failed: %d\n", ret); -- return; -+ goto done; - } - - usb_info(usbatm, "starting device\n"); -@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - } - if (ret) { - usb_err(usbatm, "Passing control to firmware failed: %d\n", ret); -- return; -+ goto done; - } - - /* Delay to allow firmware to start up. */ -@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0); - if (ret < 0) { - usb_err(usbatm, "modem failed to initialize: %d\n", ret); -- return; -- } --} -- --static int cxacru_find_firmware(struct cxacru_data *instance, -- char *phase, const struct firmware **fw_p) --{ -- struct usbatm_data *usbatm = instance->usbatm; -- struct device *dev = &usbatm->usb_intf->dev; -- char buf[16]; -- -- sprintf(buf, "cxacru-%s.bin", phase); -- usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -- -- if (request_firmware(fw_p, buf, dev)) { -- usb_dbg(usbatm, "no stage %s firmware found\n", phase); -- return -ENOENT; -- } -- -- usb_info(usbatm, "found firmware %s\n", buf); -- -- return 0; --} -- --static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -- struct usb_interface *usb_intf) --{ -- const struct firmware *fw, *bp; -- struct cxacru_data *instance = usbatm_instance->driver_data; -- int ret = cxacru_find_firmware(instance, "fw", &fw); -- -- if (ret) { -- usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -- return ret; -+ goto done; - } - -- if (instance->modem_type->boot_rom_patch) { -- ret = cxacru_find_firmware(instance, "bp", &bp); -- if (ret) { -- usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -- release_firmware(fw); -- return ret; -- } -- } -- -- cxacru_upload_firmware(instance, fw, bp); -- -+done: - if (instance->modem_type->boot_rom_patch) - release_firmware(bp); - release_firmware(fw); --- -cgit 1.2.3-korg - diff --git a/patches/6.12/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch b/patches/6.12/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch deleted file mode 100644 index 97c90810..00000000 --- a/patches/6.12/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch +++ /dev/null @@ -1,52 +0,0 @@ -From c90f2e1172c51fa25492471dc9910e2d7c1444b9 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 16:50:22 -0700 -Subject: drm/amdgpu: Initialize data to NULL in imu_v12_0_program_rlc_ram() - -After a recent change in clang to expose uninitialized warnings from -const variables and pointers [1], there is a warning in -imu_v12_0_program_rlc_ram() because data is passed uninitialized to -program_imu_rlc_ram(): - - drivers/gpu/drm/amd/amdgpu/imu_v12_0.c:374:30: error: variable 'data' is uninitialized when used here [-Werror,-Wuninitialized] - 374 | program_imu_rlc_ram(adev, data, (const u32)size); - | ^~~~ - -As this warning happens early in clang's frontend, it does not realize -that due to the assignment of r to -EINVAL, program_imu_rlc_ram() is -never actually called, and even if it were, data would not be -dereferenced because size is 0. - -Just initialize data to NULL to silence the warning, as the commit that -added program_imu_rlc_ram() mentioned it would eventually be used over -the old method, at which point data can be properly initialized and -used. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2107 -Fixes: 56159fffaab5 ("drm/amdgpu: use new method to program rlc ram") -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Signed-off-by: Alex Deucher ---- -Link: https://git.kernel.org/linus/c90f2e1172c51fa25492471dc9910e2d7c1444b9 ---- - drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -index df898dbb746e3f..8cb6b1854d2453 100644 ---- a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -+++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -@@ -362,7 +362,7 @@ static void program_imu_rlc_ram(struct amdgpu_device *adev, - static void imu_v12_0_program_rlc_ram(struct amdgpu_device *adev) - { - u32 reg_data, size = 0; -- const u32 *data; -+ const u32 *data = NULL; - int r = -EINVAL; - - WREG32_SOC15(GC, 0, regGFX_IMU_RLC_RAM_INDEX, 0x2); --- -cgit 1.2.3-korg - diff --git a/patches/6.12/series b/patches/6.12/series index 77b150c5..789dce32 100644 --- a/patches/6.12/series +++ b/patches/6.12/series @@ -1,6 +1,3 @@ 0001-HACK-rtl8712-Zero-initialize-val-in-read_rfreg_hdl.patch -8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch -81284e86bf8849f8e98e8ead3ff5811926b2107f.patch 20250715_nathan_media_s5p_mfc_always_pass_null_to_s5p_mfc_cmd_host2risc_v6.patch 20250715_nathan_wifi_mt76_mt7996_initialize_hdr_before_passing_to_skb_put_data.patch -c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch diff --git a/patches/6.6/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch b/patches/6.6/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch deleted file mode 100644 index 2a7f9eef..00000000 --- a/patches/6.6/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 81284e86bf8849f8e98e8ead3ff5811926b2107f Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 19:45:23 -0700 -Subject: wifi: brcmsmac: Remove const from tbl_ptr parameter in - wlc_lcnphy_common_read_table() - -A new warning in clang [1] complains that diq_start in -wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to -wlc_lcnphy_common_read_table(): - - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 2728 | &diq_start, 1, 16, 69); - | ^~~~~~~~~ - -The table pointer passed to wlc_lcnphy_common_read_table() should not be -considered constant, as wlc_phy_read_table() is ultimately going to -update it. Remove the const qualifier from the tbl_ptr to clear up the -warning. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2108 -Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Signed-off-by: Nathan Chancellor -Acked-by: Arend van Spriel > -Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org -Signed-off-by: Johannes Berg ---- -Link: https://git.kernel.org/linus/81284e86bf8849f8e98e8ead3ff5811926b2107f ---- - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -index d0faba24056105..b4bba67a45ec36 100644 ---- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -@@ -919,7 +919,7 @@ void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) - - static void - wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, -- const u16 *tbl_ptr, u32 tbl_len, -+ u16 *tbl_ptr, u32 tbl_len, - u32 tbl_width, u32 tbl_offset) - { - struct phytbl_info tab; --- -cgit 1.2.3-korg - diff --git a/patches/6.6/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch b/patches/6.6/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch deleted file mode 100644 index 650ce96c..00000000 --- a/patches/6.6/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch +++ /dev/null @@ -1,234 +0,0 @@ -From 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 22 Jul 2025 12:11:18 -0700 -Subject: usb: atm: cxacru: Merge cxacru_upload_firmware() into - cxacru_heavy_init() - -After a recent change in clang to expose uninitialized warnings from -const variables [1], there is a warning in cxacru_heavy_init(): - - drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here - 1113 | cxacru_upload_firmware(instance, fw, bp); - | ^~ - drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning - 1095 | const struct firmware *fw, *bp; - | ^ - | = NULL - -While the warning is technically correct that bp is conditionally passed -uninitialized to cxacru_upload_firmware(), it is ultimately a false -positive warning on the uninitialized use of bp because the same -condition that initializes bp, instance->modem_type->boot_rom_patch, is -the same one that gates the use of bp within cxacru_upload_firmware(). -As this warning occurs in clang's frontend before inlining occurs, it -cannot know that these conditions are indentical to avoid the warning. - -Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as -that is its only callsite, so that clang can see that bp is initialized -and used under the same condition, clearing up the warning without any -functional changes to the code (LLVM was already doing this inlining -later). - -Cc: stable@vger.kernel.org -Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") -Closes: https://github.com/ClangBuiltLinux/linux/issues/2102 -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org -Signed-off-by: Greg Kroah-Hartman ---- -Link: https://git.kernel.org/linus/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 ---- - drivers/usb/atm/cxacru.c | 106 ++++++++++++++++++++++------------------------- - 1 file changed, 49 insertions(+), 57 deletions(-) - -diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c -index a12ab90b3db75b..68a8e9de8b4fe9 100644 ---- a/drivers/usb/atm/cxacru.c -+++ b/drivers/usb/atm/cxacru.c -@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, - return ret; - } - --static void cxacru_upload_firmware(struct cxacru_data *instance, -- const struct firmware *fw, -- const struct firmware *bp) -+ -+static int cxacru_find_firmware(struct cxacru_data *instance, -+ char *phase, const struct firmware **fw_p) - { -- int ret; -+ struct usbatm_data *usbatm = instance->usbatm; -+ struct device *dev = &usbatm->usb_intf->dev; -+ char buf[16]; -+ -+ sprintf(buf, "cxacru-%s.bin", phase); -+ usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -+ -+ if (request_firmware(fw_p, buf, dev)) { -+ usb_dbg(usbatm, "no stage %s firmware found\n", phase); -+ return -ENOENT; -+ } -+ -+ usb_info(usbatm, "found firmware %s\n", buf); -+ -+ return 0; -+} -+ -+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -+ struct usb_interface *usb_intf) -+{ -+ const struct firmware *fw, *bp; -+ struct cxacru_data *instance = usbatm_instance->driver_data; - struct usbatm_data *usbatm = instance->usbatm; - struct usb_device *usb_dev = usbatm->usb_dev; - __le16 signature[] = { usb_dev->descriptor.idVendor, - usb_dev->descriptor.idProduct }; - __le32 val; -+ int ret; - -- usb_dbg(usbatm, "%s\n", __func__); -+ ret = cxacru_find_firmware(instance, "fw", &fw); -+ if (ret) { -+ usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -+ return ret; -+ } -+ -+ if (instance->modem_type->boot_rom_patch) { -+ ret = cxacru_find_firmware(instance, "bp", &bp); -+ if (ret) { -+ usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -+ release_firmware(fw); -+ return ret; -+ } -+ } - - /* FirmwarePllFClkValue */ - val = cpu_to_le32(instance->modem_type->pll_f_clk); - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* FirmwarePllBClkValue */ -@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* Enable SDRAM */ -@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "Enable SDRAM failed: %d\n", ret); -- return; -+ goto done; - } - - /* Firmware */ -@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size); - if (ret) { - usb_err(usbatm, "Firmware upload failed: %d\n", ret); -- return; -+ goto done; - } - - /* Boot ROM patch */ -@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size); - if (ret) { - usb_err(usbatm, "Boot ROM patching failed: %d\n", ret); -- return; -+ goto done; - } - } - -@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4); - if (ret) { - usb_err(usbatm, "Signature storing failed: %d\n", ret); -- return; -+ goto done; - } - - usb_info(usbatm, "starting device\n"); -@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - } - if (ret) { - usb_err(usbatm, "Passing control to firmware failed: %d\n", ret); -- return; -+ goto done; - } - - /* Delay to allow firmware to start up. */ -@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0); - if (ret < 0) { - usb_err(usbatm, "modem failed to initialize: %d\n", ret); -- return; -- } --} -- --static int cxacru_find_firmware(struct cxacru_data *instance, -- char *phase, const struct firmware **fw_p) --{ -- struct usbatm_data *usbatm = instance->usbatm; -- struct device *dev = &usbatm->usb_intf->dev; -- char buf[16]; -- -- sprintf(buf, "cxacru-%s.bin", phase); -- usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -- -- if (request_firmware(fw_p, buf, dev)) { -- usb_dbg(usbatm, "no stage %s firmware found\n", phase); -- return -ENOENT; -- } -- -- usb_info(usbatm, "found firmware %s\n", buf); -- -- return 0; --} -- --static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -- struct usb_interface *usb_intf) --{ -- const struct firmware *fw, *bp; -- struct cxacru_data *instance = usbatm_instance->driver_data; -- int ret = cxacru_find_firmware(instance, "fw", &fw); -- -- if (ret) { -- usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -- return ret; -+ goto done; - } - -- if (instance->modem_type->boot_rom_patch) { -- ret = cxacru_find_firmware(instance, "bp", &bp); -- if (ret) { -- usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -- release_firmware(fw); -- return ret; -- } -- } -- -- cxacru_upload_firmware(instance, fw, bp); -- -+done: - if (instance->modem_type->boot_rom_patch) - release_firmware(bp); - release_firmware(fw); --- -cgit 1.2.3-korg - diff --git a/patches/6.6/series b/patches/6.6/series index 6b03cee7..54904ac3 100644 --- a/patches/6.6/series +++ b/patches/6.6/series @@ -1,5 +1,3 @@ 0001-HACK-rtl8712-Zero-initialize-val-in-read_rfreg_hdl.patch -8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch -81284e86bf8849f8e98e8ead3ff5811926b2107f.patch 20250715_nathan_wifi_mt76_mt7996_initialize_hdr_before_passing_to_skb_put_data.patch ccc35ff2fd2911986b716a87fe65e03fac2312c9.patch diff --git a/patches/stable/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch b/patches/stable/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch deleted file mode 100644 index 2a7f9eef..00000000 --- a/patches/stable/81284e86bf8849f8e98e8ead3ff5811926b2107f.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 81284e86bf8849f8e98e8ead3ff5811926b2107f Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 19:45:23 -0700 -Subject: wifi: brcmsmac: Remove const from tbl_ptr parameter in - wlc_lcnphy_common_read_table() - -A new warning in clang [1] complains that diq_start in -wlc_lcnphy_tx_iqlo_cal() is passed uninitialized as a const pointer to -wlc_lcnphy_common_read_table(): - - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:2728:13: error: variable 'diq_start' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] - 2728 | &diq_start, 1, 16, 69); - | ^~~~~~~~~ - -The table pointer passed to wlc_lcnphy_common_read_table() should not be -considered constant, as wlc_phy_read_table() is ultimately going to -update it. Remove the const qualifier from the tbl_ptr to clear up the -warning. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2108 -Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers") -Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1] -Signed-off-by: Nathan Chancellor -Acked-by: Arend van Spriel > -Link: https://patch.msgid.link/20250715-brcmsmac-fix-uninit-const-pointer-v1-1-16e6a51a8ef4@kernel.org -Signed-off-by: Johannes Berg ---- -Link: https://git.kernel.org/linus/81284e86bf8849f8e98e8ead3ff5811926b2107f ---- - drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -index d0faba24056105..b4bba67a45ec36 100644 ---- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c -@@ -919,7 +919,7 @@ void wlc_lcnphy_read_table(struct brcms_phy *pi, struct phytbl_info *pti) - - static void - wlc_lcnphy_common_read_table(struct brcms_phy *pi, u32 tbl_id, -- const u16 *tbl_ptr, u32 tbl_len, -+ u16 *tbl_ptr, u32 tbl_len, - u32 tbl_width, u32 tbl_offset) - { - struct phytbl_info tab; --- -cgit 1.2.3-korg - diff --git a/patches/stable/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch b/patches/stable/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch deleted file mode 100644 index 650ce96c..00000000 --- a/patches/stable/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch +++ /dev/null @@ -1,234 +0,0 @@ -From 8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 22 Jul 2025 12:11:18 -0700 -Subject: usb: atm: cxacru: Merge cxacru_upload_firmware() into - cxacru_heavy_init() - -After a recent change in clang to expose uninitialized warnings from -const variables [1], there is a warning in cxacru_heavy_init(): - - drivers/usb/atm/cxacru.c:1104:6: error: variable 'bp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1113:39: note: uninitialized use occurs here - 1113 | cxacru_upload_firmware(instance, fw, bp); - | ^~ - drivers/usb/atm/cxacru.c:1104:2: note: remove the 'if' if its condition is always true - 1104 | if (instance->modem_type->boot_rom_patch) { - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - drivers/usb/atm/cxacru.c:1095:32: note: initialize the variable 'bp' to silence this warning - 1095 | const struct firmware *fw, *bp; - | ^ - | = NULL - -While the warning is technically correct that bp is conditionally passed -uninitialized to cxacru_upload_firmware(), it is ultimately a false -positive warning on the uninitialized use of bp because the same -condition that initializes bp, instance->modem_type->boot_rom_patch, is -the same one that gates the use of bp within cxacru_upload_firmware(). -As this warning occurs in clang's frontend before inlining occurs, it -cannot know that these conditions are indentical to avoid the warning. - -Manually inline cxacru_upload_firmware() into cxacru_heavy_init(), as -that is its only callsite, so that clang can see that bp is initialized -and used under the same condition, clearing up the warning without any -functional changes to the code (LLVM was already doing this inlining -later). - -Cc: stable@vger.kernel.org -Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") -Closes: https://github.com/ClangBuiltLinux/linux/issues/2102 -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Link: https://lore.kernel.org/r/20250722-usb-cxacru-fix-clang-21-uninit-warning-v2-1-6708a18decd2@kernel.org -Signed-off-by: Greg Kroah-Hartman ---- -Link: https://git.kernel.org/linus/8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456 ---- - drivers/usb/atm/cxacru.c | 106 ++++++++++++++++++++++------------------------- - 1 file changed, 49 insertions(+), 57 deletions(-) - -diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c -index a12ab90b3db75b..68a8e9de8b4fe9 100644 ---- a/drivers/usb/atm/cxacru.c -+++ b/drivers/usb/atm/cxacru.c -@@ -980,25 +980,60 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw, - return ret; - } - --static void cxacru_upload_firmware(struct cxacru_data *instance, -- const struct firmware *fw, -- const struct firmware *bp) -+ -+static int cxacru_find_firmware(struct cxacru_data *instance, -+ char *phase, const struct firmware **fw_p) - { -- int ret; -+ struct usbatm_data *usbatm = instance->usbatm; -+ struct device *dev = &usbatm->usb_intf->dev; -+ char buf[16]; -+ -+ sprintf(buf, "cxacru-%s.bin", phase); -+ usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -+ -+ if (request_firmware(fw_p, buf, dev)) { -+ usb_dbg(usbatm, "no stage %s firmware found\n", phase); -+ return -ENOENT; -+ } -+ -+ usb_info(usbatm, "found firmware %s\n", buf); -+ -+ return 0; -+} -+ -+static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -+ struct usb_interface *usb_intf) -+{ -+ const struct firmware *fw, *bp; -+ struct cxacru_data *instance = usbatm_instance->driver_data; - struct usbatm_data *usbatm = instance->usbatm; - struct usb_device *usb_dev = usbatm->usb_dev; - __le16 signature[] = { usb_dev->descriptor.idVendor, - usb_dev->descriptor.idProduct }; - __le32 val; -+ int ret; - -- usb_dbg(usbatm, "%s\n", __func__); -+ ret = cxacru_find_firmware(instance, "fw", &fw); -+ if (ret) { -+ usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -+ return ret; -+ } -+ -+ if (instance->modem_type->boot_rom_patch) { -+ ret = cxacru_find_firmware(instance, "bp", &bp); -+ if (ret) { -+ usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -+ release_firmware(fw); -+ return ret; -+ } -+ } - - /* FirmwarePllFClkValue */ - val = cpu_to_le32(instance->modem_type->pll_f_clk); - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllFClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* FirmwarePllBClkValue */ -@@ -1006,7 +1041,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "FirmwarePllBClkValue failed: %d\n", ret); -- return; -+ goto done; - } - - /* Enable SDRAM */ -@@ -1014,7 +1049,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4); - if (ret) { - usb_err(usbatm, "Enable SDRAM failed: %d\n", ret); -- return; -+ goto done; - } - - /* Firmware */ -@@ -1022,7 +1057,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, FW_ADDR, fw->data, fw->size); - if (ret) { - usb_err(usbatm, "Firmware upload failed: %d\n", ret); -- return; -+ goto done; - } - - /* Boot ROM patch */ -@@ -1031,7 +1066,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_ADDR, bp->data, bp->size); - if (ret) { - usb_err(usbatm, "Boot ROM patching failed: %d\n", ret); -- return; -+ goto done; - } - } - -@@ -1039,7 +1074,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SIG_ADDR, (u8 *) signature, 4); - if (ret) { - usb_err(usbatm, "Signature storing failed: %d\n", ret); -- return; -+ goto done; - } - - usb_info(usbatm, "starting device\n"); -@@ -1051,7 +1086,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - } - if (ret) { - usb_err(usbatm, "Passing control to firmware failed: %d\n", ret); -- return; -+ goto done; - } - - /* Delay to allow firmware to start up. */ -@@ -1065,53 +1100,10 @@ static void cxacru_upload_firmware(struct cxacru_data *instance, - ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0); - if (ret < 0) { - usb_err(usbatm, "modem failed to initialize: %d\n", ret); -- return; -- } --} -- --static int cxacru_find_firmware(struct cxacru_data *instance, -- char *phase, const struct firmware **fw_p) --{ -- struct usbatm_data *usbatm = instance->usbatm; -- struct device *dev = &usbatm->usb_intf->dev; -- char buf[16]; -- -- sprintf(buf, "cxacru-%s.bin", phase); -- usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf); -- -- if (request_firmware(fw_p, buf, dev)) { -- usb_dbg(usbatm, "no stage %s firmware found\n", phase); -- return -ENOENT; -- } -- -- usb_info(usbatm, "found firmware %s\n", buf); -- -- return 0; --} -- --static int cxacru_heavy_init(struct usbatm_data *usbatm_instance, -- struct usb_interface *usb_intf) --{ -- const struct firmware *fw, *bp; -- struct cxacru_data *instance = usbatm_instance->driver_data; -- int ret = cxacru_find_firmware(instance, "fw", &fw); -- -- if (ret) { -- usb_warn(usbatm_instance, "firmware (cxacru-fw.bin) unavailable (system misconfigured?)\n"); -- return ret; -+ goto done; - } - -- if (instance->modem_type->boot_rom_patch) { -- ret = cxacru_find_firmware(instance, "bp", &bp); -- if (ret) { -- usb_warn(usbatm_instance, "boot ROM patch (cxacru-bp.bin) unavailable (system misconfigured?)\n"); -- release_firmware(fw); -- return ret; -- } -- } -- -- cxacru_upload_firmware(instance, fw, bp); -- -+done: - if (instance->modem_type->boot_rom_patch) - release_firmware(bp); - release_firmware(fw); --- -cgit 1.2.3-korg - diff --git a/patches/stable/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch b/patches/stable/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch deleted file mode 100644 index 97c90810..00000000 --- a/patches/stable/c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch +++ /dev/null @@ -1,52 +0,0 @@ -From c90f2e1172c51fa25492471dc9910e2d7c1444b9 Mon Sep 17 00:00:00 2001 -From: Nathan Chancellor -Date: Tue, 15 Jul 2025 16:50:22 -0700 -Subject: drm/amdgpu: Initialize data to NULL in imu_v12_0_program_rlc_ram() - -After a recent change in clang to expose uninitialized warnings from -const variables and pointers [1], there is a warning in -imu_v12_0_program_rlc_ram() because data is passed uninitialized to -program_imu_rlc_ram(): - - drivers/gpu/drm/amd/amdgpu/imu_v12_0.c:374:30: error: variable 'data' is uninitialized when used here [-Werror,-Wuninitialized] - 374 | program_imu_rlc_ram(adev, data, (const u32)size); - | ^~~~ - -As this warning happens early in clang's frontend, it does not realize -that due to the assignment of r to -EINVAL, program_imu_rlc_ram() is -never actually called, and even if it were, data would not be -dereferenced because size is 0. - -Just initialize data to NULL to silence the warning, as the commit that -added program_imu_rlc_ram() mentioned it would eventually be used over -the old method, at which point data can be properly initialized and -used. - -Cc: stable@vger.kernel.org -Closes: https://github.com/ClangBuiltLinux/linux/issues/2107 -Fixes: 56159fffaab5 ("drm/amdgpu: use new method to program rlc ram") -Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1] -Signed-off-by: Nathan Chancellor -Signed-off-by: Alex Deucher ---- -Link: https://git.kernel.org/linus/c90f2e1172c51fa25492471dc9910e2d7c1444b9 ---- - drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -index df898dbb746e3f..8cb6b1854d2453 100644 ---- a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -+++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c -@@ -362,7 +362,7 @@ static void program_imu_rlc_ram(struct amdgpu_device *adev, - static void imu_v12_0_program_rlc_ram(struct amdgpu_device *adev) - { - u32 reg_data, size = 0; -- const u32 *data; -+ const u32 *data = NULL; - int r = -EINVAL; - - WREG32_SOC15(GC, 0, regGFX_IMU_RLC_RAM_INDEX, 0x2); --- -cgit 1.2.3-korg - diff --git a/patches/stable/series b/patches/stable/series index d58fe247..bba095fc 100644 --- a/patches/stable/series +++ b/patches/stable/series @@ -1,6 +1,3 @@ -8d1b02e5d7e3a6d2acffb1f4c094678fda9e3456.patch -81284e86bf8849f8e98e8ead3ff5811926b2107f.patch 20250715_nathan_drm_msm_dpu_initialize_crtc_state_to_null_in_dpu_plane_virtual_atomic_check.patch 20250715_nathan_media_s5p_mfc_always_pass_null_to_s5p_mfc_cmd_host2risc_v6.patch 20250715_nathan_wifi_mt76_mt7996_initialize_hdr_before_passing_to_skb_put_data.patch -c90f2e1172c51fa25492471dc9910e2d7c1444b9.patch diff --git a/tuxsuite/5.4-clang-13.tux.yml b/tuxsuite/5.4-clang-13.tux.yml index 8d135d0a..bb49d07e 100644 --- a/tuxsuite/5.4-clang-13.tux.yml +++ b/tuxsuite/5.4-clang-13.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-13.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-13.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-13.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-14.tux.yml b/tuxsuite/5.4-clang-14.tux.yml index 788604c6..b29c8db3 100644 --- a/tuxsuite/5.4-clang-14.tux.yml +++ b/tuxsuite/5.4-clang-14.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-14.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-14.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-14.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-15.tux.yml b/tuxsuite/5.4-clang-15.tux.yml index 32d01350..4859b4c8 100644 --- a/tuxsuite/5.4-clang-15.tux.yml +++ b/tuxsuite/5.4-clang-15.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-15.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-15.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-15.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-16.tux.yml b/tuxsuite/5.4-clang-16.tux.yml index 2c5b95ec..42c3b572 100644 --- a/tuxsuite/5.4-clang-16.tux.yml +++ b/tuxsuite/5.4-clang-16.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-16.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-16.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-16.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-17.tux.yml b/tuxsuite/5.4-clang-17.tux.yml index 5dedfd74..7c8d0238 100644 --- a/tuxsuite/5.4-clang-17.tux.yml +++ b/tuxsuite/5.4-clang-17.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-17.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-17.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-17.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-18.tux.yml b/tuxsuite/5.4-clang-18.tux.yml index ac8b1e01..48261b7a 100644 --- a/tuxsuite/5.4-clang-18.tux.yml +++ b/tuxsuite/5.4-clang-18.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-18.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-18.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-18.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-19.tux.yml b/tuxsuite/5.4-clang-19.tux.yml index 0b2b185e..2928746b 100644 --- a/tuxsuite/5.4-clang-19.tux.yml +++ b/tuxsuite/5.4-clang-19.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-19.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-19.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-19.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-20.tux.yml b/tuxsuite/5.4-clang-20.tux.yml index cee2ac9a..c06b4b5f 100644 --- a/tuxsuite/5.4-clang-20.tux.yml +++ b/tuxsuite/5.4-clang-20.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-20.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-20.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-20.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-21.tux.yml b/tuxsuite/5.4-clang-21.tux.yml index 3db8d8fc..c9c35a78 100644 --- a/tuxsuite/5.4-clang-21.tux.yml +++ b/tuxsuite/5.4-clang-21.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-21.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-21.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-21.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y diff --git a/tuxsuite/5.4-clang-22.tux.yml b/tuxsuite/5.4-clang-22.tux.yml index d0364532..237f5c9b 100644 --- a/tuxsuite/5.4-clang-22.tux.yml +++ b/tuxsuite/5.4-clang-22.tux.yml @@ -2,10 +2,9 @@ # This file has been autogenerated by invoking: # $ ./generate_tuxsuite.py 5.4 # Invoke tuxsuite via: -# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json --patch-series patches/5.4 tuxsuite/5.4-clang-22.tux.yml +# $ tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-22.tux.yml # Invoke locally via: # $ git clone -b linux-5.4.y --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux -# $ git -C linux quiltimport --patches ../patches/5.4 # $ scripts/build-local.py -C linux -f tuxsuite/5.4-clang-22.tux.yml -j defconfigs version: 1 name: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git at linux-5.4.y