summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-05-19 19:23:41 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-05-20 18:59:26 -0400
commitbe35429fa2ae5dd6cc17664e2dd3c23b4c691028 (patch)
treeab591e151950fe357926d4f20c8e9fcf47ae712d /include/linux/compiler.h
parente28050092ff1ca2f4e42b256e1d788b24ce67670 (diff)
Update bcachefs sources to f565983af369 bcachefs: Read retries are after checksum errors now REQ_FUA
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 228cd373..2b75931a 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -190,4 +190,8 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
#define TYPEOF_UNQUAL(exp) __typeof__(exp)
+#define typeof_member(T, m) typeof(((T*)0)->m)
+
+#define __cleanup(func) __maybe_unused __attribute__((__cleanup__(func)))
+
#endif /* _TOOLS_LINUX_COMPILER_H */