Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1123727pxb; Fri, 22 Jan 2021 07:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWDHZ/EdY0hHG1taEKZ52PL9wFBkwr09cqCAcMfHGB9SZq9QwDDR8t/As3oPkkhf/plMev X-Received: by 2002:a17:907:9810:: with SMTP id ji16mr181671ejc.394.1611330241285; Fri, 22 Jan 2021 07:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611330241; cv=none; d=google.com; s=arc-20160816; b=fGgFnVNg1pV9+KQAcJFLrqrpdsF5E9eBj40uX9ab7yk5d1bpfZHBTPc2wx7aWWLj+V l1cZvNnfln3MKvI/OwYyWZipdC0DzysSUZCSbn8XcrbhIB+RqmrNROKr1/JSvGbQa6AZ nTVJLspULngZWdaiANt1B8+oEtq/8fA1mGzu0uKupJnAb62Mu/FKVIVA4OA1o2BFZeUd ns4/0MuaSvUppIdluPWivlt2z9nK1ev7YAMn8mHkQ0TpXpGjLkZxnIJIv+d/ZXuPcdkj bbbEsKdqTTOg6oICxhha0G8SVX9Lgx4mUvsmvaI51jDNBWAdvPrXrUb28uYFIcJUWfht OJEw== 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=Wb8K8yRwy7/Q2PW+RBRkYiUuWBogUfQ/CxNqMHvoHDw=; b=mYLOsXkWnndNBd5oW1Tf1prO+qVQvcVYnCr9SRitNFCC7ouiCGkCL2eCYQJJTlT+Ww G6Vql8TliRh4UDLLrCmZFiGC6ShTLKIPYkyku7L9D1BK/fFaVf88ZJc800kQjfrS81wM EetTACqSzVp1qsznwpkSR1dTZn8q7D5HaIv5QUrVnbFZ6XinhA4jUEIGsnlLYArmChVw Evpj+K5489VQ7KiJ0iMPSwZ+9yEpa1ccUXzyd35EyeWHJdfVebX8gau0NDbph6TYj06D cdOAWCZyTrfabInEeH5dBpMT3T0nWJbdnCq8hcFqXFnFKEr3WxskDsu1b3AeWjLiI1Od eCnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IGppbCZT; 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 b24si3662767edx.243.2021.01.22.07.43.37; Fri, 22 Jan 2021 07:44:01 -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=IGppbCZT; 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 S1728948AbhAVPmE (ORCPT + 99 others); Fri, 22 Jan 2021 10:42:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:43673 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbhAVPjh (ORCPT ); Fri, 22 Jan 2021 10:39:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611329890; 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=Wb8K8yRwy7/Q2PW+RBRkYiUuWBogUfQ/CxNqMHvoHDw=; b=IGppbCZTnidVVXOMxZKqI+gUoYWtdMFvOWLzYhLeMhxwcnS1uXJpx1aF8qc4/u+O3rXCdn GgXL0U96dgqm14pwAg0/o9e4U9dW+8oyaBvJoSpM72P20z0V5Umj2Zs0K2ai19A1kAq+U3 EvkYjAt1m5np41YdumeVODuf3h1FXQ0= 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-282-2YIk_iI2PuKliFe3J3ORAQ-1; Fri, 22 Jan 2021 10:38:08 -0500 X-MC-Unique: 2YIk_iI2PuKliFe3J3ORAQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0967D8144E1; Fri, 22 Jan 2021 15:38: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 9E6BF5DA30; Fri, 22 Jan 2021 15:38:05 +0000 (UTC) Subject: Re: [PATCH v5 1/5] mm: fix prototype warning from kernel test robot To: Baoquan He , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, rppt@kernel.org, lkp@intel.com References: <20210122135956.5946-1-bhe@redhat.com> <20210122135956.5946-2-bhe@redhat.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <7e6ff678-9d87-9b01-e247-01c549a18529@redhat.com> Date: Fri, 22 Jan 2021 16:38:04 +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: <20210122135956.5946-2-bhe@redhat.com> 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.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.01.21 14:59, Baoquan He wrote: > Kernel test robot calling make with 'W=1' is triggering warning like > 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 | 6 ------ > include/linux/mm.h | 2 ++ > 2 files changed, 2 insertions(+), 6 deletions(-) > > diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h > index 779b6972aa84..9b4efe89e62d 100644 > --- a/arch/ia64/include/asm/pgtable.h > +++ b/arch/ia64/include/asm/pgtable.h > @@ -517,12 +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 (unsigned long size, int nid, unsigned long zone, > - unsigned long start_pfn); > -# endif /* CONFIG_VIRTUAL_MEM_MAP */ > # endif /* !__ASSEMBLY__ */ > > /* > diff --git a/include/linux/mm.h b/include/linux/mm.h > index 3dac7bc667ee..3d82b4f7cabc 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -2401,6 +2401,8 @@ extern void set_dma_reserve(unsigned long new_dma_reserve); > extern void memmap_init_zone(unsigned long, int, unsigned long, > unsigned long, unsigned long, enum meminit_context, > struct vmem_altmap *, int migratetype); > +extern void memmap_init(unsigned long size, int nid, > + unsigned long zone, unsigned long range_start_pfn); > extern void setup_per_zone_wmarks(void); > extern int __meminit init_per_zone_wmark_min(void); > extern void mem_init(void); > Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb