Blame SOURCES/0025-mok-minor-cleanups.patch

00e791
From ff890cf45224926574eee93b0ea1494468870bd3 Mon Sep 17 00:00:00 2001
00e791
From: Peter Jones <pjones@redhat.com>
00e791
Date: Thu, 31 Jan 2019 14:04:57 -0500
00e791
Subject: [PATCH 25/62] mok: minor cleanups
00e791
00e791
Signed-off-by: Peter Jones <pjones@redhat.com>
00e791
Upstream-commit-id: 617b9007668
00e791
---
00e791
 mok.c | 7 +++++--
00e791
 1 file changed, 5 insertions(+), 2 deletions(-)
00e791
00e791
diff --git a/mok.c b/mok.c
00e791
index 6150d8c8868..59630e74425 100644
00e791
--- a/mok.c
00e791
+++ b/mok.c
00e791
@@ -138,13 +138,16 @@ struct mok_state_variable mok_state_variables[] = {
00e791
 	{ NULL, }
00e791
 };
00e791
 
00e791
-inline BOOLEAN check_vendor_cert(struct mok_state_variable *v)
00e791
+static inline BOOLEAN nonnull(1)
00e791
+check_vendor_cert(struct mok_state_variable *v)
00e791
 {
00e791
 	return (v->addend_source && v->addend_size &&
00e791
 		*v->addend_source && *v->addend_size) ? TRUE : FALSE;
00e791
 }
00e791
+
00e791
 #if defined(ENABLE_SHIM_CERT)
00e791
-inline BOOLEAN check_build_cert(struct mok_state_variable *v)
00e791
+static inline BOOLEAN nonnull(1)
00e791
+check_build_cert(struct mok_state_variable *v)
00e791
 {
00e791
 	return (v->build_cert && v->build_cert_size &&
00e791
 		*v->build_cert && *v->build_cert_size) ? TRUE : FALSE;
00e791
-- 
00e791
2.26.2
00e791