Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4572137ybi; Tue, 30 Jul 2019 04:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyecHa5hfbdiQP/YnCNXtH92IZAbJ0AdQilDKEHbjRfZsXw8TYMGKApy8hKTSRgJHuoIOxM X-Received: by 2002:aa7:9514:: with SMTP id b20mr42404051pfp.223.1564486105630; Tue, 30 Jul 2019 04:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564486105; cv=none; d=google.com; s=arc-20160816; b=kMsDWYCov2GHEsMdG9e7rRHccmtnFwDc8zCXBBpfoeMxhNxT7avp1+RSonxsSWCbV0 KW5h5YAXJDz6E4etVgKJqzD4RC20qhF68euaBwIQuwfqJ2bjUyVELjCM0ryxMQzr4wTG kpDf7h4Ncd6GJ70RzEitS79D3uiBWkBii+HqDqqx+t+0rWTFIHNlZ51jaGJ4+qG77jf5 SOFcSoIdOZnRY7lBsQcsMFniQccOyPZtGLvOFWcD0UDHJPUL6At1C5dYpI3RwIx6ToUb wI8mV9jKpgcDPqE4d/320LWX41Kb0ugXm6ryoXX2552A6EPg+90NIMYPAWbPdEPcrrBR 1ZfA== 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; bh=xytGEDySay4xV927zIT1aFvC3bZJKYagYvHwc0CM5Sk=; b=MkIDsljiaUbAezkF3AOKu+c1w5r8DZ5lkx/g/mzO7HEiXD0Ygku/IjQdB2bBO2czmM oDjUAkNa/EF57MPQUuNp2gf1jU15CQcmHgL8zWp8jt9+HuTSJxNBeBgFeNcWg5rZtmQV LmHbGk+PRxb44zlmlrBGt6HxXVkHQWibne8jSjUUK027beuZQgIjzkMC2UPUXM8yRFHU nwcx21AHXltobZ/9naWHJb8p6byecoiY4OtVAya31aDfL/DCSKi6w7RFFN21BSkF/thj ZP2mhM5RvD5xSPin52M2hdF5WNZx1qiMTDO56sNl+Gtir7SF5c10+e4LQKXqkHIWjXZs wJ6w== 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 h63si25782526pjb.106.2019.07.30.04.28.11; Tue, 30 Jul 2019 04:28:25 -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 S1731027AbfG3JqH (ORCPT + 99 others); Tue, 30 Jul 2019 05:46:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54000 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730150AbfG3JqG (ORCPT ); Tue, 30 Jul 2019 05:46:06 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DC63A3B4E; Tue, 30 Jul 2019 09:46:06 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-71.pek2.redhat.com [10.72.12.71]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A62201001B07; Tue, 30 Jul 2019 09:46:03 +0000 (UTC) Date: Tue, 30 Jul 2019 17:45:59 +0800 From: Dave Young To: Vasily Gorbik Cc: Eric Biederman , Andrew Morton , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: Re: [PATCH] kexec: restore arch_kexec_kernel_image_probe declaration Message-ID: <20190730094559.GA11557@dhcp-128-65.nay.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 30 Jul 2019 09:46:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/29/19 at 02:14pm, Vasily Gorbik wrote: > arch_kexec_kernel_image_probe function declaration has been removed by > commit 9ec4ecef0af7 ("kexec_file,x86,powerpc: factor out kexec_file_ops > functions"). Still this function is overridden by couple of architectures > and proper prototype declaration is therefore important, so bring it > back. This fixes the following sparse warning on s390: > arch/s390/kernel/machine_kexec_file.c:333:5: warning: symbol 'arch_kexec_kernel_image_probe' was not declared. Should it be static? > > Signed-off-by: Vasily Gorbik > --- > include/linux/kexec.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > index 1740fe36b5b7..f7529d120920 100644 > --- a/include/linux/kexec.h > +++ b/include/linux/kexec.h > @@ -183,6 +183,8 @@ int kexec_purgatory_get_set_symbol(struct kimage *image, const char *name, > bool get_value); > void *kexec_purgatory_get_symbol_addr(struct kimage *image, const char *name); > > +int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf, > + unsigned long buf_len); > void * __weak arch_kexec_kernel_image_load(struct kimage *image); > int __weak arch_kexec_apply_relocations_add(struct purgatory_info *pi, > Elf_Shdr *section, > -- > 2.21.0 > Acked-by: Dave Young Thanks Dave