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

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