From patchwork Tue May 30 12:29:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 768586 X-Patchwork-Delegate: hs@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wcXxq0TkRz9s0m for ; Tue, 30 May 2017 22:30:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="QCfwmemI"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id B66DEC21C73; Tue, 30 May 2017 12:29:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0B30EC21C4C; Tue, 30 May 2017 12:29:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CCCD7C21C64; Tue, 30 May 2017 12:29:12 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id D6F94C21C52 for ; Tue, 30 May 2017 12:29:08 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id g15so24981299wmc.2 for ; Tue, 30 May 2017 05:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=UH43c8HePpwUGFeNn+G+9zNB0fSW6+iAVehYTnnRWGQ=; b=QCfwmemI0qj3IIZ7JYns9bBDv1wiR2haaf38bIc1t0wjRWqblVsanP2NI6/tH9g61T veK7f2x19cMhOfkCKttM/U9mcD9+TeMowXeiOoMRgV7YR9bB6FeqbF8QutUWT3M5KqdR 957L7hOA4uG79qK+wzUiWnB4SQTwzBi+KVqinTgz+Qemyt039NYCeqP3Yewgl7oSpw7a jor/ULGbtBz9URWhomPP3+2mI9pxcw2VKuGWELJTeOlksvXZfJBGzdVAsdyfEu8pL+x2 ucEDLJau1VtrRahkfQS08SXbvbzhlJFQMiwYvJ51VAyZVXhF3DRnkYoWZVdw6uCxRTXu Leew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=UH43c8HePpwUGFeNn+G+9zNB0fSW6+iAVehYTnnRWGQ=; b=MRyZD65Ks99jZjQsk3td5Qste+pWt6UVxIA9dep3gNNaZF2dchiogpWkX5xNSwACUR P+y/NaJP7WPlzT4gvTQI7nFIBhCYCrw/SuueM0Q9q3nTnqYbu8CZ+7x+xx2MMFukcMag mTRMpyNMNfk8mUJlN3tLl1FpP7CMqT6lvrDm7/aY2QpzUTiOFno6TbSTBTntpBTZFfLp 3isOzRfoL2vR3yKLKOTQP+x7cQjv4NMkNwMg6WPHxfr528RR1uJLHiwBkXpLygj6ibGW xxJQASO9WcAdGPbml4Bf9BSilZIoxpATYhjzSjDbWcefJ8Hx+5qrka/6OQvVJ8rxXBQq Mfrw== X-Gm-Message-State: AODbwcCyCtud1a9ZQ6QOgyAX4HF8LIE+DUvMnrGdu0FJoSt6uwySWQHz 6nVnzhOYiAi+5QHNJkE= X-Received: by 10.223.147.33 with SMTP id 30mr6784956wro.103.1496147348412; Tue, 30 May 2017 05:29:08 -0700 (PDT) Received: from localhost ([195.88.143.35]) by smtp.gmail.com with ESMTPSA id y16sm17441512wry.46.2017.05.30.05.29.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 30 May 2017 05:29:07 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 30 May 2017 14:29:06 +0200 Message-Id: <854c3261ff41183566d44728b6a8e604e3f14980.1496147344.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 Cc: Vagrant Cascadian Subject: [U-Boot] [PATCH] fs: usbifs: Fix warning in ubifs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Siva Durga Prasad Paladugu This patch fixes the below warning by typecasting it properly fs/ubifs/ubifs.c: In function 'ubifs_load': fs/ubifs/ubifs.c:942:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] err = ubifs_read(filename, (void *)addr, 0, size, &actread); Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek Reviewed-by: Heiko Schocher --- fs/ubifs/ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index cc397d605b0e..db29489eca75 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -939,7 +939,7 @@ int ubifs_load(char *filename, u32 addr, u32 size) printf("Loading file '%s' to addr 0x%08x...\n", filename, addr); - err = ubifs_read(filename, (void *)addr, 0, size, &actread); + err = ubifs_read(filename, (void *)(uintptr_t)addr, 0, size, &actread); if (err == 0) { setenv_hex("filesize", actread); printf("Done\n");