summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2025-06-04 12:38:27 -0700
committerKent Overstreet <kent.overstreet@linux.dev>2025-06-04 16:45:38 -0400
commit01d925f7e18360f740e7b75bfad9b6e55fd4dc53 (patch)
treeebeae401155570dda29209b72911754e08c73cc6 /scripts/lib/kdoc/kdoc_output.py
parentc72def523799a0b054fd7cbbed32509e365db55b (diff)
bcachefs: Fix -Wc23-extensions in bch2_check_dirents()
Clang warns (or errors with CONFIG_WERROR=y): fs/bcachefs/fsck.c:2325:2: error: label followed by a declaration is a C23 extension [-Werror,-Wc23-extensions] 2325 | int ret = bch2_trans_run(c, | ^ On clang-17 and older, this is an unconditional error: fs/bcachefs/fsck.c:2325:2: error: expected expression 2325 | int ret = bch2_trans_run(c, | ^ Move the declaration of ret to the top of the function to resolve both ways this issue manifests. Fixes: c72def523799 ("bcachefs: Run check_dirents second time if required") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions