Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3202021pxk; Mon, 21 Sep 2020 07:45:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy9Y++FW5QqaRIhR6+8DKlIapigKkL2HpkHjFUigXwbHXkJObyFvBEOaLi8YoMM9Qnq9iv X-Received: by 2002:a17:906:2681:: with SMTP id t1mr33725388ejc.474.1600699555803; Mon, 21 Sep 2020 07:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600699555; cv=none; d=google.com; s=arc-20160816; b=HKvkJbVDjDGzbYGL61iL4R6a2PRHkOmQHolsPDO1jKdjNq25AYXNiVMgtUDdoIyxqd 1PsYqXJHTdgvdATX1WdUXWbLNjRfvWtmXxPoW5qpGtvKvC0BCSxEwootA8/wfLKoWsV1 m8LdFskBNyXePijNs6FoI1jeXKVhd6A5BMgBbZBjh7qltcwIm9x0n/QFc95OUN8NvGeU gGIxdY6fWcChsFmGVis9AEJuTs6341MpNfhtN2mqBUoBs5ohXRt+46/EI7XpkemWdp58 QsNDH5tnCFq38+yC44H0SDrwQg/uKpvWIs4BSFxXit6RWEhHWbkcjg2MyQdHtiamYoXx jYcw== 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 :dkim-signature; bh=WZQXosSqMMy0ciBH8+k0nG55g1l1MoTdHJ2cQIRGwP8=; b=Nsh5q7yfdw4uizQmU3cdxqREmSfHMZZ7atVmdH8pvanILQMS2h7CXTniRrlX+RBaAB IWYccp6/+PiJyJFC/o2FJ8I2wA+AnkAlREHNoWBznWm0iKFw6Iqtj+stnRWa7rs7z1Rg xoSE5pPC2PYI0hK8sdScKiPMIwjtqJ9V1wumjuw/2bKKJF6KWHKfi4upbv38fMTCqom9 +tx4pAfO67UjHZeAhA8m/Ls2aeQmHyrA39c5dxKAu4mcssyuLZB2Oy/8pq9xOEJIErb+ wqVK/zwKFz3Dwip3su7N55oRtK/AwPbV0g2KQoB3JIbPyLFvSsV/imXIripCZ+Y1m3v6 QbDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FAQOZ4pC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl4si9612296ejb.752.2020.09.21.07.45.32; Mon, 21 Sep 2020 07:45:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=FAQOZ4pC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727916AbgIUOnj (ORCPT + 99 others); Mon, 21 Sep 2020 10:43:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:49296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbgIUOkk (ORCPT ); Mon, 21 Sep 2020 10:40:40 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1F4123447; Mon, 21 Sep 2020 14:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600699239; bh=di3yULSM4+hdbZ5tqj+v7wIYucgeKwIWjwz7F8NA8nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FAQOZ4pClGVlUCtanFVydWrYg8nozVjJUpV98i39PDT5RzbqF1bIe/hhOd2fEuPOx 2pwgTSyrFinFNX1JTbd4Y+oTXhh4JCLoRWTjqdKNSsT8BpVqnAutvt7slgAh92iqSw 0rxW9L1y5y+PhW0MzPO2zNC76WfpD56u95Fb6Q94= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ilya Leoshkevich , Heiko Carstens , Vasily Gorbik , Sasha Levin , linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 09/20] s390/init: add missing __init annotations Date: Mon, 21 Sep 2020 10:40:16 -0400 Message-Id: <20200921144027.2135390-9-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200921144027.2135390-1-sashal@kernel.org> References: <20200921144027.2135390-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilya Leoshkevich [ Upstream commit fcb2b70cdb194157678fb1a75f9ff499aeba3d2a ] Add __init to reserve_memory_end, reserve_oldmem and remove_oldmem. Sometimes these functions are not inlined, and then the build complains about section mismatch. Signed-off-by: Ilya Leoshkevich Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/kernel/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 07aa15ba43b3e..faf30f37c6361 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -619,7 +619,7 @@ static struct notifier_block kdump_mem_nb = { /* * Make sure that the area behind memory_end is protected */ -static void reserve_memory_end(void) +static void __init reserve_memory_end(void) { if (memory_end_set) memblock_reserve(memory_end, ULONG_MAX); @@ -628,7 +628,7 @@ static void reserve_memory_end(void) /* * Make sure that oldmem, where the dump is stored, is protected */ -static void reserve_oldmem(void) +static void __init reserve_oldmem(void) { #ifdef CONFIG_CRASH_DUMP if (OLDMEM_BASE) @@ -640,7 +640,7 @@ static void reserve_oldmem(void) /* * Make sure that oldmem, where the dump is stored, is protected */ -static void remove_oldmem(void) +static void __init remove_oldmem(void) { #ifdef CONFIG_CRASH_DUMP if (OLDMEM_BASE) -- 2.25.1