From patchwork Tue Dec 24 11:42:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3402021 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1C0E1C0D4A for ; Tue, 24 Dec 2013 11:45:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CC8E205BA for ; Tue, 24 Dec 2013 11:45:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 06B62205B5 for ; Tue, 24 Dec 2013 11:45:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971Ab3LXLpa (ORCPT ); Tue, 24 Dec 2013 06:45:30 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:39743 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887Ab3LXLpa (ORCPT ); Tue, 24 Dec 2013 06:45:30 -0500 Received: by mail-pd0-f178.google.com with SMTP id y10so6252411pdj.37 for ; Tue, 24 Dec 2013 03:45:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Vfv2Fi5iFErKCx6k4LEHD+MKoKt67dZ5PAnO0wXbFds=; b=mf98IIaJrzVzU1t9/UUiZnA/xpfjHCCN2fL3pCvHpVbwlvszAc9g35MLG/ix7uVy/c hK/uqK04whUVVSy3Dapj7mZMQBtxOrxVJdpI7Mxjlr4Utj4X6ggqXvUSqhMqLBv4kIDU 3HGp1ycMTfvK7EjzSdZvV+UUZFtAY08tZldwaPE2GhUJC8E46ag/UIG/7Aur7j7NGMBO /jLUrKlqB78WCtCFTLRV6TlFlvF0C2RUjWksKcQ8VieTM5lJ7JkuqRKeWZJYbbdWEUtv g+nO3VU13L9nS8M2aoDdQA7dCVmAc6uQL6SWsb5/pxXxqVC0Qnpckr8ITi/t1KICFCVz 2uMw== X-Gm-Message-State: ALoCoQlrm+08qCI3Pn9KDcnLmrG6Aa7/aXsMHs8+J6jITPVMBHlYo9V8X9WO53GRK3xNLpTnl0kI X-Received: by 10.68.108.194 with SMTP id hm2mr32311334pbb.22.1387885529544; Tue, 24 Dec 2013 03:45:29 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ug2sm53640678pac.21.2013.12.24.03.45.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Dec 2013 03:45:28 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: a.hajda@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 1/3] [media] s5k5baf: Fix build warning Date: Tue, 24 Dec 2013 17:12:03 +0530 Message-Id: <1387885325-17639-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following warnings: drivers/media/i2c/s5k5baf.c: In function 's5k5baf_fw_parse': drivers/media/i2c/s5k5baf.c:362:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] drivers/media/i2c/s5k5baf.c:383:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=] Signed-off-by: Sachin Kamat Reported-by: kbuild test robot --- drivers/media/i2c/s5k5baf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/s5k5baf.c b/drivers/media/i2c/s5k5baf.c index e3b44a87460b..139bdd4f5dde 100644 --- a/drivers/media/i2c/s5k5baf.c +++ b/drivers/media/i2c/s5k5baf.c @@ -359,7 +359,7 @@ static int s5k5baf_fw_parse(struct device *dev, struct s5k5baf_fw **fw, int ret; if (count < S5K5BAG_FW_TAG_LEN + 1) { - dev_err(dev, "firmware file too short (%d)\n", count); + dev_err(dev, "firmware file too short (%zu)\n", count); return -EINVAL; } @@ -379,7 +379,7 @@ static int s5k5baf_fw_parse(struct device *dev, struct s5k5baf_fw **fw, f = (struct s5k5baf_fw *)d; if (count < 1 + 2 * f->count) { - dev_err(dev, "invalid firmware header (count=%d size=%d)\n", + dev_err(dev, "invalid firmware header (count=%d size=%zu)\n", f->count, 2 * (count + S5K5BAG_FW_TAG_LEN)); return -EINVAL; }