Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp685123ybv; Thu, 13 Feb 2020 07:44:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyUoyAPm/0lekLxXCe7URaOXLdVXXG9Sq3DYfiRGA7mHSfDud0S7EWPpkzgm7EYbtdqdbVL X-Received: by 2002:aca:cc07:: with SMTP id c7mr3178018oig.165.1581608678291; Thu, 13 Feb 2020 07:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581608678; cv=none; d=google.com; s=arc-20160816; b=z7fdluNEuGfuE4R6/UIQx3iK4nIWnib3sGTPCf5DgyEcFC2xtQjWD/emDOTUzEXpD1 qRpzMAR44NfMtr9kj3AIwwwZQjyA3bZZBLNCcGhKINILzzuUR//KFqqyNFrlW38CRMGM 7cp/rJti58rZxZqeYQsy9dS+JWrEFfiAhx5j8M7Afk0YqhvFyjjCzkceyGFE6Z7vIThi 4j/RCTapij+1IPV+8KA/1XwXAA1Oqzs9fdqudijEvUoVHNYqNQNtdZ+H86tWmzTfKu9H IldnqIEAmVlXjcJJ0f5dggfhqjAuJflRfOerLYuVS0DLGMqYMWNh8pam9Dytua1xJoGZ aeyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E3LZY80UklmMiBX/nZUUL2j2fuYuqtqZfxPBzCyyOec=; b=YOzAFYTabEHGlDxXUv1vgLnF/j2uWzFBaGWjpZtckZnuaqJo/8Pb0BAuYPQJaIh7G1 ZKGysnWxH9YNbntA0Jm42axbgBLX3UU3PTDw374t1CNOFqFLyP8U7piFdMy5Dz/xxL2M sRLrJl8sfJAHdvqlb87Qjs6ubGqbnR2N1SO0WUaa5UDjiP1Y7b1f1cUDdz16icTJeU8/ En9D3DPO4pteNhN2yCfac+Y2P6HYqz055u2To2qleqp7L3p5Cy1cTsBYBmBxZQN8t9qU BND3U8PWZZVc5fEWyMy2SaKKEqy7X637ow9LP1Fi9i3+DEaCbwgkrtPTqqr3Ebf99onK SMpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fwjdiSXz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n15si1290548oic.234.2020.02.13.07.44.26; Thu, 13 Feb 2020 07:44:38 -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=@kernel.org header.s=default header.b=fwjdiSXz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387421AbgBMPoY (ORCPT + 99 others); Thu, 13 Feb 2020 10:44:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:52124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729140AbgBMP1m (ORCPT ); Thu, 13 Feb 2020 10:27:42 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C648324676; Thu, 13 Feb 2020 15:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607661; bh=XWFvTXfYNzLK9xy8MuWVG8VNm3uWOjyKcLAzorH8MJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fwjdiSXzILzRzNZdDRYie0i2TMGOfeoy16SOJA378qWvaUmBTLzojv6aVF1W2vxYv 9Eiovfy/zwwsGrkTiDScepr1TC+EZN3TF9w4p/1UmtFxp/BsHP9QJUcYxpVlL/yjFQ cTgpg74dv7Gc9cVVNUQNIJJ80+TSmPEbmHPLVKIA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olof Johansson , Russell King Subject: [PATCH 5.4 63/96] ARM: 8949/1: mm: mark free_memmap as __init Date: Thu, 13 Feb 2020 07:21:10 -0800 Message-Id: <20200213151903.383922742@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olof Johansson commit 31f3010e60522ede237fb145a63b4af5a41718c2 upstream. As of commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"), free_memmap() might not always be inlined, and thus is triggering a section warning: WARNING: vmlinux.o(.text.unlikely+0x904): Section mismatch in reference from the function free_memmap() to the function .meminit.text:memblock_free() Mark it as __init, since the faller (free_unused_memmap) already is. Fixes: ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly") Signed-off-by: Olof Johansson Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -323,7 +323,7 @@ static inline void poison_init_mem(void *p++ = 0xe7fddef0; } -static inline void +static inline void __init free_memmap(unsigned long start_pfn, unsigned long end_pfn) { struct page *start_pg, *end_pg;