Skip to contentSkip to conversation

docs: powerpc: vas-api: Fix the structure name and the ioctl number in the example

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

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

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.

Fixes c12e38b1d52e ("Documentation/powerpc: VAS API")
Assisted-by LLM

---
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
index 1d0d055356e3..f74ea9fbc8a0 100644
@@ -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
reviewer Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Karl Mehltretter

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.

Fixes c12e38b1d52e ("Documentation/powerpc: VAS API")
Assisted-by LLM
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:

maintainer Applied
#2 lore raw
In reply to Karl Mehltretter
Quoted 32 lines · Karl Mehltretter

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.

Fixes c12e38b1d52e ("Documentation/powerpc: VAS API")
Assisted-by LLM

---
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
index 1d0d055356e3..f74ea9fbc8a0 100644
@@ -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