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 13089C74A5B for ; Sun, 26 Mar 2023 06:07:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CF4D900003; Sun, 26 Mar 2023 02:07:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 17E31900002; Sun, 26 Mar 2023 02:07:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01E37900003; Sun, 26 Mar 2023 02:07:38 -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 E1D35900002 for ; Sun, 26 Mar 2023 02:07:38 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9710214040F for ; Sun, 26 Mar 2023 06:07:38 +0000 (UTC) X-FDA: 80610017796.05.9EB7E9B Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf29.hostedemail.com (Postfix) with ESMTP id 5A373120003 for ; Sun, 26 Mar 2023 06:07:35 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="c//FASUP"; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679810856; 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: references:dkim-signature; bh=FW/U0TIvQKqhmeurgONjzUjMpZlHI+xmgx5mThB5eJs=; b=23wqBZOE6d8TaV+nofHFsCPLxa0yhB8TlYhoCTS6Rhpah3f/yszJTGKKckO4iGzO724b1k 0t6Mkm5chJSr3+hL4+ky0iQ/2oOkTXAJnZ8BEzWczYSjl75KMyIdfwYClupfxPzYo2F5lh hfqrqmgQ0Oe3WdSpHMmcXtd8ZsJChQc= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="c//FASUP"; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679810856; a=rsa-sha256; cv=none; b=jizhGeDyh/DFqisEYjrVIiuA8ld3Dv4AZVGVnPlrPViudLzaxXEIGR+T2sXGiQDGybu98p RxqOq/c9Cvo8r188V9IifBHm/66r97867T4JWv/J9zcwD5+iH65U7PFo+vAF+yLTF4VgRx ofU3Wg8zAqWClfF+81bBYJ+XSx1aGTM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679810855; x=1711346855; h=date:from:to:cc:subject:message-id:mime-version; bh=ikb619ScTP6KDuLK9fHgfTXPu91B8ofMWbiijz/4uxg=; b=c//FASUPZatSOkWWDPDdsM3ecu/IBamYwEVfZWEQz4+YWL8BBr021lOT VLoEB8neNdPwit9spccIqSHUNsf/QRm/ybdpl4f+81Mlyb2k89XIcU49s EfW4v2CZlfukGvaPie2PbeT92n7sdBJpcbDdFlZbbE5IW2h5YBuUIInBe oQGqVUSOlB7Tz0IANmhJwDwGmaZgcsagVPpUe/nO9UrjDZkHWaToy4bOh ZSDCF/eG+AjjUcueXrSFMjLMHT+hYfM5lJrlBOiAFoYvyL3O02EyD/yxJ JCgqMxBtsKRwUQgvr6nEEIui8nCB2EzBIOwFwlntm6GqZZYrrpmkcJniD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10660"; a="426314548" X-IronPort-AV: E=Sophos;i="5.98,292,1673942400"; d="scan'208";a="426314548" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2023 23:07:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10660"; a="1012715510" X-IronPort-AV: E=Sophos;i="5.98,292,1673942400"; d="scan'208";a="1012715510" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 25 Mar 2023 23:07:30 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pgJXO-000Gv1-12; Sun, 26 Mar 2023 06:07:30 +0000 Date: Sun, 26 Mar 2023 14:06:50 +0800 From: kernel test robot To: Shiyang Ruan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Christoph Hellwig , "Darrick J. Wong" Subject: fs/dax.c:1087:23: sparse: sparse: Using plain integer as NULL pointer Message-ID: <202303261427.EdIFxgdh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5A373120003 X-Rspam-User: X-Stat-Signature: 948grrug9q5fq8jwdbjdskc33t786bun X-HE-Tag: 1679810855-179374 X-HE-Meta: U2FsdGVkX1/umHS9aErvzDOLgqTNvVxPgy/WYozkPxHMFAcfV3LYxR2xgC7eJQ7i8pU2Xfubaf86X8nWhghmqvpvIjt4cjwZu+rjNSQqhB5K+dmTnODFwc8pLkiA77Q6pITfeH+Ca5TFTvYpHazeTM3TnUZoQ4Qdte6auVz7agq0AGXx2wigomW2hTh7JrEjQ7Lb/tPcEQSEMfU5qSVdhXlQZPG6a+VBz471V6uwSIjYr+2nJgqgIzsDHkhA5eHACOnwtfcwLqSQoRpmF1LaVnrzC2DXAM7yCu/hcc7ODTqblwqz7Xdz1b4WY7871QM0WlcOC4cjwKL8JSmsE8quN9Wfqv41LA9dQfaWLMvRpaE55nKOG0VoNc9Epgq7M4sI6DJKffplhJGnP8ODvKCEChCArP7UKuVAvwwEguzQoMnqSy+0rkX26+jtxZieqI5zb9CAVd0mDj/tYhnacgneaWvcqfOOeV7hAma5PBqA+n01DurSdGf9FQ88pd7WJ9Hau9JJxF9l9ayTPNGbEHad79YijYiXte9IdHiPp2JjdO1dQrAlpDig6tWdg6oM6ebfP22U021690VlU3ELwyS15lEu9TPq9uib+Lts0RUpvqxXbx7iqrzfMcJenAta8UCaoErY9ZIjjoaFPK05jk59JtmBR6r2dnZrX1Vhq8Xj+sPA/0sZGDKHIlxx65V9VM1qEl5USQ0NHNeWUrdN92AAQGHpq87VkrAVt51N0SdBYeJ92kKZVT8hxZYvnjhHxvQDfzbrBoKR44HJUFN//h84hudzJqm1Bsmt6cZqUusigGpJrMeIRCYpplhwFQTOiD9Jni6XSzfCJeZxxY+JMmA+lLrQJy1iaKvZ+HJbXXsBv7jK83uNEDJskKSgvoGRx/Rcc/5eto2vP9M7E3RPeEaVP7UkoZhfWqVWCEw+X3kzMl9X9pgf6kthPU1I9mJJ+fjTR6xliJzOQvLKRLJ0gm0 JPgISlJ2 rdpDU9jWSE6yXTKZgHrMLm+uwwhI4FehZa9BK472gYWtHNcnIXFAvHu8/pjOzBUN/q4Cc2iHWtoTFJr1C10tRCfFh/xcvW/wDR84vOQWiDAGTUAxKiSYjeQH8ZfJYxInndVwwDiZ5tcyvwSnazzckXvd9Qp3P9sN4sW1dKkruQyMRm4Qfi1RKjEXkHcjbjtr021/ZYSflu37xPicMlEFlSoJ5D1QLzm7jqSXtFiTU1AuhN5AVJ58ao5UE3peLfAp5aSTbN/X1NMDClfmXxVZY/IOcqQUZbjfhMvaeZ+J1iD6CMBsMtn9aK/tZ2lsaszS23K+6AcSZqVtjqXenF84GwJIRa9HI6qKDJgJKUAs7/RCU7hGg8myyTBweTiDPO6ZExBWAQJTmPy0twpKmWwqE+ya4RWVnwUy9/klH 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: da8e7da11e4ba758caf4c149cc8d8cd555aefe5f commit: ff17b8df224b98e282ec39a9949a3672fa3dbe93 fsdax: introduce dax_iomap_cow_copy() date: 8 months ago config: arm64-randconfig-s053-20230326 (https://download.01.org/0day-ci/archive/20230326/202303261427.EdIFxgdh-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ff17b8df224b98e282ec39a9949a3672fa3dbe93 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ff17b8df224b98e282ec39a9949a3672fa3dbe93 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303261427.EdIFxgdh-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) fs/dax.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/fs_dax.h): include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:10:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:10:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:10:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t include/trace/events/fs_dax.h:153:1: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned long mask @@ got restricted vm_fault_t @@ include/trace/events/fs_dax.h:153:1: sparse: expected unsigned long mask include/trace/events/fs_dax.h:153:1: sparse: got restricted vm_fault_t fs/dax.c:658:39: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long v @@ got restricted vm_fault_t @@ fs/dax.c:658:39: sparse: expected unsigned long v fs/dax.c:658:39: sparse: got restricted vm_fault_t fs/dax.c:660:39: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long v @@ got restricted vm_fault_t @@ fs/dax.c:660:39: sparse: expected unsigned long v fs/dax.c:660:39: sparse: got restricted vm_fault_t fs/dax.c:664:31: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long v @@ got restricted vm_fault_t @@ fs/dax.c:664:31: sparse: expected unsigned long v fs/dax.c:664:31: sparse: got restricted vm_fault_t >> fs/dax.c:1087:23: sparse: sparse: Using plain integer as NULL pointer fs/dax.c:1139:41: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int result @@ got restricted vm_fault_t [assigned] [usertype] ret @@ fs/dax.c:1139:41: sparse: expected int result fs/dax.c:1139:41: sparse: got restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:1580:46: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int result @@ got restricted vm_fault_t [usertype] ret @@ fs/dax.c:1580:46: sparse: expected int result fs/dax.c:1580:46: sparse: got restricted vm_fault_t [usertype] ret fs/dax.c:1596:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted vm_fault_t [assigned] [usertype] ret @@ got unsigned long @@ fs/dax.c:1596:21: sparse: expected restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:1596:21: sparse: got unsigned long fs/dax.c:1637:51: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int result @@ got restricted vm_fault_t [assigned] [usertype] ret @@ fs/dax.c:1637:51: sparse: expected int result fs/dax.c:1637:51: sparse: got restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:1718:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted vm_fault_t [assigned] [usertype] ret @@ got unsigned long @@ fs/dax.c:1718:21: sparse: expected restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:1718:21: sparse: got unsigned long fs/dax.c:1752:62: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected int result @@ got restricted vm_fault_t [assigned] [usertype] ret @@ fs/dax.c:1752:62: sparse: expected int result fs/dax.c:1752:62: sparse: got restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:1815:55: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int result @@ got restricted vm_fault_t @@ fs/dax.c:1815:55: sparse: expected int result fs/dax.c:1815:55: sparse: got restricted vm_fault_t fs/dax.c:1830:58: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int result @@ got restricted vm_fault_t [assigned] [usertype] ret @@ fs/dax.c:1830:58: sparse: expected int result fs/dax.c:1830:58: sparse: got restricted vm_fault_t [assigned] [usertype] ret fs/dax.c:257:13: sparse: sparse: context imbalance in 'wait_entry_unlocked' - unexpected unlock fs/dax.c:439:49: sparse: sparse: context imbalance in 'dax_lock_page' - different lock contexts for basic block fs/dax.c:506:17: sparse: sparse: context imbalance in 'dax_lock_mapping_entry' - different lock contexts for basic block fs/dax.c:930:9: sparse: sparse: context imbalance in 'dax_writeback_one' - unexpected unlock vim +1087 fs/dax.c 1064 1065 /** 1066 * dax_iomap_cow_copy - Copy the data from source to destination before write 1067 * @pos: address to do copy from. 1068 * @length: size of copy operation. 1069 * @align_size: aligned w.r.t align_size (either PMD_SIZE or PAGE_SIZE) 1070 * @srcmap: iomap srcmap 1071 * @daddr: destination address to copy to. 1072 * 1073 * This can be called from two places. Either during DAX write fault (page 1074 * aligned), to copy the length size data to daddr. Or, while doing normal DAX 1075 * write operation, dax_iomap_actor() might call this to do the copy of either 1076 * start or end unaligned address. In the latter case the rest of the copy of 1077 * aligned ranges is taken care by dax_iomap_actor() itself. 1078 */ 1079 static int dax_iomap_cow_copy(loff_t pos, uint64_t length, size_t align_size, 1080 const struct iomap *srcmap, void *daddr) 1081 { 1082 loff_t head_off = pos & (align_size - 1); 1083 size_t size = ALIGN(head_off + length, align_size); 1084 loff_t end = pos + length; 1085 loff_t pg_end = round_up(end, align_size); 1086 bool copy_all = head_off == 0 && end == pg_end; > 1087 void *saddr = 0; 1088 int ret = 0; 1089 1090 ret = dax_iomap_direct_access(srcmap, pos, size, &saddr, NULL); 1091 if (ret) 1092 return ret; 1093 1094 if (copy_all) { 1095 ret = copy_mc_to_kernel(daddr, saddr, length); 1096 return ret ? -EIO : 0; 1097 } 1098 1099 /* Copy the head part of the range */ 1100 if (head_off) { 1101 ret = copy_mc_to_kernel(daddr, saddr, head_off); 1102 if (ret) 1103 return -EIO; 1104 } 1105 1106 /* Copy the tail part of the range */ 1107 if (end < pg_end) { 1108 loff_t tail_off = head_off + length; 1109 loff_t tail_len = pg_end - end; 1110 1111 ret = copy_mc_to_kernel(daddr + tail_off, saddr + tail_off, 1112 tail_len); 1113 if (ret) 1114 return -EIO; 1115 } 1116 return 0; 1117 } 1118 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests