Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8278474pxb; Fri, 19 Feb 2021 11:53:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUVPh+EacDfJM2HGVVN6Cta/zV5TBF5rJdsVQNdn6qvwkSRwoZoXjJUZHQcf1wHi7MEIXV X-Received: by 2002:a17:906:1f85:: with SMTP id t5mr10590203ejr.530.1613764403924; Fri, 19 Feb 2021 11:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613764403; cv=none; d=google.com; s=arc-20160816; b=voQkkBkBQoX63ICWfFYrxBEQXuo0ME1jTckRLvQH0JO3juLTbhWPhHci4Fnf+oukTf mkg1LrvyF4EH+gkKD+XSmP3tAXJk1IcKwe/q3QBywqaASnKLKCTK0BmkN+0VKS20x4GH 1epyv5EApQXi7fDbtkEsJzPVxJj5Ky2owL9cgu4RwInPyvV3aIB01+Mk7Sfej4xGuL8c L6p47FHXC1AltKYhBP3t5qnFNXzopSbpmBszZdKJu6iML7h2TRTLmxurm0nFBWWT3V24 3cMPPnMsw/iFmbaT+03v//AhMjluAEKy6hnnRsLx51x/Yc4g2nilUB3MX28qUjnGueqg S9ew== 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:to:from:dkim-signature; bh=UqokZIMMK8aC34B+KeiFCW275H8P/pPHySRTbbLs8og=; b=hNq0ldaGi4Bye3pDfvbb22iFhRMzUXhgaRX6/LgArTQjmjYqegOq4sDnq7GVyn+rkW vNHST7UeY5zO3W2cYdFBMAjDXXqLB0u/mN2yTTq3ZtAhP3w+iqvBOMW3AB75IH/LXLpB QtRXVMB0dqzYJkrd12ltS3/2vtWzLCfzVCwmRjyFbCP3WtSB3a5YpwpJZGTBF65w+P4c VXvmFooLT4xuyX6e1cFB9wl7tpleOIFKZscn0XcfvIQLAXTOmwHFWrC2TQvolqZ/RG7T fbYPrpTi1ysy6vhJ69F9afJTmZacMsqYVKbIMegfiBpcyYOrNr8I8mPayp16JPoU2CLT NbcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=iwXazviB; 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 r16si6581981ejc.439.2021.02.19.11.52.57; Fri, 19 Feb 2021 11:53:23 -0800 (PST) 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=@soleen.com header.s=google header.b=iwXazviB; 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 S229763AbhBSTw0 (ORCPT + 99 others); Fri, 19 Feb 2021 14:52:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbhBSTwZ (ORCPT ); Fri, 19 Feb 2021 14:52:25 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26715C061574 for ; Fri, 19 Feb 2021 11:51:45 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id g24so4826650qts.2 for ; Fri, 19 Feb 2021 11:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=UqokZIMMK8aC34B+KeiFCW275H8P/pPHySRTbbLs8og=; b=iwXazviBnhZbDsAGWJ5xN0xWYMsrMY8hW7aaidkSL8gG1ktLKKJah9783TJZe87anL 8OfebB7HAKZsup0izD0dbrIlIJWaMgevxubMMovv6zDmMhg/jEnnbEeLhecN0TiiKIso CvXPxhwxSDLdF8P5D5er1s4ghaYtBCoM66oGhRPEyH6L8XmVh+8PK8o7ZlX1VxXN4Uj/ EKboaR1l/m8sINFC29RhOQ8AMm5xA6xBUKR9zsnxIVBNscMLtCv34LtkOJNKGQdEqiSn +mkIIWRi/ZVWR4bU/sNKM8AMr7e6Vosp8BlvU1nfZBlEAoffJIuoQaW/nuvVtMj1IRid CKhw== 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:mime-version :content-transfer-encoding; bh=UqokZIMMK8aC34B+KeiFCW275H8P/pPHySRTbbLs8og=; b=M7YE708SS5tms5xd8h4YDRqi8R1mSMbti475rY0q4D617lOqIxjBwxt9SRuzHDyIoa b9WaogZWO+M/UgTZbiT8ZhSjyAK/vAwMM1JTiXDNJAVmbnJv6nZH4B7npbT1OHIXs8yh K6tHplW/2hShqwkMmuHxT6xjqZY0sqEzBF482OLo+SRpk6N7/16on+bfWJTMQHdaErOB yrnHi+3S38ADy6sYJ6bZ0RV43+2l6KbPLDKszZK+xDy5iXqsLttxMPlOgfDM9HdZwMns 0fjTsmxvhfD74tR+I8RgteKxHqXLcz7ZTNigxX+asx1LiRX7/AuDLMhpnPjmUOFOKCc3 mdeA== X-Gm-Message-State: AOAM533SycWkqRyPGgks7TnTIarER6FzRb+zkKRqsK3QvKnh4QMwMeYM fPIMB/yRK6wBju2rd/e46Fs3Ag== X-Received: by 2002:ac8:5995:: with SMTP id e21mr10295910qte.294.1613764304102; Fri, 19 Feb 2021 11:51:44 -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 b7sm7022848qkj.115.2021.02.19.11.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Feb 2021 11:51:43 -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 v2] kexec: move machine_kexec_post_load() to public interface Date: Fri, 19 Feb 2021 14:51:42 -0500 Message-Id: <20210219195142.13571-1-pasha.tatashin@soleen.com> 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 machine_kexec_post_load() is called after kexec load is finished. It must declared in public header not in kexec_internal.h Fixes the following compiler warning: arch/arm64/kernel/machine_kexec.c:62:5: warning: no previous prototype for function 'machine_kexec_post_load' [-Wmissing-prototypes] int machine_kexec_post_load(struct kimage *kimage) Reported-by: kernel test robot Link: https://lore.kernel.org/linux-arm-kernel/202102030727.gqTokACH-lkp@intel.com 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 -- 2.25.1