Skip to contentSkip to conversation

units: Add missing header

PATCH Applied Andy Shevchenko 3 participants 4 messages Nov 28, 2023 – Nov 29, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 units: Add missing header

BITS_PER_BYTE is defined in bits.h.

Fixes e8eed5f7366f ("units: Add BYTES_PER_*BIT")
---
 include/linux/units.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/units.h +1 -0
index ff1bd6b5f5b3..45110daaf8d3 100644
@@ -2,6 +2,7 @@
 #ifndef _LINUX_UNITS_H
 #define _LINUX_UNITS_H
 
+#include <linux/bits.h>
 #include <linux/math.h>
 
 /* Metric prefixes in accordance with Système international (d'unités) */
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andy Shevchenko

BITS_PER_BYTE is defined in bits.h.

Fixes e8eed5f7366f ("units: Add BYTES_PER_*BIT")

Thanks.

Quoted 16 lines
---
 include/linux/units.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/units.h +1 -0
index ff1bd6b5f5b3..45110daaf8d3 100644
@@ -2,6 +2,7 @@
 #ifndef _LINUX_UNITS_H
 #define _LINUX_UNITS_H
 
+#include <linux/bits.h>
 #include <linux/math.h>
 
 /* Metric prefixes in accordance with Système international (d'unités) */
Signature · 1 line
~Randy
#2 lore raw
In reply to Andy Shevchenko
Quoted 3 lines · On Tue, 28 Nov 2023 19:44:03 +0200 Andy Shevchenko…

BITS_PER_BYTE is defined in bits.h.

Fixes e8eed5f7366f ("units: Add BYTES_PER_*BIT")

This is post-6.6, so the fix should go into this -rc whatever happens, but...

It would be rather nice to know the effects of this change please. Did some build break?

Quoted 12 lines
include/linux/units.h +1 -0
@@ -2,6 +2,7 @@
 #ifndef _LINUX_UNITS_H
 #define _LINUX_UNITS_H
 
+#include <linux/bits.h>
 #include <linux/math.h>
 
 /* Metric prefixes in accordance with Système international (d'unités) */
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
#3 lore raw
Quoted 10 lines · Andrew Morton
Quoted 3 lines · On Tue, 28 Nov 2023 19:44:03 +0200 Andy Shevchenko…

BITS_PER_BYTE is defined in bits.h.

Fixes e8eed5f7366f ("units: Add BYTES_PER_*BIT")

This is post-6.6, so the fix should go into this -rc whatever happens, but...

It would be rather nice to know the effects of this change please. Did some build break?

Not of my knowledge. Fixes tag here to make sure people won't forget that headers are special and we need a bit stricter rules on how we add a new stuff (which will require another header) or remove an old one (which may give a stale inclusion).

Signature · 2 lines
With Best Regards,
Andy Shevchenko