Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2210128rdd; Fri, 12 Jan 2024 02:50:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0CfmJDL/odSu3zfncvCzPIFn0A5RFu8ETFL7TIcS5R4zpwGSKQXKmG+eEKH01tdt3D8i+ X-Received: by 2002:a17:90b:512:b0:28d:283e:4c1e with SMTP id r18-20020a17090b051200b0028d283e4c1emr3486488pjz.32.1705056631062; Fri, 12 Jan 2024 02:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705056631; cv=none; d=google.com; s=arc-20160816; b=WdFT7h+c7VT/zeXiR3mrsOm0nqs96XwcN7DiI+msgqcKpUR1ttRpxnITFwJ8Yg5N7X UMNoV/nRLN+F9YcWZHwmHGOHyn2f6do2fdESbSL6W2yjT0X40JGopVMiTysIZve2X3go UCZguZ18J6rArdRFecEFgVXQL2Ld+YJcygKE2a9AuEsnWhOdkkJpIby02e73o3IsZ8GS loX9EHDH5naR5Rf/CLUrynJri4DIGeqbtU032NyPfDOaqMQBhhBsjsHy59OY0ws/fxhh O0WO62uyt9v+fC1YiWYHhI8peHBm+B9+cFQBhR6GThdrVK8gb3rmHedi/v4xLe1Ywb3C di8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AtoSLcavB8skrgy7esz3sCHTyqclO+DG2segkBiGCtg=; fh=W5IN1EaKAenAE6H/7P4snquvuVfz7o862B1vFKm5aeA=; b=fSzgFb2vvCiWzZS9HLBP2ZqC57QNzKFn6T1U1aV9T4P7Gsra1BCKSxq8IBovMPBWZX p5RRqmznV/drMT+TbTs0haRe7sKmcRPznpAtB+TTCVOR3A4MbwYTAkDQJYNWun1Nu+zB k5eU9gSQLo4PLq3jNyluRk04UlyplmKng/dy6jfyA4aBtGtGliKb7UouVJ+SSuHEk0db LXOhT33jB/QXYlqVZjqnbvtRxzuajuNDxUPFttYj74PeFdT7E7OtVZkKwN9/gcVaLPSJ 7jL1ao0OzuV+8Na7D8VcMHu8+f1pu1HPjY68PXtZKev7cwa0ex0n8hXxpCv8osbq6MU5 WQWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fq4nAbmg; spf=pass (google.com: domain of linux-kernel+bounces-24596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lb9-20020a17090b4a4900b0028d27478235si3292690pjb.115.2024.01.12.02.50.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 02:50:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fq4nAbmg; spf=pass (google.com: domain of linux-kernel+bounces-24596-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 62F1E283126 for ; Fri, 12 Jan 2024 10:50:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 652545D8E4; Fri, 12 Jan 2024 10:50:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fq4nAbmg" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2027B58229 for ; Fri, 12 Jan 2024 10:50:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705056606; x=1736592606; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jBcbNO/emXMnFd8vU5REf/lVFMfe1N3qhJIffw/+PT0=; b=fq4nAbmgLqXPtUM2QrpXjBXdTK/1xhYm8vmAVDvySLdbWs36VLPVy0ax Kbus7Sb/zEC2jbxcL7LiTcVSuIDt5/1WWO2dSYUVeoANlhM63Q9fyGpYJ fYQHfJF0+YaD4pGU9Dtzpu85uH+cULDnnsghL3eiX3NpoUZvvEAkUncMu RCMvh7piJ65P9pxpQNvwFf2Lx4Km0HlxfKN8LOEwJFQKqQyYWp+cSi4Ex Xc1NLX6+vYXMbnDikKVYh7dxEHBnwZhZZh9bSVyK0x2/Uqa1ZDTk2I3vk fkdRMfm/3Y36/V+s3qk8bGPIziEZaAYB9X8u/B1+DDoqMe/TWRt19T/0+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="6505412" X-IronPort-AV: E=Sophos;i="6.04,189,1695711600"; d="scan'208";a="6505412" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2024 02:50:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="759093869" X-IronPort-AV: E=Sophos;i="6.04,189,1695711600"; d="scan'208";a="759093869" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 12 Jan 2024 02:50:02 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rOF6t-0009LA-2e; Fri, 12 Jan 2024 10:49:59 +0000 Date: Fri, 12 Jan 2024 18:49:50 +0800 From: kernel test robot To: Wupeng Ma , akpm@linux-foundation.org, dave.hansen@linux.intel.com, luto@kernel.org, tglx@linutronix.de Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, mawupeng1@huawei.com, bp@suse.de, mingo@redhat.com Subject: Re: [PATCH v3 2/3] x86/mm/pat: Cleanup unused parameter in follow_phys Message-ID: <202401121839.yeX0qcR8-lkp@intel.com> References: <20240111120929.2694440-3-mawupeng1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111120929.2694440-3-mawupeng1@huawei.com> Hi Wupeng, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on tip/x86/mm tip/master linus/master v6.7 next-20240112] [cannot apply to tip/auto-latest] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wupeng-Ma/x86-mm-pat-Move-follow_phys-to-pat-related-file/20240111-201305 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20240111120929.2694440-3-mawupeng1%40huawei.com patch subject: [PATCH v3 2/3] x86/mm/pat: Cleanup unused parameter in follow_phys config: i386-buildonly-randconfig-002-20240112 (https://download.01.org/0day-ci/archive/20240112/202401121839.yeX0qcR8-lkp@intel.com/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240112/202401121839.yeX0qcR8-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/202401121839.yeX0qcR8-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/mm/pat/memtype.c:973:2: error: call to undeclared function 'kunmap_local'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 973 | pte_unmap_unlock(ptep, ptl); | ^ include/linux/mm.h:2965:2: note: expanded from macro 'pte_unmap_unlock' 2965 | pte_unmap(pte); \ | ^ include/linux/pgtable.h:103:2: note: expanded from macro 'pte_unmap' 103 | kunmap_local((pte)); \ | ^ >> arch/x86/mm/pat/memtype.c:972:1: warning: unused label 'unlock' [-Wunused-label] 972 | unlock: | ^~~~~~~ 1 warning and 1 error generated. vim +/unlock +972 arch/x86/mm/pat/memtype.c 5899329b19100c0 arch/x86/mm/pat.c venkatesh.pallipadi@intel.com 2008-12-18 952 b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 953 static int follow_phys(struct vm_area_struct *vma, 76b476f1ffb4bf1 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 954 unsigned long address, unsigned long *prot, 76b476f1ffb4bf1 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 955 resource_size_t *phys) b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 956 { b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 957 int ret = -EINVAL; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 958 pte_t *ptep, pte; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 959 spinlock_t *ptl; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 960 b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 961 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 962 goto out; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 963 b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 964 if (follow_pte(vma->vm_mm, address, &ptep, &ptl)) b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 965 goto out; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 966 pte = ptep_get(ptep); b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 967 b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 968 *prot = pgprot_val(pte_pgprot(pte)); b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 969 *phys = (resource_size_t)pte_pfn(pte) << PAGE_SHIFT; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 970 b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 971 ret = 0; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 @972 unlock: b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 @973 pte_unmap_unlock(ptep, ptl); b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 974 out: b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 975 return ret; b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 976 } b4e07d9667b7ae8 arch/x86/mm/pat/memtype.c Ma Wupeng 2024-01-11 977 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki