From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 B85EB4E1A2 for ; Sat, 6 Jul 2024 23:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720310367; cv=none; b=H5ZR58cZ2+awi7Gvdyk0+C7bQixWM+bl+HGqCBYMEvSjmEggjYepAGoii7cYMstswkJaiE2cgVp6UopQ56P82WGobJoDUUiBooM+6XHLVekYB8c1wCjWinGeh0DinkcNE5pDeFuD5fmhvtUME7nPoQVFmtLTm8ysevirjJlKadE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720310367; c=relaxed/simple; bh=Cg/cHlDMqI292fb90I/mMPCW+V/qqn4P7IaWNQJc7pE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=AFh9nA61ZRE2WGuxdt2T8YFkN85rRSJjgndCm9oQAH281pJNUO9/Efr1jDkljsIDuKAzok5fThMLDCFU3aiJLKm5Bw2Zeaj3BKQaJNe5g22UcfPKfbRDwhtZ9cR3vXKZ83jIM3uBcOX7j9OWXtWR+VdJ7wTs5XWYI3B1I9HPAn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BSzPBQbe; arc=none smtp.client-ip=192.198.163.11 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BSzPBQbe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720310366; x=1751846366; h=date:from:to:cc:subject:message-id:mime-version; bh=Cg/cHlDMqI292fb90I/mMPCW+V/qqn4P7IaWNQJc7pE=; b=BSzPBQbexKSHgwAboDxvzc1cXzjQBukV11Vm9BQlZtCNrPorpFTUdv1c I670+N/iRp62od/NsIoeiDmJL5ZnhECR9Wm0m5AZ5PhKtqEfrpnND7Hm/ jL7FSaAdr5qAFbj6WPOUZZfO+PBG20mcWmTKQW6L5STiJIbWWdQWvhrPr rdImD67kXGLtGNHCE7vIMburxLmVcvo7Vs64Llfiq+jIeB4oAVuJdM1kx r+31bu4MIppLan1JGm9mdbtjwweE9ZHoDclgAJnl7gWcnkhOeCIQntcDb iFX5dEHU03WP0v/+oD3rkLECRfAmK3ELtkpVPqEtMg5Esn4n/JNN3dt3c g==; X-CSE-ConnectionGUID: C359bJ0eQF+PVnw09NIqpA== X-CSE-MsgGUID: F4uptp2LSEqa8c5AGKEdOw== X-IronPort-AV: E=McAfee;i="6700,10204,11125"; a="28160161" X-IronPort-AV: E=Sophos;i="6.09,188,1716274800"; d="scan'208";a="28160161" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2024 16:59:25 -0700 X-CSE-ConnectionGUID: mHy882u4QrG/4USbrW1iGg== X-CSE-MsgGUID: dn5/EfhUTeKLQGPJAH8uYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,188,1716274800"; d="scan'208";a="47230786" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 06 Jul 2024 16:59:23 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sQFJJ-000UQC-1Y; Sat, 06 Jul 2024 23:59:21 +0000 Date: Sun, 7 Jul 2024 07:58:28 +0800 From: kernel test robot To: Mark Rutland Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Peter Zijlstra , Kees Cook Subject: drivers/iommu/io-pgtable-arm.c:330:13: error: void value not ignored as it ought to be Message-ID: <202407070708.Bm6Ker3L-lkp@intel.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 Hi Mark, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 22f902dfc51eb3602ff9b505ac3980f6ff77b1df commit: 9257959a6e5b4fca6fc8e985790bff62c2046f20 locking/atomic: scripts: restructure fallback ifdeffery date: 1 year, 1 month ago config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20240707/202407070708.Bm6Ker3L-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240707/202407070708.Bm6Ker3L-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/202407070708.Bm6Ker3L-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_install_table': >> drivers/iommu/io-pgtable-arm.c:330:13: error: void value not ignored as it ought to be 330 | old = cmpxchg64_relaxed(ptep, curr, new); | ^ -- drivers/iommu/io-pgtable-dart.c: In function 'dart_install_table': >> drivers/iommu/io-pgtable-dart.c:168:13: error: void value not ignored as it ought to be 168 | old = cmpxchg64_relaxed(ptep, curr, new); | ^ drivers/iommu/io-pgtable-dart.c:157:25: warning: variable 'new' set but not used [-Wunused-but-set-variable] 157 | dart_iopte old, new; | ^~~ vim +330 drivers/iommu/io-pgtable-arm.c c896c132b01895 Laurent Pinchart 2014-12-14 310 fb3a95795da53d Robin Murphy 2017-06-22 311 static arm_lpae_iopte arm_lpae_install_table(arm_lpae_iopte *table, fb3a95795da53d Robin Murphy 2017-06-22 312 arm_lpae_iopte *ptep, 2c3d273eabe8b1 Robin Murphy 2017-06-22 313 arm_lpae_iopte curr, 9abe2ac834851a Hector Martin 2021-11-20 314 struct arm_lpae_io_pgtable *data) fb3a95795da53d Robin Murphy 2017-06-22 315 { 2c3d273eabe8b1 Robin Murphy 2017-06-22 316 arm_lpae_iopte old, new; 9abe2ac834851a Hector Martin 2021-11-20 317 struct io_pgtable_cfg *cfg = &data->iop.cfg; e1d3c0fd701df8 Will Deacon 2014-11-14 318 9abe2ac834851a Hector Martin 2021-11-20 319 new = paddr_to_iopte(__pa(table), data) | ARM_LPAE_PTE_TYPE_TABLE; fb3a95795da53d Robin Murphy 2017-06-22 320 if (cfg->quirks & IO_PGTABLE_QUIRK_ARM_NS) fb3a95795da53d Robin Murphy 2017-06-22 321 new |= ARM_LPAE_PTE_NSTABLE; e1d3c0fd701df8 Will Deacon 2014-11-14 322 77f3445866c39d Will Deacon 2017-06-23 323 /* 77f3445866c39d Will Deacon 2017-06-23 324 * Ensure the table itself is visible before its PTE can be. 77f3445866c39d Will Deacon 2017-06-23 325 * Whilst we could get away with cmpxchg64_release below, this 77f3445866c39d Will Deacon 2017-06-23 326 * doesn't have any ordering semantics when !CONFIG_SMP. 77f3445866c39d Will Deacon 2017-06-23 327 */ 77f3445866c39d Will Deacon 2017-06-23 328 dma_wmb(); 2c3d273eabe8b1 Robin Murphy 2017-06-22 329 2c3d273eabe8b1 Robin Murphy 2017-06-22 @330 old = cmpxchg64_relaxed(ptep, curr, new); 2c3d273eabe8b1 Robin Murphy 2017-06-22 331 4f41845b340783 Will Deacon 2019-06-25 332 if (cfg->coherent_walk || (old & ARM_LPAE_PTE_SW_SYNC)) 2c3d273eabe8b1 Robin Murphy 2017-06-22 333 return old; 2c3d273eabe8b1 Robin Murphy 2017-06-22 334 2c3d273eabe8b1 Robin Murphy 2017-06-22 335 /* Even if it's not ours, there's no point waiting; just kick it */ 41e1eb2546e9c8 Isaac J. Manjarres 2021-06-16 336 __arm_lpae_sync_pte(ptep, 1, cfg); 2c3d273eabe8b1 Robin Murphy 2017-06-22 337 if (old == curr) 2c3d273eabe8b1 Robin Murphy 2017-06-22 338 WRITE_ONCE(*ptep, new | ARM_LPAE_PTE_SW_SYNC); 2c3d273eabe8b1 Robin Murphy 2017-06-22 339 2c3d273eabe8b1 Robin Murphy 2017-06-22 340 return old; e1d3c0fd701df8 Will Deacon 2014-11-14 341 } e1d3c0fd701df8 Will Deacon 2014-11-14 342 :::::: The code at line 330 was first introduced by commit :::::: 2c3d273eabe8b1ed3b3cffe2c79643b1bf7e2d4a iommu/io-pgtable-arm: Support lockless operation :::::: TO: Robin Murphy :::::: CC: Will Deacon -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki