From patchwork Tue Feb 4 06:58:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 3574171 Return-Path: X-Original-To: patchwork-linux-spi@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 89CA99F2E9 for ; Tue, 4 Feb 2014 06:57:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A4CF2017B for ; Tue, 4 Feb 2014 06:57:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B5732017D for ; Tue, 4 Feb 2014 06:57:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918AbaBDG5h (ORCPT ); Tue, 4 Feb 2014 01:57:37 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:55840 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369AbaBDG5g (ORCPT ); Tue, 4 Feb 2014 01:57:36 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so8050145pab.26 for ; Mon, 03 Feb 2014 22:57:35 -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:mime-version:content-type :content-transfer-encoding; bh=EVjPVCQavuXJk6mJq2ITllgaSE6+NILC+tneZBrPnZ8=; b=Mpq3gtZSs2shTffe8tg/UhuGyyLzVvLZKPf0M0FPDx/8PkBYD61pi3HSj7HCW/mf/Y 0J5wbbIi/NkCmh850pYVFijx0Hw2StH1P2758HnWpTOC5ohI29p3jdn1zXmdnbu9uM4l kGmRzOkxfOB6Av13tVa4fDf+xxTq/DA1Dm8erXXMvTn7EdYSXbvveACFn7jGzYBa0KnN ULxx84T57kh5j4q1+0YXj31ZPxgHH/yd9BN6bPYqZ/X9i+w9w56YbNxMxEap/IsoBw5q 3XcNwDlyvpEbnt35xMMzfzWESHsJiaP+h5h7QcekTJazVei8Pla42mxgPG0NbJphOL08 jOCQ== X-Received: by 10.68.232.132 with SMTP id to4mr12260723pbc.141.1391497055582; Mon, 03 Feb 2014 22:57:35 -0800 (PST) Received: from localhost.localdomain ([220.117.200.27]) by mx.google.com with ESMTPSA id pe3sm62894967pbc.23.2014.02.03.22.57.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 22:57:34 -0800 (PST) From: SeongJae Park To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH] spi: fix pointer-integer size mismatch warning Date: Tue, 4 Feb 2014 15:58:09 +0900 Message-Id: <1391497089-6831-1-git-send-email-sj38.park@gmail.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Fix the pointer-integer size mismatch warning below: drivers/spi/spi-gpio.c: In function ‘spi_gpio_setup’: drivers/spi/spi-gpio.c:252:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cs = (unsigned int) spi->controller_data; ^ Signed-off-by: SeongJae Park --- drivers/spi/spi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index cfc9fb3..406bbd7 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -249,7 +249,7 @@ static int spi_gpio_setup(struct spi_device *spi) /* * ... otherwise, take it from spi->controller_data */ - cs = (unsigned int) spi->controller_data; + cs = (unsigned int)(uintptr_t) spi->controller_data; } if (!spi->controller_state) {