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 51B21C02182 for ; Fri, 24 Jan 2025 02:02:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1AB228002B; Thu, 23 Jan 2025 21:02:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC8CE28002A; Thu, 23 Jan 2025 21:02:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB87828002B; Thu, 23 Jan 2025 21:02:31 -0500 (EST) 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 8E8A628002A for ; Thu, 23 Jan 2025 21:02:31 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 4B54FA0A6A for ; Fri, 24 Jan 2025 02:02:31 +0000 (UTC) X-FDA: 83040696102.04.4B0EDB7 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by imf13.hostedemail.com (Postfix) with ESMTP id 8A67F2001A for ; Fri, 24 Jan 2025 02:02:28 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KC33eZN2; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.17 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737684149; a=rsa-sha256; cv=none; b=FvMWN+gN6qm9fiEwzrB4JfcWnBRyxd8rLBA+nmTJfRiVwbREzd8FzjNncExnAaZ43W6OAr dKbjHBQeTToiiyx4KSt+TDruEAilQez1yGj9o/Ow4iYAMTicCEGbmZt9vK7bVxZtfrRqHF uKmXX/y51ZRqngitvb5jhbv2cWEYmog= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=KC33eZN2; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.17 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=1737684149; 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=0szytpVfWGcmdp0Vs4dneaXcxth27ATj+z/FqloUFgY=; b=MJKhrclyEzJtfc8VNSQbgIqmbMXpzzikzapH5r2d+zqpTKeOXNUS4zYfV5GxxdvvN1pZhR IjKKTN2q0R7aaohVIgNt4wkJndfOrH3OFHgiCIIEO2ZxQzN6Y5fgPJkcRzJd//oWbmMC/h 41Rfk0hmK62YGiFW+O/WgVaXMrlMIZk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737684149; x=1769220149; h=date:from:to:cc:subject:message-id:mime-version; bh=Pt4FkoTPh/xqy5ugIaHVn4kMBmyVuuEa9zLTtJ+9Wic=; b=KC33eZN2TYsrW4syDBq1XCtUSt/6nGIrGYI66xDNe0RJ8IdJ5fjp6Dvd q1MLCT4Fk5c+vpyDN4ctYYSzZL7SQQenNnXPC3ySThqwYLGfWSHb8O1cY 5Bi4Oktu0cRzrb8cHZ0jFKLA/DzmoNspCqK75clbkatTGdlc44ub5qmsR JzIkb0oRdCRUQNFP4T2imxLm5oSsK3OvG064HoJajoHuE2Jj0U3mF2+pv f3ciT+D9aZR+laL9pUg0t+ByZcliQKq2hZPlOPbYjqnsGufX9zMVibNZB 9SHoNNAZtb171ScU0ClO55GLJsaZn76V81elnY4vccTZbSD3mwbtF6de5 g==; X-CSE-ConnectionGUID: pxRjLIHSSD2fANut3INNbA== X-CSE-MsgGUID: 1W/sqc/xRQi5pSeyEiPnaw== X-IronPort-AV: E=McAfee;i="6700,10204,11324"; a="38242199" X-IronPort-AV: E=Sophos;i="6.13,230,1732608000"; d="scan'208";a="38242199" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2025 18:02:28 -0800 X-CSE-ConnectionGUID: plSGiPvLTUuV91LhKwXeLw== X-CSE-MsgGUID: DJWBW2WiTmuePgrAcLFBBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,230,1732608000"; d="scan'208";a="112647473" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 23 Jan 2025 18:02:25 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tb91b-000c0s-1e; Fri, 24 Jan 2025 02:02:23 +0000 Date: Fri, 24 Jan 2025 10:01:40 +0800 From: kernel test robot To: Peter Xu Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: mm/gup.c:778:15: sparse: sparse: cast to non-scalar Message-ID: <202501240922.a4YzQD7u-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Queue-Id: 8A67F2001A X-Rspamd-Server: rspam10 X-Stat-Signature: r5usyao7sx75zcrop4mueyoouhpap99w X-HE-Tag: 1737684148-231380 X-HE-Meta: U2FsdGVkX19uxann3yueJSKP/GTtVpFiEB88R+l1VWC47vzsJk2cOZn57LZH6r78tfJXaR6L1t/K2dJtAlZQQx7Yx4QEzr2gMiG93h2v/jELhgQ8N8BC5sat9VuyaEP8sjNtTtSJOShi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Z4G5yqXkWsKalD0q2Wpn1tul3zp7nRdd23hpFe54va5JwA0izbQ7PSqJIggAxEGUU9V77F1ZD4Dta/QWwIyDxtm/LNa9GlmSqgoC+An0= 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e0b1f59142746f74476a03040f745329c8355a7e commit: e6fd5564c07c3c749ff3d1b2aa35540b4047e395 mm/gup: cache p4d in follow_p4d_mask() date: 9 months ago config: alpha-randconfig-r112-20250124 (https://download.01.org/0day-ci/archive/20250124/202501240922.a4YzQD7u-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 14.2.0 reproduce: (https://download.01.org/0day-ci/archive/20250124/202501240922.a4YzQD7u-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202501240922.a4YzQD7u-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> mm/gup.c:778:15: sparse: sparse: cast to non-scalar >> mm/gup.c:778:15: sparse: sparse: cast from non-scalar mm/gup.c: note: in included file (through include/linux/mm.h): include/linux/pgtable.h:315:16: sparse: sparse: cast to non-scalar include/linux/pgtable.h:315:16: sparse: sparse: cast from non-scalar include/linux/pgtable.h:315:16: sparse: sparse: cast to non-scalar include/linux/pgtable.h:315:16: sparse: sparse: cast from non-scalar mm/gup.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/mm.h): include/linux/page-flags.h:241:46: sparse: sparse: self-comparison always evaluates to false mm/gup.c:682:9: sparse: sparse: context imbalance in 'follow_page_pte' - unexpected unlock mm/gup.c: note: in included file (through include/linux/mm.h): include/linux/pgtable.h:322:16: sparse: sparse: cast to non-scalar include/linux/pgtable.h:322:16: sparse: sparse: cast from non-scalar include/linux/pgtable.h:315:16: sparse: sparse: cast to non-scalar include/linux/pgtable.h:315:16: sparse: sparse: cast from non-scalar mm/gup.c:911:18: sparse: sparse: context imbalance in 'get_gate_page' - unexpected unlock vim +778 mm/gup.c 769 770 static struct page *follow_p4d_mask(struct vm_area_struct *vma, 771 unsigned long address, pgd_t *pgdp, 772 unsigned int flags, 773 struct follow_page_context *ctx) 774 { 775 p4d_t *p4dp, p4d; 776 777 p4dp = p4d_offset(pgdp, address); > 778 p4d = READ_ONCE(*p4dp); 779 if (p4d_none(p4d)) 780 return no_page_table(vma, flags); 781 BUILD_BUG_ON(p4d_huge(p4d)); 782 if (unlikely(p4d_bad(p4d))) 783 return no_page_table(vma, flags); 784 785 return follow_pud_mask(vma, address, p4dp, flags, ctx); 786 } 787 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki