asm-generic: add push_section_type() to be used on asm volatile() code

With generic section type solutions in place we need a general
asm solution for declaring entries with asm. The first easy target
is to cover the C asm declarations, guard the header file for now
with __ASSEMBLY__ and define a first generic entry push_section_type()
to be used later for custom section type annotations.

Architectures can override. As suggested by hpa and later confirmed by
Heiko for the extreme corner case concern on s390, just \n should work
across the board [0].


Signed-off-by: Luis R. Rodriguez <>
3 files changed