Re: [PATCH RESEND v2 14/23] proc: let procfs copy in writes before pinning the entry

From
David Laight <hidden>
Date
2026-11-09 21:46:02
Also in
dri-devel, kexec, linux-acpi, linux-alpha, linux-cifs, linux-doc, linux-ext4, linux-fbdev, linux-fsdevel, linux-hwmon, linux-kselftest, linux-m68k, linux-mm, linux-modules, linux-nfs, linux-pci, linux-raid, linux-s390, linux-scsi, linux-serial, linux-sh, linux-sound, linux-um, linux-usb, linux-wireless, linuxppc-dev, lkml, netdev, netfilter-devel, ntfs3, platform-driver-x86, sparclinux
Reply to
Maciej W. Rozycki, 2026-11-09
On Mon, 9 Nov 2026 05:05:57 +0000 (GMT)
"Maciej W. Rozycki" [off-list ref] wrote:
On Sun, 8 Nov 2026, David Laight wrote:
quoted
quoted
quoted
While at it, I think it would be good to use this conversion as an
opportunity to replace "char *" by "void *", which will probably let
you drop several casts from users.    
So I tried that too. The thing is it drops exactly one u8 * cast in
ntfs3's label write.   
Since char is now unsigned that one isn't even needed...  
 Please excuse me missing the context, but what circumstances does your 
claim refer to?
Just that the cast would have to be:
	u8 *foo = (u8 *)bar;
where 'bar' is 'char *', and I don't think you need a cast there when
char is unsigned.

David
 
  Maciej
  
Thread (217 messages) 217 messages, 11 authors, last reply 18d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help