Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5734284ybi; Wed, 12 Jun 2019 07:35:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ9SM/9AvsPiZAeYaOjJdNKU+MlseqAL3ksSg9yhVauxPW+DnitYvhK0pl4Uo5VAWqMrdx X-Received: by 2002:a17:902:8c83:: with SMTP id t3mr55753165plo.93.1560350153446; Wed, 12 Jun 2019 07:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560350153; cv=none; d=google.com; s=arc-20160816; b=qPGNG6wnPv7ED3tAaKId1TUwVPgGH/Vfvj/fn/UTbB8+iWupckMxWXzC/m0d2PL75B p9u/I9kthHZeHb+pS5Pws6S7DR3ppL7fChNJXdGQVYS0tHFYkNjUTqcoxBDI3QkMCvLw GPG8O+OBd1XccoZmoL8s1X43y2wStORtTNhczlH3vFxxzYwE6xwE4MlRS5cyZAYQ34gU ymQneTVMzl03zw2oN4QxezA4190RxvBvTKfZZPx5+JMwTgWBmsiVhAzYsPbwT7NdFyZ8 Lc3kE/lRyHI7/44KUrTIe3SXfbErLny/u0Ur9LccqBFhny9Be3t8OicYrFTFzaxOmSgD zSsA== 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=3QuIS76fR3VxUYoQdSWEH9APfdYWS626HkDDQvcqPbU=; b=h9H9mf5KsZN8K3n6VdtQThBomEIxzxnuuTT0VMFnCrC60/e0lsZjzylOn0rD886Gpy e3+Eg2BfFStqUKgT0GZvfLL1ZIHn/mg9/c1EIoRja2tCEAkY1Ruo5eD5UlELDIL1uHy4 zO8Qr98tiE1dy0H7Lc2VbL4O8FY3fLMZ0wuJaccm7SG01AsKzLAsMSta/5zLS3oG7QtY /puaxGnIsVPSu0ynOH+KXDMg5jTe4+MJZM36LhPeMRyKnZAQQt0RTjKyC0ivvcbW2eMr gUyIVkaJss6+JaNq97PZ/emYucr82B05+Xfy0EX7AzsTRtfyn1AmmyKXc7zJZzxZ3yet D1tA== 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 s187si31123pgb.49.2019.06.12.07.35.39; Wed, 12 Jun 2019 07:35:53 -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 S1732111AbfFLKW5 (ORCPT + 99 others); Wed, 12 Jun 2019 06:22:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfFLKW5 (ORCPT ); Wed, 12 Jun 2019 06:22:57 -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 0E25D30821AE; Wed, 12 Jun 2019 10:22:57 +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 D6E1060CCC; Wed, 12 Jun 2019 10:22:54 +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 v2 2/4] s390/crypto: ghash: Use -ENODEV instead of -EOPNOTSUPP Date: Wed, 12 Jun 2019 12:22:46 +0200 Message-Id: <20190612102248.18903-3-david@redhat.com> In-Reply-To: <20190612102248.18903-1-david@redhat.com> References: <20190612102248.18903-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.47]); Wed, 12 Jun 2019 10:22:57 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Let's use the error value that is typically used if HW support is not available when trying to load a module - this is also what systemd's systemd-modules-load.service expects. Signed-off-by: David Hildenbrand --- arch/s390/crypto/ghash_s390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/crypto/ghash_s390.c b/arch/s390/crypto/ghash_s390.c index 86aed30fad3a..eeeb6a7737a4 100644 --- a/arch/s390/crypto/ghash_s390.c +++ b/arch/s390/crypto/ghash_s390.c @@ -137,7 +137,7 @@ static struct shash_alg ghash_alg = { static int __init ghash_mod_init(void) { if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_GHASH)) - return -EOPNOTSUPP; + return -ENODEV; return crypto_register_shash(&ghash_alg); } -- 2.21.0