Skip to content

Commit

Permalink
net: ipa: reg: include <linux/bug.h>
Browse files Browse the repository at this point in the history
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: 81772e4 ("net: ipa: start generalizing "ipa_reg"")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Alex Elder authored and Jakub Kicinski committed Mar 17, 2023
1 parent 769639c commit dd172d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ipa/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#define _REG_H_

#include <linux/types.h>
#include <linux/bits.h>
#include <linux/log2.h>
#include <linux/bug.h>

/**
* struct reg - A register descriptor
Expand Down

0 comments on commit dd172d0

Please sign in to comment.