public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation: Avoid duplicate Kconfig inclusion
@ 2023-01-14  6:08 Peter Foley
  2023-01-14 16:25 ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Foley @ 2023-01-14  6:08 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Mauro Carvalho Chehab, linux-kernel, linux-doc, Peter Foley

Documentation/Kconfig is already included from lib/Kconfig.debug, avoid
including it again and polluting the top-level menu.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
 Kconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Kconfig b/Kconfig
index 745bc773f5670..97ed6389c9211 100644
--- a/Kconfig
+++ b/Kconfig
@@ -28,5 +28,3 @@ source "crypto/Kconfig"
 source "lib/Kconfig"
 
 source "lib/Kconfig.debug"
-
-source "Documentation/Kconfig"

---
base-commit: 97ec4d559d939743e8af83628be5af8da610d9dc
change-id: 20230114-doc-005df4ac8193

Best regards,
-- 
Peter Foley <pefoley2@pefoley.com>

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Documentation: Avoid duplicate Kconfig inclusion
  2023-01-14  6:08 [PATCH] Documentation: Avoid duplicate Kconfig inclusion Peter Foley
@ 2023-01-14 16:25 ` Jonathan Corbet
  2023-01-16  0:42   ` Peter Foley
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2023-01-14 16:25 UTC (permalink / raw)
  To: Peter Foley; +Cc: Mauro Carvalho Chehab, linux-kernel, linux-doc, Peter Foley

Peter Foley <pefoley2@pefoley.com> writes:

> Documentation/Kconfig is already included from lib/Kconfig.debug, avoid
> including it again and polluting the top-level menu.
>
> Signed-off-by: Peter Foley <pefoley2@pefoley.com>
> ---
>  Kconfig | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/Kconfig b/Kconfig
> index 745bc773f5670..97ed6389c9211 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -28,5 +28,3 @@ source "crypto/Kconfig"
>  source "lib/Kconfig"
>  
>  source "lib/Kconfig.debug"
> -
> -source "Documentation/Kconfig"
>

The duplicate inclusion does seem worth fixing, but I wonder if you're
deleting the right one?  Having the documentation Kconfig under lib
seems a bit strange, somehow; Documentation/ is a top-level directory,
after all.

Thanks,

jon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Documentation: Avoid duplicate Kconfig inclusion
  2023-01-14 16:25 ` Jonathan Corbet
@ 2023-01-16  0:42   ` Peter Foley
  2023-01-16  0:55     ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Foley @ 2023-01-16  0:42 UTC (permalink / raw)
  To: Jonathan Corbet; +Cc: Mauro Carvalho Chehab, linux-kernel, linux-doc

On Sat, Jan 14, 2023 at 8:25 AM Jonathan Corbet <corbet@lwn.net> wrote:
> The duplicate inclusion does seem worth fixing, but I wonder if you're
> deleting the right one?  Having the documentation Kconfig under lib
> seems a bit strange, somehow; Documentation/ is a top-level directory,
> after all.

I thought about that.
Looking at the history, the toplevel inclusion was added in
b1663d7e3a7961 (2019-06-04), and the lib/Kconfig.debug inclusion was
added in 75442fb0ccaacd (2020-10-30).
Given the actual entries in Documentation/Kconfig
(WARN_MISSING_DOCUMENTS and WARN_ABI_ERRORS), putting them under the
"Kernel hacking" menu makes sense to me.
We *could* add a new top-level menu to Documentation/Kconfig, but it
doesn't really seem like an improvement over having them live in
Kernel hacking.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Documentation: Avoid duplicate Kconfig inclusion
  2023-01-16  0:42   ` Peter Foley
@ 2023-01-16  0:55     ` Randy Dunlap
  2023-01-16 22:59       ` Peter Foley
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2023-01-16  0:55 UTC (permalink / raw)
  To: Peter Foley, Jonathan Corbet
  Cc: Mauro Carvalho Chehab, linux-kernel, linux-doc



On 1/15/23 16:42, Peter Foley wrote:
> On Sat, Jan 14, 2023 at 8:25 AM Jonathan Corbet <corbet@lwn.net> wrote:
>> The duplicate inclusion does seem worth fixing, but I wonder if you're
>> deleting the right one?  Having the documentation Kconfig under lib
>> seems a bit strange, somehow; Documentation/ is a top-level directory,
>> after all.
> 
> I thought about that.
> Looking at the history, the toplevel inclusion was added in
> b1663d7e3a7961 (2019-06-04), and the lib/Kconfig.debug inclusion was
> added in 75442fb0ccaacd (2020-10-30).
> Given the actual entries in Documentation/Kconfig
> (WARN_MISSING_DOCUMENTS and WARN_ABI_ERRORS), putting them under the
> "Kernel hacking" menu makes sense to me.
> We *could* add a new top-level menu to Documentation/Kconfig, but it
> doesn't really seem like an improvement over having them live in
> Kernel hacking.

Since b1663d7e3a7961 puts the Documentation/Kconfig just after
lib/Kconfig.debug, there's not much difference in its location in a
*config menu, but I would rather see it separated (independent) from
lib/Kconfig.debug because I think that it would make any future changes
easier.

Also, b1663d7e3a7961 came first. :)

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Documentation: Avoid duplicate Kconfig inclusion
  2023-01-16  0:55     ` Randy Dunlap
@ 2023-01-16 22:59       ` Peter Foley
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Foley @ 2023-01-16 22:59 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Jonathan Corbet, Mauro Carvalho Chehab, linux-kernel, linux-doc

On Sun, Jan 15, 2023 at 4:55 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Since b1663d7e3a7961 puts the Documentation/Kconfig just after
> lib/Kconfig.debug, there's not much difference in its location in a
> *config menu, but I would rather see it separated (independent) from
> lib/Kconfig.debug because I think that it would make any future changes
> easier.
>
> Also, b1663d7e3a7961 came first. :)
>

Fair enough, sent a v2 with the top-level include kept and the Kernel
hacking one removed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-16 22:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-14  6:08 [PATCH] Documentation: Avoid duplicate Kconfig inclusion Peter Foley
2023-01-14 16:25 ` Jonathan Corbet
2023-01-16  0:42   ` Peter Foley
2023-01-16  0:55     ` Randy Dunlap
2023-01-16 22:59       ` Peter Foley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox