Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3501921ybg; Fri, 25 Oct 2019 05:12:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJjnn+hoXxk8bD/zhoRQxzA2/shWzGjStuD1wnNpWGAhLMIyTX3FCQp67bwgdYhP8As0fC X-Received: by 2002:a50:ee95:: with SMTP id f21mr2495657edr.18.1572005529169; Fri, 25 Oct 2019 05:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572005529; cv=none; d=google.com; s=arc-20160816; b=H3O+ZN61y58AsFw0zsBnzAQGODquS/M23xx5qmDxrTDahagJ/viW5tvOw/BBR+L/7y 1aUXLI+HDd4P+T8bDpDNUA8zK3h1IIrsuhB1zZn9b+dD5GrlZ4VqzKCVYOxuRvUu0S6Q GtRNQ5xT1rCvulUqpr1twiIKxBqAlFQhd2IItqpmOgeIFTkpI+FyRB0BjW1G4rtcCUMO 0hNct+V6JZO21+sJRMAmOH/SE/x05z0vXgtbQLw3LZ2aeXEnnFCo+ReOE+p7jBrwP4z3 8CniPgGn3nbGy5jliTgTLP7EAnhgzfwB+T5HBXsW0QQnMkXG63jej5NtL/EepfY1FP/w lyTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FezWkomwwKld03FBSVkz2lG2XRBti1wZ8vEKykVtok4=; b=A1pXfEIyNsaJofIWvgbqjjQPtlaxVVXY5wEmmtsonXsIHLXRQId1xA4hhHGvEZ02n9 UAHL6Wx3+WiXnUrKEaImdI7DBlvMoVYByKigg8isTYykgTAhgg4l3ecE3htCQ3t/yKQD VGcD36YAZriq4uf0sO/OyflDE/vfMSCOWrjPjqGcTdL/hjL0fQ5ZOfj9j9n2ig2gFNnU aCNbSUOsV9Wh0nIgpOUhbLfK82a0hrLH8AGEMgOwFcx2Z2gXvMQF8o/hYCFRY9sFHtOW p4q09amMvr+fdfMD0UjUSgRNYDXrH5afia2H+mCiTC5B7BqNb7XYx1WeFHSw0wRDz6kU M14Q== 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 v4si1156767edm.299.2019.10.25.05.11.38; Fri, 25 Oct 2019 05:12:08 -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 S2393829AbfJXN4l (ORCPT + 99 others); Thu, 24 Oct 2019 09:56:41 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:55966 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbfJXN4l (ORCPT ); Thu, 24 Oct 2019 09:56:41 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iNdbO-0007K6-8b; Thu, 24 Oct 2019 21:56:34 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iNdbJ-00063o-9V; Thu, 24 Oct 2019 21:56:29 +0800 Date: Thu, 24 Oct 2019 21:56:29 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: Zhou Wang , "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Subject: Re: [PATCH 1/2] crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig Message-ID: <20191024135629.vs43o3rz3xe2hg2c@gondor.apana.org.au> References: <1570792690-74597-1-git-send-email-wangzhou1@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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) instead of sg->dma_length Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt