summaryrefslogtreecommitdiff
path: root/include/linux/bitops.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2021-01-04 08:02:55 +0100
committerTom Rini <[email protected]>2021-03-01 09:54:11 -0500
commite86ad666d08599e2bb163260d63ab670cf82aa4a (patch)
tree31fd8313958a965f9d4a604369464e1694f136ac /include/linux/bitops.h
parent1afb9f22220d11ebe13cd07431f8e649a65ead6d (diff)
log: convert pr_*() to logging
In drivers we use a family of printing functions including pr_err() and pr_cont(). CONFIG_LOGLEVEL is used to control which of these lead to output via printf(). Our logging functions allow finer grained control of output. So replace printf() by the matching logging functions. The usage of CONFIG_LOGLEVEL remains unchanged. Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include/linux/bitops.h')
-rw-r--r--include/linux/bitops.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index 16f28993f5e..d2e5ca026e8 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -6,7 +6,6 @@
#include <asm/types.h>
#include <asm-generic/bitsperlong.h>
#include <linux/compiler.h>
-#include <linux/kernel.h>
#ifdef __KERNEL__
#define BIT(nr) (1UL << (nr))
@@ -19,6 +18,9 @@
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
#endif
+/* kernel.h includes log.h which include bitops.h */
+#include <linux/kernel.h>
+
/*
* Create a contiguous bitmask starting at bit position @l and ending at
* position @h. For example