From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qp4Ts-0004nh-Qt for kexec@lists.infradead.org; Thu, 04 Aug 2011 20:25:25 +0000 Date: Thu, 4 Aug 2011 16:25:18 -0400 From: Vivek Goyal Subject: Re: [patch v2 02/10] kdump: Make kimage_load_crash_segment() weak Message-ID: <20110804202518.GD429@redhat.com> References: <20110727125504.491183728@linux.vnet.ibm.com> <20110727125807.695225427@linux.vnet.ibm.com> <20110801203143.GH3805@redhat.com> <1312277403.4881.26.camel@br98xy6r> <20110802185530.GH6399@redhat.com> <1312368088.3783.40.camel@br98xy6r> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1312368088.3783.40.camel@br98xy6r> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Michael Holzheu Cc: oomichi@mxs.nes.nec.co.jp, linux-s390@vger.kernel.org, mahesh@linux.vnet.ibm.com, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, hbabu@us.ibm.com, horms@verge.net.au, ebiederm@xmission.com, schwidefsky@de.ibm.com, kexec@lists.infradead.org On Wed, Aug 03, 2011 at 12:41:28PM +0200, Michael Holzheu wrote: > On Tue, 2011-08-02 at 14:55 -0400, Vivek Goyal wrote: > > On Tue, Aug 02, 2011 at 11:30:03AM +0200, Michael Holzheu wrote: > > > Hello Vivek, > > > > > > On Mon, 2011-08-01 at 16:31 -0400, Vivek Goyal wrote: > > > > On Wed, Jul 27, 2011 at 02:55:06PM +0200, Michael Holzheu wrote: > > > > > > [snip] > > > > > > > > --- a/kernel/kexec.c > > > > > +++ b/kernel/kexec.c > > > > > @@ -842,8 +842,8 @@ out: > > > > > return result; > > > > > } > > > > > > > > > > -static int kimage_load_crash_segment(struct kimage *image, > > > > > - struct kexec_segment *segment) > > > > > +int __weak kimage_load_crash_segment(struct kimage *image, > > > > > + struct kexec_segment *segment) > > > > > > > > A comment here why we are making it weak should help in increasing > > > > the code readability. > > > > > > What about the following: > > > > > > /* > > > * Load crash segment into memory. Architecture code can override this > > > * function. E.g. this is necessary for architectures that do not > > > * create page tables for crashkernel memory. > > > */ > > > int __weak kimage_load_crash_segment(struct kimage *image, > > > > This looks better. > > With that comment change: Do I get an "Acked-by" for this patch from > you? Yes, looks good to me. Acked-by: Vivek Goyal Thanks Vivek _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec