Received: by 2002:ab2:72c5:0:b0:1f7:f6a4:354b with SMTP id r5csp97734lqm; Tue, 7 May 2024 09:40:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9yCLQ2DnDhdR5NAP163pMYKj4Xmve0nSgKFmbFq58FrDMv61w0XRIgfVUx3xjDILPu8HHlUQUariaVqakSnq5b1Ldxjc6hG/j7R8tcg== X-Google-Smtp-Source: AGHT+IG230b+w5yBkO4qeyzPiqlUgi4xfCrCGdAoBoS6Lhb0ziQwS6pz8NPSlrczVT7gc4G1NWl7 X-Received: by 2002:ad4:5941:0:b0:6a0:b3ff:1897 with SMTP id 6a1803df08f44-6a151477874mr4300556d6.30.1715100007003; Tue, 07 May 2024 09:40:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715100006; cv=pass; d=google.com; s=arc-20160816; b=ZwPQSFdbBltzmLTKoJaPLoMxRIg4IvExwop6v4tYw1VrLmbWM6WDROYbMsGWulxfoX uH7QiDuCvkjcibSHKBYBPPHkrhW7/560KMfR/ZjR5ZqnmnFWR/KgEo8W28QmRiCsv6zl p8qK/T1aEdUe8rrPQSLnY6kcl44TNPt0dVZM07ZYylEAHUz+0jglV+IM5DvBqMu2hWvi NtZR7CujW04zov6YgxYzhEeA99S+bH+NagMjV1kRv9Rok0VcUYjTKOWZmuMYxxIBBNQU K3Z8cZRSfZRcg+kJtB483D7+Q4HTap3sU0anU3GrFC9DpNRsH10JHYRvMfuSUoYJ0J5V +9wA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=VJ012Q9//RmwPNni97kdU0owqsPV9uahC3XCnkLIBe8=; fh=kzUdUJgQxgbfNziH8WcTLd8j+nJLR39xkl3579InenM=; b=lV8m5Px9EsLiocWZwUwIOPW8o1Q1eQxIKXBGtteDNfk324+AwTMkrcuhSQtbriuqvB IZvkl8176VWl2tIafo/s1dmUSsNpxeU3rWeMB2raF4uVC5hH2DaLOzHzkSJxLXMtSVX2 wNbtwEuQFRn3X/0XeqqW8SDyxK9NbpU8uDmjugtWCTvvvmEeZWFw92wf6CAs0T00GP+A fJhB+FdJAytk10kqiClCPxylKlpU2gPutYQ5AwqQ3FtrgxGLxFI3WOrREwJGkONVC5mJ 7lvPwZy0OaLnNvKA85f7qtajfvzurGMfKq+WmRD9fq2NY4S+DXarqPh62pucvfg+TZv0 Ctuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=o1PUuU18; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-171840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r16-20020a056214125000b006a0998f4fe0si12285820qvv.512.2024.05.07.09.40.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=o1PUuU18; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-171840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A45431C237F0 for ; Tue, 7 May 2024 16:40:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE24016D9DD; Tue, 7 May 2024 16:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="o1PUuU18" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 61F3516D322; Tue, 7 May 2024 16:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099707; cv=none; b=YOXMvCpNSqZKr+pyr2qZaQ8COuHwdv3+avbQet06oAR1Ia2YBUfZv0XofeYsaaLs1uQ0Smat4lSUJmZIR6+8KJz3iZC0TqNkJPbHdM5ATvbCWVEeZccIgeQ5iHp4Kx/rq5bcHPK9qZ+qcNCXIx0WpMB+RHRzkKJYxxE6YO6kOco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715099707; c=relaxed/simple; bh=57uYbuim9Hu4C7H4vfg5kDTB6ZjQdpi42ugRCkVfuqI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OEVVNipzhZoVcOWtolORjYxD/Ay1RQxU+Cay8XhVFZ+fILTjJXk1RQp1mpEGqOzFbGvC3vtiy+Ow0kGShS8rCY7CRUmDz+J8hb40062Dkc1+b2uGjZgAzGGYw8qmgZ9J68PsGJlw+rPCz2ZKbfLWy8f25mFSI89QSccb1gnhOx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=o1PUuU18; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 447FtEpQ015151; Tue, 7 May 2024 16:34:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=VJ012Q9//RmwPNni97kdU0owqsPV9uahC3XCnkLIBe8=; b=o1PUuU18fJj1aNuSb2C+shGqUUMHfreMcnwUXgkdl92PSAOnndbQxrpFmJkLaZVg94fc XBpbl5sEzaIWK1i8MwulMfNLbM/wX/8b3H7xmgYj7Pyiokb0RdfpUqP+xR9RHKGDByw7 bQcSEUaq6hh6g177jQ8Xa88xIXt4RfWvLnpLZr+QamU4ifrM4aCVV+k0kwIcneoKgbuj m+tspAO9VAu21ycM/U383/yhzo2jGIAk0gTyBWWa+PEZERqH1lfYWbJbGqOzpzeGh3oT 87pgg8YaadsctMsPenHK4iZYGcai5zLIZnSQCN0DIic3KsZI4nh6WLDQoxTj6DXhc8BR 6Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xyqc503fe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 16:34:57 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 447GYv7Q013548; Tue, 7 May 2024 16:34:57 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xyqc503fb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 16:34:56 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 447EbJxL031316; Tue, 7 May 2024 16:34:56 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3xwybtyj2x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 16:34:56 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 447GYoTZ15597932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 May 2024 16:34:52 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B3A8220043; Tue, 7 May 2024 16:34:50 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 747CC20040; Tue, 7 May 2024 16:34:50 +0000 (GMT) Received: from p-imbrenda.boeblingen.de.ibm.com (unknown [9.152.224.66]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 7 May 2024 16:34:50 +0000 (GMT) Date: Tue, 7 May 2024 17:53:36 +0200 From: Claudio Imbrenda To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Janosch Frank , Gerald Schaefer , Matthew Wilcox , Thomas Huth Subject: Re: [PATCH v2 06/10] s390/uv: make uv_convert_from_secure() a static function Message-ID: <20240507175336.4d7b14ec@p-imbrenda.boeblingen.de.ibm.com> In-Reply-To: <20240412142120.220087-7-david@redhat.com> References: <20240412142120.220087-1-david@redhat.com> <20240412142120.220087-7-david@redhat.com> Organization: IBM X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: U_btB3z65KuGcB1VV8av_CPOkxk3SM2l X-Proofpoint-ORIG-GUID: E2fRKeg_CT-pqOiw-QThF8VNeX97y-ll X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-07_09,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 mlxscore=0 clxscore=1015 phishscore=0 mlxlogscore=942 suspectscore=0 bulkscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2405070112 On Fri, 12 Apr 2024 16:21:16 +0200 David Hildenbrand wrote: > It's not used outside of uv.c, so let's make it a static function. > > Signed-off-by: David Hildenbrand Reviewed-by: Claudio Imbrenda > --- > arch/s390/include/asm/uv.h | 6 ------ > arch/s390/kernel/uv.c | 2 +- > 2 files changed, 1 insertion(+), 7 deletions(-) > > diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h > index 0e7bd3873907..d2205ff97007 100644 > --- a/arch/s390/include/asm/uv.h > +++ b/arch/s390/include/asm/uv.h > @@ -484,7 +484,6 @@ int uv_pin_shared(unsigned long paddr); > int gmap_make_secure(struct gmap *gmap, unsigned long gaddr, void *uvcb); > int gmap_destroy_page(struct gmap *gmap, unsigned long gaddr); > int uv_destroy_owned_page(unsigned long paddr); > -int uv_convert_from_secure(unsigned long paddr); > int uv_convert_owned_from_secure(unsigned long paddr); > int gmap_convert_to_secure(struct gmap *gmap, unsigned long gaddr); > > @@ -503,11 +502,6 @@ static inline int uv_destroy_owned_page(unsigned long paddr) > return 0; > } > > -static inline int uv_convert_from_secure(unsigned long paddr) > -{ > - return 0; > -} > - > static inline int uv_convert_owned_from_secure(unsigned long paddr) > { > return 0; > diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c > index ecfc08902215..3d3250b406a6 100644 > --- a/arch/s390/kernel/uv.c > +++ b/arch/s390/kernel/uv.c > @@ -156,7 +156,7 @@ int uv_destroy_owned_page(unsigned long paddr) > * > * @paddr: Absolute host address of page to be exported > */ > -int uv_convert_from_secure(unsigned long paddr) > +static int uv_convert_from_secure(unsigned long paddr) > { > struct uv_cb_cfs uvcb = { > .header.cmd = UVC_CMD_CONV_FROM_SEC_STOR,