All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DOCUMENTATION: Correct filename in Documentation
@ 2023-08-17 20:59 mail
  2023-08-17 21:11 ` Randy Dunlap
  2023-08-17 21:12 ` Matthew Wilcox
  0 siblings, 2 replies; 4+ messages in thread
From: mail @ 2023-08-17 20:59 UTC (permalink / raw)
  To: linux-doc; +Cc: René Nyffenegger

Correct filename of renamed file in Documentation

The current documentation in Documentation/core-api/kobject.rst refers to a
macro named `container_of`, supposedly defined in linux/kernel.h while in
reality it is defined in linux/container_of.h

Signed-off-by: René Nyffenegger <mail@renenyffenegger.ch>
--
diff --git a/Documentation/core-api/kobject.rst b/Documentation/core-api/kobject.rst
index 7310247310a0..5f6c61bc03bf 100644
--- a/Documentation/core-api/kobject.rst
+++ b/Documentation/core-api/kobject.rst
@@ -78,7 +78,7 @@ just a matter of using the kobj member.  Code that works with kobjects will
 often have the opposite problem, however: given a struct kobject pointer,
 what is the pointer to the containing structure?  You must avoid tricks
 (such as assuming that the kobject is at the beginning of the structure)
-and, instead, use the container_of() macro, found in ``<linux/kernel.h>``::
+and, instead, use the container_of() macro, found in ``<linux/container_of.h>``::
 
     container_of(ptr, type, member)


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

* Re: [PATCH] DOCUMENTATION: Correct filename in Documentation
  2023-08-17 20:59 [PATCH] DOCUMENTATION: Correct filename in Documentation mail
@ 2023-08-17 21:11 ` Randy Dunlap
  2023-08-17 21:12 ` Matthew Wilcox
  1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2023-08-17 21:11 UTC (permalink / raw)
  To: mail, linux-doc



On 8/17/23 13:59, mail@renenyffenegger.ch wrote:
> Correct filename of renamed file in Documentation
> 
> The current documentation in Documentation/core-api/kobject.rst refers to a
> macro named `container_of`, supposedly defined in linux/kernel.h while in
> reality it is defined in linux/container_of.h
> 
> Signed-off-by: René Nyffenegger <mail@renenyffenegger.ch>

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> --
> diff --git a/Documentation/core-api/kobject.rst b/Documentation/core-api/kobject.rst
> index 7310247310a0..5f6c61bc03bf 100644
> --- a/Documentation/core-api/kobject.rst
> +++ b/Documentation/core-api/kobject.rst
> @@ -78,7 +78,7 @@ just a matter of using the kobj member.  Code that works with kobjects will
>  often have the opposite problem, however: given a struct kobject pointer,
>  what is the pointer to the containing structure?  You must avoid tricks
>  (such as assuming that the kobject is at the beginning of the structure)
> -and, instead, use the container_of() macro, found in ``<linux/kernel.h>``::
> +and, instead, use the container_of() macro, found in ``<linux/container_of.h>``::
>  
>      container_of(ptr, type, member)
> 

-- 
~Randy

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

* Re: [PATCH] DOCUMENTATION: Correct filename in Documentation
  2023-08-17 20:59 [PATCH] DOCUMENTATION: Correct filename in Documentation mail
  2023-08-17 21:11 ` Randy Dunlap
@ 2023-08-17 21:12 ` Matthew Wilcox
  2023-08-21  9:18   ` Jani Nikula
  1 sibling, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2023-08-17 21:12 UTC (permalink / raw)
  To: mail; +Cc: linux-doc

On Thu, Aug 17, 2023 at 10:59:40PM +0200, mail@renenyffenegger.ch wrote:
> Correct filename of renamed file in Documentation
> 
> The current documentation in Documentation/core-api/kobject.rst refers to a
> macro named `container_of`, supposedly defined in linux/kernel.h while in
> reality it is defined in linux/container_of.h

Maybe we should just remove the reference to where it's defined?


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

* Re: [PATCH] DOCUMENTATION: Correct filename in Documentation
  2023-08-17 21:12 ` Matthew Wilcox
@ 2023-08-21  9:18   ` Jani Nikula
  0 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2023-08-21  9:18 UTC (permalink / raw)
  To: Matthew Wilcox, mail; +Cc: linux-doc

On Thu, 17 Aug 2023, Matthew Wilcox <willy@infradead.org> wrote:
> On Thu, Aug 17, 2023 at 10:59:40PM +0200, mail@renenyffenegger.ch wrote:
>> Correct filename of renamed file in Documentation
>> 
>> The current documentation in Documentation/core-api/kobject.rst refers to a
>> macro named `container_of`, supposedly defined in linux/kernel.h while in
>> reality it is defined in linux/container_of.h
>
> Maybe we should just remove the reference to where it's defined?

container_of.h seems to have kernel-doc, but it's not included anywhere
in Documentation. With that fixed, this could be a reference to the
documentation.

BR,
Jani.

-- 
Jani Nikula, Intel Open Source Graphics Center

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

end of thread, other threads:[~2023-08-21  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 20:59 [PATCH] DOCUMENTATION: Correct filename in Documentation mail
2023-08-17 21:11 ` Randy Dunlap
2023-08-17 21:12 ` Matthew Wilcox
2023-08-21  9:18   ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.