Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4271320pxt; Wed, 11 Aug 2021 01:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznFmJ/2OWdF6Keg79DdjLIchCIS8UFU9yG9aFtU+FY2PCtJotA1oy2XZt8EQz8fcXfzWAw X-Received: by 2002:a17:907:3d93:: with SMTP id he19mr2618741ejc.179.1628672187119; Wed, 11 Aug 2021 01:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628672187; cv=none; d=google.com; s=arc-20160816; b=f+5VLCm76rIzmcivIDdRkrEMgGEJkJS7ODV3QUn6MZKTTCsczgdqegc4OTcQOUe+qU 1t6sf2Xyc5sc+aERiI8zhuQY0e0d0wpWQAktxSxHnsBoCoLI4Ps22BPRT3BDD60Zq4DB m/xz72+f28UjdM/0Hz7JqdOC4sS6a4Lpu1iHRsz5gbK1+qgHoya5BZbCeJXAsksxwqWf ga3N4yPPAGghHNCuXWFDGHVretYYVbhuC+9pxlSfClyzDCN0f+6l71zTMCNZpSwMRjKD fl2nYqvttVuoqUNc2VjF/B2VHrY36ya069uFznFfCB5I2zmjjXLALD/QIv1SFjIVlEMP Z36A== 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 :message-id:date:subject:cc:to:from; bh=w6HOisEQBmcezC4nyY36Ax6HNulA6m7mevMlNNaXte0=; b=IUYVx0yoiObP7gEVH13W3ylFV8x+C0jGBaha2VtMqdzNMcJukb0HfdD/+vwFlRANIZ AkWsfqyOtkEonapo+Lg4QkI8wSqgQksE2cf4qgXEzffcsgQLDthzpW1rfFt+YSJRmYtI aAaDAzZ3T0Q2PW2l91gk4I9WY35nul/GAPRJp8OOPwhH5RmFydM0ik/Rb4yk7YpZFbcF mJpoSGOLdsOXPJA/eNL2pEpqVx7coOAmJHcvcyJ0lMjZkOggZt/kzZFTxbkEllTP3nWz t0txiUqBGCoRlC74vt1Z/yjv43E/jvCK1pfANcA4q4llkhoQ4etMBk2GqY1GdoUEMk4A XOBQ== 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 n9si21720672edw.373.2021.08.11.01.56.00; Wed, 11 Aug 2021 01:56:27 -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 S236255AbhHKIzF (ORCPT + 99 others); Wed, 11 Aug 2021 04:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235282AbhHKIzF (ORCPT ); Wed, 11 Aug 2021 04:55:05 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E73BCC061765 for ; Wed, 11 Aug 2021 01:54:41 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:438:1ff1:1071:f524]) by laurent.telenet-ops.be with bizsmtp id g8uf2500p1gJxCh018ufmu; Wed, 11 Aug 2021 10:54:40 +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 1mDk0V-001yim-KC; Wed, 11 Aug 2021 10:54:39 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mDk0U-0059DD-WD; Wed, 11 Aug 2021 10:54:39 +0200 From: Geert Uytterhoeven To: Mike Rapoport , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] memblock: Add missing debug code to memblock_add_node() Date: Wed, 11 Aug 2021 10:54:36 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All other memblock APIs built on top of memblock_add_range() contain debug code to print their parameters. Signed-off-by: Geert Uytterhoeven --- mm/memblock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/memblock.c b/mm/memblock.c index de7b553baa50004c..57a9849a5d820c34 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -665,6 +665,11 @@ static int __init_memblock memblock_add_range(struct memblock_type *type, int __init_memblock memblock_add_node(phys_addr_t base, phys_addr_t size, int nid) { + phys_addr_t end = base + size - 1; + + memblock_dbg("%s: [%pa-%pa] nid=%d %pS\n", __func__, + &base, &end, nid, (void *)_RET_IP_); + return memblock_add_range(&memblock.memory, base, size, nid, 0); } -- 2.25.1