* [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h
@ 2023-12-14 10:59 Conor Dooley
2023-12-14 21:10 ` Al Viro
2023-12-17 22:48 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Conor Dooley @ 2023-12-14 10:59 UTC (permalink / raw)
To: linux-riscv
Cc: conor, Conor Dooley, Al Viro, Daire McNamara, Michael Turquette,
Stephen Boyd, linux-clk, linux-kernel
From: Conor Dooley <conor.dooley@microchip.com>
As evidenced by the fact that only 2 other drivers include this header,
it is not a normal thing to do. Including the regular version of this
header is far more conventional for drivers.
CC: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
--
CC: Conor Dooley <conor.dooley@microchip.com>
CC: Daire McNamara <daire.mcnamara@microchip.com>
CC: Michael Turquette <mturquette@baylibre.com>
CC: Stephen Boyd <sboyd@kernel.org>
CC: linux-riscv@lists.infradead.org
CC: linux-clk@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
drivers/clk/microchip/clk-mpfs-ccc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/microchip/clk-mpfs-ccc.c b/drivers/clk/microchip/clk-mpfs-ccc.c
index bce61c45e967..3a3ea2d142f8 100644
--- a/drivers/clk/microchip/clk-mpfs-ccc.c
+++ b/drivers/clk/microchip/clk-mpfs-ccc.c
@@ -4,8 +4,8 @@
*
* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
*/
-#include "asm-generic/errno-base.h"
#include <linux/clk-provider.h>
+#include <linux/errno.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h
2023-12-14 10:59 [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h Conor Dooley
@ 2023-12-14 21:10 ` Al Viro
2023-12-17 22:48 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Al Viro @ 2023-12-14 21:10 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-riscv, Conor Dooley, Daire McNamara, Michael Turquette,
Stephen Boyd, linux-clk, linux-kernel
On Thu, Dec 14, 2023 at 10:59:57AM +0000, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> As evidenced by the fact that only 2 other drivers include this header,
> it is not a normal thing to do. Including the regular version of this
> header is far more conventional for drivers.
ACK. Includes of asm-generic/anything.h are fine in arch/*/include/*
and (under some circumstances) in include/*; anywhere else they are very
dubious, including outright bugs (io_uring/uring_cmd.h include
of asm-generic/ioctls.h, for example).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h
2023-12-14 10:59 [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h Conor Dooley
2023-12-14 21:10 ` Al Viro
@ 2023-12-17 22:48 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2023-12-17 22:48 UTC (permalink / raw)
To: Conor Dooley, linux-riscv
Cc: conor, Conor Dooley, Al Viro, Daire McNamara, Michael Turquette,
linux-clk, linux-kernel
Quoting Conor Dooley (2023-12-14 02:59:57)
> From: Conor Dooley <conor.dooley@microchip.com>
>
> As evidenced by the fact that only 2 other drivers include this header,
> it is not a normal thing to do. Including the regular version of this
> header is far more conventional for drivers.
>
> CC: Al Viro <viro@zeniv.linux.org.uk>
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> --
> CC: Conor Dooley <conor.dooley@microchip.com>
> CC: Daire McNamara <daire.mcnamara@microchip.com>
> CC: Michael Turquette <mturquette@baylibre.com>
> CC: Stephen Boyd <sboyd@kernel.org>
> CC: linux-riscv@lists.infradead.org
> CC: linux-clk@vger.kernel.org
> CC: linux-kernel@vger.kernel.org
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-17 22:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 10:59 [PATCH v1] clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h Conor Dooley
2023-12-14 21:10 ` Al Viro
2023-12-17 22:48 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox