From patchwork Mon Feb 15 18:59:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 12089113 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AE49C433DB for ; Mon, 15 Feb 2021 19:00:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0ED1564DFD for ; Mon, 15 Feb 2021 19:00:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0ED1564DFD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TlAdG6aptu1cy2EM4LIXMF3BLY7EuII+QtCLDCXLM4s=; b=QX3jqGdk0QS2Rahx4+SOAmmv9C /OtJfbjZJtL3gwmbVlk51oIh14xcEBLJ6MPzu+58jiguvGck8N0QSrkWDkf6K3bxBDEAXN0wJ0J88 vMGG4aBIoLUgGPPfX6Ts0ZhRn13J5zBp6484MqBjrt3nVDmgWjNl1g3DOa+VSG7gFRLdb1yma80rJ dv+4dg5aiMLcP7hqhjDesTn3Fca0WBuwO2jhY4fcoFl5wXw/hXadaTrMCAUjKf6lc3Kkua2god+5M 7l78Zm/434PW7k2XyhHzDqEtk9lntIdVLdOHtFnlP9ia/c0gTHc21hdP2NfJg2d5WyEaXEXA7Ggah 0CR9q6XQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBj5c-0006UT-8Y; Mon, 15 Feb 2021 18:59:20 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBj5V-0006S5-BZ for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 18:59:14 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id dr7so3611436qvb.1 for ; Mon, 15 Feb 2021 10:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Iqm2gbDgR/HD7rWum600CwDEXe1PkXkY0wQYvUq3oKo=; b=bzIJEztrXYZ7DqFu2PUZlkducXLcIWEbKZ9rSfQPQovL6YHROiem0g+H4MeFbJwt+A viFLcISeUvqw8tRAoRYQCKtFgfG82lfwfS2FHIDVUKXZKEXm7Ticv7COFGY3BkcMaIZV QpQkC8SdWGxABhtzqLcxowY0rF/y67LTp2REjgZHigFVju0YstPQdxx474giKl5+eWSA htocPPzL/tv1bisAzEzBpCYghTwgAq1J4S7jjCkS6yFNcFl+u35huyigYVuTLEDrnZKW 9dHO1jXNzMi/D95tM2AAZ+VfqcUx1DqqRj8sql4keewZPJ5Mk+zkyKu5LJuCd42aHGZ2 feqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Iqm2gbDgR/HD7rWum600CwDEXe1PkXkY0wQYvUq3oKo=; b=S+xUCyulpGT3uwQ8rp/0UEqHXdtURxJjH3DwszhUKXW5EjJP2G1Pf3+FLz2QENytsw 1rupMgCF2hab+4oOqZuICM1uEf0s3vxyVOVgyovqxggoiM8hK1zomoNSFqwjinDq6/TM jg9E1O6auVCc6yu+Mlx0ao8vMJPEOO6A8yC+MjZPJlOqpQfPvLrxfYV7WJJgpqm4EhGw qLo4vTeKOf1tZ5CY2I8JDl9qL8Wv8rP4dvHd4QglHxNOBMbYIRMe9hrxqkKSjilL59I8 i47Jmr0x/yIYEKD3OJfztV8emZ8c5strNeiaH6TESLdtHXvmWHDX75nt4rCnxm+2u3zu hGyg== X-Gm-Message-State: AOAM533qlJa0mR3dUdU9S6bKc2E7IwZEI7HgHTs+sg9x5Y0i1Me/UUc8 rAL4Wg+lGyXr1AJLnJLtwmpHrA== X-Google-Smtp-Source: ABdhPJyT1K1oLcmQz7mhL/LtX4Jbyjcg7RX6uenkZcC3BlQqGtCObyWefBXxXOel7FfnrApbtu8lOA== X-Received: by 2002:a0c:f547:: with SMTP id p7mr16512438qvm.60.1613415551438; Mon, 15 Feb 2021 10:59:11 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id z28sm8173017qkj.72.2021.02.15.10.59.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 10:59:11 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, linux-arm-kernel@lists.infradead.org, jmorris@namei.org, linux-kernel@vger.kernel.org, tyhicks@linux.microsoft.com, will@kernel.org, james.morse@arm.com, ebiederm@xmission.com, kexec@lists.infradead.org Subject: [PATCH 1/1] kexec: move machine_kexec_post_load() to public interface Date: Mon, 15 Feb 2021 13:59:08 -0500 Message-Id: <20210215185908.257724-2-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210215185908.257724-1-pasha.tatashin@soleen.com> References: <20210215185908.257724-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_135913_489645_E7290DC7 X-CRM114-Status: GOOD ( 18.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org machine_kexec_post_load() is called after kexec load is finished. It must be declared in public header not in kexec_internal.h Reported-by: kernel test robot Signed-off-by: Pavel Tatashin --- include/linux/kexec.h | 2 ++ kernel/kexec_internal.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 9e93bef52968..3671b845cf28 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -309,6 +309,8 @@ extern void machine_kexec_cleanup(struct kimage *image); extern int kernel_kexec(void); extern struct page *kimage_alloc_control_pages(struct kimage *image, unsigned int order); +int machine_kexec_post_load(struct kimage *image); + extern void __crash_kexec(struct pt_regs *); extern void crash_kexec(struct pt_regs *); int kexec_should_crash(struct task_struct *); diff --git a/kernel/kexec_internal.h b/kernel/kexec_internal.h index 39d30ccf8d87..48aaf2ac0d0d 100644 --- a/kernel/kexec_internal.h +++ b/kernel/kexec_internal.h @@ -13,8 +13,6 @@ void kimage_terminate(struct kimage *image); int kimage_is_destination_range(struct kimage *image, unsigned long start, unsigned long end); -int machine_kexec_post_load(struct kimage *image); - extern struct mutex kexec_mutex; #ifdef CONFIG_KEXEC_FILE