Skip to contentSkip to conversation

net/sched: cbs: Use units.h instead of the copy of a definition

PATCH Applied Andy Shevchenko 4 participants 5 messages Nov 28, 2023 – Dec 1, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/sched: cbs: Use units.h instead of the copy of a definition

BYTES_PER_KBIT is defined in units.h, use that definition.

---
 net/sched/sch_cbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/sched/sch_cbs.c +2 -2
index 9a0b85190a2c..beece8e82c23 100644
@@ -57,6 +57,8 @@
 #include <linux/string.h>
 #include <linux/errno.h>
 #include <linux/skbuff.h>
+#include <linux/units.h>
+
 #include <net/netevent.h>
 #include <net/netlink.h>
 #include <net/sch_generic.h>
@@ -65,8 +67,6 @@
 static LIST_HEAD(cbs_list);
 static DEFINE_SPINLOCK(cbs_list_lock);
 
-#define BYTES_PER_KBIT (1000LL / 8)
-
 struct cbs_sched_data {
 	bool offload;
 	int queue;
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
#4 lore raw
In reply to Andy Shevchenko
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Tue, 28 Nov 2023 19:48:13 +0200 you wrote:

BYTES_PER_KBIT is defined in units.h, use that definition.

---
 net/sched/sch_cbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
- [net-next,v1,1/1] net/sched: cbs: Use units.h instead of the copy of a definition

    https://git.kernel.org/netdev/net-next/c/000db9e9ad42

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html