Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4028201ybg; Fri, 25 Oct 2019 12:17:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp81XaPTC2XjGnoGwncFG1trvegU//fftgh5Cno7KluC3VkdT1itx6MGaXaoQxEld/rStw X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr5786625edx.157.1572031056409; Fri, 25 Oct 2019 12:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031056; cv=none; d=google.com; s=arc-20160816; b=A38tzxEH/Ie1H2V9blnUWnwbMRNVgyEBQRwKc2ldj7CvxK8J1wIlzS4DJ48QV1q5Kx yKloiichRUfKlMtPFk1YraqkGIt8NApey/dCWZoMaKuN8ujGW/x4hJiKime67n5is7ii 4RT7LRQRNLpfir+SQvHiU6Q13YilqeNbESUvCbqdLqghRpc8ePN6GIRux082oEc+GOzv p4zdd/3aQZGOcVgbPJhkcr67arrrfHpP0cDEARuWc53t7U+MYg8ANiGThiGa10mMTc9L AZQn8HqhlS1HO2cD01MLaRA5AQ1UcB96RDo9Ab7E7Qu+qtvFGTlPxzOh0RlIQOd2Utpw GFVA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=p4bGercDhb4KhIIHxS1m5ZOzoBv/Vomc29mvkgD1Qak=; b=WzC0TL82c/8kqHP3nHObZv4dU240Aa53b0gFTZG95gMSULlom4tdVDEldgvj/sXXwV GHkCb9YujSVZXlskF80M7GRlPkZb8A6msgjMnJIkiN6GYi9vhO+5wFlPMYG+s+EWGHmQ rqLoSVgWNjswiVeYM8/SqrcMQptqCJvh4CGKihqJqo0mBluaxYbT/GMxXLccXHVrzRGN g3ltp7s/9e+gxIeAEWsyugdaRHAw+8ksio/NBuhmqgLHD1b8jXkiPXbVER0qWeXldhjD I2H+upEIdFJn58WBmn+NlI5MPNUNfnN6bUJ9FNxZnsWR4+DLKxYuopLEPWS1/H5n5/3j ++yg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qw15si1745782ejb.137.2019.10.25.12.17.12; Fri, 25 Oct 2019 12:17:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388430AbfJYBAc (ORCPT + 99 others); Thu, 24 Oct 2019 21:00:32 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52540 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388427AbfJYBAc (ORCPT ); Thu, 24 Oct 2019 21:00:32 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5E380D564F8B85ECFD54; Fri, 25 Oct 2019 09:00:28 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 25 Oct 2019 09:00:26 +0800 Subject: Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig To: Herbert Xu , Ard Biesheuvel References: <1570792690-74597-1-git-send-email-wangzhou1@hisilicon.com> <20191024135629.vs43o3rz3xe2hg2c@gondor.apana.org.au> CC: "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" From: Zhou Wang Message-ID: <5DB24928.5000307@hisilicon.com> Date: Fri, 25 Oct 2019 09:00:24 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20191024135629.vs43o3rz3xe2hg2c@gondor.apana.org.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/10/24 21:56, Herbert Xu wrote: > On Thu, Oct 24, 2019 at 03:22:50PM +0200, Ard Biesheuvel wrote: >> >> 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?) > > Because we want to maximise compiler coverage so that build failures > can be caught at the earliest opportunity. > > But a better fix would be to use > > sg_dma_len(sg) OK, will do by this. Thanks! Best, Zhou > > instead of > > sg->dma_length > > Cheers, >