git: bf27839aa90a - main - linuxkpi: Add add_taint stub

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 18 Aug 2022 09:10:13 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=bf27839aa90a4a90ef4b3e59f2a362d36f1e7051

commit bf27839aa90a4a90ef4b3e59f2a362d36f1e7051
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-09 13:55:19 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-18 07:47:00 +0000

    linuxkpi: Add add_taint stub
    
    Needed by drm-kmod.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D36112
---
 sys/compat/linuxkpi/common/include/linux/kernel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index 2450c18a5690..2c40b2f33c41 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -682,6 +682,8 @@ linux_ratelimited(linux_ratelimit_t *rl)
 
 #define	TAINT_WARN	0
 #define	test_taint(x)	(0)
+#define	add_taint(x,y)	do {	\
+	} while (0)
 
 static inline int
 _h2b(const char c)