Skip to contentSkip to conversation

Documentation: livepatch: Point klp_callbacks kernel-doc at livepatch_external.h

PATCH Applied Karl Mehltretter 3 participants 3 messages Sep 5 – Sep 7

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

PATCH 1/1 Documentation: livepatch: Point klp_callbacks kernel-doc at livepatch_external.h

api.rst asks include/linux/livepatch.h for struct klp_callbacks. Commit dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files") moved the structure and its kernel-doc comment to include/linux/livepatch_external.h. Since then the Object Types section renders the other four structures but not klp_callbacks.

Add a directive for the new header.

Fixes dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files")
Assisted-by LLM
---
 Documentation/livepatch/api.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/livepatch/api.rst +4 -1
index 78944b63d74b..2a98c517da9d 100644
@@ -27,4 +27,7 @@ Object Types
 ============
 
 .. kernel-doc:: include/linux/livepatch.h
-   :identifiers: klp_patch klp_object klp_func klp_callbacks klp_state
+   :identifiers: klp_patch klp_object klp_func klp_state
+
+.. kernel-doc:: include/linux/livepatch_external.h
+   :identifiers: klp_callbacks
Signature · 1 line
2.53.0
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Karl Mehltretter

api.rst asks include/linux/livepatch.h for struct klp_callbacks. Commit dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files") moved the structure and its kernel-doc comment to include/linux/livepatch_external.h. Since then the Object Types section renders the other four structures but not klp_callbacks.

Add a directive for the new header.

Fixes dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files")
Assisted-by LLM

Thanks.

Quoted 17 lines
---
 Documentation/livepatch/api.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/livepatch/api.rst +4 -1
index 78944b63d74b..2a98c517da9d 100644
@@ -27,4 +27,7 @@ Object Types
 ============
 
 .. kernel-doc:: include/linux/livepatch.h
-   :identifiers: klp_patch klp_object klp_func klp_callbacks klp_state
+   :identifiers: klp_patch klp_object klp_func klp_state
+
+.. kernel-doc:: include/linux/livepatch_external.h
+   :identifiers: klp_callbacks
Signature · 1 line
~Randy
maintainer Applied
#2 lore raw
In reply to Karl Mehltretter
Quoted 20 lines · Karl Mehltretter

api.rst asks include/linux/livepatch.h for struct klp_callbacks. Commit dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files") moved the structure and its kernel-doc comment to include/linux/livepatch_external.h. Since then the Object Types section renders the other four structures but not klp_callbacks.

Add a directive for the new header.

Fixes dd590d4d57eb ("objtool/klp: Introduce klp diff subcommand for diffing object files")
Assisted-by LLM
---
 Documentation/livepatch/api.rst | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/livepatch/api.rst +0 -0
index 78944b63d74b..2a98c517da9d 100644

Documentation/livepatch/api.rst Object Types · line 33

Quoted 8 lines
Documentation/livepatch/api.rst +4 -1
@@ -27,4 +27,7 @@ Object Types
 ============
 
 .. kernel-doc:: include/linux/livepatch.h
-   :identifiers: klp_patch klp_object klp_func klp_callbacks klp_state
+   :identifiers: klp_patch klp_object klp_func klp_state
+
+.. kernel-doc:: include/linux/livepatch_external.h
+   :identifiers: klp_callbacks

Applied, thanks.

jon