Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp951330rbd; Thu, 13 Jun 2024 02:15:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6oHco9zGJQS3s/rwFiwGRr4NloOXMFVEekjpvf/9rXKJmw3uSb6Rurj5ynYu3axd3ti++dM98D/UAFNe5FuRc1Pq0xXCvImsqhCUORw== X-Google-Smtp-Source: AGHT+IFBsSal1OoE5sdS33PnBljKXYIuycF43Lsht0Jr3PG72l0kIkFF9GCcuzBmtI44mvh0jZPk X-Received: by 2002:a05:6359:5f9e:b0:19f:66db:69ab with SMTP id e5c5f4694b2df-19f69d15f9bmr484174755d.9.1718270108567; Thu, 13 Jun 2024 02:15:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718270108; cv=pass; d=google.com; s=arc-20160816; b=sZZ0bmNzdfJFIjtbMQWEp3ZnSflLj59NKuMeZ4Wg5YqQHX9YkcBL9A/SXY+6ctc4q7 s+s8PIXg9P6TgESTZVLd5ZdLJ/LvlzYtKWs4y5BkuHpeDVmqHWOI0h5434azlmQApj2c VhRc/+VPvtYnhVSiTWFGlnCpIz5znma/nQVsk1fP3Nk8zFB8c53Mi06N6SmUX3vmtTNH VvnSde8B9UqbjLGk1QBubVxDxzLoSoLthOAwNZsj/zVJqkVSj53qHnm3jhNJVae66Uv+ tXW5S6xa+F1kPFLsF146ARKN4nDunD//v7jI4XEw0dVgeosPI3y2qXmTlAfCVbPB4lob k+kA== 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=kLDEo7xqnHyRoJ9e1WpesQAadHE658ANWju8KNpF2Hw=; fh=knv8kZ01yd8HZ9CvmESQn8/toYGphh6r9PV9oXLCHRc=; b=LbMy00FXQec/KMurYN4gN45Ag4ockWxcG58Gyehqrj/i0rV4goO74RpgAZw3wP9RpD p383M1niai8FKDHG0TQ2vjWjWWSL7LHEbp3+SsgtnpLxX5iSMQo/E6gUTNLMTNTuYNiH Re/MtdG80U6tfyDKKvnwwYbCBCinudCkZz5iVOvNSKreLv8Wf7Fxhi+nPz95C5FuMc2N dj6FHo/08H4af+qFjW8Kd8TAxpGrCyOec9BMo34s4/wxuVOD4AcZV3ffa3wfJnTbnyxa kAgroBov4gjsnAb9+9rZDxI/Zng/8KZiWDwRXEjXpp3spwgjZjdPwhUuf9MIFEnnnDMM pGEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b=UHTBUjHo; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212926-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212926-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee558b7bdsi956857a12.709.2024.06.13.02.15.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212926-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=@8bytes.org header.s=default header.b=UHTBUjHo; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212926-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212926-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EDCE6281A86 for ; Thu, 13 Jun 2024 09:15:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA66113D289; Thu, 13 Jun 2024 09:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b="UHTBUjHo" Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D0F513DBA4 for ; Thu, 13 Jun 2024 09:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.250.239 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270103; cv=none; b=ULwVVLQ946DUI+seOnvPzZ6LoAYSz4oaLyVs7+VCiy4QZI8j2YLAfMaOfhZhGELY6vsTtYhhezpcHraFBcgWS3W+7dC5KMrVJSQkLBQna01UJ1ZRVfjWRRPqIn4ihzT5ndgMG4eJV4rDnyk7VLl+N6pQ4+bQNzYCrBgnwB2ffbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270103; c=relaxed/simple; bh=bpGRNbBfCqyFGfItJ4k3/3+Ze/L/FmzCPu/d7k2QK9k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=akAkv9Cfz606QacUMmLxTuEmdMJYKA4T/+aYUs+/pZ3IH1cYq7trSOuGy7OTQk3JI8I5CRgsKtRD1ikQ8HiVeidO+c51EKpN87JTpQmI0FU7RiuH5O1W27n3F9U7FWdIiiTti4m9TpjnBvmzieltsdcxZZAG0I8MANtQ9qrhiP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b=UHTBUjHo; arc=none smtp.client-ip=85.214.250.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Received: from 8bytes.org (pd9fe9dd8.dip0.t-ipconnect.de [217.254.157.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 1ECB21C81F5; Thu, 13 Jun 2024 11:15:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1718270101; bh=bpGRNbBfCqyFGfItJ4k3/3+Ze/L/FmzCPu/d7k2QK9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UHTBUjHosfefB0JjjGbC1Zqu0+8+z3UFWdNufPd4Alr3tWHxUlRIvdZ1lQp+Xrq82 lnHt7nNcem8ME68XtDxOqJouMxUanx2JoVQ9/dzEXDLldkBjfCIXJfpy/X5wTrG9/g 37AYEMYGCnsXCsYtzXiMDDD7pCohfuPmYM9TCsUY7Q5Ouoqd+hCaJzAvuagrXWEoN0 B5b9Eydm2be/N46yMh9sCWfujJIzgRTrxupPlyp6qnvDp5k3XJ4NTxyy8XsPO77FPI sRfm8+RBZGbTt33QlLaI+6GvKP/ivy3bLrZ+gLYpQfhKyjS/EsK03pQ2pHVJmqaeaC /Nsr4CJAhJ7OQ== Date: Thu, 13 Jun 2024 11:15:00 +0200 From: Joerg Roedel To: Lu Baolu Cc: Will Deacon , Robin Murphy , Jason Gunthorpe , 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: 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(-) Applied, thanks.