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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 2BB1CC433EF for ; Sun, 12 Sep 2021 03:15:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E4876113E for ; Sun, 12 Sep 2021 03:15:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E4876113E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B3A13838D4; Sun, 12 Sep 2021 05:15:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oRn0b+74"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F4D8838D6; Sun, 12 Sep 2021 05:15:29 +0200 (CEST) Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 541B4838CB for ; Sun, 12 Sep 2021 05:15:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pg1-x536.google.com with SMTP id t1so5912957pgv.3 for ; Sat, 11 Sep 2021 20:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=EUSZj7EwSIlvi5kivUP/n36i0FrraTTOlgDvUJiYYuU=; b=oRn0b+74V25Mu4FgYKfUfHsUqYhEdi5Z9QSUZUIaTzJACYDoXQuj80VUOKiyLgX+AJ qwBSqU7jxjmTEFtVkE7G2dYtH8Oa3r6e748j/h1++OZs8+laf8PNV0GlYMcYmV76RxUG ZQ1otTsPV+GaVvsRprb4HH9HUYR7kt1igD0qI2PRgxsmhExHDs7CU++BHH4l/Resx3y6 +Z9sJ5SyDle97eoHmJ7mzLx2CH7GcIuWNQdahS5/o1G+zbZXAXSg4P4ieml4tqmHwJNC SiTa3rjVuf2BgM+Q7gHuKB0wirUfDgx6vWtJmsUWLq3ujmMq+Z+5pH1kgqFOagvGZguJ REKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=EUSZj7EwSIlvi5kivUP/n36i0FrraTTOlgDvUJiYYuU=; b=XCkSuxLvTwbtFPzWhJbDpLe84kh3wfzlo7Rt5qedH4oNA/ONnKFAod7uj2RQmLbYl3 UKKoPxydVMjy58EUl+dLSWsAtXYBsGQr9n/AX9NugbHtaTS1j4aZUzzhNwb1lqs3BFnL YeuXgzvppS4RW05gb6XhBcZZpAIYvrqPs949Y/Jc8yonLbwe5rz61ZIb773sfNfzY/OA oNOlwuwynJ6VeE1yc9/mC57m/VEPfmaICZAY2oya5UpMP29vj0y5J8s20lfa59KKb1/+ IHo2BAwvfOhfEO+ZpkoZGbScKo6K3LteyftCBbvdCg/egjsjmQsgiUcdiNhGhzf8rAYc 2dvg== X-Gm-Message-State: AOAM5313OCvW/+UvneDigdsfI7BASVA8txcL2VydFf1tt6+O1dqxIv0T xhcPfUoD1VxWWbkjlDTN494= X-Google-Smtp-Source: ABdhPJwgBjGGFLbm+eAnK1F+UbBxEgzYFWClGXROgVt9Q+R6/DAEVxdQ2MO2tEsMXzj2QHYXIKna/w== X-Received: by 2002:a63:204a:: with SMTP id r10mr4915906pgm.365.1631416524627; Sat, 11 Sep 2021 20:15:24 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id z9sm2924300pfa.2.2021.09.11.20.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Sep 2021 20:15:24 -0700 (PDT) From: Bin Meng To: Simon Glass , Rick Chen , Leo Yu-Chi Liang , u-boot@lists.denx.de Subject: [PATCH 1/9] cache: sifive: Fix -Wint-to-pointer-cast warning Date: Sun, 12 Sep 2021 11:15:08 +0800 Message-Id: <20210912031516.24885-1-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The following warning is seen in cache-sifive-ccache.c in a 32-bit build: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Fix by casting it with uintptr_t. Signed-off-by: Bin Meng --- drivers/cache/cache-sifive-ccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-sifive-ccache.c index 76c0ab26ae..c8766f6242 100644 --- a/drivers/cache/cache-sifive-ccache.c +++ b/drivers/cache/cache-sifive-ccache.c @@ -38,7 +38,7 @@ static int sifive_ccache_get_info(struct udevice *dev, struct cache_info *info) { struct sifive_ccache *priv = dev_get_priv(dev); - info->base = (phys_addr_t)priv->base; + info->base = (uintptr_t)priv->base; return 0; } -- 2.25.1