Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp292936pxj; Wed, 16 Jun 2021 02:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtI+ySVhN4mnBFne9QKdSxOlU6tlI2EWCugVAhj5UQ31WmyunC7wje5Wc4pULI6vvxUpK+ X-Received: by 2002:a05:6402:3513:: with SMTP id b19mr2976171edd.148.1623835771665; Wed, 16 Jun 2021 02:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623835771; cv=none; d=google.com; s=arc-20160816; b=1LnwYLHGzj6m/c/vFHhWL6mKOnHj9LBJx7aY5x/RM6uNJS+euZg8VUiPP3mxBf+67I R2H3PRTYOzyjFrTAvfhSKNbqrGTbE+mKnDCtHJAx3iPS49BMLWkxc7fq2yLieAOFAIVQ lD26EZ2P+oJwYFXHos1E9lELqa7DGLLkb7Q/GXcPIq8rFEZTzsnZqKjx7JOOmvjHJGna JC9natO4l/9/PMgbsKecV7sCFKbRRSpdd2f9LJwkCACHKQ5s6CfC0dPuyPr5Goskvw9j dGJQXXUfQ8nHkLQem7XPEqS+04bYZCDl0G1xbt9JEAybm2rZpaoRLg6FjnJ2UqImsGPM rlcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=n1psC8uqjO2FD+cWoG8KVZUO03Tdt+Sz01TafQoWILM=; b=QFU9rIVM5j+4u6szuRR4lo45eUhvLQOkm9PgPQExbiUsP1t039n+lf+upDcSRLRzwr Nykw005VxFEDrebStV9eUswoodRhT/PA+B/Iau3ZLTlKkwNEU4MKbJ6c9to6eq5F9lk0 uTf0V4rxJP9OATy/IpvxLXUXSJLQSzXxLNXNGq2NNo71M1FID77ydBTVPZ1+7LfzHlZv P/Ai6V2s6dYYgRa3kMXnGf2D1GDoPrfKiXOy4L9XfFfwfDZZ9Djejk4O4Ba3FGIsEjxA 2UJKJouFZlucwckaX79a86bYO8Xfd7KbHthnhx/1p6fdpAtGVy2gXfncjQp76o+XqbCf JlFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si2103311ejb.17.2021.06.16.02.29.08; Wed, 16 Jun 2021 02:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbhFPJaA (ORCPT + 99 others); Wed, 16 Jun 2021 05:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232287AbhFPJ36 (ORCPT ); Wed, 16 Jun 2021 05:29:58 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 241DFC061768 for ; Wed, 16 Jun 2021 02:27:51 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:cc2e:97ae:7127:22f8]) by albert.telenet-ops.be with bizsmtp id HlTo2500h51zX4F06lToBR; Wed, 16 Jun 2021 11:27:49 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ltRps-0009M7-GT; Wed, 16 Jun 2021 11:27:48 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ltRpr-0060Z3-Nn; Wed, 16 Jun 2021 11:27:47 +0200 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand , Marek Szyprowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] of: Remove superfluous casts when printing u64 values Date: Wed, 16 Jun 2021 11:27:45 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "u64" is "unsigned long long" on all architectures now. Hence there is no longer a need to use casts when formatting using the "ll" length modifier. Signed-off-by: Geert Uytterhoeven --- drivers/of/address.c | 14 ++++---------- drivers/of/fdt.c | 6 ++---- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/of/address.c b/drivers/of/address.c index 350b2baa0af38497..c04fce0fb1790cb6 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -78,9 +78,7 @@ static u64 of_bus_default_map(__be32 *addr, const __be32 *range, s = of_read_number(range + na + pna, ns); da = of_read_number(addr, na); - pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", - (unsigned long long)cp, (unsigned long long)s, - (unsigned long long)da); + pr_debug("default map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); if (da < cp || da >= (cp + s)) return OF_BAD_ADDR; @@ -187,9 +185,7 @@ static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, s = of_read_number(range + na + pna, ns); da = of_read_number(addr + 1, na - 1); - pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", - (unsigned long long)cp, (unsigned long long)s, - (unsigned long long)da); + pr_debug("PCI map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); if (da < cp || da >= (cp + s)) return OF_BAD_ADDR; @@ -302,9 +298,7 @@ static u64 of_bus_isa_map(__be32 *addr, const __be32 *range, int na, int ns, s = of_read_number(range + na + pna, ns); da = of_read_number(addr + 1, na - 1); - pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", - (unsigned long long)cp, (unsigned long long)s, - (unsigned long long)da); + pr_debug("ISA map, cp=%llx, s=%llx, da=%llx\n", cp, s, da); if (da < cp || da >= (cp + s)) return OF_BAD_ADDR; @@ -459,7 +453,7 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus, finish: of_dump_addr("parent translation for:", addr, pna); - pr_debug("with offset: %llx\n", (unsigned long long)offset); + pr_debug("with offset: %llx\n", offset); /* Translate it into parent bus space */ return pbus->translate(addr, offset, pna); diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 970fa8cdc9303195..344f16bb04ccf081 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -900,8 +900,7 @@ static void __init early_init_dt_check_for_initrd(unsigned long node) phys_initrd_start = start; phys_initrd_size = end - start; - pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", - (unsigned long long)start, (unsigned long long)end); + pr_debug("initrd_start=0x%llx initrd_end=0x%llx\n", start, end); } #else static inline void early_init_dt_check_for_initrd(unsigned long node) @@ -1027,8 +1026,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, if (size == 0) continue; - pr_debug(" - %llx , %llx\n", (unsigned long long)base, - (unsigned long long)size); + pr_debug(" - %llx, %llx\n", base, size); early_init_dt_add_memory_arch(base, size); -- 2.25.1