2024-04-22 19:54:51

by Andy Shevchenko

[permalink] [raw]
Subject: [PATCH v1 1/1] counter: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <[email protected]>
---
include/linux/counter.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/counter.h b/include/linux/counter.h
index cd35d8574ee2..426b7d58a438 100644
--- a/include/linux/counter.h
+++ b/include/linux/counter.h
@@ -6,14 +6,15 @@
#ifndef _COUNTER_H_
#define _COUNTER_H_

+#include <linux/array_size.h>
#include <linux/cdev.h>
#include <linux/device.h>
-#include <linux/kernel.h>
#include <linux/kfifo.h>
#include <linux/mutex.h>
#include <linux/spinlock_types.h>
#include <linux/types.h>
#include <linux/wait.h>
+
#include <uapi/linux/counter.h>

struct counter_device;
--
2.43.0.rc1.1336.g36b5255a03ac



2024-04-23 00:27:09

by William Breathitt Gray

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] counter: Don't use "proxy" headers


On Mon, 22 Apr 2024 17:48:50 +0300, Andy Shevchenko wrote:
> Update header inclusions to follow IWYU (Include What You Use)
> principle.
>
>

Applied, thanks!

[1/1] counter: Don't use "proxy" headers
commit: c265838feed136c5b1f83c976ec75962331cfb82

Best regards,
--
William Breathitt Gray <[email protected]>