From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754742AbdH1ISy (ORCPT ); Mon, 28 Aug 2017 04:18:54 -0400 Received: from ozlabs.org ([103.22.144.67]:37143 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754561AbdH1ISv (ORCPT ); Mon, 28 Aug 2017 04:18:51 -0400 Date: Mon, 28 Aug 2017 18:18:49 +1000 From: Stephen Rothwell To: Andrew Morton Cc: Linux-Next Mailing List , Linux Kernel Mailing List , =?UTF-8?B?SsOpcsO0bWU=?= Glisse , Arnd Bergmann Subject: linux-next: build failure after merge of the akpm-current tree Message-ID: <20170828181849.323ab81b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: kernel/fork.c: In function 'mm_init': kernel/fork.c:821:2: error: implicit declaration of function 'hmm_mm_init' [-Werror=implicit-function-declaration] hmm_mm_init(mm); ^ kernel/fork.c: In function '__mmdrop': kernel/fork.c:900:2: error: implicit declaration of function 'hmm_mm_destroy' [-Werror=implicit-function-declaration] hmm_mm_destroy(mm); ^ Caused by commit af097d7ae64e ("mm/hmm: struct hmm is only use by HMM mirror functionality v2") I added the following patch for today: From: Stephen Rothwell Date: Mon, 28 Aug 2017 18:14:09 +1000 Subject: [PATCH] mm/hmm: struct hmm is only use by HMM mirror functionality v2 fix Signed-off-by: Stephen Rothwell --- include/linux/hmm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/hmm.h b/include/linux/hmm.h index 9583d9a15f9c..0758072f6585 100644 --- a/include/linux/hmm.h +++ b/include/linux/hmm.h @@ -514,5 +514,8 @@ static inline void hmm_mm_init(struct mm_struct *mm) {} #endif /* IS_ENABLED(CONFIG_HMM_MIRROR) */ +#else /* IS_ENABLED(CONFIG_HMM) */ +static inline void hmm_mm_destroy(struct mm_struct *mm) {} +static inline void hmm_mm_init(struct mm_struct *mm) {} #endif /* IS_ENABLED(CONFIG_HMM) */ #endif /* LINUX_HMM_H */ -- 2.13.2 -- Cheers, Stephen Rothwell