Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

livepatch/klp-build: fix shellcheck complaints

Fix or suppress the following shellcheck warnings:

In klp-build line 57:
command grep "$@" || true
^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

Fix the following warning:

In klp-build line 565:
local file_dir="$(dirname "$file")"
^------^ SC2034 (warning): file_dir appears unused. Verify use (or export if used externally).

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-8-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

authored by

Joe Lawrence and committed by
Josh Poimboeuf
b4a53519 0573bcc4

+1 -1
+1 -1
scripts/livepatch/klp-build
··· 53 53 KLP_DIFF_LOG="$DIFF_DIR/diff.log" 54 54 55 55 grep0() { 56 + # shellcheck disable=SC2317 56 57 command grep "$@" || true 57 58 } 58 59 ··· 551 550 for _file in "${files[@]}"; do 552 551 local rel_file="${_file/.ko/.o}" 553 552 local file="$OBJ/$rel_file" 554 - local file_dir="$(dirname "$file")" 555 553 local orig_file="$ORIG_DIR/$rel_file" 556 554 local orig_dir="$(dirname "$orig_file")" 557 555