[lkml]   [2017]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast"
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 <>

No, this cast is still required because it has __user annotation.
It's not about compiler warning but about sparse.



 \ /
  Last update: 2017-09-21 19:29    [W:0.077 / U:12.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site