From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH 7/9] ASoC: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning Date: Mon, 16 May 2011 17:26:32 +0100 Message-ID: <1305563192.3156.7.camel@odin> References: <1305244212-19183-1-git-send-email-sboyd@codeaurora.org> <1305244212-19183-8-git-send-email-sboyd@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ey0-f179.google.com (mail-ey0-f179.google.com [209.85.215.179]) by alsa0.perex.cz (Postfix) with ESMTP id 3871924505 for ; Mon, 16 May 2011 18:26:38 +0200 (CEST) Received: by eyg5 with SMTP id 5so1386584eyg.38 for ; Mon, 16 May 2011 09:26:36 -0700 (PDT) In-Reply-To: <1305244212-19183-8-git-send-email-sboyd@codeaurora.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Stephen Boyd Cc: alsa-devel@alsa-project.org, Takashi Iwai , Mark Brown , linux-kernel@vger.kernel.org, Jaroslav@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 2011-05-12 at 16:50 -0700, Stephen Boyd wrote: > Enabling DEBUG_STRICT_USER_COPY_CHECKS causes the following > warning: > > In file included from arch/x86/include/asm/uaccess.h:573, > from include/linux/poll.h:14, > from include/sound/pcm.h:29, > from include/sound/ac97_codec.h:31, > from sound/soc/soc-core.c:34: > In function 'copy_from_user', > inlined from 'codec_reg_write_file' at > sound/soc/soc-core.c:252: > arch/x86/include/asm/uaccess_64.h:65: > warning: call to 'copy_from_user_overflow' declared with > attribute warning: copy_from_user() buffer size is not provably > correct > > presumably due to buf_size being signed causing GCC to fail to > see that buf_size can't become negative. > > Cc: Liam Girdwood > Cc: Mark Brown > Signed-off-by: Stephen Boyd Acked-by: Liam Girdwood From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753402Ab1EPQ0i (ORCPT ); Mon, 16 May 2011 12:26:38 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:49678 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054Ab1EPQ0h (ORCPT ); Mon, 16 May 2011 12:26:37 -0400 Subject: Re: [PATCH 7/9] ASoC: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning From: Liam Girdwood To: Stephen Boyd Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Mark Brown In-Reply-To: <1305244212-19183-8-git-send-email-sboyd@codeaurora.org> References: <1305244212-19183-1-git-send-email-sboyd@codeaurora.org> <1305244212-19183-8-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 16 May 2011 17:26:32 +0100 Message-ID: <1305563192.3156.7.camel@odin> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-05-12 at 16:50 -0700, Stephen Boyd wrote: > Enabling DEBUG_STRICT_USER_COPY_CHECKS causes the following > warning: > > In file included from arch/x86/include/asm/uaccess.h:573, > from include/linux/poll.h:14, > from include/sound/pcm.h:29, > from include/sound/ac97_codec.h:31, > from sound/soc/soc-core.c:34: > In function 'copy_from_user', > inlined from 'codec_reg_write_file' at > sound/soc/soc-core.c:252: > arch/x86/include/asm/uaccess_64.h:65: > warning: call to 'copy_from_user_overflow' declared with > attribute warning: copy_from_user() buffer size is not provably > correct > > presumably due to buf_size being signed causing GCC to fail to > see that buf_size can't become negative. > > Cc: Liam Girdwood > Cc: Mark Brown > Signed-off-by: Stephen Boyd Acked-by: Liam Girdwood