Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp12466lqm; Mon, 10 Jun 2024 11:04:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXF26HrLFkmgEksE2X7aX3sqeg6KVMu/CE359iwPbReMGf9u2WP9iO3V+zjDcChkjVjs3H654NuVlCmwd7L/M7v8wtgsO9LYPP15Fbjvg== X-Google-Smtp-Source: AGHT+IFo+dQiv6g4s1p7NwhcnMo2B10UO5t9sIvLlOC2VE6WShcNa2zRnXvq9Vqb0dYANUdlBeam X-Received: by 2002:a05:6a20:3c8c:b0:1b8:3f6d:3037 with SMTP id adf61e73a8af0-1b83f6d3494mr2394718637.18.1718042653212; Mon, 10 Jun 2024 11:04:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718042653; cv=pass; d=google.com; s=arc-20160816; b=umUPjv5F0t/h4MDmTFPc6k7qIpO3B1aSF/6Driph1/OH/vVay6zelDeTxjCETXZTir lLOFu/kxgGupqDGNfwLRGLpe8Bluv9f25MIC+33h9EeCm+OlWYuPOdkxR5bzTRedkkWp 4XADm9hFXrb3th3CulrFn8/jngn7f1MP2p0qsRd6jLFiOUaZJ/E+CFAoA8uqUV5Tul03 pDmi9d/FF3fjjSHuZBp4ACRUGC2WCwkni5NYkti2nhNPRYkf05a9nb31FcyYr5bgNqCG E0OJpURezKDnnvUYf3OttCdxdOmqpVXqhWckvnuabhT1bJ9eGCwhnpgYRNRJkhnJUI20 k3hg== 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=mLPNuDrUNKDp5u92gqFlS+I5przmPvAZoMgl2TmV6Gw=; fh=Ji4bSkosRniH0Kk6gco9PKfdspPe7Lmtghm9Io+ko1Q=; b=0FovS2YQwxR1yicxETXoZtGZGj0KAfVBTb0VYBdEFzAYcwSSHCOnhJSi1X7OvDYNKK 8j3N/hsoQz4muxVlkSo60I4maQRul4wvubt2roE+9HB74AKJ0C31jCvBfNvCIbZc9NTt 0EWJ1aS/3rWNPARNEarr/yt72cN6qi5p75H6mt3WVSbrIwxOovSsJKxphM19EeBWmIAc hs9xVpf0OVvkaTPEtJotBDzn1HS+CfAWUg8dL9Srdun7jLi9BqmXMYxHxJ5IUA8hTwKH 8ZYEAoXQ61lmpa4dAFBut8+OwRLKhmhJ0MTtUQHUeKgPSj/SIbhTLJwQay6SE82viYld rlLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ej3yi98M; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208653-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e4d01f2c02si4337417a12.271.2024.06.10.11.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 11:04:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ej3yi98M; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-208653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208653-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D152FB21324 for ; Mon, 10 Jun 2024 17:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A457146A85; Mon, 10 Jun 2024 17:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ej3yi98M" Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 AF2EA8F6D for ; Mon, 10 Jun 2024 17:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040689; cv=none; b=uD0fymWmvqnwFihZyVZ/8EIVMML6dGucg5NQaEH77wGEoE24ttvpSjVaoq401il8isv+Jqwz5HROqSJZIqme+5mupP+/GRm3YKHuYr7cnp5qDD5RZ7+hPG9muKBw7UB8szpYOr8/nphfkoCKijGpBjtGEXoEqWxLOKz76TQKWMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040689; c=relaxed/simple; bh=n9rffRvvZDo46Wm4EmkIP9rTg/Dg4fSh/n65t+tFCaQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zohlf/f6/egYbsxc+nmw4fq/Jq4S905gnZAnSgBMmCQDGcUWxptqPg2iZEeOR53erPgcNZCCUBJ02qu/N8wvRjSP0Z3MUOijkcrTvX9M8fcZNVM5b+G8LUel0xr9PehAizeYMFJXmZUAOTNAif93BavOIszPGTp+TwN+asldA0U= 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=ej3yi98M; arc=none smtp.client-ip=209.85.160.50 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-oa1-f50.google.com with SMTP id 586e51a60fabf-2506fc3a6cfso2297497fac.2 for ; Mon, 10 Jun 2024 10:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1718040687; x=1718645487; 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=mLPNuDrUNKDp5u92gqFlS+I5przmPvAZoMgl2TmV6Gw=; b=ej3yi98MUBQOprm9CDvAr6Skn3VwYbw46Y5ZHRwl9iFzGWfWTgAf4Qfz2mvMkYwWpA qfY0+nUqCv5Nuz7kiwblVFQLbXjKfwlN9n9LlL44iEsHn0zEbp5XoPkhz8x+UM5Kd9yq iMhbHxXilxbFuzlBal80MGMb0RHHqRh1fL2hW0KEaS9sS2H4h48/Q030XUIyuDCvjxdk rOn8hu7eTcHBMdwNVEMYuVE4UeRuF5IrOvLvxTg0/PkhufMeLRmctvZTJoRMZg4bDxeH 6mIvf4B8580auN7EnGCCCX3UsXhGyNAF8KdYD0bd6u1ovV+MrQqY7NknTZrP4fUcg6t6 Ie9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718040687; x=1718645487; 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=mLPNuDrUNKDp5u92gqFlS+I5przmPvAZoMgl2TmV6Gw=; b=STH03KO1MppbW7t+ho4uxD+63qTLp3Jcme9WMe4sy9Aj9yY3z51Yw0LjJwM1R9tb+n veVs3mJ3RCrgknhTIUeN22wkCeEFuAyX8Mlm0PaOcGQkh6H/y2FB8QntB89aT/PAh40m JIaOiFyUFnkK88QmeP3QEi0ynHp97hXOslCjnWxIAXmXh9Mz+7s4Z3830Na/n/7PcUWf LaCePjS+k2/1B7pJUugiBSo/TS70Fel80km9rMmdb2Cux0iBiI8WjAuJtB7zGXNKaQVg Wdy9stYm2sDApk9mIcQCkcDGi3lLCXm2+KEu97JipGmDCm8dOJgTE/Pr98HBEJfO1qK0 OW7w== X-Forwarded-Encrypted: i=1; AJvYcCWmh90WS2VW0NpFjB2pcwW5A3cr8sK9NEP+U7FJxKb9iXWLDZ87W+IuFHD2jX+XBEw2aeYHeJbpOo3I6od2zE8XsBwGJTfSfGzI1eCX X-Gm-Message-State: AOJu0YxD2zhWlb2OdsQ+aR020N5PqsebFZk43elCiXm26JVn90HeHeJo p2tLvSyr9dHr0alAquit5tnoEBTTrLSVdbROaaGsEZb5AQAVdHDia7A8VYpVoqE= X-Received: by 2002:a05:6870:ae81:b0:24c:ad9d:417f with SMTP id 586e51a60fabf-25464475e26mr11011556fac.7.1718040686697; Mon, 10 Jun 2024 10:31:26 -0700 (PDT) Received: from ziepe.ca ([128.77.69.89]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79550c14b4bsm266991585a.29.2024.06.10.10.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 10:31:26 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sGirc-00Eq4E-Gf; Mon, 10 Jun 2024 14:31:24 -0300 Date: Mon, 10 Jun 2024 14:31:24 -0300 From: Jason Gunthorpe To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu: Make iommu_sva_domain_alloc() static Message-ID: <20240610173124.GK791043@ziepe.ca> References: <20240528045458.81458-1-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: <20240528045458.81458-1-baolu.lu@linux.intel.com> On Tue, May 28, 2024 at 12:54:58PM +0800, Lu Baolu wrote: > iommu_sva_domain_alloc() is only called in iommu-sva.c, hence make it > static. > > On the other hand, iommu_sva_domain_alloc() should not return NULL anymore > after commit <80af5a452024> ("iommu: Add ops->domain_alloc_sva()"), the > removal of inline code avoids potential confusion. > > Fixes: 80af5a452024 ("iommu: Add ops->domain_alloc_sva()") > Signed-off-by: Lu Baolu > --- > include/linux/iommu.h | 8 -------- > drivers/iommu/iommu-sva.c | 6 ++++-- > 2 files changed, 4 insertions(+), 10 deletions(-) Reviewed-by: Jason Gunthorpe Jason