android_kernel_motorola_sm6375/scripts/mod
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mauricio Faria de Oliveira 10a301c83a modpost: add missing else to the "of" check
[ Upstream commit cbc3d00cf88fda95dbcafee3b38655b7a8f2650a ]

Without this 'else' statement, an "usb" name goes into two handlers:
the first/previous 'if' statement _AND_ the for-loop over 'devtable',
but the latter is useless as it has no 'usb' device_id entry anyway.

Tested with allmodconfig before/after patch; no changes to *.mod.c:

    git checkout v6.6-rc3
    make -j$(nproc) allmodconfig
    make -j$(nproc) olddefconfig

    make -j$(nproc)
    find . -name '*.mod.c' | cpio -pd /tmp/before

    # apply patch

    make -j$(nproc)
    find . -name '*.mod.c' | cpio -pd /tmp/after

    diff -r /tmp/before/ /tmp/after/
    # no difference

Fixes: acbef7b766 ("modpost: fix module autoloading for OF devices with generic compatible property")
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 21:46:44 +02:00
..
.gitignore
devicetable-offsets.c
empty.c
file2alias.c modpost: add missing else to the "of" check 2023-10-10 21:46:44 +02:00
Makefile
mk_elfconfig.c
modpost.c modpost: fix off by one in is_executable_section() 2023-07-27 08:37:18 +02:00
modpost.h
sumversion.c