fsverity: explicitly include <linux/export.h>
Eric Biggers
maintainerPATCH 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").
Signed-off-by Eric Biggers <[email protected]>
---
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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").Signed-off-by Eric Biggers <[email protected]>---
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