Skip to contentSkip to conversation

spu_run.2: SYNOPSIS: Fix prototype parameter types

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 15, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spu_run.2: SYNOPSIS: Fix prototype parameter types

The 2nd and 3rd parameters of spu_run() use 'uint32_t *'. Fix it.

......

.../linux$ grep_syscall spu_run arch/powerpc/platforms/cell/spu_syscalls.c:80:
SYSCALL_DEFINE3(spu_run,int, fd, __u32 __user *, unpc, __u32 __user *, ustatus) include/linux/syscalls.h:1034:
asmlinkage long sys_spu_run(int fd, __u32 __user *unpc,

				 __u32 __user *ustatus);

.../linux$

---
 man2/spu_run.2 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
man2/spu_run.2 +1 -2
index fb1879759..8b2a64ebb 100644
@@ -30,8 +30,7 @@ spu_run \- execute an SPU context
 .nf
 .B #include <sys/spu.h>
 .PP
-.BI "int spu_run(int " fd ", unsigned int *" npc \
-", unsigned int *" event ");"
+.BI "int spu_run(int " fd ", uint32_t *" npc ", uint32_t *" event );
 .fi
 .PP
 .IR Note :
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 9 lines · Alejandro Colomar

The 2nd and 3rd parameters of spu_run() use 'uint32_t *'. Fix it.

......

.../linux$ grep_syscall spu_run arch/powerpc/platforms/cell/spu_syscalls.c:80:
SYSCALL_DEFINE3(spu_run,int, fd, __u32 __user *, unpc, __u32 __user *, ustatus) include/linux/syscalls.h:1034:
asmlinkage long sys_spu_run(int fd, __u32 __user *unpc,

Quoted 4 lines
				 __u32 __user *ustatus);

.../linux$

Thanks! Patch applied.

Cheers,

Michael

Quoted 19 lines
---
 man2/spu_run.2 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
man2/spu_run.2 +1 -2
index fb1879759..8b2a64ebb 100644
@@ -30,8 +30,7 @@ spu_run \- execute an SPU context
 .nf
 .B #include <sys/spu.h>
 .PP
-.BI "int spu_run(int " fd ", unsigned int *" npc \
-", unsigned int *" event ");"
+.BI "int spu_run(int " fd ", uint32_t *" npc ", uint32_t *" event );
 .fi
 .PP
 .IR Note :
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/