Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp780817lqj; Sun, 2 Jun 2024 23:38:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4cQHJh7ueg902wSlFv4N8SePkZrqPNbpeL1HoqKEeETdFSP12/Ik0cB/QMYrDbKJjD9npaI1viglnEUgBTPWZGQEJ2r2g/QLs4ZH9HQ== X-Google-Smtp-Source: AGHT+IFhmCwGBYe9V8+z4UMT9oFACiBXUunSsnJ22yyTns4ktDw399U6lHbdwBgjdeJT+bjEOz6B X-Received: by 2002:a05:6830:1e15:b0:6f8:fcc1:bb97 with SMTP id 46e09a7af769-6f911f9ffc8mr9225359a34.25.1717396710899; Sun, 02 Jun 2024 23:38:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717396710; cv=pass; d=google.com; s=arc-20160816; b=wWhNI7JE8Gd/1ZEaXIRVwCcjixjcMLbGyi/HOJ+tnVXUrwrmKq8k4cXWpQQke8Ys09 C16hE11H6U8NTsFT3iBNOPSq33cSurp7nuWMgYwRO1JVLy5v6e4uqOjnN9F4wOnX/8TB M9bO9jfIbzThD0Rbiyebuhp43e3aWwaQn0hU0IzldRrxyzTvU5bWk7VfTgSkcBA8CxSR EZCV0jRZZ6xJoMGKtwcHILvuCZcweu4wAVXhNUyWEgFnlGmdTjqb+fUX+PXCcSqSL++8 5eSduA8tgG58Q1psMzE4Xm8d2t46cjv5H6WVG8tiuBf+cuePm/99w0Mt73WIfmw0mcX7 jZuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=IXdpBHYYRaTSYM/TEHpIuoqdgOCURRdwkvreXLD9trA=; fh=ZidlftsXXfziop4eAI51EP3EUOS53LY4F0aUiy1dl6o=; b=Oa/N+vCdqp589Iy39NHClY6s/JcJh+JLmfi19V82/ClhH8THC4576JZ5Agcu+t2yQB lbNkCQhcN1AVd73/qYBC5pluLp/86YpWxOshlmAlaHji/99Nymv7SiQyOvRyIf+VLPX7 LhaGloHTu4fSxkCGxjWgg1LO5IrDwjbi8aVqvbPUTZsfwi04MPagac7A1miYouRlTYXS 1zZxh+hKrJtS52wItXtTM8j+H3C1Mf03/O15chDCw5GhEp7OFrJSZ0zbQUIDE54VBUMe tK1MMsjrzm/FdI0GeMfY+jBOJEulkJl/2JZ+V9LdemTP2nq9ANRq3bS6Z4EbZ+Yskl+Q 0gvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDt2XIKu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c4d3585cf9si5250440a12.859.2024.06.02.23.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 23:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDt2XIKu; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198648-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 048A4B215B9 for ; Mon, 3 Jun 2024 06:38:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6FCE2CCB4; Mon, 3 Jun 2024 06:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iDt2XIKu" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.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 E841A1799B for ; Mon, 3 Jun 2024 06:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717396700; cv=none; b=Ntd2vdGikfZYtd7OowkFmUkVcFwr8foSa567MVMPrICB+PLpIP8zpfLLQS3bQUANf7ngDjCWqdlZv6eeQnRI82F5DTBowzGN0y96dMt8dyE3UzhC1ccBmOGbdXd2zCTVz7BqIFVtTeuHs3XfFzSEoCSjgpX8PRZ12yRukxau9II= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717396700; c=relaxed/simple; bh=sWk1wjilan0FFkoMfarqiXPdTbXDabBugnGDpneW2S0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NLZZGpTmZLvNVbWFoMH1PEI9PFIRDjfTlTTovqjp395lqYJ45UbxcXwZDV/FdaK7OUkhOSrcKX60U9ioU0II6bRBXxsY4ntV2LDXfHnhwubHvLFxyZQ7nayoFrSp7CEQvzj0+KmBbRehRBCIm9kVDFOMsfHcyEKsWaPuOLsSUaI= 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=iDt2XIKu; arc=none smtp.client-ip=198.175.65.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717396698; x=1748932698; h=date:from:to:cc:subject:message-id:mime-version; bh=sWk1wjilan0FFkoMfarqiXPdTbXDabBugnGDpneW2S0=; b=iDt2XIKuLmqfIPMz9OdEzxKFbGqSj0MkHrylYdUiQdsZg5rytjoSxtdr vCbyNNVBX1fe1LX5d/KYHtTdAe13ifgSS1Oqh56dKas+FJsxVf6T93QxK Z+aPT217z2mpn3THc+DH/w+TmVxlNBl86PR0fvU92skjAX43KAQma2u/D 8adzqUUvRzM9mHX7nf2MZz+JVApXfplzCpRz1uJgLdffAIBdqHtOAuHGj UbSZfbSC86Z05bOw2guW1A4CF42mSn9OfHCQzDyG7CGCiFggBaLpK9W9U oorctdw6lB7suJNylpHGz10xQzkRswqc3JX5yr9lc5C3oTIkk5cjRoVgT A==; X-CSE-ConnectionGUID: PAzzZ8H2Qn+oPV4d0MBeYg== X-CSE-MsgGUID: K+XXk+UGROiUdfU+l3nJdA== X-IronPort-AV: E=McAfee;i="6600,9927,11091"; a="24450898" X-IronPort-AV: E=Sophos;i="6.08,210,1712646000"; d="scan'208";a="24450898" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2024 23:38:17 -0700 X-CSE-ConnectionGUID: 0LpvD4CmR6efmfyTX6pFjg== X-CSE-MsgGUID: cfxoBYY6Ql25MZ5fM1ITyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,210,1712646000"; d="scan'208";a="67620487" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 02 Jun 2024 23:38:16 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sE1KX-000L6z-16; Mon, 03 Jun 2024 06:38:10 +0000 Date: Mon, 3 Jun 2024 14:37:54 +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: <202406031408.wNSVlKLV-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: c3f38fa61af77b49866b006939479069cd451173 commit: 9257959a6e5b4fca6fc8e985790bff62c2046f20 locking/atomic: scripts: restructure fallback ifdeffery date: 12 months ago config: arc-randconfig-r022-20230104 (https://download.01.org/0day-ci/archive/20240603/202406031408.wNSVlKLV-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240603/202406031408.wNSVlKLV-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/202406031408.wNSVlKLV-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