[v1,3/8] include linux/wordpart.h in various sources that need it
Commit Message
After commit edf2f6fb51bc ("kernel.h: Move upper_*_bits() and
lower_*_bits() to wordpart.h"), the lower/upper_*_bits functions can
be found in that header, and all sources that use those functions
should include the header that provides it.
This is just the beginning, many more sources are still missing, but a
large patch adding the "#include" everywhere (700+ sources) would be
hard to review.
(Found with "git grep -E '\b(upper|lower)_(16|32)_bits\('")
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
arch/arm64/include/asm/syscall.h | 1 +
arch/arm64/kvm/handle_exit.c | 1 +
drivers/bus/uniphier-system-bus.c | 1 +
drivers/irqchip/irq-gic-v3-its.c | 1 +
drivers/spi/spi-pci1xxxx.c | 1 +
fs/ext4/super.c | 1 +
fs/hfs/hfs_fs.h | 1 +
fs/hfsplus/hfsplus_fs.h | 1 +
fs/notify/fanotify/fanotify_user.c | 1 +
fs/open.c | 1 +
fs/ufs/util.h | 1 +
include/linux/dma-fence.h | 1 +
include/linux/qed/common_hsi.h | 1 +
include/rdma/uverbs_ioctl.h | 2 +-
include/soc/fsl/bman.h | 2 ++
include/soc/fsl/qman.h | 1 +
16 files changed, 17 insertions(+), 1 deletion(-)
@@ -8,6 +8,7 @@
#include <uapi/linux/audit.h>
#include <linux/compat.h>
#include <linux/err.h>
+#include <linux/wordpart.h> // for lower_32_bits()
typedef long (*syscall_fn_t)(const struct pt_regs *regs);
@@ -10,6 +10,7 @@
#include <linux/kvm.h>
#include <linux/kvm_host.h>
+#include <linux/wordpart.h> // for lower_32_bits(), upper_32_bits()
#include <asm/esr.h>
#include <asm/exception.h>
@@ -10,6 +10,7 @@
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
+#include <linux/wordpart.h> // for upper_32_bits()
/* System Bus Controller registers */
#define UNIPHIER_SBC_BASE 0x100 /* base address of bank0 space */
@@ -29,6 +29,7 @@
#include <linux/percpu.h>
#include <linux/slab.h>
#include <linux/syscore_ops.h>
+#include <linux/wordpart.h> // for lower_32_bits(), upper_32_bits()
#include <linux/irqchip.h>
#include <linux/irqchip/arm-gic-v3.h>
@@ -9,6 +9,7 @@
#include <linux/dma-mapping.h>
#include <linux/iopoll.h>
#include <linux/irq.h>
+#include <linux/kernel.h> // for upper_32_bits(), lower_32_bits()
#include <linux/module.h>
#include <linux/msi.h>
#include <linux/pci_regs.h>
@@ -48,6 +48,7 @@
#include <linux/fsnotify.h>
#include <linux/fs_context.h>
#include <linux/fs_parser.h>
+#include <linux/wordpart.h> // for lower_32_bits(), upper_32_bits()
#include "ext4.h"
#include "ext4_extents.h" /* Needed for trace points definition */
@@ -20,6 +20,7 @@
#include <linux/mutex.h>
#include <linux/buffer_head.h>
#include <linux/fs.h>
+#include <linux/wordpart.h> // for lower_32_bits()
#include <linux/workqueue.h>
#include <asm/byteorder.h>
@@ -21,6 +21,7 @@
#include <linux/mutex.h>
#include <linux/buffer_head.h>
#include <linux/blkdev.h>
+#include <linux/wordpart.h> // for lower_32_bits()
#include "hfsplus_raw.h"
#define DBG_BNODE_REFS 0x00000001
@@ -20,6 +20,7 @@
#include <linux/memcontrol.h>
#include <linux/statfs.h>
#include <linux/exportfs.h>
+#include <linux/wordpart.h> // for upper_32_bits()
#include <asm/ioctls.h>
@@ -34,6 +34,7 @@
#include <linux/compat.h>
#include <linux/mnt_idmapping.h>
#include <linux/filelock.h>
+#include <linux/wordpart.h> // for upper_32_bits()
#include "internal.h"
@@ -9,6 +9,7 @@
#include <linux/buffer_head.h>
#include <linux/fs.h>
+#include <linux/wordpart.h> // for lower_32_bits()
#include "swab.h"
/*
@@ -22,6 +22,7 @@
#include <linux/printk.h>
#include <linux/rcupdate.h>
#include <linux/timekeeping.h>
+#include <linux/wordpart.h> // for lower_32_bits()
struct dma_fence;
struct dma_fence_ops;
@@ -11,6 +11,7 @@
#include <asm/byteorder.h>
#include <linux/bitops.h>
#include <linux/slab.h>
+#include <linux/wordpart.h> // for lower_32_bits(), upper_32_bits()
/* dma_addr_t manip */
#define PTR_LO(x) ((u32)(((uintptr_t)(x)) & 0xffffffff))
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
-/*
+ /*
* Copyright (c) 2017, Mellanox Technologies inc. All rights reserved.
*/
@@ -31,6 +31,8 @@
#ifndef __FSL_BMAN_H
#define __FSL_BMAN_H
+#include <linux/wordpart.h> // for upper_32_bits()
+
/* wrapper for 48-bit buffers */
struct bm_buffer {
union {
@@ -33,6 +33,7 @@
#include <linux/bitops.h>
#include <linux/device.h>
+#include <linux/wordpart.h> // for upper_32_bits()
/* Hardware constants */
#define QM_CHANNEL_SWPORTAL0 0