Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp909694rdb; Fri, 2 Feb 2024 07:39:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEV5zXyF0vd3T5E0Hbz4wxDTgAMn0jVVt9XoFas4nev81NOpBkYfP2tO1Eg2OHnWLGYhyTF X-Received: by 2002:a2e:9c0c:0:b0:2cf:35d8:31ee with SMTP id s12-20020a2e9c0c000000b002cf35d831eemr3199556lji.16.1706888388938; Fri, 02 Feb 2024 07:39:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706888388; cv=pass; d=google.com; s=arc-20160816; b=zmWM9FLffH7wlgeUBqAY1Dwa+OBGrTZgIT3gaYGze5COs6zw+Y3O49YXxgPN7yynMU gDsgULqqe1lCjF9nAc2pVgyQ4sX0WnSSttELggmzgTSwROiNIP2r9rSoAYtiNhFId9bC rHc0nl25GhV5Mp5dVMktd9jol7UrlnCRRY3msTmCR1oofhjLuqe7cKfCI+vgLuAbxv3B i0aV7MzIPxHOH14K6WQoqdV2ptNFd8eXWsOgYZ+XzaGMcU7XpTLWXNTVr5wK9qwCwWfd T0Nd74HFs+kCqCW6dV7juQCNN+tBDWBnVMpgDMwEwG4XYW7pFSfl4sbg9HqlEbG9l0Dn YRsw== ARC-Message-Signature: i=2; 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=lU39QnoNXjcBC7nfuMXyZD80hgMpGm0/TrjMwiAD348=; fh=JWoib/+j9kUzwciV15jZDTzCJR+2SFv0epTQcN6S6fs=; b=L8sxoa/MX5X+xL2vrmWdlwUQccvRpkFYmAqlv4iDrPdC1o+bEhT2+2Yf/8pWSVwKTs RgYa5W/IriXtTXDuXm0kHNGBf5pTow2Ef+3a+B8azA+PvpW46MmOLO/S0iUdlufJJlgR SkrQ+dcyiMZmBdQsMBUWib9IKTMEl8+nlu/uVVI7OJS7j78CA3KovI0TVWeix/L0seDV rKT+xr4YhIZwOZSYdoYojx4d1evkjKoEq5bMm1BoPJkz1CsCxcRZ0pZYdLKjV0sTlFTU YbkNO9zC0vONX0l5fm/pxhRxdPeaIqIEoYegaXsqRXBxDutUGX3wCeksbmjJICj00iBP n/Fw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Eanzd07O; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-50032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50032-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXuLptblriL4z2o4EnNXF2cj4eFOw+Md9AzNzs3ILH2uBZQmzky3y19PCvPU/8Y/pLELptTP1fazmACpsZLaO2bzdvaTaTQ7B+MekhdvA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z10-20020a509e0a000000b0055eb31f4a7dsi944704ede.167.2024.02.02.07.39.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:39:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Eanzd07O; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-50032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50032-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 89F0A1F27314 for ; Fri, 2 Feb 2024 15:39:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 829B01468FC; Fri, 2 Feb 2024 15:39:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="Eanzd07O" Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40E0914198F for ; Fri, 2 Feb 2024 15:39:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888377; cv=none; b=uN1qfUoN2/5VPvDWdX8bTanyHf+ws9pX2sw9fS94l6I2CZGYJwtEdjSakqvj0u+VkFoNasRdPcd9JzlFptYIqckQ9QZfwaA+j7pZcFO+m+Qtg6zIMwe3qnYVpcY1olVAcvA0PRjkvZFUGPDm3jtiwPvpIQOQ1xSR03C44l2IAso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706888377; c=relaxed/simple; bh=4ZWofalsuZmb/ntmgNIW+GtgsDeiz2TAm4x47GB9Y40=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XnBZB1BG7ut493ED8knxYm3kGLP55Es3B7sFNLPH1wpQh72jB+yA666Z2QgKFNRFRc+IIJRovPnUN/E5CJ8yEfdGAi4pxDKeFb2BXYGDrHVZ7ej1c0Xk+w+le9dnaLyuryuNxCYKj99+2INKoKoe27X0seTsbu9hcmk28e2aHNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=Eanzd07O; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-783d4b3a026so137645085a.1 for ; Fri, 02 Feb 2024 07:39:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1706888375; x=1707493175; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lU39QnoNXjcBC7nfuMXyZD80hgMpGm0/TrjMwiAD348=; b=Eanzd07O11HXTWELGYmK6w3r44SgZTBxl1/tW0JiA41HyR8bfaIQGSjwWPfWi6YbjU f+ExuL8+Y6wVtX39aIg3BgzCjhddWuN8QmmFRja7YHXbfkFkdnchkQC8f23VRT2MUMhz uCvxokoBm7aGCYNORI9LUlFKyGObgdVLVu9mYk5fRZ/1XlFXn896nOWusZuRbQQsHent 5ia2j4JtThZ+sXtuXMzs+K4WOdtEw3XtAN3M4LqRCmjw7XkpLoE4p56hNlAhgKwgdt6G JiFA7POqoe9Uz96/7HzOFEYluBFSqwbjdeABjt1imstP0Sq8a8KeAvyaTtfa5A0zoY9f dFoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706888375; x=1707493175; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lU39QnoNXjcBC7nfuMXyZD80hgMpGm0/TrjMwiAD348=; b=RPq85Q3ADDA9Pu9WQ0LPEQNLBtqxxPtbssTMuF1eKomWlJArOvIu6wcENvx2L3F0LQ ap+MYdi/yMC4eDDxQzaQHhZgw6YJZ2BWcdz37smS53WsuW/hFTu9rFXQEnsWHiXtlEom gkxgcqVLO6UBccivIVzZ6NSnHAL6NSHTMrsg7hN4IfCRqU1JMdC2VVhCByHXfZRJ4y2H xWUYX4mLCntiqaszEmu+Gl/1bqCuLhxKtLBcP55b1HcnffjfczAb0veBoZYNT4+2va4n Yc2Slu84pnR6UMsZj6MFxLmKDOVxW16ya0HbKkRwHvUK9S6ETNrv+yb6fhmOIuaqs608 RxRQ== X-Gm-Message-State: AOJu0Yz5zV/jpalBRR7TiOCV22lciY8WsU6Xrh0k0NKM1WIBkDv27VJ+ KksNIuG7Ic72Qs9o5L+bDUM3BafNxIPOguL86NhAwhBCzuvZK5TR9TzOhY2Dq8w= X-Received: by 2002:a0c:f38f:0:b0:68c:83f9:fa3c with SMTP id i15-20020a0cf38f000000b0068c83f9fa3cmr2468777qvk.65.1706888375070; Fri, 02 Feb 2024 07:39:35 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVAceCf+KoqRHjUTfSYwJrnQ15qAFsD6FwrGJ2OFm83JtDL7BCcZ/JsXY/5AxhcVyY4PpqDhCNhmskIo4bnmfKFlnH1gdyuljk9N9A6RnVbD7VFgPyIBMiqoE7i3je93SXXFLHvDaNhqHmcMAJHesqukN2bjxRk80vE9JnS8KH13l3/qeMgcXk5+9R0/zQz9GPCOSwQuXjSJt5A57Jx00cSKDI7wE+ak37jQMuUKmDmKDWRbBaAwyoy/zwmAwHto2S4SNtSHUVKoA3T4Dx/Fk8HPdodxFAAcwWVoODL7tzBMw6nO4Hoe+jHcs3lTw158b5TQWmXQ9KoSlg3gamJsCzztQ3HoAMsji5xXx5ui9rJ7AmYnYSUazsT258mSUBa4rhB/BL5gpgyom1msg+dVxRl/otZiHF9Fy3QcRq1SV9hbIB6vHMa Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a240500b007840a2586cbsm760828qkn.110.2024.02.02.07.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 07:39:34 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rVvde-00AwI7-14; Fri, 02 Feb 2024 11:39:34 -0400 Date: Fri, 2 Feb 2024 11:39:34 -0400 From: Jason Gunthorpe To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , Longfang Liu , Yan Zhao , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 16/16] iommu: Make iommu_report_device_fault() reutrn void Message-ID: <20240202153934.GB50608@ziepe.ca> References: <20240122054308.23901-1-baolu.lu@linux.intel.com> <20240122054308.23901-17-baolu.lu@linux.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 In-Reply-To: <20240122054308.23901-17-baolu.lu@linux.intel.com> On Mon, Jan 22, 2024 at 01:43:08PM +0800, Lu Baolu wrote: > As the iommu_report_device_fault() has been converted to auto-respond a > page fault if it fails to enqueue it, there's no need to return a code > in any case. Make it return void. > > Suggested-by: Jason Gunthorpe > Signed-off-by: Lu Baolu > --- > include/linux/iommu.h | 5 ++--- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 4 ++-- > drivers/iommu/intel/svm.c | 19 +++++++---------- > drivers/iommu/io-pgfault.c | 23 +++++++-------------- > 4 files changed, 19 insertions(+), 32 deletions(-) Reviewed-by: Jason Gunthorpe Typo in subject 'reutrn' -> 'return' Jason