All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fsverity: explicitly include <linux/export.h>
@ 2025-06-14 22:17 Eric Biggers
  2025-06-17  3:24 ` Eric Biggers
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2025-06-14 22:17 UTC (permalink / raw)
  To: fsverity

From: Eric Biggers <ebiggers@google.com>

Fix build warnings with W=1 that started appearing after
commit a934a57a42f6 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1").

Signed-off-by: Eric Biggers <ebiggers@google.com>
---

This patch applies to v6.16-rc1 and is targeting fsverity/for-next

 fs/verity/enable.c        | 1 +
 fs/verity/measure.c       | 1 +
 fs/verity/open.c          | 1 +
 fs/verity/read_metadata.c | 1 +
 fs/verity/verify.c        | 1 +
 5 files changed, 5 insertions(+)

diff --git a/fs/verity/enable.c b/fs/verity/enable.c
index c284f46d1b535..9b335bee88a5a 100644
--- a/fs/verity/enable.c
+++ b/fs/verity/enable.c
@@ -6,10 +6,11 @@
  */
 
 #include "fsverity_private.h"
 
 #include <crypto/hash.h>
+#include <linux/export.h>
 #include <linux/mount.h>
 #include <linux/sched/signal.h>
 #include <linux/uaccess.h>
 
 struct block_buffer {
diff --git a/fs/verity/measure.c b/fs/verity/measure.c
index 175d2f1bc0893..388734132f018 100644
--- a/fs/verity/measure.c
+++ b/fs/verity/measure.c
@@ -7,10 +7,11 @@
 
 #include "fsverity_private.h"
 
 #include <linux/bpf.h>
 #include <linux/btf.h>
+#include <linux/export.h>
 #include <linux/uaccess.h>
 
 /**
  * fsverity_ioctl_measure() - get a verity file's digest
  * @filp: file to get digest of
diff --git a/fs/verity/open.c b/fs/verity/open.c
index fdeb95eca3af3..ac2c99fbf37b9 100644
--- a/fs/verity/open.c
+++ b/fs/verity/open.c
@@ -5,10 +5,11 @@
  * Copyright 2019 Google LLC
  */
 
 #include "fsverity_private.h"
 
+#include <linux/export.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
 
 static struct kmem_cache *fsverity_info_cachep;
 
diff --git a/fs/verity/read_metadata.c b/fs/verity/read_metadata.c
index f58432772d9ea..cba5d6af4e04f 100644
--- a/fs/verity/read_metadata.c
+++ b/fs/verity/read_metadata.c
@@ -6,10 +6,11 @@
  */
 
 #include "fsverity_private.h"
 
 #include <linux/backing-dev.h>
+#include <linux/export.h>
 #include <linux/highmem.h>
 #include <linux/sched/signal.h>
 #include <linux/uaccess.h>
 
 static int fsverity_read_merkle_tree(struct inode *inode,
diff --git a/fs/verity/verify.c b/fs/verity/verify.c
index 4fcad0825a120..14520289093ca 100644
--- a/fs/verity/verify.c
+++ b/fs/verity/verify.c
@@ -7,10 +7,11 @@
 
 #include "fsverity_private.h"
 
 #include <crypto/hash.h>
 #include <linux/bio.h>
+#include <linux/export.h>
 
 static struct workqueue_struct *fsverity_read_workqueue;
 
 /*
  * Returns true if the hash block with index @hblock_idx in the tree, located in

base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-17  3:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-14 22:17 [PATCH] fsverity: explicitly include <linux/export.h> Eric Biggers
2025-06-17  3:24 ` Eric Biggers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.