Skip to content

warning: objtool: ccs_set_selection(): unexpected end of section .text.ccs_set_selection #2129

@nathanchance

Description

@nathanchance
$ cat allno.config
CONFIG_COMMON_CLK=y
# CONFIG_LTO_NONE is not set
CONFIG_LTO_CLANG_THIN=y
CONFIG_I2C=y
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_MODULES=y
CONFIG_VIDEO_CAMERA_SENSOR=y
CONFIG_VIDEO_CCS=m
CONFIG_VIDEO_DEV=y

$ make -skj"$(nproc)" ARCH=x86_64 KCONFIG_ALLCONFIG=1 LLVM=1 clean allnoconfig drivers/media/i2c/ccs/ccs.o
drivers/media/i2c/ccs/ccs.o: warning: objtool: ccs_set_selection(): unexpected end of section .text.ccs_set_selection

This likely involves some sort of undefined behavior that is only apparent from inlining that LTO enables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [ARCH] x86_64This bug impacts ARCH=x86_64[BUG] linuxA bug that should be fixed in the mainline kernel.[PATCH] SubmittedA patch has been submitted for review[TOOL] objtoolwarning is produced by the kernel's objtool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions