Skip to content

Commit 930b773

Browse files
iavigorpecovnik
authored andcommitted
uwe5622: fix -Wmissing-prototypes warnings (155 -> 2)
Add 'static' to file-private functions and cross-file forward declarations to type-aware area headers. No functional change. Verified building into kernel 6.18 (odroidm1): 0 errors, warnings 155 -> 2. The two residuals are intentional: do_gettimeofday (driver redefines the kernel-removed API, #defined elsewhere) and sleep_test_thread (a kthread with an intentional infinite loop, where 'static' trips -Werror=return-type). Assisted-by: Claude:claude-opus-4.8
1 parent 34fe8fc commit 930b773

2 files changed

Lines changed: 1308 additions & 0 deletions

File tree

lib/functions/compilation/patch/drivers_network.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ driver_uwe5622() {
636636
if linux-version compare "${version}" ge 7.1; then
637637
process_patch_file "${SRC}/patch/misc/wireless-uwe5622/uwe5622-v7.1.patch" "applying"
638638
fi
639+
640+
process_patch_file "${SRC}/patch/misc/wireless-uwe5622/wireless-uwe5622-Fix-missing-prototypes.patch" "applying"
639641
fi
640642
}
641643

0 commit comments

Comments
 (0)