Skip to content

Commit dd172d0

Browse files
Alex Elderkuba-moo
authored andcommitted
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: 81772e4 ("net: ipa: start generalizing "ipa_reg"") Signed-off-by: Alex Elder <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 769639c commit dd172d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ipa/reg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#define _REG_H_
77

88
#include <linux/types.h>
9-
#include <linux/bits.h>
9+
#include <linux/log2.h>
10+
#include <linux/bug.h>
1011

1112
/**
1213
* struct reg - A register descriptor

0 commit comments

Comments
 (0)