Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736439
| From | Takashi Iwai <tiwai@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" |
| Date | 2017-09-21 10:10 +0200 |
| Message-ID | <us4Ix-6IJ-3@gated-at.bofh.it> (permalink) |
| References | <us3t7-5H4-5@gated-at.bofh.it> <us3t8-5H4-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 21 Sep 2017 08:33:46 +0200, Thomas Meyer wrote: > > Remove casting the values returned by memory allocation functions like > kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc." > Found by coccinelle spatch "api/alloc/alloc_cast.cocci" > > Signed-off-by: Thomas Meyer <thomas@m3y3r.de> No, this cast is still required because it has __user annotation. It's not about compiler warning but about sparse. thanks, Takashi
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" Thomas Meyer <thomas@m3y3r.de> - 2017-09-21 08:50 +0200
Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" Takashi Iwai <tiwai@suse.de> - 2017-09-21 10:10 +0200
Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" Al Viro <viro@ZenIV.linux.org.uk> - 2017-09-21 19:40 +0200
Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" Takashi Iwai <tiwai@suse.de> - 2017-09-21 22:40 +0200
csiph-web