From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3868DC433EF for ; Sat, 4 Jun 2022 18:32:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9ED176B0074; Sat, 4 Jun 2022 14:32:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 99A806B0075; Sat, 4 Jun 2022 14:32:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 887506B0078; Sat, 4 Jun 2022 14:32:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7A2FE6B0074 for ; Sat, 4 Jun 2022 14:32:37 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 4E759601B9 for ; Sat, 4 Jun 2022 18:32:37 +0000 (UTC) X-FDA: 79541399154.12.756FF4B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf12.hostedemail.com (Postfix) with ESMTP id 6D4D84005C for ; Sat, 4 Jun 2022 18:31:52 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D1EBB60B7B; Sat, 4 Jun 2022 18:32:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E605FC385B8; Sat, 4 Jun 2022 18:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654367555; bh=ysqPwP/wqkdmiymo7y3Y0C2os7PDLtfEfzoXPROtBOM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GdSlIPd5ooj+owxk+noEMsEWzCN8SmMmgIlbA/avre5Goc1/E+v+IdcMO0St95jiU SG52OypF6Z4K7sDBbvnsnuKdcMoOoyrijj6nHUYmOg+EMYyDDoiFcI9FebLHImY0qm Yjcbyh2WA9F9PP67ZgZHJojSRG8BKzzJO6T4UdlI= Date: Sat, 4 Jun 2022 11:32:34 -0700 From: Andrew Morton To: kernel test robot Cc: Shiyang Ruan , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Linux Memory Management List , "Darrick J. Wong" , Christoph Hellwig , Dan Williams , Miaohe Lin Subject: Re: [akpm-mm:mm-unstable 168/180] mm/memory-failure.c:1740:7: error: call to undeclared function 'mf_generic_kill_procs'; ISO C99 and later do not support implicit function declarations Message-Id: <20220604113234.6b5cd3cd12335acc5e450286@linux-foundation.org> In-Reply-To: <202206042127.sGqAcR3f-lkp@intel.com> References: <202206042127.sGqAcR3f-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Stat-Signature: ggmtxybb4pis76z5odq8m7kr33eiiia5 X-Rspam-User: Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=GdSlIPd5; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 6D4D84005C X-HE-Tag: 1654367512-781478 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, 4 Jun 2022 21:55:44 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable > head: f06e3c5104126b9a6660b58f29619b53bfa33b2b > commit: 92eb33ec5ea377357ff8087197209cbfbf40dbf9 [168/180] mm: factor helpers for memory_failure_dev_pagemap > config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220604/202206042127.sGqAcR3f-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b364c76683f8ef241025a9556300778c07b590c2) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=92eb33ec5ea377357ff8087197209cbfbf40dbf9 > git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git > git fetch --no-tags akpm-mm mm-unstable > git checkout 92eb33ec5ea377357ff8087197209cbfbf40dbf9 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> mm/memory-failure.c:1740:7: error: call to undeclared function 'mf_generic_kill_procs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > rc = mf_generic_kill_procs(pfn, flags, pgmap); > ^ > 1 error generated. Thanks, I did this: --- a/mm/memory-failure.c~mm-factor-helpers-for-memory_failure_dev_pagemap-fix +++ a/mm/memory-failure.c @@ -1714,12 +1714,21 @@ out: unlock_page(head); return res; } + #else + +static inline int mf_generic_kill_procs(unsigned long long pfn, int flags, + struct dev_pagemap *pgmap) +{ + return 0; +} + static inline int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb) { return 0; } -#endif + +#endif /* CONFIG_HUGETLB_PAGE */ static int memory_failure_dev_pagemap(unsigned long pfn, int flags, struct dev_pagemap *pgmap) _