Skip to content

description of BUILD_BUG_ON in linux-initialization-1.md #675

Open
@PinoTsao

Description

@PinoTsao

Probably need rework. The current description bases on its definition in the arch/x86/boot/boot.h, while is not belonged to vmlinux, it is belonged to ZO image, which is produced under arch/x86/boot.

The real definition locates include/linux/build_bug.h

#define BUILD_BUG_ON(condition) \
	BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)

extend it along, will see it is a usage of GCC attribute

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions