Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp888633pxb; Fri, 22 Jan 2021 01:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkA3BrXTdrkvhOPLEOcZ4cxu1pfM8FKVkEgGLYxlU6+rU4TITbgoYuB+ZIXHn7c7YMPpVl X-Received: by 2002:a05:6402:206c:: with SMTP id bd12mr2561992edb.10.1611308130116; Fri, 22 Jan 2021 01:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611308130; cv=none; d=google.com; s=arc-20160816; b=suOVJ9aFYXEU85nWt5U32lSuv0jTKAbyASDZAxL+qRdPSAsIWLLcpKiX+kJcp9Ow/R HO1AUYb5IZcQS3l9iciv+sHTBwPpIUMs8hTwmfjlsZkVikY7+XUj0Ts72A10qAaZpYOL JRq/Ug+VvBkG0Jw/UD5zjxf2XMen7PyjtHJkTF1t02hh4EffcZ8M4WAsyEZEVS3Enmbg 2vjbqq+S0wdNwn2OUQR+8F7XINhyIY2mwXM5RfwYcHVKjXUo/tKwZGpQklGFQs2ExNIz zMcR+Z/2jx56CI3RnzTeyqA8wyIfGUDAqo9d58jU16HT9Mr94/g+SPFlePYHr7yU9GQb OJow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=EZwUYf9xT+MJixbOCKQ4HvzTm+Igo1sOFFZAbd0tACA=; b=Rw5RX2zfRw6AF7fr7yfFvRfB400PrL9wxA4ElfIIh7aYX1eSmbbjlhQp873c38X3xG ml3EDOyI6cbFXOhyBYVd+dovporCsAxk0m1PPXwAansJtB24pXNa/gNp9hP2AXJ9iZJG Omfod79hG9E9jL/UceUgvyWRkLqMIN5eC+4k/j9VXST54fzDHoqmjF+LqHDRzk2e+7pb 6B4aFUwBblUbWqxQtLJSVbSNzHAPe4R7JNcDZt9l+a45A4qxmjnOqHLsWJw+qJG33Y1E W3uZiK8Be3lLgDArX9SwwZAN6JFRlLl/VXTPcRxM6W+f3UFEpk/yfAUyintcDPaHnoX1 pLfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KFS3Ltxu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si2933725ejf.555.2021.01.22.01.35.06; Fri, 22 Jan 2021 01:35:30 -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=@redhat.com header.s=mimecast20190719 header.b=KFS3Ltxu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbhAVJde (ORCPT + 99 others); Fri, 22 Jan 2021 04:33:34 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:42580 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbhAVJKH (ORCPT ); Fri, 22 Jan 2021 04:10:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611306491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EZwUYf9xT+MJixbOCKQ4HvzTm+Igo1sOFFZAbd0tACA=; b=KFS3Ltxumh6EwOEyIAX+UKruWtP1so98+F28Zw4g7BFjm3apBKSCYGTK6NEPA3njqoiPYx hgRdckUX7lKooW/nfRQE2YgsDrwFrDQ+DzxVKFIXSvYMLQwFZRP5GEbdby+VqmruZW6Z1r Zsft0miBzRnAuJRH+30S8jd7CFRC4JU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-_Fh2C1fwP36C846eFQQRTA-1; Fri, 22 Jan 2021 04:08:09 -0500 X-MC-Unique: _Fh2C1fwP36C846eFQQRTA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D8C331005513; Fri, 22 Jan 2021 09:08:07 +0000 (UTC) Received: from [10.36.114.142] (ovpn-114-142.ams2.redhat.com [10.36.114.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id BCFAA722C2; Fri, 22 Jan 2021 09:08:06 +0000 (UTC) Subject: Re: [PATCH] mm: fix prototype warning from kernel test robot To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, rppt@kernel.org References: <20210122070359.24010-1-bhe@redhat.com> <3fd62f11-bf44-3ede-aed1-10d9d4849f00@redhat.com> <20210122084659.GA29905@MiWiFi-R3L-srv> <91244046-f5a0-8e67-4c92-fe9de118e472@redhat.com> <20210122085836.GA31398@MiWiFi-R3L-srv> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <1f05a1ee-fcfa-4abb-74f3-d47b64378a4a@redhat.com> Date: Fri, 22 Jan 2021 10:08:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20210122085836.GA31398@MiWiFi-R3L-srv> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.01.21 09:58, Baoquan He wrote: > On 01/22/21 at 09:55am, David Hildenbrand wrote: >> On 22.01.21 09:46, Baoquan He wrote: >>> On 01/22/21 at 09:40am, David Hildenbrand wrote: >>>> On 22.01.21 08:03, Baoquan He wrote: >>>>> Kernel test robot calling make with 'W=1' triggering warning like below >>>>> below for memmap_init_zone() function. >>>>> >>>>> mm/page_alloc.c:6259:23: warning: no previous prototype for 'memmap_init_zone' [-Wmissing-prototypes] >>>>> 6259 | void __meminit __weak memmap_init_zone(unsigned long size, int nid, >>>>> | ^~~~~~~~~~~~~~~~ >>>>> >>>>> Fix it by adding the function declaration in include/linux/mm.h. >>>>> Since memmap_init_zone() has a generic version with '__weak', >>>>> the declaratoin in ia64 header file can be simply removed. >>>>> >>>>> Signed-off-by: Baoquan He >>>>> Reported-by: kernel test robot >>>>> --- >>>>> arch/ia64/include/asm/pgtable.h | 5 ----- >>>>> include/linux/mm.h | 1 + >>>>> 2 files changed, 1 insertion(+), 5 deletions(-) >>>>> >>>>> diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h >>>>> index 2c81394a2430..9b4efe89e62d 100644 >>>>> --- a/arch/ia64/include/asm/pgtable.h >>>>> +++ b/arch/ia64/include/asm/pgtable.h >>>>> @@ -517,11 +517,6 @@ extern struct page *zero_page_memmap_ptr; >>>>> __changed; \ >>>>> }) >>>>> #endif >>>>> - >>>>> -# ifdef CONFIG_VIRTUAL_MEM_MAP >>>>> - /* arch mem_map init routine is needed due to holes in a virtual mem_map */ >>>>> - extern void memmap_init_zone(struct zone *zone); >>>>> -# endif /* CONFIG_VIRTUAL_MEM_MAP */ >>>>> # endif /* !__ASSEMBLY__ */ >>>>> >>>>> /* >>>>> diff --git a/include/linux/mm.h b/include/linux/mm.h >>>>> index 56bb239f9150..073049bd0b29 100644 >>>>> --- a/include/linux/mm.h >>>>> +++ b/include/linux/mm.h >>>>> @@ -2401,6 +2401,7 @@ extern void set_dma_reserve(unsigned long new_dma_reserve); >>>>> extern void memmap_init_range(unsigned long, int, unsigned long, >>>>> unsigned long, unsigned long, enum meminit_context, >>>>> struct vmem_altmap *, int migratetype); >>>>> +extern void memmap_init_zone(struct zone *zone); >>>>> extern void setup_per_zone_wmarks(void); >>>>> extern int __meminit init_per_zone_wmark_min(void); >>>>> extern void mem_init(void); >>>>> >>>> >>>> This patch is on top of your other series, no? >>>> >>>> In -next, we have >>>> >>>> extern void memmap_init_zone(unsigned long, int, unsigned long, ... >>>> >>>> In that file, so something is wrong. >>> >>> Right, this one is based on the memmap_init_xx clean up patchset. I >>> mentioned this the the sub-thread of kernel test robot reporting issues. >>> >> >> I think it would make things easier to move that fix to the front and >> resend the whole (5 patches) series. > > OK, it's fine to me, will resend a series adding this one in. I also > need polish log of this patch. Thanks for looking into this. > I'll review ASAP once you resend :) -- Thanks, David / dhildenb