From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755255AbbISRNW (ORCPT ); Sat, 19 Sep 2015 13:13:22 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33486 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755007AbbISRNT (ORCPT ); Sat, 19 Sep 2015 13:13:19 -0400 From: Sudip Mukherjee To: Haavard Skinnemoen , Hans-Christian Egtvedt , Felipe Balbi , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Andrew Morton , Sudip Mukherjee Subject: [PATCH 3/3] page-flags: rectify forward declaration Date: Sat, 19 Sep 2015 22:42:59 +0530 Message-Id: <1442682779-20077-4-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442682779-20077-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1442682779-20077-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org compound_head is defined as inline in page-flags.h but in the forward declaration of compound_head in the same file missed "inline". As a result we got plenty of build warnings while building for some architecture like avr32. The warning showed as: warning: 'compound_head' declared inline after being called. warning: previous declaration of 'compound_head' was here Signed-off-by: Sudip Mukherjee --- tested build with avr32 and also with x86_64 allmodconfig to verify that nothing breaks due to this change. include/linux/page-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index ab1a0e9..2a2391c 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -227,7 +227,7 @@ static inline int __TestClearPage##uname(struct page *page) { return 0; } struct page; static inline int PageCompound(struct page *page); static inline int PageTail(struct page *page); -static struct page *compound_head(struct page *page); +static inline struct page *compound_head(struct page *page); __PAGEFLAG(Locked, locked, PF_NO_TAIL) PAGEFLAG(Error, error, PF_NO_COMPOUND) TESTCLEARFLAG(Error, error, PF_NO_COMPOUND) -- 1.9.1