From patchwork Wed Apr 9 07:21:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3955671 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 917A39F371 for ; Wed, 9 Apr 2014 13:57:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7ED2A20523 for ; Wed, 9 Apr 2014 13:57:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CC3042051F for ; Wed, 9 Apr 2014 13:57:13 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DFE9326500C; Wed, 9 Apr 2014 15:57:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 3AE342619F4; Wed, 9 Apr 2014 15:55:37 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 88A4126087D; Wed, 9 Apr 2014 09:32:51 +0200 (CEST) Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by alsa0.perex.cz (Postfix) with ESMTP id E48DC2608EC for ; Wed, 9 Apr 2014 09:22:32 +0200 (CEST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3R00JBP5TG3W40@mailout3.w1.samsung.com> for alsa-devel@alsa-project.org; Wed, 09 Apr 2014 08:22:28 +0100 (BST) X-AuditID: cbfec7f4-b7f796d000005a13-f7-5344f534bf4e Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FF.7D.23059.435F4435; Wed, 09 Apr 2014 08:22:28 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N3R00K8Y5T79K60@eusync2.samsung.com>; Wed, 09 Apr 2014 08:22:28 +0100 (BST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Wed, 09 Apr 2014 09:21:48 +0200 Message-id: <1397028108-10976-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.8.3.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t/xK7omX12CDSYvFLK4cvEQk8XUh0/Y LF6/MLT4dqWDyeLyrjlsFp27+lktXm5+w+TA7rHhcxObx85Zd9k9Nq3qZPPY93YZm0ffllWM HptPV3t83iQXwB7FZZOSmpNZllqkb5fAlTH/2h/mgn62ij9zzRoYp7F2MXJwSAiYSKz669DF yAlkiklcuLeeDcQWEljKKNF7hreLkQvI7mOS+L9wCwtIgk3AWGLz8iVgRSICxxklPjzzALGZ BQwlfr77ww5iCws4SXzqfM8MYrMIqEp0XusHs3kF3CUu/N3GBLFMQWLZl7XMExi5FzAyrGIU TS1NLihOSs811CtOzC0uzUvXS87P3cQICZgvOxgXH7M6xCjAwajEw6tg6RIsxJpYVlyZe4hR goNZSYT3eTZQiDclsbIqtSg/vqg0J7X4ECMTB6dUA2PqZ37xtil779bJxcx/EPAtU87eKKp8 z1q3d9ejDt2xsEz2NLv4Kif43XKvPyzSAor6yQt3bt105GbDiktPxb4c/6qtPWvV7jT3X62F T7b/NS2yOC405/rnl3t3GMuJKygESbkXZNvma885479WPGQ/j9endpOpc8Qi1A9FF19jNNjP 9dOyPEOJpTgj0VCLuag4EQDh/t639gEAAA== X-Mailman-Approved-At: Wed, 09 Apr 2014 15:55:33 +0200 Cc: Krzysztof Kozlowski Subject: [alsa-devel] [PATCH] ASoC: core: Fix Sparse incompatible types warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Fix following Sparse warning: sound/soc/soc-core.c:252:20: error: incompatible types in comparison expression (different type sizes) Signed-off-by: Krzysztof Kozlowski --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 051c006281f5..41f6178249df 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -249,7 +249,7 @@ static ssize_t codec_reg_write_file(struct file *file, struct snd_soc_codec *codec = file->private_data; int ret; - buf_size = min(count, (sizeof(buf)-1)); + buf_size = min(count, (size_t)(sizeof(buf)-1)); if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; buf[buf_size] = 0;