From patchwork Fri Feb 12 20:26:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 582290 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48295140BAE for ; Sat, 13 Feb 2016 07:28:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ZAgfT1/b; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aUKIe-0002b2-6d; Fri, 12 Feb 2016 20:26:44 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aUKIb-0002Xi-SM for linux-mtd@lists.infradead.org; Fri, 12 Feb 2016 20:26:42 +0000 Received: by mail-pa0-x22a.google.com with SMTP id ho8so52064153pac.2 for ; Fri, 12 Feb 2016 12:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=LFes6fhKD+fb26FLHilikLlln3WW2N1N3S1yDVqYHaY=; b=ZAgfT1/bgIYTfdshgYP9955fACMr2qLAjcov/yYLomCc0u5L+HDiFQGxx5U7pe/QyN /hL6L5AmxFJR3LZjc5ZYrsoFwn08We09ajPj0mlijpd5IUJDtdAwhkw1pL1SmZCyqOXY bWy1RjoKKXiUnaiqV0PeftwipVJaGXPsjU25W8rr0cpsku5NpXKyIrx094tURLP7dM/Y 1HrFI4PGcQ62Y1w5cyLFhP92Ir+UfNoyB7SoSR2OV2cnQq0qc1cnX4joJKzrqy7zFRRq 8JR1Kv5+WxVIDdGkcrrPYaDTtweJJ/TYvDSm8ShgqxMmkbOmnGJA/5eV1Imp6fwgBDcS weRg== 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=LFes6fhKD+fb26FLHilikLlln3WW2N1N3S1yDVqYHaY=; b=SXzlIl1a9WIgynAlfL14HFmVtTA4sWopgCI2H4Cr2/mo+AwSr5rU2DfVEjmryQrC9G h2jzdNnPMk7RP+kkMT5tKAGrMrJoclTAtlCn/qO9Yd6vfRgRf1/mJAP54KMMHxs7yEvM h2x6c+q15sBXbxP650Wi/uhnbqDsN9h4Au1tqJynLrVEDAHy7ybKl9HPoyDYD/EXHHep /UsEm8ua4OKC4lsIolISA9bsareE7tAcnWcC4bHlHTywYtb/pRqRpWfyNL8qQESPnaLQ JmGxxdkZ9Or2OUeEkGlq5ZOEKkP/TtlkZMRVw2VuOna3IwFS+vdkZozkz48iwyo4h9Cm HZKg== X-Gm-Message-State: AG10YOQCXevVhM724Vnw+cIosnj1oq41ifOvsczjzVkouTsJGnRsaexqcUlLIBtbu8e1ug== X-Received: by 10.66.145.166 with SMTP id sv6mr4893234pab.101.1455308781222; Fri, 12 Feb 2016 12:26:21 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id o184sm21370689pfo.36.2016.02.12.12.26.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 12:26:20 -0800 (PST) From: Brian Norris To: Subject: [PATCH] mtd: bcm63xxpart: give width specifier an 'int', not 'size_t' Date: Fri, 12 Feb 2016 12:26:04 -0800 Message-Id: <1455308764-47289-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160212_122642_000518_6226DF8C X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:22a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Arlott , Brian Norris , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fixes this warning: >> drivers/mtd/bcm63xxpart.c:175:4: note: in expansion of macro 'pr_err' pr_err("invalid rootfs address: %*ph\n", ^ >> include/linux/kern_levels.h:4:18: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] Reported-by: kbuild test robot Signed-off-by: Brian Norris --- drivers/mtd/bcm63xxpart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c index 26c38a107576..41d1d3149c61 100644 --- a/drivers/mtd/bcm63xxpart.c +++ b/drivers/mtd/bcm63xxpart.c @@ -157,7 +157,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, if (kstrtouint(buf->flash_image_start, 10, &rootfsaddr) || rootfsaddr < BCM963XX_EXTENDED_SIZE) { pr_err("invalid rootfs address: %*ph\n", - sizeof(buf->flash_image_start), + (int)sizeof(buf->flash_image_start), buf->flash_image_start); goto invalid_tag; } @@ -166,7 +166,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, if (kstrtouint(buf->kernel_address, 10, &kerneladdr) || kerneladdr < BCM963XX_EXTENDED_SIZE) { pr_err("invalid kernel address: %*ph\n", - sizeof(buf->kernel_address), + (int)sizeof(buf->kernel_address), buf->kernel_address); goto invalid_tag; } @@ -174,7 +174,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, STR_NULL_TERMINATE(buf->kernel_length); if (kstrtouint(buf->kernel_length, 10, &kernellen)) { pr_err("invalid kernel length: %*ph\n", - sizeof(buf->kernel_length), + (int)sizeof(buf->kernel_length), buf->kernel_length); goto invalid_tag; } @@ -182,7 +182,7 @@ static int bcm63xx_parse_cfe_nor_partitions(struct mtd_info *master, STR_NULL_TERMINATE(buf->total_length); if (kstrtouint(buf->total_length, 10, &totallen)) { pr_err("invalid total length: %*ph\n", - sizeof(buf->total_length), + (int)sizeof(buf->total_length), buf->total_length); goto invalid_tag; }