Re: [PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-17 Thread Alejandro Colomar (man-pages)
Hi Michael, On 1/17/21 9:34 PM, Michael Kerrisk (man-pages) wrote: > Hi Alex, > > On 1/16/21 3:56 PM, Alejandro Colomar wrote: >> Glibc uses 'void *' instead of 'char *'. >> And the prototype is declared in . D'oh! >> >> .. >

[PATCH] cacheflush.2: Update SYNOPSIS for glibc wrapper

2021-01-16 Thread Alejandro Colomar
/sys/cachectl.h:30: extern int cacheflush (void *__addr, int __nbytes, int __op) __THROW; glibc/sysdeps/unix/sysv/linux/csky/sys/cachectl.h:30: extern int cacheflush (void *__addr, const int __nbytes, const int __op) __THROW; Signed-off-by: Alejandro Colomar --- man2/cachefl

Re: [PATCH] cacheflush.2: Document Architecture-specific variants

2020-12-21 Thread Alejandro Colomar (man-pages)
On 12/20/20 9:54 PM, Michael Kerrisk (man-pages) wrote: > Hi Alex > > On 12/14/20 3:38 PM, Alejandro Colomar wrote: >> Signed-off-by: Alejandro Colomar >> --- >> >> Hi Michael, >> >> Please apply this patch after >> '[PATCH v5] ca

Ping: [PATCH] cacheflush.2: Document Architecture-specific variants

2020-12-20 Thread Alejandro Colomar (man-pages)
Ping On 12/14/20 3:38 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar > --- > > Hi Michael, > > Please apply this patch after > '[PATCH v5] cacheflush.2: Document __builtin___clear_cache() as a more > portable alternative'. > > Thanks

Ping: [PATCH v6] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative

2020-12-20 Thread Alejandro Colomar (man-pages)
Ping On 12/15/20 2:30 PM, Alejandro Colomar wrote: > Reported-by: Heinrich Schuchardt > Signed-off-by: Alejandro Colomar > Cc: Martin Sebor > Cc: Dave Martin > --- > > v6: > - GCC has always exposed 'void *', as Martin Sebor noted. > It's Clang (an

[PATCH v6] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative

2020-12-15 Thread Alejandro Colomar
Reported-by: Heinrich Schuchardt Signed-off-by: Alejandro Colomar Cc: Martin Sebor Cc: Dave Martin --- v6: - GCC has always exposed 'void *', as Martin Sebor noted. It's Clang (and maybe others) that (following GCC's docs) exposed 'char *&#

[PATCH] cacheflush.2: Document Architecture-specific variants

2020-12-14 Thread Alejandro Colomar
Signed-off-by: Alejandro Colomar --- Hi Michael, Please apply this patch after '[PATCH v5] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative'. Thanks, Alex man2/cacheflush.2 | 42 ++ 1 file changed, 42

[PATCH v5] cacheflush.2: Document __builtin___clear_cache() as a more portable alternative

2020-12-14 Thread Alejandro Colomar
Reported-by: Heinrich Schuchardt Signed-off-by: Alejandro Colomar --- man2/cacheflush.2 | 24 1 file changed, 24 insertions(+) diff --git a/man2/cacheflush.2 b/man2/cacheflush.2 index aba625721..7a2eed506 100644 --- a/man2/cacheflush.2 +++ b/man2/cacheflush.2 @@ -86,6

Re: [RFC] cacheflush.2: Document different prototypes for different architectures

2020-12-12 Thread Alejandro Colomar (man-pages)
vm/llvm-project/blob/414d3dc62c706f41226b0d552210c79f5080df43/compiler-rt/lib/builtins/clear_cache.c#L59 [2]: https://github.com/llvm/llvm-project/blob/7faf62a80bfc3a9dfe34133681fcc31f8e8d658b/clang/include/clang/Basic/Builtins.def#L583 On 12/12/20 12:52 AM, Heinrich Schuchardt wrote: > On 12/11/20 10:09 PM, Alejandro Co

[RFC] cacheflush.2: Document different prototypes for different architectures

2020-12-11 Thread Alejandro Colomar (man-pages)
gave to the NOTES from the other thread, which aren't yet merged (I'll send the patches after the weekend, probably). Subsections based on: fadvise64(2) Can you review this? Thanks, Alex -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.al