From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f69.google.com (mail-pg0-f69.google.com [74.125.83.69]) by kanga.kvack.org (Postfix) with ESMTP id 515FB6B0005 for ; Tue, 30 Jan 2018 18:36:57 -0500 (EST) Received: by mail-pg0-f69.google.com with SMTP id v17so8986014pgb.18 for ; Tue, 30 Jan 2018 15:36:57 -0800 (PST) Received: from mga12.intel.com (mga12.intel.com. [192.55.52.136]) by mx.google.com with ESMTPS id o8si203685pgv.113.2018.01.30.15.36.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 15:36:55 -0800 (PST) Date: Wed, 31 Jan 2018 07:49:04 +0800 From: kbuild test robot Subject: Re: [PATCH 3/3] mm: memfd: remove memfd code from shmem files and use new memfd files Message-ID: <201801310705.HNIeJce6%fengguang.wu@intel.com> References: <20180130000101.7329-4-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180130000101.7329-4-mike.kravetz@oracle.com> Sender: owner-linux-mm@kvack.org List-ID: To: Mike Kravetz Cc: kbuild-all@01.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Andrea Arcangeli , Michal Hocko , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , David Herrmann , Khalid Aziz , Andrew Morton Hi Mike, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mmotm/master] [also build test WARNING on next-20180126] [cannot apply to linus/master v4.15] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mike-Kravetz/restructure-memfd-code/20180131-023405 base: git://git.cmpxchg.org/linux-mmotm.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> mm/memfd.c:40:9: sparse: incorrect type in assignment (different address spaces) @@ expected void @@ got void > mm/memfd.c:40:9: sparse: incorrect type in assignment (different address spaces) @@ expected void @@ got void > mm/memfd.c:41:46: sparse: incorrect type in argument 1 (different address spaces) @@ expected void @@ got @@ mm/memfd.c:41:46: expected void mm/memfd.c:41:46: got void mm/memfd.c:44:38: sparse: incorrect type in assignment (different address spaces) @@ expected void @@ got void > mm/memfd.c:40:9: sparse: incorrect type in assignment (different address spaces) @@ expected void @@ got void page_tree, &iter, start) { 6df4ed2a41 Mike Kravetz 2018-01-29 @41 page = radix_tree_deref_slot(slot); 6df4ed2a41 Mike Kravetz 2018-01-29 42 if (!page || radix_tree_exception(page)) { 6df4ed2a41 Mike Kravetz 2018-01-29 43 if (radix_tree_deref_retry(page)) { 6df4ed2a41 Mike Kravetz 2018-01-29 44 slot = radix_tree_iter_retry(&iter); 6df4ed2a41 Mike Kravetz 2018-01-29 45 continue; 6df4ed2a41 Mike Kravetz 2018-01-29 46 } 6df4ed2a41 Mike Kravetz 2018-01-29 47 } else if (page_count(page) - page_mapcount(page) > 1) { 6df4ed2a41 Mike Kravetz 2018-01-29 48 spin_lock_irq(&mapping->tree_lock); 6df4ed2a41 Mike Kravetz 2018-01-29 49 radix_tree_tag_set(&mapping->page_tree, iter.index, 6df4ed2a41 Mike Kravetz 2018-01-29 50 SHMEM_TAG_PINNED); 6df4ed2a41 Mike Kravetz 2018-01-29 51 spin_unlock_irq(&mapping->tree_lock); 6df4ed2a41 Mike Kravetz 2018-01-29 52 } 6df4ed2a41 Mike Kravetz 2018-01-29 53 6df4ed2a41 Mike Kravetz 2018-01-29 54 if (need_resched()) { 6df4ed2a41 Mike Kravetz 2018-01-29 55 slot = radix_tree_iter_resume(slot, &iter); 6df4ed2a41 Mike Kravetz 2018-01-29 56 cond_resched_rcu(); 6df4ed2a41 Mike Kravetz 2018-01-29 57 } 6df4ed2a41 Mike Kravetz 2018-01-29 58 } 6df4ed2a41 Mike Kravetz 2018-01-29 59 rcu_read_unlock(); 6df4ed2a41 Mike Kravetz 2018-01-29 60 } 6df4ed2a41 Mike Kravetz 2018-01-29 61 :::::: The code at line 40 was first introduced by commit :::::: 6df4ed2a410bc04f1ec04dce16ccd236707f7f32 mm: memfd: split out memfd for use by multiple filesystems :::::: TO: Mike Kravetz :::::: CC: 0day robot --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org