]> Git Repo - linux.git/blobdiff - include/linux/compiler_attributes.h
KVM: x86: fix CPUID entries returned by KVM_GET_CPUID2 ioctl
[linux.git] / include / linux / compiler_attributes.h
index b2a3f4f641a70745d94e6b84acbc2261d8e7a03d..ea5e04e75845c8e24612221dd77d5db062e36e2f 100644 (file)
  */
 #define __used                          __attribute__((__used__))
 
+/*
+ *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute
+ * clang: https://clang.llvm.org/docs/AttributeReference.html#nodiscard-warn-unused-result
+ */
+#define __must_check                    __attribute__((__warn_unused_result__))
+
 /*
  *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-weak-function-attribute
  *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-weak-variable-attribute
This page took 0.034436 seconds and 4 git commands to generate.