]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ipa: reg: include <linux/bug.h>
authorAlex Elder <elder@linaro.org>
Thu, 16 Mar 2023 14:51:33 +0000 (09:51 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Mar 2023 04:33:18 +0000 (21:33 -0700)
commitdd172d0c2cea3c14ca9d007eeab51bec7676ece7
tree05733976b67209f39dea3af91cc6f8324d788f34
parent769639c1fe8a98129aa97c8ee981639db1e8955c
net: ipa: reg: include <linux/bug.h>

When "reg.h" got created, it included calls to WARN() and WARN_ON().
Those macros are defined via <linux/bug.h>.  In addition, it uses
is_power_of_2(), which is defined in <linux/log2.h>.  Include those
files so IPA "reg.h" has access to all definitions it requires.

Meanwhile, <linux/bits.h> is included but nothing defined therein
is required directly in "reg.h", so get rid of that.

Fixes: 81772e444dbe ("net: ipa: start generalizing "ipa_reg"")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/reg.h