Loading...
Searching...
No Matches
Go to the documentation of this file.
8#ifndef __SOF_COMPILER_ATTRIBUTES_H__
9#define __SOF_COMPILER_ATTRIBUTES_H__
15#define __packed __attribute__((packed))
19#define __unused __attribute__((unused))
23#define __maybe_unused __attribute__((unused))
27#define __aligned(x) __attribute__((__aligned__(x)))
31#define __section(x) __attribute__((section(x)))
41#if ((defined(__GNUC__) && (__GNUC__ >= 7)) || \
42 (defined(__clang__) && (__clang_major__ >= 10))) && !defined(__CHECKER__)
43#define COMPILER_FALLTHROUGH __attribute__((fallthrough))
45#define COMPILER_FALLTHROUGH