Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3476604ybg; Fri, 25 Oct 2019 04:50:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVqlkJGapeX95vlZxJN79WK4B5h6/QPhv+PVGvqYBF19vJL9OvCQKZ9kkCDIMt9yDzGBUm X-Received: by 2002:a17:906:3946:: with SMTP id g6mr2962147eje.49.1572004229151; Fri, 25 Oct 2019 04:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572004229; cv=none; d=google.com; s=arc-20160816; b=p4lOSUfbGmVwtRB5pV8wxCH9w5+DWUNP5hNQBJ807bDnch+IOntF3CE/zpt8u+GgL1 nVQVzO/6RGCO+6KKyKNNBQL3uKta0we6Ijp/QhgO7jDaFIiFBkYLwvbLxf43JNAvpOzo k0MnpMXTKxgbocbcbnWKL64DtUuSO9MuJ8kfja8Kb5vlpP6+hjXDzUWKFdE/nOGYGsxH CAYIt95RpjnTdZbnJ4aLpxzSxiEJCe/WwN7NqiKMLr4rnDfB443F8zVFVMYFfRE/v48v wS20O2ZOR2eem1gjFbJhHwdh6ba4Tpb/YqWc/OuYdIIOI9k4YLO604uV/C2l6Krm++83 lcXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=J3r1/BMIFSEKKYtNdVplRyzM8ILcKY2JkMVIZNu5Jtc=; b=oD/H1wz4NdGzIbSCoP6u7NvbPXTPsraX2xslNT1f8YfxmsGjBUHbuoLSzfV8EHeTfu f3EjQj6yoZaT2QHorb2i2tXDdSTFjD1Kdx6TNKLZ4RqF/oETO4R7T++Yxr0LjtgT88Lr RJ6jhoZSslNz/dotm4JZXCkiiyVmICxRUp/3oyob+ACutkhBEzl9UCVmqh+Y2Jo+IrwM 58p3TeiHZCWvJK4UDlhpu3GwUz6RQlxxnORJXoOr6j2n/4CZCcW3ukFik9tt5pi0K08m mLkF3cLW3Ka59R+wmxn6a7iSO0PdQEODJkKoN4hnpI0ePs2tA109kqt8aJo0F8vpSq+e riZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xv2iN//o"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox3si1002876ejb.170.2019.10.25.04.49.57; Fri, 25 Oct 2019 04:50:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b="xv2iN//o"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502520AbfJXNXD (ORCPT + 99 others); Thu, 24 Oct 2019 09:23:03 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55364 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502518AbfJXNXD (ORCPT ); Thu, 24 Oct 2019 09:23:03 -0400 Received: by mail-wm1-f65.google.com with SMTP id g24so2821799wmh.5 for ; Thu, 24 Oct 2019 06:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J3r1/BMIFSEKKYtNdVplRyzM8ILcKY2JkMVIZNu5Jtc=; b=xv2iN//ou7wvZe4dQvz4p7gYOHke1ZCdbtmBLQfimWNZDYbAVqiVPQyCUCJxMqece4 aTf2PD8/afiim1yNKntcyuvi9LiFy0b3pFhSYWThLc5Mbb9BTPQ1HjnlktrNCAYA9+W5 +DOvqpZ/dbXsEMEGLiVVoJXZJ8PxbH9dggSwA09csXhotkk6Kh3paZ/4nS1aMT0bdvZQ rftuSFeoS1cx8Pnpt0X1CLTwpX2D/kb0g7SOYtNLRYPKruKY6OON6Tik2fVYCi527YP8 gv83EvQaCfcjysWn+Se2Kwy4/5CRDqwDoq4ZRuEF5y8sxs/CzcJaGwgCgBN7bKbTsCIV lXvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J3r1/BMIFSEKKYtNdVplRyzM8ILcKY2JkMVIZNu5Jtc=; b=UPcYB1HwXu7xmR3n0+NKHO2mm+em8ghBJJq4E6CQ0IAb7LgV1xzhd2Dgk8F0Ks/cUW uKr3mpKIgOP4BDS/mtsmavjRcM39/MRkoR1WFSwnkGv/z4D+EAuJ03OXu3f+OL8m6JmW hz9Fl8U1/UTWS25hZMNmEO3/Lf4oHh02J4BkuLB+1u/8aXsTle7JVm2OIr931wT/bsF+ nwA0xRiITcEKly/23kx3ICdCLZMJOEC8lfsg4mjLpGpeEpizDudlxGErXjR0A2sJSdkq HYxUJ4ab6QILPJeJ6+1q0W7lzepDaMcMGU//mP9qjMQ8SZQJWiqIsUII9U01whsialKM wHgA== X-Gm-Message-State: APjAAAU4OD9du3netdnoiOHbcX7HMzWUD8j6myFMojBsKuT69H5Q/Vrt BkqiXbKVgiyd5v2bbIL7F3n2YUW4nfNvFv4pXm5MZmD/M8I/zdFn X-Received: by 2002:a1c:9d07:: with SMTP id g7mr4978873wme.53.1571923381345; Thu, 24 Oct 2019 06:23:01 -0700 (PDT) MIME-Version: 1.0 References: <1570792690-74597-1-git-send-email-wangzhou1@hisilicon.com> In-Reply-To: <1570792690-74597-1-git-send-email-wangzhou1@hisilicon.com> From: Ard Biesheuvel Date: Thu, 24 Oct 2019 15:22:50 +0200 Message-ID: Subject: Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig To: Zhou Wang Cc: Herbert Xu , "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 11 Oct 2019 at 13:21, Zhou Wang wrote: > > To avoid compile error in some platforms, select NEED_SG_DMA_LENGTH in > qm Kconfig. > > Signed-off-by: Zhou Wang > Reported-by: kbuild test robot > --- > drivers/crypto/hisilicon/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig > index 82fb810d..a71f2bf 100644 > --- a/drivers/crypto/hisilicon/Kconfig > +++ b/drivers/crypto/hisilicon/Kconfig > @@ -18,6 +18,7 @@ config CRYPTO_DEV_HISI_QM > tristate > depends on ARM64 || COMPILE_TEST > depends on PCI && PCI_MSI > + select NEED_SG_DMA_LENGTH > help > HiSilicon accelerator engines use a common queue management > interface. Specific engine driver may use this module. CONFIG_NEED_SG_DMA_LENGTH shouldn't be set by an arbitrary driver - the arch code will set this if needed, and if it doesn't, the additional dma_length field shouldn't be expected to have a meaning. If you are fixing a COMPILE_TEST failure, just add NEED_SG_DMA_LENGTH as a dependency, or drop the COMPILE_TEST altogether (why was that added in the first place?)