| From 105620feb85f6567fe05846a562110d9826c4370 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Sat, 26 Aug 2023 16:36:41 +0800 |
| Subject: KEYS: Include linux/errno.h in linux/verification.h |
| |
| From: Herbert Xu <herbert@gondor.apana.org.au> |
| |
| [ Upstream commit 0a596b0682a7ce37e26c36629816f105c6459d06 ] |
| |
| Add inclusion of linux/errno.h as otherwise the reference to EINVAL |
| may be invalid. |
| |
| Fixes: f3cf4134c5c6 ("bpf: Add bpf_lookup_*_key() and bpf_key_put() kfuncs") |
| Reported-by: kernel test robot <lkp@intel.com> |
| Closes: https://lore.kernel.org/oe-kbuild-all/202308261414.HKw1Mrip-lkp@intel.com/ |
| Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| include/linux/verification.h | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/include/linux/verification.h b/include/linux/verification.h |
| index f34e50ebcf60a..cb2d47f280910 100644 |
| --- a/include/linux/verification.h |
| +++ b/include/linux/verification.h |
| @@ -8,6 +8,7 @@ |
| #ifndef _LINUX_VERIFICATION_H |
| #define _LINUX_VERIFICATION_H |
| |
| +#include <linux/errno.h> |
| #include <linux/types.h> |
| |
| /* |
| -- |
| 2.42.0 |
| |