Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdIUIAF (ORCPT ); Thu, 21 Sep 2017 04:00:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:47283 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751531AbdIUIAE (ORCPT ); Thu, 21 Sep 2017 04:00:04 -0400 Date: Thu, 21 Sep 2017 10:00:01 +0200 Message-ID: From: Takashi Iwai To: "Thomas Meyer" Cc: , , Subject: Re: [PATCH 4/4] ALSA: emu10k1: Cocci spatch "alloc_cast" In-Reply-To: <1505975570447-568224618-4-diffsplit-thomas@m3y3r.de> References: <1505975570447-826702259-0-diffsplit-thomas@m3y3r.de> <1505975570447-568224618-4-diffsplit-thomas@m3y3r.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 439 Lines: 16 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. thanks, Takashi