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 DC444C433EF for ; Wed, 15 Jun 2022 19:35:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ECEE36B0071; Wed, 15 Jun 2022 15:35:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E7EB66B0072; Wed, 15 Jun 2022 15:35:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1EE76B0074; Wed, 15 Jun 2022 15:35:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id BFB716B0071 for ; Wed, 15 Jun 2022 15:35:38 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 7C312121009 for ; Wed, 15 Jun 2022 19:35:38 +0000 (UTC) X-FDA: 79581474756.18.4629AF9 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf30.hostedemail.com (Postfix) with ESMTP id 3D36980082 for ; Wed, 15 Jun 2022 19:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655321735; x=1686857735; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0/C2T5/7z7iM43H25C9V8DQyg7z7scPmR21lboW0i50=; b=M438DOy2b6jHNsVm5cqx+6W+CusLXULjXxYnpOBHfzPdeQvT6kwCTq4a bccURYC7uspag539TgDKIzIaSVJS873uIPihjUd+arIwFkhwfnfub1jeZ EY945pPNqW1j1TUC37og0UdNr1O5SmallOoZeNuN9brex75/aoCTaEppp fsyng/loqFtD+S7SckObzZVXl1GUVPF2UT/xOI14Nn8sPCCG+ZLZKUVtP RLxEiMn00SNuzMYglf9pv0V8U/AZ2QyLgZDZKzaCPDRi4ItrICJwhEg5R 9bvmRpV3WTBww1pFlsUmzg/CVQrdxa7c5n0hxv1B+Q6FBOg2jbxNb1GPr w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="279137559" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="279137559" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 12:35:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="713091951" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 15 Jun 2022 12:35:28 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1YnX-000N8X-CZ; Wed, 15 Jun 2022 19:35:27 +0000 Date: Thu, 16 Jun 2022 03:34:46 +0800 From: kernel test robot To: Edward Wu , Andrew Morton , linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Linux Memory Management List , surenb@google.com, minchan@google.com, edwardwu@realtek.com Subject: Re: [PATCH] mm: cma: sync everything after EBUSY Message-ID: <202206160330.nZiFjZFG-lkp@intel.com> References: <20220615021504.23358-1-edwardwu@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615021504.23358-1-edwardwu@realtek.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655321737; a=rsa-sha256; cv=none; b=pdf+dP6TXlxAo0h55APossc3/VxYDdCeECM1vE9fEmB5iF/kenQoK17AqDqz5JKXx+K/MJ R5ujpE2HmL6nOPJm6cKUmR2+ecnVW9RxzjaADs7lXcyLH4UnIzWdx0z8cWcm3cenhwQsZ9 FwVTgSFse4KJG7j7SGKX5UXV5TSF6UE= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M438DOy2; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655321737; 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=Tx0lzsRkJEhY+TG7g5WImqbzqyq3yaAHahmqjiHl3q0=; b=OHpnyOPe+R9CXgTaTGjqGuhE/pRvxUeXLczmcYyd2ytUkQgXkD1w88eLHe0Cn8WBTDUVm3 Kih5qqvK7dTxqLZ/OnRDDrgutS24QfjrLUq/JDHq46mjtrEaOkZQWWLlwUfa/VV9XpnH0z doekv+fdjGrCx3MSJd6Xh6gpSTPj9bw= X-Rspamd-Queue-Id: 3D36980082 X-Rspam-User: Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M438DOy2; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam06 X-Stat-Signature: 8zacsfe5tyef388g5arx9kb6jwq55axq X-HE-Tag: 1655321734-970399 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 Edward, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Edward-Wu/mm-cma-sync-everything-after-EBUSY/20220615-101716 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20220616/202206160330.nZiFjZFG-lkp@intel.com/config) compiler: xtensa-linux-gcc (GCC) 11.3.0 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/ef04552ed13eb371365fcc55c7ae1e5c3c211168 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Edward-Wu/mm-cma-sync-everything-after-EBUSY/20220615-101716 git checkout ef04552ed13eb371365fcc55c7ae1e5c3c211168 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> mm/cma.c:415:6: warning: no previous prototype for 'cma_sync_work' [-Wmissing-prototypes] 415 | void cma_sync_work(struct work_struct *work) | ^~~~~~~~~~~~~ >> mm/cma.c:422:6: warning: no previous prototype for 'cma_ebusy_sync_pinned_pages' [-Wmissing-prototypes] 422 | void cma_ebusy_sync_pinned_pages(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/cma_sync_work +415 mm/cma.c 414 > 415 void cma_sync_work(struct work_struct *work) 416 { 417 ksys_sync(); 418 kfree(work); 419 pr_debug("%s(): EBUSY Sync complete\n", __func__); 420 } 421 > 422 void cma_ebusy_sync_pinned_pages(void) 423 { 424 struct work_struct *work; 425 426 work = kmalloc(sizeof(*work), GFP_ATOMIC); 427 if (work) { 428 INIT_WORK(work, cma_sync_work); 429 schedule_work(work); 430 } 431 } 432 -- 0-DAY CI Kernel Test Service https://01.org/lkp