Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5933975ybi; Wed, 12 Jun 2019 10:58:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjjko0HucFJ3kQcAnB5DikU2X2C8SqNW+bINMG71nHegaJ0oqyJ9B6evVwVq5LNK1bYdhk X-Received: by 2002:aa7:9786:: with SMTP id o6mr1664275pfp.222.1560362307942; Wed, 12 Jun 2019 10:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362307; cv=none; d=google.com; s=arc-20160816; b=t47/CXXfHFeBNDr+Auu+5/A9pwT8oNVzU1JbcYbfiLYGGKrkmx07JX+l5VwQNGdZJy 8Sp49B99puF81tkD85k6yPn5UP6W5iIu0v2asZ2rme+34ErrXC8+UIjVtO1l7tA3PI1B dL/A9/VysijOZLXNT/GmZyMdD/jLwMBebVqL8Bh25P+aZxVGmm6T/eoICgcqi0pkHM6O spcyEOViCVVtU6n0fdP9XAoJr5ppFBLbBf6TF2zzdQgJ9K8n/2UrIG+I879Xu6ADOWrg jvIDtL85i/TE3e4Yi2YSGVQculCh+eBQE0Pso0n3ZNw35rsxpvpJ8uLXexeQFBlPHWWz niAw== 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 :message-id:date:subject:cc:to:from; bh=4QzjxDQpfy18uvLy32Jy73hSUI7xomZSs6Oysm1ZXNM=; b=0kxdM1fXtEoeG9kS4PJ/mZbq2Z0tboX7kfelk8qPyZQDwYKAsBCmAhD9sSDX4IhWzt OYSz3p42SGC0NPFt4Wm6DevWz+QXPJfQ8zjGBr8cSE7phyDsAt/cUdHGQn0L29+LGS07 B3H10b5fVkJkq/VtCpRb0rgBwK76tXB+2Mr6dordaRR7+jOTwmAcTBlstsNAUK2t8kdv ZyZV1q/y+EbecBSWL72GoMk/Hel65y33Tv+Aykg1LUr8wzXolBqv7D4WuEKb77Koquwy H0rk5BWVgv25dCAE56Lps99ArzhmO1LNSeTwkAQZCeMs51PGWCQgSdfPysQrihXdmwbB o7Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si401423pgv.394.2019.06.12.10.58.14; Wed, 12 Jun 2019 10:58:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439435AbfFLNdM (ORCPT + 99 others); Wed, 12 Jun 2019 09:33:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4932 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439430AbfFLNdM (ORCPT ); Wed, 12 Jun 2019 09:33:12 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 11CAE2F8BC0; Wed, 12 Jun 2019 13:33:12 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-159.ams2.redhat.com [10.36.116.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7ED68785D2; Wed, 12 Jun 2019 13:33:07 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org, David Hildenbrand , Herbert Xu , "David S. Miller" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Harald Freudenberger , Cornelia Huck Subject: [PATCH v3 0/4] s390/crypto: Use -ENODEV instead of -EOPNOTSUPP Date: Wed, 12 Jun 2019 15:33:02 +0200 Message-Id: <20190612133306.10231-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 12 Jun 2019 13:33:12 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org s390x crypto is one of the rare modules that returns -EOPNOTSUPP instead of -ENODEV in case HW support is not available. Convert to -ENODEV, so e.g., systemd's systemd-modules-load.service ignores this error properly. v2 -> v3: - "s390/pkey: Use -ENODEV instead of -EOPNOTSUPP" -- Also convert pkey_clr2protkey() as requested by Harald - Add r-b's (thanks!) v1 -> v2: - Include -- "s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP" -- "s390/crypto: prng: Use -ENODEV instead of -EOPNOTSUPP" -- "s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP" Cc: Herbert Xu Cc: "David S. Miller" Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: Harald Freudenberger Cc: Cornelia Huck David Hildenbrand (4): s390/pkey: Use -ENODEV instead of -EOPNOTSUPP s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP s390/crypto: prng: Use -ENODEV instead of -EOPNOTSUPP s390/crypto: sha: Use -ENODEV instead of -EOPNOTSUPP arch/s390/crypto/ghash_s390.c | 2 +- arch/s390/crypto/prng.c | 4 ++-- arch/s390/crypto/sha1_s390.c | 2 +- arch/s390/crypto/sha256_s390.c | 2 +- arch/s390/crypto/sha512_s390.c | 2 +- drivers/s390/crypto/pkey_api.c | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) -- 2.21.0