Received: by 10.223.185.116 with SMTP id b49csp2025783wrg; Sun, 4 Mar 2018 16:19:21 -0800 (PST) X-Google-Smtp-Source: AG47ELsQ80V7zMysgMTuVUfjodc5km0y+t68wsr42Q75SGyKhJYYy1p2iQ4GD0Hgr5UKIvD03BxD X-Received: by 10.99.171.70 with SMTP id k6mr10947941pgp.355.1520209161633; Sun, 04 Mar 2018 16:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520209161; cv=none; d=google.com; s=arc-20160816; b=WIZ+Jk0vMw/OZ/TKn9JEeyEmSfbpG/b2fEJ6jtto44KHqU5t6nmwEcGTkSZ1HLE+gX yGOjUSBn+wYifCacW7VZpFVsj2cmULqdj0b3OemxO+7sef3xx4YCt+ald/NAbsSLDD8m ZTVJKW46j0urOEhb04kDRdWjXimJQhJk53s2gRk2EXf5jKnnK21+UrASefZdCGfGVfJK Iv26/kcU5/MNffA+H/VP2P0E17xcmBuZjjkza2s3X9VNJZDAP6gCUHov+ubT2RDYqowj YyWPylcQpBkbQqcg6RE8J5Me8faexwFEKUJNzINE+KllYAjJj14gaOg0p5jbhAAiFirL DlvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=CbGmcTT+iSSzKeFQ2QV6oCJTIuSyIeAbkrxG255LS3I=; b=HP3E43IKY76FY+qk2TQoeELMaNuISB+FELq/xCFPcIp8sWB6yOCP7G2JCg73sKhlDX NnWU5gdP1fqLh+zj2dTMgGPpWKSIRPhLEn3p4ughO32e0Rq8pcUk2PPOHzUbi6tXwIMS haQdPCQ+UrMS9xUR+Cj3f140sydlE58ht9nQuGefW02ogY7CxOEWbFjNvMQRiwdhsjIz MAqqEB6U/6lxQqDlw9mRv9N9wvH6DDilnVaPDXvbXUSSy8ZMeFkHfNxeyw79QNuRLBaX nsi9C/IHP9MkwwQRhO1crz0mh2yIASaExyvzgCfsJ9DQAAT40WhV9iN93h1TTUeFhd9X GiAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iBS3KImY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si8286819plz.782.2018.03.04.16.19.05; Sun, 04 Mar 2018 16:19:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=iBS3KImY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932567AbeCEAQD (ORCPT + 99 others); Sun, 4 Mar 2018 19:16:03 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33421 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932426AbeCEAPi (ORCPT ); Sun, 4 Mar 2018 19:15:38 -0500 Received: by mail-pf0-f193.google.com with SMTP id q13so6481650pff.0; Sun, 04 Mar 2018 16:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CbGmcTT+iSSzKeFQ2QV6oCJTIuSyIeAbkrxG255LS3I=; b=iBS3KImYm/Voaw8jT2Vd180A7kxs3BK75DVdFAu3HHWby8aEwsiS+TbaiNJhvzHDso NKlE7fOY5kQHz77E57YcFMY7zA/BF31nVAV+1VlSPfD6AsTz2ltR4g+NpvlJCRrklv+w z4JdwosRc3DH/GwpH4NBfH7kNU9Y5UgwBHfUxhmEDVB7feqWO2Rj6uEOMCfnzpvb9IBZ yv5r2gqFH3/RtAu+0/tGmA4ovEfN8yftf7rpqsz9EuqxUpYkl+41y3uLGAMJ1nJ0Ckc0 NBnOg0eGEDt790ddC+dGVTDXFyKa+CqePaJ3UXljJ/NDhPBgVtaaryUzPK4QfGij7uoI sJjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CbGmcTT+iSSzKeFQ2QV6oCJTIuSyIeAbkrxG255LS3I=; b=IucKsc237KgJNeGuJPrOZe5gRGyPouUxU3HXyWGTLTzt1Xt9rQWjPiIKZKDwgEfVNb N0HpNuj2Q5KbjauHnmWwqL6b5IuejnMPly8pwo24e0vWdn1RvtfuqaFGJIMP8d0aUCJa 1YYxJuZmdK9F6orTn7fcs91xJjP93TQMN5qDXt5Al7HWyISyNtHv9WzHyYRl6bvOI7z5 7NSeqM/Z4gm8rtUCURHes9ez1naa5o/VsPE/lMXJca0rvhB7EOtUIJrg5GVKifCrlDPs PcQkJ0HnTfI8IhVCswmnA9SkSU4NBsgpCo7wlUwUhVFukDLPjP+H8VXanRJrbEO7LujT 0s+w== X-Gm-Message-State: APf1xPCObS/WFLjhuGUqcTC89GSWu4Bl/MDOM4JeKIYGZ7EEz1vFDv+z LpntVVNui5Lo44Dy4WHHqjM= X-Received: by 10.99.126.14 with SMTP id z14mr10940653pgc.429.1520208938406; Sun, 04 Mar 2018 16:15:38 -0800 (PST) Received: from localhost.localdomain (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id c7sm23113891pfg.36.2018.03.04.16.15.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Mar 2018 16:15:37 -0800 (PST) From: frowand.list@gmail.com To: Rob Herring , Andrew Morton , Michal Hocko , Catalin Marinas , Pavel Tatashin , Vlastimil Babka , cpandya@codeaurora.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] memblock: add memblock_free() alloc when CONFIG_HAVE_MEMBLOCK is not set Date: Sun, 4 Mar 2018 16:14:48 -0800 Message-Id: <1520208889-3908-3-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> References: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand When CONFIG_HAVE_MEMBLOCK is not set, an error version of memblock_alloc() exists. Add the matching memblock_free(). Signed-off-by: Frank Rowand --- Andrew or Michal, can you please ack this patch to be accepted by Rob? With "of: add early boot allocation of of_find_node_by_phandle() cache" applied, kbuild test robot reports tilex architecture build error due to no prototype for memblock_free(). The version of the patch that kbuild test robot reported was "[PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache". An updated version of that patch is now patch 3/3 of this series. include/linux/memblock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 8be5077efb5f..d6973b1d92bc 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -432,6 +432,10 @@ static inline unsigned long memblock_reserved_memory_within(phys_addr_t start_ad return 0; } +static inline int memblock_free(phys_addr_t base, phys_addr_t size) +{ + return 0; +} #endif /* CONFIG_HAVE_MEMBLOCK */ #endif /* __KERNEL__ */ -- Frank Rowand