From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B1A4C43461 for ; Wed, 2 Sep 2020 20:50:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16AED207EA for ; Wed, 2 Sep 2020 20:50:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HKmYxNxt"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="X5jBvMBS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16AED207EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fqjgb9ie+V+Qhu8AOHazKDViWAqk1VgBzofEDq4KQQs=; b=HKmYxNxt/62nAPhwFHyzk93cIy z/1BQVSDXCJ/Zzpt7YpOAwTFPAjt1SDdpqVeJrAtG2e+5hgRz+Zz9Ra09x0vEBBb4TN/mj+zNphU1 Z8XsGaPMfwRXzTGJJzizl1kgF/rTtF2ZBfnHb8o7dWSOOsehlmM8IuLZE3fuV4n3+iyXOpdywEMdl fK427QNZaP5MixFxCnhlNjX4astuS3yA8FaWDdnNZ4XizDa0Z9y/iJDfArpPxafy5dbn8KhHoGXyw OS9wZPddTSeH7tlhGXFcdaHh0yMsxL2EyBFAHRXPLmp2784XYSM0uqsz0dbw7/WwcIZRTDzWSkPJH KLPtgp8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDZgp-0007DV-Be; Wed, 02 Sep 2020 20:49:07 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDZgl-0007CO-0z for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2020 20:49:03 +0000 Received: from kozik-lap.mshome.net (unknown [194.230.155.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6DAC5208C7; Wed, 2 Sep 2020 20:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599079742; bh=s+F12H96PgtRNsd1OHfWDfQQChwh5OhgEc9C9LdXm9Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X5jBvMBSiU0fnDH4PWicRH3OqFscHWmjwayDx66UpI40A/o8ofDnneqY9E2Wc0NLo zDSTOqsxYqszZ5pUR8x6Sc+fK3JyQo5k0HRNxyPSYPg1RWRmzOGtiZdsotBi/zlgYy t4Qkj0Bans2B565n+00hI6Eeq/7D8qFNiC4PCGZM= From: Krzysztof Kozlowski To: Ulf Hansson , Ben Dooks , Krzysztof Kozlowski , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] mmc: s3cmci: Cast driver data through long Date: Wed, 2 Sep 2020 22:48:47 +0200 Message-Id: <20200902204847.2764-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200902204847.2764-1-krzk@kernel.org> References: <20200902204847.2764-1-krzk@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200902_164903_163511_00CD24AD X-CRM114-Status: GOOD ( 14.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since driver data is a pointer, direct casting to integer causes warning when compile testing for 64-bit architecture: drivers/mmc/host/s3cmci.c:1495:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] The actual driver data can be only 0 or 1, so cast it via long and do not care about any loss of value. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/s3cmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 3fb597095079..ac94f926624d 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -1492,7 +1492,7 @@ static int s3cmci_probe_dt(struct s3cmci_host *host) struct mmc_host *mmc = host->mmc; int ret; - host->is2440 = (int) of_device_get_match_data(&pdev->dev); + host->is2440 = (long) of_device_get_match_data(&pdev->dev); ret = mmc_of_parse(mmc); if (ret) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel