From patchwork Wed Dec 11 19:27:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Higgins X-Patchwork-Id: 11286153 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53A0414BD for ; Wed, 11 Dec 2019 19:28:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 336C4222C4 for ; Wed, 11 Dec 2019 19:28:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="StcCt920" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729518AbfLKT2Q (ORCPT ); Wed, 11 Dec 2019 14:28:16 -0500 Received: from mail-pg1-f201.google.com ([209.85.215.201]:34444 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729512AbfLKT2Q (ORCPT ); Wed, 11 Dec 2019 14:28:16 -0500 Received: by mail-pg1-f201.google.com with SMTP id w9so13216630pgl.1 for ; Wed, 11 Dec 2019 11:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=BQ5LiziZTeureblMPRNhovCXqRNggUJSXGHiPxM/c88=; b=StcCt920kwcBiRwjrKhZVZfcXqvWzoL3r1mwj2A85X1Yzs5qM8b3iyK84qRp1Xs7T8 nonSRsmF7cm63RO7uct7RtsbWnUsWtpfdrSHZzQ5zS4F6ADqcm1oFinW9wAv5SasTErQ MbFuILnpIJvsikvuajGp2juGxrDNIc6Y9702aa9/ARewgVsP/aeyorCc5ciRsoVa+P+S jgzoQubZJPDR6o9WZ7klrN/MziCbEzYK3VfkZ6aZIz/KmnfZMnp48dBZHtQd4Io2p8H2 A+irmwTtNlu7mnTiIFdtxGrws8OgfJF8cloRZedpWGR4jWGaDBnpNtYboiUcc2WnzzjQ fJ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=BQ5LiziZTeureblMPRNhovCXqRNggUJSXGHiPxM/c88=; b=XuIbVdz9xCKiTE1bZJZ9xagG8BRHKPpIMROypBvAufyGX9gmJcHvVqNsOU19VuHNjp 1B6ghJ+D5w7/QBHUocw1TN6QtXxlEYde/Y7do86VlWh8dy/DORvOQ+RLUc03crCsDiZV oa8I8JNmhUL2vWjpvAPVJlwhCoZNL6HNP6fGz/pfYZ+xMyrjV3+9fCnrbgcvnnfU25WZ SQzrzc59CEqCJXzvb8MNoEIqgNzhFCUKt1BRWL7o/xKCLtd4iVprVZojtDbULyyYOb/D LSMvIcuxmKIrLgf+sEwM41qvr4ZZRnJhxwnnjwh7bHic/bdDk5UZjcP2WHSWhWLIwfKP u/yA== X-Gm-Message-State: APjAAAWToc5PZEuoRAbKgQcp66Bu1UXTf+Zz47ePx4dy8G+y01ijHeoS 8jirag6u0+GekLgkxtLU7NuARgLoXHQrXRkbBegxZA== X-Google-Smtp-Source: APXvYqwHq1wPbJfX1P3di6U0QGKesenIIwA8rNjsA9QoHqtRWhSBzb50nACoOAVrlh871zgnanIejWFROnewubWK71T6wg== X-Received: by 2002:a63:1756:: with SMTP id 22mr6056384pgx.109.1576092495090; Wed, 11 Dec 2019 11:28:15 -0800 (PST) Date: Wed, 11 Dec 2019 11:27:39 -0800 In-Reply-To: <20191211192742.95699-1-brendanhiggins@google.com> Message-Id: <20191211192742.95699-5-brendanhiggins@google.com> Mime-Version: 1.0 References: <20191211192742.95699-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog Subject: [PATCH v1 4/7] crypto: inside-secure: add unspecified HAS_IOMEM dependency From: Brendan Higgins To: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, Herbert Xu , "David S. Miller" , Antoine Tenart Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, davidgow@google.com, Brendan Higgins , linux-crypto@vger.kernel.org Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Currently CONFIG_CRYPTO_DEV_SAFEXCEL=y implicitly depends on CONFIG_HAS_IOMEM=y; consequently, on architectures without IOMEM we get the following build error: ld: drivers/crypto/inside-secure/safexcel.o: in function `safexcel_probe': drivers/crypto/inside-secure/safexcel.c:1692: undefined reference to `devm_platform_ioremap_resource' Fix the build error by adding the unspecified dependency. Reported-by: Brendan Higgins Signed-off-by: Brendan Higgins --- drivers/crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 91eb768d4221a..0a73bebd04e5d 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -716,7 +716,7 @@ source "drivers/crypto/stm32/Kconfig" config CRYPTO_DEV_SAFEXCEL tristate "Inside Secure's SafeXcel cryptographic engine driver" - depends on OF || PCI || COMPILE_TEST + depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM select CRYPTO_LIB_AES select CRYPTO_AUTHENC select CRYPTO_SKCIPHER From patchwork Wed Dec 11 19:27:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Higgins X-Patchwork-Id: 11286151 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F282F6C1 for ; Wed, 11 Dec 2019 19:28:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D0EFB22B48 for ; Wed, 11 Dec 2019 19:28:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="DtM9qYeh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728542AbfLKT2S (ORCPT ); Wed, 11 Dec 2019 14:28:18 -0500 Received: from mail-pf1-f201.google.com ([209.85.210.201]:35604 "EHLO mail-pf1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729618AbfLKT2S (ORCPT ); Wed, 11 Dec 2019 14:28:18 -0500 Received: by mail-pf1-f201.google.com with SMTP id r2so2718400pfl.2 for ; Wed, 11 Dec 2019 11:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=+AvX3U8tZ4b8BiNANQzx7evp/O/27ZLdKyQrn0pJXbo=; b=DtM9qYehCfFNg/2rDxI9xbbVLYFNzd7QNXDoduc3ewRCMVgsIBSrgdNK5ptL+U4f+2 r67/3YrnkoLP7Kqiaz+JAnGYBbYp91kDvxX0ElG4278lRGtqmi82fxSlS+/E0HJKlCJ2 Pxf8r+Wx2vW2j1NVRovGNlQ6d9dl9a+90t/5GtKZELnNvodiQsb9QM9G4+kICCGyWT34 BikGd90MK2nF5sFfrxHGijgzYzgkkuRp93o8jjSmRsAr4wlMv9uTK1Col8Wpaoq82MTI uxNScY05gmd/DRSdPfpQ9UdSWG4SUXok6uU6aqu5cBqV2PCE4FKZHWP0rt3hpdxJsCFA xi5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=+AvX3U8tZ4b8BiNANQzx7evp/O/27ZLdKyQrn0pJXbo=; b=A7ops8xMZdwKLaYQXWsHAns6/lSk82KDiG2fKVewgAkd1892nu1/itThfTPWztYNFL SpU50+gaG5sbpMaEd67lBMVpXSsXdQ27zQ7vCdaGG2OdHJov2IkrLd3genkw7ZbAa+0X afV7olWc9DAYCSAhr0yGHZYNYjsC/JQ0B4zqRowg2PTpYhuxtN3wkXsWwlsGpDIIt16n G56RufkdyRGLxz9f9Et3CoB8yZBryvtkQpr+eIOksPqMaYDY6PAvvVxvcKei6/DXZksM o9N+4Qwa8cdLIefEgkVMDr+gYxVXMSYp3oTLKGTNZ8h199P4zH7/dpQBfSTEt0GMCpwl mA5g== X-Gm-Message-State: APjAAAUH3ATS/koscKVpO8Cj4z6/F9kx4sJIZy6bGgMUbMSL88n2MsQU 1+MjSqp1HH+oZ3u67o/SAYmQhbkq3bxNBVq/xDjIoA== X-Google-Smtp-Source: APXvYqzo2ljEGvchzRcyIbUEZT9wdgSNT2CgcXIYDlIj+7NoyR/2724Q+hSDkumLb2AjZxDXvEVS1q4vfz+to4FDTj4n7g== X-Received: by 2002:a63:d642:: with SMTP id d2mr5757128pgj.205.1576092497512; Wed, 11 Dec 2019 11:28:17 -0800 (PST) Date: Wed, 11 Dec 2019 11:27:40 -0800 In-Reply-To: <20191211192742.95699-1-brendanhiggins@google.com> Message-Id: <20191211192742.95699-6-brendanhiggins@google.com> Mime-Version: 1.0 References: <20191211192742.95699-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog Subject: [PATCH v1 5/7] crypto: amlogic: add unspecified HAS_IOMEM dependency From: Brendan Higgins To: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, Corentin Labbe , Herbert Xu , "David S. Miller" Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, davidgow@google.com, Brendan Higgins , linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Currently CONFIG_CRYPTO_DEV_AMLOGIC_GXL=y implicitly depends on CONFIG_HAS_IOMEM=y; consequently, on architectures without IOMEM we get the following build error: ld: drivers/crypto/amlogic/amlogic-gxl-core.o: in function `meson_crypto_probe': drivers/crypto/amlogic/amlogic-gxl-core.c:240: undefined reference to `devm_platform_ioremap_resource' Fix the build error by adding the unspecified dependency. Reported-by: Brendan Higgins Signed-off-by: Brendan Higgins Acked-by: Corentin Labbe --- drivers/crypto/amlogic/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/amlogic/Kconfig b/drivers/crypto/amlogic/Kconfig index b90850d18965f..cf95476026708 100644 --- a/drivers/crypto/amlogic/Kconfig +++ b/drivers/crypto/amlogic/Kconfig @@ -1,5 +1,6 @@ config CRYPTO_DEV_AMLOGIC_GXL tristate "Support for amlogic cryptographic offloader" + depends on HAS_IOMEM default y if ARCH_MESON select CRYPTO_SKCIPHER select CRYPTO_ENGINE