From patchwork Thu May 30 10:39:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 165436 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp787369ili; Thu, 30 May 2019 03:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCUCONsR3BCKZTBMByDTZ+cv36ut+V+3AB7xDbnsVLYgrSwxP/DuM3MUjfKjIdkTeEwlnF X-Received: by 2002:a17:902:f082:: with SMTP id go2mr3142213plb.279.1559212814036; Thu, 30 May 2019 03:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559212814; cv=none; d=google.com; s=arc-20160816; b=HAYV+Xg5+ZTEk15TAwOdT2pp/BUhm8XJW8sjKNOaEPsMsVXxRrUN2cRPKrPhSFALwA owDyNrS7RbjSYcMKl/6DU05naLM0B4sz4N+panXyWknqYoPfr/+elY0G5z7j12um4q6N xR0GNSs+9JsVhKNJJDXbPbCZr+9Lmql/T3T4uDV8V4IY5+GwXbhL1qa6w4PLlTJDvsKF 4Q0xvc6VEz9PNZuARCsYsWx+lWKVFLFboPxKrkXollxpuOTwqYLyb3qr1N7xgnFDFam3 B8WnAJb+Wx/OWUWbDp+egvjf/OUNz9jyJ1tjwQvXheRkD3+O/ZSJ7AOs0TaJA4C3phgH w4Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=yBfKarMdVIq09NQR0PtT44QeSlRwJqdSLI3JOBOKuVE=; b=D2uEUohm5AKPxok4w6rkgKxV7eeBpVJfgbqC15RwrIrpaypIBZZC/MQ889w+HA+AkT Amh6bFAT+1rX/GEZFYTRZoMzbi57arBnMksJXAzp5jJovyI+nwFwhpttLHEKYaEjB1Xf yEgpUu3Y3yQKcVMYTVJIjSpTcK5fXXIgUQ+v0B7RmFdp9EPhwSfP3lTHIqbRWVnQt9hK T4P/+60wGC/ODNksxBI/TDvanufTV/aoMRnblGdsgezEAlh8HqRUgs/eLTKGS6EIQfuF Z6KxuVMexSFmsvSPFcxrfJyNn5dAMcbNNe7GGHe21hE3hVftqsU4Ns0qmG9+C2xi73zb m5MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Iqr/sqJb"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si2939509pgd.256.2019.05.30.03.40.13; Thu, 30 May 2019 03:40:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Iqr/sqJb"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbfE3KkN (ORCPT + 7 others); Thu, 30 May 2019 06:40:13 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:16700 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfE3KkN (ORCPT ); Thu, 30 May 2019 06:40:13 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x4UAdVWM014412; Thu, 30 May 2019 19:39:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x4UAdVWM014412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1559212772; bh=yBfKarMdVIq09NQR0PtT44QeSlRwJqdSLI3JOBOKuVE=; h=From:To:Cc:Subject:Date:From; b=Iqr/sqJb/AsaRdwPGr99isNaEy2NgeA/D3F6dMppQChx5OD9k7bipp/f2Gozo4rXM ly1f8ceK77ecPzu0IlTO0enL80HP/AvMlHScxouQthD0fwFa4XyFv/rBEsQYV5x23F hNMTCxn8A8l6BeaN9zwDYrtfYuG3cgS+16kvYDTxAjyBuam0VMUp1j6HT+SPUk6rLz F7AqFJ6vdZBSdcuXP6UCj22CJyxhJGC10qD8I9RvReNmtzIm7qSaf1hTd9BYYtIqlF SSWLVw4GZYOEbLX2KF5gw8FZ6chyamZIYcU575/SiT2azy/2NfGnXlcM31zJtgHLPX ISUs/o92JRPig== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org, Rob Herring , Frank Rowand Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] of/fdt: pass early_init_dt_reserve_memory_arch() with bool type nomap Date: Thu, 30 May 2019 19:39:27 +0900 Message-Id: <20190530103927.20952-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The third argument 'nomap' of early_init_dt_reserve_memory_arch() is bool. It is preferred to pass it with a bool type parameter. Signed-off-by: Masahiro Yamada --- drivers/of/fdt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Frank Rowand diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index de893c9616a1..b165e8b3a347 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -551,7 +551,8 @@ static int __init __reserved_mem_reserve_reg(unsigned long node, phys_addr_t base, size; int len; const __be32 *prop; - int nomap, first = 1; + int first = 1; + bool nomap; prop = of_get_flat_dt_prop(node, "reg", &len); if (!prop) @@ -666,7 +667,7 @@ void __init early_init_fdt_scan_reserved_mem(void) fdt_get_mem_rsv(initial_boot_params, n, &base, &size); if (!size) break; - early_init_dt_reserve_memory_arch(base, size, 0); + early_init_dt_reserve_memory_arch(base, size, false); } of_scan_flat_dt(__fdt_scan_reserved_mem, NULL); @@ -684,7 +685,7 @@ void __init early_init_fdt_reserve_self(void) /* Reserve the dtb region */ early_init_dt_reserve_memory_arch(__pa(initial_boot_params), fdt_totalsize(initial_boot_params), - 0); + false); } /**