docs: powerpc: vas-api: Fix the structure name and the ioctl number in the example
Subsystems (2)
PATCH v2 1/1 docs: powerpc: vas-api: Fix the structure name and the ioctl number in the example
struct vas_setup_attr does not exist; the name is struct vas_tx_win_open_attr. The example also defines VAS_TX_WIN_OPEN with the request number 1, while arch/powerpc/include/uapi/asm/vas-api.h has used 0x20 since the ioctl was added.
Use struct vas_tx_win_open_attr and 0x20.
---
v2: also fix the ioctl request number in the example (Ritesh)
v1: https://lore.kernel.org/r/[email protected]/
Documentation/arch/powerpc/vas-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/arch/powerpc/vas-api.rst +2 -2
@@ -136,7 +136,7 @@ a connection with NX co-processor engine: follows:: #define VAS_MAGIC 'v' - #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 1, + #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20, struct vas_tx_win_open_attr) struct vas_tx_win_open_attr attr;
@@ -265,7 +265,7 @@ Simple example { int rc, fd; void *addr; - struct vas_setup_attr txattr; + struct vas_tx_win_open_attr txattr; fd = open("/dev/crypto/nx-gzip", O_RDWR); if (fd < 0) {
base-commit: 986c24e0fe44f844b44d365b71ce831947f50298
Signature · 1 line
2.53.0
Quoted 11 lines · Karl Mehltretter
struct
vas_setup_attrdoes not exist; the name is structvas_tx_win_open_attr. The example also definesVAS_TX_WIN_OPENwith the request number 1, whilearch/powerpc/include/uapi/asm/vas-api.hhas used0x20since the ioctl was added.Use struct
vas_tx_win_open_attrand0x20.Fixes c12e38b1d52e ("Documentation/powerpc: VAS API")Suggested-by Ritesh Harjani (IBM) <[email protected]>Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>
Quoted 6 lines
---
v2: also fix the ioctl request number in the example (Ritesh)
v1: https://lore.kernel.org/r/[email protected]/Documentation/arch/powerpc/vas-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks for fixing the ioctl number too and sending a v2. LGTM. Please feel free to add:
Quoted 32 lines · Karl Mehltretter
struct
vas_setup_attrdoes not exist; the name is structvas_tx_win_open_attr. The example also definesVAS_TX_WIN_OPENwith the request number 1, whilearch/powerpc/include/uapi/asm/vas-api.hhas used0x20since the ioctl was added.Use struct
vas_tx_win_open_attrand0x20.Fixes c12e38b1d52e ("Documentation/powerpc: VAS API")Suggested-by Ritesh Harjani (IBM) <[email protected]>Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>---
v2: also fix the ioctl request number in the example (Ritesh)
v1: https://lore.kernel.org/r/[email protected]/Documentation/arch/powerpc/vas-api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/arch/powerpc/vas-api.rst +1
-1@@ -136,7 +136,7 @@ a connection with NX co-processor engine: follows:: #define VAS_MAGIC 'v' - #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 1, + #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20, struct vas_tx_win_open_attr) struct vas_tx_win_open_attr attr;
Documentation/arch/powerpc/vas-api.rst Simple example · line 269
Quoted 6 lines
Documentation/arch/powerpc/vas-api.rst +1
-1@@ -265,7 +265,7 @@ Simple example { int rc, fd; void *addr; - struct vas_setup_attr txattr; + struct vas_tx_win_open_attr txattr;
Applied, thanks.
jon