Received: by 10.192.165.148 with SMTP id m20csp1663420imm; Sat, 28 Apr 2018 02:47:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrqw8G7PFRmuwu+GGn4wzNOLjKT+dqXIrFwccVpdIRP5nxaJjh4Dn2WOaEndxjhcBj58/J2 X-Received: by 2002:a63:ad49:: with SMTP id y9-v6mr4747994pgo.179.1524908821044; Sat, 28 Apr 2018 02:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524908820; cv=none; d=google.com; s=arc-20160816; b=h3jyPWlTe2IbdO+M2wWo6k3jvVPH/cK1MMc9JDXKgn6sseOd91PhB4WMAvq8Gr1TgY x4zQTEUFoI9bNAKjFjOodwJ9Ema+z/5FJ2SfNnVFMPfDJhQYJ8RFNUk3Dp3pip8ZtQCQ s2nfIB+IpaTuTNB2CDBk+9yLPiO8iBnA8diqyU7DGLS37HnwgwyT8jOlLX9lu2ZcKTEF Kk7VbsxxHUUkZy2Ps0/9n1J2T1bNLZqE4QMUIi/JrJrOAf66uIU7lfCE4Snwv+gBIHZm mC9N6BgSJIqotoOLl9gY2d3HicffwFa1Wx2zcRDCCwzmhfFFKPow3c07Ci6P+7U5fHud yoPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=GQbVGyrR1oghJpdWLVjwppj3pn3mUPC8kuoSmR90oLc=; b=uMncj8fPQnqGUEIp8Hh8AN6OCy5BTNsgo/Wf7jWxetyZdOWk8HQuzCNo/IKkblfh/G Jyav+xNVnXdUbuAlHnz/kpWgHzeThQHRgHzXVDjClplhbNVcuwm1kfs/BAdKRMcO5KtE 6PDd6n87VVEj6PAOuUQRBhi8f6AG0qKLowyPDWAFoxC1wCEajftqf99SPrGOSxx+r8NC oB8JrHMtnvfbGzK+D2v1V7aKDDwEevAA3D8V6Sd3nY0e4vjeGoVlL247g4bC2zcutoH7 nsmrdb0GHOqaqeQFECewWsycsUNj3VH2xQjDhbs2wYVvaKBVU9LgDqBq5Su9uO6bYP4r gAEQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l67si3206847pfg.326.2018.04.28.02.46.46; Sat, 28 Apr 2018 02:47:00 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759772AbeD1Jpl (ORCPT + 99 others); Sat, 28 Apr 2018 05:45:41 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59248 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759622AbeD1Jpk (ORCPT ); Sat, 28 Apr 2018 05:45:40 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5FBFB81AF33C; Sat, 28 Apr 2018 09:45:39 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-143.pek2.redhat.com [10.72.12.143]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B7312023227; Sat, 28 Apr 2018 09:45:31 +0000 (UTC) Date: Sat, 28 Apr 2018 17:45:26 +0800 From: Dave Young To: AKASHI Takahiro Cc: catalin.marinas@arm.com, will.deacon@arm.com, dhowells@redhat.com, vgoyal@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, bhe@redhat.com, arnd@arndb.de, ard.biesheuvel@linaro.org, bhsharma@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v9 02/11] kexec_file: make kexec_image_post_load_cleanup_default() global Message-ID: <20180428094526.GA2854@dhcp-128-65.nay.redhat.com> References: <20180425062629.29404-1-takahiro.akashi@linaro.org> <20180425062629.29404-3-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425062629.29404-3-takahiro.akashi@linaro.org> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sat, 28 Apr 2018 09:45:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sat, 28 Apr 2018 09:45:39 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dyoung@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/25/18 at 03:26pm, AKASHI Takahiro wrote: > Change this function from static to global so that arm64 can implement > its own arch_kimage_file_post_load_cleanup() later using > kexec_image_post_load_cleanup_default(). > > Signed-off-by: AKASHI Takahiro > Cc: Dave Young > Cc: Vivek Goyal > Cc: Baoquan He > --- > include/linux/kexec.h | 1 + > kernel/kexec_file.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > index 9e4e638fb505..49ab758f4d91 100644 > --- a/include/linux/kexec.h > +++ b/include/linux/kexec.h > @@ -143,6 +143,7 @@ extern const struct kexec_file_ops * const kexec_file_loaders[]; > > int kexec_image_probe_default(struct kimage *image, void *buf, > unsigned long buf_len); > +int kexec_image_post_load_cleanup_default(struct kimage *image); > > /** > * struct kexec_buf - parameters for finding a place for a buffer in memory > diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c > index 75d8e7cf040e..eef89d9b1f03 100644 > --- a/kernel/kexec_file.c > +++ b/kernel/kexec_file.c > @@ -78,7 +78,7 @@ void * __weak arch_kexec_kernel_image_load(struct kimage *image) > return kexec_image_load_default(image); > } > > -static int kexec_image_post_load_cleanup_default(struct kimage *image) > +int kexec_image_post_load_cleanup_default(struct kimage *image) > { > if (!image->fops || !image->fops->cleanup) > return 0; > -- > 2.17.0 > > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec Acked-by: Dave Young Thanks Dave