Skip to content

objtool: radeon_bo_list_validate+0x268: __stack_chk_fail() missing __noreturn in .c/.h or NORETURN() in noreturns.h #2130

@nathanchance

Description

@nathanchance

With several x86_64 distribution configurations:

$ curl -LSso .config https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config

$ make -skj"$(nproc)" ARCH=x86_64 LLVM=1 olddefconfig drivers/gpu/drm/radeon/radeon.o
...
drivers/gpu/drm/radeon/radeon.o: warning: objtool: radeon_bo_list_validate+0x260: __stack_chk_fail() missing __noreturn in .c/.h or NORETURN() in noreturns.h

With a simpler configuration, there is a different warning in this function.

$ cat allno.config
CONFIG_DRM=y
CONFIG_DRM_RADEON=m
CONFIG_MODULES=y
CONFIG_PCI=y

$ make -skj"$(nproc)" ARCH=x86_64 LLVM=1 clean allnoconfig drivers/gpu/drm/radeon/radeon.o
drivers/gpu/drm/radeon/radeon_object.o: warning: objtool: radeon_bo_list_validate+0x21b: unreachable instruction

Metadata

Metadata

Assignees

No one assigned

    Labels

    Reported upstreamThis bug was filed on LLVM’s issue tracker, Phabricator, or the kernel mailing list.[ARCH] x86_64This bug impacts ARCH=x86_64[BUG] llvmA bug that should be fixed in upstream LLVM[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