From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f200.google.com (mail-yb0-f200.google.com [209.85.213.200]) by kanga.kvack.org (Postfix) with ESMTP id 640FF6B0005 for ; Mon, 30 Apr 2018 11:50:05 -0400 (EDT) Received: by mail-yb0-f200.google.com with SMTP id q78-v6so6535276ybg.9 for ; Mon, 30 Apr 2018 08:50:05 -0700 (PDT) Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id q5si2416464uaj.138.2018.04.30.08.50.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Apr 2018 08:50:04 -0700 (PDT) Subject: Re: [PATCH RCFv2 1/7] mm: introduce and use PageOffline() From: David Hildenbrand References: <20180430094236.29056-1-david@redhat.com> <20180430094236.29056-2-david@redhat.com> <4d112f60-3c24-585e-152e-b42d68c899a2@oracle.com> <28068791-bee4-095e-7338-cda4d229c3de@redhat.com> Message-ID: Date: Mon, 30 Apr 2018 17:49:59 +0200 MIME-Version: 1.0 In-Reply-To: <28068791-bee4-095e-7338-cda4d229c3de@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Pavel Tatashin , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Ingo Molnar , Andrew Morton , Philippe Ombredanne , Thomas Gleixner , Dan Williams , Michal Hocko , Jan Kara , "Kirill A. Shutemov" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Matthew Wilcox , Souptick Joarder , Hugh Dickins , Huang Ying , Miles Chen , Vlastimil Babka , Reza Arbab , Mel Gorman , Tetsuo Handa >> >>> >>> -static void __meminit __init_single_page(struct page *page, unsigned long pfn, >>> +extern void __meminit init_single_page(struct page *page, unsigned long pfn, >> >> I've seen it in other places, but what is the point of having "extern" function in .c file? > > I've seen it all over the place, that's why I am using it :) (as I > basically had the same question). Can somebody answer that? BTW I was looking at the wrong file (header). This of course has to go! -- Thanks, David / dhildenb