Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1709924ybi; Wed, 17 Jul 2019 20:32:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw2pLwxZ3Ycr93PbOgmOF0wgf8ylWfu8bfGoPPUxVwQrNBHYbctgSlbVv/3kMfFkKwz1c3 X-Received: by 2002:a17:902:6b85:: with SMTP id p5mr44731463plk.225.1563420767195; Wed, 17 Jul 2019 20:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420767; cv=none; d=google.com; s=arc-20160816; b=0UdU4ZfPQiquADgsyaRmPWKv72Uc7PsVU5jypVZfyRFciH18QA381/EOyWgOiLPgLp pYx7eds8EULm/tk/dKtxO/u+YmLzaMWWh9wzfzwBDHXs5FAzfL452VJ2nVggimk8yiFS cX0Nv+42mibalEacjk1Tbo0Ysd50P2ATqyxRAp5E1u3CwQTgfg2c7+u6RQTCX5SVVfi9 3LNs4gwBmj5Fu3mSj+emQeGTKnYJQW14OyUsZ6mB7+Bw50sMs+kRr6/RA/aRPy8nzcMK JUo4NBq1ypAu15eA43R4pQB9/wmf5v2iEE6EIzMu+T1t41f/WWVsDOZLYJmxdbgQAEkn +vaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=v2j3pxB4GKclwmM3XYFBYabuVDDxClD7gcv5uBhNfw4=; b=FBcGS0DJZjMYbE1iqILg7ZpeBxT+qjqh++UVFrb+LZQIJ91uARo2o6/5byhJzBd/ms YJTfB2hC1SLepQG+roB6TSCtAk47YSvJvMd5XW/Falzq0+4rgD+54n1yJCzqEagxJHrf HjeKWOi0h6SdfM+f5mU4sZzjZgMnkJUXjEz9E6uY5o+se5SLfN2HbQ73xNKfq1MWW0H9 8Iq8IxP8gUo7k9DpTFh4jGchKt8UxzYz6aAFCYDNMUkbPn3MjSiDLHVKZ1UmcqO1Sk5L gvNhfup4d7Bh2IAguAoEfoGsG3OzsYuVyG0KD7tIvjoZkgd654tk+DtLqggryhEHAz1y Qq0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si1052900pga.117.2019.07.17.20.32.31; Wed, 17 Jul 2019 20:32:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389833AbfGRDcJ (ORCPT + 99 others); Wed, 17 Jul 2019 23:32:09 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:4420 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388047AbfGRDcI (ORCPT ); Wed, 17 Jul 2019 23:32:08 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6I3SsbL095104; Wed, 17 Jul 2019 23:29:46 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ttf0tkea5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 23:29:46 -0400 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x6I3TBdP097831; Wed, 17 Jul 2019 23:29:45 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ttf0tke9s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 23:29:45 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x6I3Q8gb026039; Thu, 18 Jul 2019 03:29:44 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma03dal.us.ibm.com with ESMTP id 2tq6x7mhys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 03:29:44 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6I3ThL111928472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Jul 2019 03:29:43 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7C691AE067; Thu, 18 Jul 2019 03:29:43 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA7B4AE05F; Thu, 18 Jul 2019 03:29:38 +0000 (GMT) Received: from morokweng.localdomain.com (unknown [9.85.129.123]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 18 Jul 2019 03:29:38 +0000 (GMT) From: Thiago Jung Bauermann To: x86@kernel.org Cc: iommu@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Konrad Rzeszutek Wilk , Alexey Dobriyan , Thomas Lendacky , Halil Pasic , Mike Anderson , Ram Pai , Thiago Jung Bauermann Subject: [PATCH v3 6/6] s390/mm: Remove sev_active() function Date: Thu, 18 Jul 2019 00:28:58 -0300 Message-Id: <20190718032858.28744-7-bauerman@linux.ibm.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190718032858.28744-1-bauerman@linux.ibm.com> References: <20190718032858.28744-1-bauerman@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-18_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907180037 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All references to sev_active() were moved to arch/x86 so we don't need to define it for s390 anymore. Signed-off-by: Thiago Jung Bauermann --- arch/s390/include/asm/mem_encrypt.h | 1 - arch/s390/mm/init.c | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/s390/include/asm/mem_encrypt.h b/arch/s390/include/asm/mem_encrypt.h index ff813a56bc30..2542cbf7e2d1 100644 --- a/arch/s390/include/asm/mem_encrypt.h +++ b/arch/s390/include/asm/mem_encrypt.h @@ -5,7 +5,6 @@ #ifndef __ASSEMBLY__ static inline bool mem_encrypt_active(void) { return false; } -extern bool sev_active(void); int set_memory_encrypted(unsigned long addr, int numpages); int set_memory_decrypted(unsigned long addr, int numpages); diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 78c319c5ce48..6286eb3e815b 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -155,15 +155,9 @@ int set_memory_decrypted(unsigned long addr, int numpages) return 0; } -/* are we a protected virtualization guest? */ -bool sev_active(void) -{ - return is_prot_virt_guest(); -} - bool force_dma_unencrypted(struct device *dev) { - return sev_active(); + return is_prot_virt_guest(); } /* protected virtualization */