From patchwork Mon Jul 9 15:57:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 941402 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NF0SYM2U"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41PVPy1LpMz9rvt for ; Tue, 10 Jul 2018 01:59:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QxoASPEyrIWJ6gRFAMaadv10VGweecLss/irzhJNHSs=; b=NF0SYM2UiOPifYv1ouarSP/e/P Eg/2JkIBhQ+cn0humlCXRpvkEhGjNmjAbdz/dOHaJbDpD/FVhbVxI1AU6igp0TGQtlIjn9JPC4QbF n7qN8KdMTGyXE2DLummVqKNQG38FzLuPtBJ7OJOoAdaCEaeHAxMuX2m/P9Vps1JaOja+v6JfXL2u3 xuPzY5B54t7PZSSOPp032SWpWlSSRr5Wv8b9uGPVJWpU5mo5uai8oIMRJnqol3+3P5bfHtccU332O d0hOarNxQpG2+0cJM6H2bHx3nWbVUmpXtQuhq3UyirXD3i6UK858rOyTDOEz/eGhcgdhgJXSbbHfs kMUJVdig==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcYZ8-0007zw-7X; Mon, 09 Jul 2018 15:59:06 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcYYa-0006us-NN; Mon, 09 Jul 2018 15:58:50 +0000 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LhNMu-1gOrsJ3LlI-00maWp; Mon, 09 Jul 2018 17:58:04 +0200 From: Arnd Bergmann To: Boris Brezillon Subject: [PATCH 2/3] mtd: atmel nand: fix build warning on 64-bit Date: Mon, 9 Jul 2018 17:57:03 +0200 Message-Id: <20180709155730.2422841-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180709155730.2422841-1-arnd@arndb.de> References: <20180709155730.2422841-1-arnd@arndb.de> X-Provags-ID: V03:K1:c+dyJrgBfWh82vW2V2LsrYOJDpfCWcJnKt7zsAaCGvu5HDWD4UZ 4Wpdd7nX+So7cJLlksTteChSOs+kLr8WUcKUIo5zRjWMgiyjwBNseoZ3mGQav2UMeJrDCox fQj7nIJqBllgbW8Mw5BEVdotBxaygHHJW/tHBhJfIbr08viTfntFCZxOxQH/Y5V7AWLtbVg OmlGwuLWqxVaLbW0/kxlQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:tN3BDP4gkMo=:gxpR7gzPxnst2CeETPdXhc 3Z1+rDyiqthkDyuWxCjSSMmfDYqW14SijW0wbrG/Ndk/CUAaE3BnG0OcArX0Foi/Px4GgAqhf CfR7AmGwelVFlF4RJjafyrHCuCHjPMidp6Yei8nR/4fqbK2HaLT1ZvsRXh6k07+YxUCorT+Ze kpfTkONYv5lxTjU0EpF1viO/PUZksrLBtEQ8d8Fy1PA47jo7CkVizkcQx54C+jVfuvGZK7Ct7 1sV31Zpf0QsWeuiomGJxvwmBqNd2hnWQj32kxgdKenJKuqBFE0+XUyNk0Cm1OesJK9zm7HnML unLVbJ3jEO/q5X7anHSSHXt54f8mKoBe6FSqqkZkVE7fnXOqQWsIFZi+4QutxbNZ/8n/voXFI nd85sa+o7a4LfSuao1bzkB1sL6MN09X2tWZdiVbTvk/HlTsuMmcZkbhuBJmqaXS5XhjEF0FiL XMnNdFpyo9UqrgT2Er4IcmSJzG3bG9qHeq/i0p3GW1QVLHhF0fj7AkGkwT6X+VbIsTv9lWaxg Nf0LK5eMphS/55R8HPzM6AnAJuufJly+bJZR8TzA05RYzsP3gN9C3UwBXAFtgc0V4X6zkkF1C uydq3ul9gILTZh3eG5qaIYv0zngoy4I0E1hj30yjco0hTAT6ayzZ0r0FHndwoFuvuKr30FXbr bZP6BUKBeumldwpSJsXTC/rv+OGW6DENyBHeaGdQiQn7xNXPasi2Q4TVMozh+34VCkU0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180709_085833_579776_A39EC17E X-CRM114-Status: GOOD ( 14.36 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [217.72.192.75 listed in list.dnswl.org] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Arnd Bergmann , Wenyou Yang , Masahiro Yamada , Richard Weinberger , Gregory CLEMENT , Miquel Raynal , Nicolas Ferre , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Josh Wu , Romain Izard , Brian Norris , David Woodhouse , Peter Rosin , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Build-testing this driver on a 64-bit architecture produces a harmless warning: drivers/mtd/nand/raw/atmel/nand-controller.c: In function 'atmel_smc_nand_controller_init': drivers/mtd/nand/raw/atmel/nand-controller.c:2053:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] To cast the pointer correctly, the destination type should be uintptr_t rather than a 32-bit int. Fixes: c2f3d0b913a5 ("mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y") Signed-off-by: Arnd Bergmann --- drivers/mtd/nand/raw/atmel/nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index e686fe73159e..e8f7549d0354 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2050,7 +2050,7 @@ atmel_smc_nand_controller_init(struct atmel_smc_nand_controller *nc) return ret; } - nc->ebi_csa_offs = (unsigned int)match->data; + nc->ebi_csa_offs = (uintptr_t)match->data; /* * The at91sam9263 has 2 EBIs, if the NAND controller is under EBI1