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 2F94CC25B0F for ; Mon, 15 Aug 2022 02:24:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C4886B0073; Sun, 14 Aug 2022 22:24:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 872E76B0074; Sun, 14 Aug 2022 22:24:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7621B8D0002; Sun, 14 Aug 2022 22:24:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 66A646B0073 for ; Sun, 14 Aug 2022 22:24:33 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 38D2C1A0BB0 for ; Mon, 15 Aug 2022 02:24:33 +0000 (UTC) X-FDA: 79800233226.30.860E279 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf25.hostedemail.com (Postfix) with ESMTP id 3037BA01A6 for ; Mon, 15 Aug 2022 02:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660530272; x=1692066272; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=15akVnLmqGB2LRmtpYXPewEWH5UBdRqrgqSU2eW3ORg=; b=XveP0OD7U0cmojVMWAHLWr9cdgE1mSPLXlJOYhtynioh6xIO5PpuektO CZDJ5nRXWcyV0ofRTAnR4fPeNS0Yo9+t2WZh2jWaveqRvMa64aNZ+fsem zW2qkmAAs5gAnVez1QgemxsVe8qCzDJ8YMT81XUg8iOsV1l0cJmahSIYy oOviQEhAk/tMd5CXP+uAb/mP1eFlPa0mLHa6qxvzZ8/ckh/PFyXSOBj3l uc+NaglTwZuAdDD8u4pbTPdil/FzUDF6g8Wc/hcmd455xDrXfd3WI6t3g X/OVCL9RfKIPaZhCZnQTDUXVEiuVCreCCeeA5KeTyppC5E3uEi9bIdY3f Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="317855369" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="317855369" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 19:24:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="606507615" Received: from lkp-server02.sh.intel.com (HELO 3d2a4d02a2a9) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 14 Aug 2022 19:24:25 -0700 Received: from kbuild by 3d2a4d02a2a9 with local (Exim 4.96) (envelope-from ) id 1oNPmC-0000iM-1R; Mon, 15 Aug 2022 02:24:24 +0000 Date: Mon, 15 Aug 2022 10:23:36 +0800 From: kernel test robot To: Zach O'Keefe , linux-mm@kvack.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Andrew Morton , Linux Memory Management List , linux-api@vger.kernel.org, Axel Rasmussen , James Houghton , Hugh Dickins , Yang Shi , Miaohe Lin , David Hildenbrand , David Rientjes , Matthew Wilcox , Pasha Tatashin , Peter Xu , Rongwei Wang , SeongJae Park , Song Liu , Vlastimil Babka , Chris Kennelly , "Kirill A. Shutemov" , Minchan Kim , Patrick Xia , Zach O'Keefe Subject: Re: [PATCH mm-unstable 3/9] mm/madvise: add file and shmem support to MADV_COLLAPSE Message-ID: <202208151032.dIQzLJma-lkp@intel.com> References: <20220812012843.3948330-4-zokeefe@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220812012843.3948330-4-zokeefe@google.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660530272; a=rsa-sha256; cv=none; b=5DS4ICEp9SqbqzG6TbKwmlg9PubSfNxxf/+WFS3FDkuG4nFyW1H1wGfwJqMFW6svY8iPoN lp+viZh29ClDfGKkzIwR1Pnf2NYuXk//V49VEyw8ZAxjc0JGPvsK8WP7p/bz/j/lkgGZUN OKfSaLEPZLHijxNNDes4BFL1QSrImJY= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=XveP0OD7; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660530272; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=cYMKulmi3qByKkVNzyQmYcO7h4uxs8i47WNSXBZAggM=; b=cagYahBq/6iLHbwpv5Ys9r6tLAqGaNdePsVndC6sDpF96pjiG2Qq9SZynO7rCGNNBTpoQC dZQd8qZv5NPw7/ISe82smNwN7e83TeapkCZvpi8E5YuzuCAQZexnahdCkXpKROfP7S6VnI gROXi3tyQIFiff7WLfPU8nqPMXGRmQU= X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 3037BA01A6 Authentication-Results: imf25.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=XveP0OD7; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=lkp@intel.com X-Stat-Signature: y9hqpzo5qxxay85z5a9fb7oawa6xscn5 X-Rspam-User: X-HE-Tag: 1660530271-951592 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: Hi Zach, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Zach-O-Keefe/mm-add-file-shmem-support-to-MADV_COLLAPSE/20220812-093122 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: hexagon-randconfig-r045-20220812 (https://download.01.org/0day-ci/archive/20220815/202208151032.dIQzLJma-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520) 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://github.com/intel-lab-lkp/linux/commit/dff08746d6f7b9387b94360b66bd9db644542991 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zach-O-Keefe/mm-add-file-shmem-support-to-MADV_COLLAPSE/20220812-093122 git checkout dff08746d6f7b9387b94360b66bd9db644542991 # 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=hexagon 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 >>): In file included from kernel/fork.c:86: >> include/linux/khugepaged.h:53:1: error: non-void function does not return a value [-Werror,-Wreturn-type] } ^ kernel/fork.c:163:13: warning: no previous prototype for function 'arch_release_task_struct' [-Wmissing-prototypes] void __weak arch_release_task_struct(struct task_struct *tsk) ^ kernel/fork.c:163:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __weak arch_release_task_struct(struct task_struct *tsk) ^ static kernel/fork.c:852:20: warning: no previous prototype for function 'arch_task_cache_init' [-Wmissing-prototypes] void __init __weak arch_task_cache_init(void) { } ^ kernel/fork.c:852:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init __weak arch_task_cache_init(void) { } ^ static kernel/fork.c:947:12: warning: no previous prototype for function 'arch_dup_task_struct' [-Wmissing-prototypes] int __weak arch_dup_task_struct(struct task_struct *dst, ^ kernel/fork.c:947:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __weak arch_dup_task_struct(struct task_struct *dst, ^ static 3 warnings and 1 error generated. -- In file included from mm/mmap.c:40: >> include/linux/khugepaged.h:53:1: error: non-void function does not return a value [-Werror,-Wreturn-type] } ^ 1 error generated. vim +53 include/linux/khugepaged.h ba76149f47d8c9 Andrea Arcangeli 2011-01-13 33 ba76149f47d8c9 Andrea Arcangeli 2011-01-13 34 static inline void khugepaged_exit(struct mm_struct *mm) ba76149f47d8c9 Andrea Arcangeli 2011-01-13 35 { ba76149f47d8c9 Andrea Arcangeli 2011-01-13 36 if (test_bit(MMF_VM_HUGEPAGE, &mm->flags)) ba76149f47d8c9 Andrea Arcangeli 2011-01-13 37 __khugepaged_exit(mm); ba76149f47d8c9 Andrea Arcangeli 2011-01-13 38 } ba76149f47d8c9 Andrea Arcangeli 2011-01-13 39 #else /* CONFIG_TRANSPARENT_HUGEPAGE */ d2081b2bf8195b Yang Shi 2022-05-19 40 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) ba76149f47d8c9 Andrea Arcangeli 2011-01-13 41 { ba76149f47d8c9 Andrea Arcangeli 2011-01-13 42 } ba76149f47d8c9 Andrea Arcangeli 2011-01-13 43 static inline void khugepaged_exit(struct mm_struct *mm) ba76149f47d8c9 Andrea Arcangeli 2011-01-13 44 { ba76149f47d8c9 Andrea Arcangeli 2011-01-13 45 } c791576c60288c Yang Shi 2022-05-19 46 static inline void khugepaged_enter_vma(struct vm_area_struct *vma, 6d50e60cd2edb5 David Rientjes 2014-10-29 47 unsigned long vm_flags) ba76149f47d8c9 Andrea Arcangeli 2011-01-13 48 { ba76149f47d8c9 Andrea Arcangeli 2011-01-13 49 } dff08746d6f7b9 Zach O'Keefe 2022-08-11 50 static inline int collapse_pte_mapped_thp(struct mm_struct *mm, dff08746d6f7b9 Zach O'Keefe 2022-08-11 51 unsigned long addr, bool install_pmd) 27e1f8273113ad Song Liu 2019-09-23 52 { 27e1f8273113ad Song Liu 2019-09-23 @53 } 4aab2be0983031 Vijay Balakrishna 2020-10-10 54 -- 0-DAY CI Kernel Test Service https://01.org/lkp