Skip to contentSkip to conversation

fsverity: explicitly include <linux/export.h>

PATCH Applied Eric Biggers 1 participant 2 messages Jun 14, 2025 – Jun 17, 2025 fs-verity: read-only file-based authenticity protection

lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

PATCH 1/1 fsverity: explicitly include <linux/export.h>

From: Eric Biggers <[email protected]>

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

---

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(+)
fs/verity/enable.c +1 -0
index c284f46d1b535..9b335bee88a5a 100644
@@ -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 {
fs/verity/measure.c +1 -0
index 175d2f1bc0893..388734132f018 100644
@@ -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
fs/verity/open.c +1 -0
index fdeb95eca3af3..ac2c99fbf37b9 100644
@@ -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;
 
fs/verity/read_metadata.c +1 -0
index f58432772d9ea..cba5d6af4e04f 100644
@@ -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,
fs/verity/verify.c +1 -0
index 4fcad0825a120..14520289093ca 100644
@@ -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

Signature · 1 line
2.49.0
author maintainer Applied
#1 lore raw
Quoted 9 lines · Eric Biggers

From: Eric Biggers <[email protected]>

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

---

Quoted 8 lines

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(+)

Applied to https://git.kernel.org/pub/scm/fs/fsverity/linux.git/log/?h=for-next

- Eric