From patchwork Mon Jul 31 12:03:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9871725 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51A44602F0 for ; Mon, 31 Jul 2017 12:14:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40D3E2818E for ; Mon, 31 Jul 2017 12:14:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35038281C3; Mon, 31 Jul 2017 12:14:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0861B285CB for ; Mon, 31 Jul 2017 12:14:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751199AbdGaMOA (ORCPT ); Mon, 31 Jul 2017 08:14:00 -0400 Received: from condef-06.nifty.com ([202.248.20.71]:52454 "EHLO condef-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446AbdGaMOA (ORCPT ); Mon, 31 Jul 2017 08:14:00 -0400 Received: from conuserg-11.nifty.com ([10.126.8.74])by condef-06.nifty.com with ESMTP id v6VC4Fxm001067 for ; Mon, 31 Jul 2017 21:04:15 +0900 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id v6VC3uoN029888; Mon, 31 Jul 2017 21:03:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v6VC3uoN029888 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1501502637; bh=8WPoOakeXs899Dbrx0kn9CHqB8lOrov4aEgb2IhAezc=; h=From:To:Cc:Subject:Date:From; b=eLQm5H4pExNXhPnC8Xs8cRCv9Zz2/WrNZjs82+RazzPhnafByq93eeunKPnRa0N7S Btt+02PUxxrOBwYMr+/k5p5oGUWS9EpnbQNRWmHowQlx/lSsbw7g1L2BBAT3om+Uwc rcX7Q4j/iY7AqM7jol1071dmhjM/1C7E3KmPO6X65vC7FrEhycCAfqejxE9f9774yG z2MGmsYSrSw2fMA3o3wUJVW3Jh+6YXusCmke+18OgGx7CmiMWR2omJdfxT3WF/I20i 0E2SsYa+0bO/a+T1ty4hJGoxTUpGlcQSFc9eUsUqA+5DFH+oxlJMssqVyB6tkiBgBs s6P1TukoE8cbw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mmc@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH] mmc: of_mmc_spi: fix restricted cast warning of sparse Date: Mon, 31 Jul 2017 21:03:53 +0900 Message-Id: <1501502633-14205-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sparse reports "warning: cast to restricted __be32". Signed-off-by: Masahiro Yamada --- drivers/mmc/host/of_mmc_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c index 85bbebfde02e..c9eed8436b6b 100644 --- a/drivers/mmc/host/of_mmc_spi.c +++ b/drivers/mmc/host/of_mmc_spi.c @@ -71,7 +71,7 @@ struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi) struct device *dev = &spi->dev; struct device_node *np = dev->of_node; struct of_mmc_spi *oms; - const u32 *voltage_ranges; + const __be32 *voltage_ranges; int num_ranges; int i;