[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211119113644.1600-18-alx.manpages@gmail.com>
Date: Fri, 19 Nov 2021 12:36:45 +0100
From: Alejandro Colomar <alx.manpages@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Alejandro Colomar <alx.manpages@...il.com>
Subject: [PATCH 17/17] include/: Include <linux/array_size.h> for ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@...il.com>
---
include/crypto/internal/blake2b.h | 1 +
include/crypto/internal/blake2s.h | 1 +
include/crypto/internal/chacha.h | 1 +
include/drm/drm_mipi_dbi.h | 1 +
include/drm/drm_mode_object.h | 1 +
include/kunit/test.h | 1 +
include/net/bond_3ad.h | 1 +
include/net/dsa.h | 1 +
include/net/ip_vs.h | 1 +
include/net/netfilter/nf_conntrack_tuple.h | 1 +
include/net/netfilter/nf_tables.h | 1 +
include/net/netlink.h | 1 +
include/rdma/uverbs_ioctl.h | 1 +
include/rdma/uverbs_named_ioctl.h | 1 +
include/scsi/scsi_host.h | 1 +
include/sound/soc-dapm.h | 1 +
include/sound/soc.h | 1 +
include/trace/events/wbt.h | 1 +
include/uapi/linux/netfilter/xt_sctp.h | 1 +
include/xen/hvm.h | 1 +
20 files changed, 20 insertions(+)
diff --git a/include/crypto/internal/blake2b.h b/include/crypto/internal/blake2b.h
index 982fe5e8471c..870561f85a51 100644
--- a/include/crypto/internal/blake2b.h
+++ b/include/crypto/internal/blake2b.h
@@ -9,6 +9,7 @@
#include <crypto/blake2b.h>
#include <crypto/internal/hash.h>
+#include <linux/array_size.h>
#include <linux/string.h>
void blake2b_compress_generic(struct blake2b_state *state,
diff --git a/include/crypto/internal/blake2s.h b/include/crypto/internal/blake2s.h
index 8e50d487500f..6d7649759bc9 100644
--- a/include/crypto/internal/blake2s.h
+++ b/include/crypto/internal/blake2s.h
@@ -9,6 +9,7 @@
#include <crypto/blake2s.h>
#include <crypto/internal/hash.h>
+#include <linux/array_size.h>
#include <linux/string.h>
void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
diff --git a/include/crypto/internal/chacha.h b/include/crypto/internal/chacha.h
index b085dc1ac151..0d27df9ecbfa 100644
--- a/include/crypto/internal/chacha.h
+++ b/include/crypto/internal/chacha.h
@@ -5,6 +5,7 @@
#include <crypto/chacha.h>
#include <crypto/internal/skcipher.h>
+#include <linux/array_size.h>
#include <linux/crypto.h>
struct chacha_ctx {
diff --git a/include/drm/drm_mipi_dbi.h b/include/drm/drm_mipi_dbi.h
index 05e194958265..9ca24caa3f91 100644
--- a/include/drm/drm_mipi_dbi.h
+++ b/include/drm/drm_mipi_dbi.h
@@ -8,6 +8,7 @@
#ifndef __LINUX_MIPI_DBI_H
#define __LINUX_MIPI_DBI_H
+#include <linux/array_size.h>
#include <linux/mutex.h>
#include <drm/drm_device.h>
#include <drm/drm_simple_kms_helper.h>
diff --git a/include/drm/drm_mode_object.h b/include/drm/drm_mode_object.h
index c34a3e8030e1..83c1f4eef982 100644
--- a/include/drm/drm_mode_object.h
+++ b/include/drm/drm_mode_object.h
@@ -23,6 +23,7 @@
#ifndef __DRM_MODESET_H__
#define __DRM_MODESET_H__
+#include <linux/array_size.h>
#include <linux/kref.h>
#include <drm/drm_lease.h>
struct drm_object_properties;
diff --git a/include/kunit/test.h b/include/kunit/test.h
index b26400731c02..6d316249be95 100644
--- a/include/kunit/test.h
+++ b/include/kunit/test.h
@@ -12,6 +12,7 @@
#include <kunit/assert.h>
#include <kunit/try-catch.h>
+#include <linux/array_size.h>
#include <linux/container_of.h>
#include <linux/err.h>
#include <linux/init.h>
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h
index 38785d48baff..a1fceafcb630 100644
--- a/include/net/bond_3ad.h
+++ b/include/net/bond_3ad.h
@@ -7,6 +7,7 @@
#define _NET_BOND_3AD_H
#include <asm/byteorder.h>
+#include <linux/array_size.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/if_ether.h>
diff --git a/include/net/dsa.h b/include/net/dsa.h
index eff5c44ba377..3d6effe14cca 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -7,6 +7,7 @@
#ifndef __LINUX_NET_DSA_H
#define __LINUX_NET_DSA_H
+#include <linux/array_size.h>
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/list.h>
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index ff1804a0c469..0abb6706145c 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -10,6 +10,7 @@
#include <asm/types.h> /* for __uXX types */
+#include <linux/array_size.h>
#include <linux/list.h> /* for struct list_head */
#include <linux/spinlock.h> /* for struct rwlock_t */
#include <linux/atomic.h> /* for struct atomic_t */
diff --git a/include/net/netfilter/nf_conntrack_tuple.h b/include/net/netfilter/nf_conntrack_tuple.h
index 9334371c94e2..473ba3943b59 100644
--- a/include/net/netfilter/nf_conntrack_tuple.h
+++ b/include/net/netfilter/nf_conntrack_tuple.h
@@ -11,6 +11,7 @@
#ifndef _NF_CONNTRACK_TUPLE_H
#define _NF_CONNTRACK_TUPLE_H
+#include <linux/array_size.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/nf_conntrack_tuple_common.h>
#include <linux/list_nulls.h>
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index a0d9e0b47ab8..324f23b7a2c4 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -3,6 +3,7 @@
#define _NET_NF_TABLES_H
#include <asm/unaligned.h>
+#include <linux/array_size.h>
#include <linux/list.h>
#include <linux/netfilter.h>
#include <linux/netfilter/nfnetlink.h>
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 7a2a9d3144ba..bc5cdb6d2f99 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -2,6 +2,7 @@
#ifndef __NET_NETLINK_H
#define __NET_NETLINK_H
+#include <linux/array_size.h>
#include <linux/types.h>
#include <linux/netlink.h>
#include <linux/jiffies.h>
diff --git a/include/rdma/uverbs_ioctl.h b/include/rdma/uverbs_ioctl.h
index 23bb404aba12..8d08414ca386 100644
--- a/include/rdma/uverbs_ioctl.h
+++ b/include/rdma/uverbs_ioctl.h
@@ -6,6 +6,7 @@
#ifndef _UVERBS_IOCTL_
#define _UVERBS_IOCTL_
+#include <linux/array_size.h>
#include <rdma/uverbs_types.h>
#include <linux/uaccess.h>
#include <rdma/rdma_user_ioctl.h>
diff --git a/include/rdma/uverbs_named_ioctl.h b/include/rdma/uverbs_named_ioctl.h
index ee7873f872c3..1882ce8cb0c2 100644
--- a/include/rdma/uverbs_named_ioctl.h
+++ b/include/rdma/uverbs_named_ioctl.h
@@ -6,6 +6,7 @@
#ifndef _UVERBS_NAMED_IOCTL_
#define _UVERBS_NAMED_IOCTL_
+#include <linux/array_size.h>
#include <rdma/uverbs_ioctl.h>
#ifndef UVERBS_MODULE_NAME
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index ebe059badba0..34c453591953 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -2,6 +2,7 @@
#ifndef _SCSI_SCSI_HOST_H
#define _SCSI_SCSI_HOST_H
+#include <linux/array_size.h>
#include <linux/device.h>
#include <linux/list.h>
#include <linux/types.h>
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c3039e97929a..6585e53a6f9b 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -10,6 +10,7 @@
#ifndef __LINUX_SND_SOC_DAPM_H
#define __LINUX_SND_SOC_DAPM_H
+#include <linux/array_size.h>
#include <linux/types.h>
#include <sound/control.h>
#include <sound/soc-topology.h>
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 8e6dd8a257c5..4de5c7dbdcd2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -10,6 +10,7 @@
#ifndef __LINUX_SND_SOC_H
#define __LINUX_SND_SOC_H
+#include <linux/array_size.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/types.h>
diff --git a/include/trace/events/wbt.h b/include/trace/events/wbt.h
index 9c66e59d859c..7a8a83d061ed 100644
--- a/include/trace/events/wbt.h
+++ b/include/trace/events/wbt.h
@@ -5,6 +5,7 @@
#if !defined(_TRACE_WBT_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_WBT_H
+#include <linux/array_size.h>
#include <linux/tracepoint.h>
#include "../../../block/blk-wbt.h"
diff --git a/include/uapi/linux/netfilter/xt_sctp.h b/include/uapi/linux/netfilter/xt_sctp.h
index b4d804a9fccb..748fedc04228 100644
--- a/include/uapi/linux/netfilter/xt_sctp.h
+++ b/include/uapi/linux/netfilter/xt_sctp.h
@@ -2,6 +2,7 @@
#ifndef _XT_SCTP_H_
#define _XT_SCTP_H_
+#include <linux/array_size.h>
#include <linux/types.h>
#define XT_SCTP_SRC_PORTS 0x01
diff --git a/include/xen/hvm.h b/include/xen/hvm.h
index b7fd7fc9ad41..adac232da84d 100644
--- a/include/xen/hvm.h
+++ b/include/xen/hvm.h
@@ -3,6 +3,7 @@
#ifndef XEN_HVM_H__
#define XEN_HVM_H__
+#include <linux/array_size.h>
#include <xen/interface/hvm/params.h>
#include <asm/xen/hypercall.h>
--
2.33.1
Powered by blists - more mailing lists