mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembler code. Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/r/20250611140046.137739-2-thuth@redhat.com Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
20 lines
382 B
C
20 lines
382 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPIASM_SCHID_H
|
|
#define _UAPIASM_SCHID_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
struct subchannel_id {
|
|
__u32 cssid : 8;
|
|
__u32 : 4;
|
|
__u32 m : 1;
|
|
__u32 ssid : 2;
|
|
__u32 one : 1;
|
|
__u32 sch_no : 16;
|
|
} __attribute__ ((packed, aligned(4)));
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* _UAPIASM_SCHID_H */
|