From 397008dfd9e390e165d916655d2fb862fcb0833c Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 19 Jan 2022 00:34:31 +0000 Subject: [PATCH] __always_inline needs the inline keyword as well as the attribute --- sys/dev/pci/drm/include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/linux/compiler.h b/sys/dev/pci/drm/include/linux/compiler.h index fab3cd811d5..89be6a71e7f 100644 --- a/sys/dev/pci/drm/include/linux/compiler.h +++ b/sys/dev/pci/drm/include/linux/compiler.h @@ -20,7 +20,7 @@ #define __deprecated #define __always_unused __attribute__((__unused__)) #define __maybe_unused __attribute__((__unused__)) -#define __always_inline __attribute__((__always_inline__)) +#define __always_inline inline __attribute__((__always_inline__)) #define noinline __attribute__((__noinline__)) #define fallthrough do {} while (0) -- 2.20.1