Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1153234imm; Tue, 3 Jul 2018 06:29:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDTVLkSoFtSBm+EDdFCnrQrjuPyxo/dZNdWkDkIlIJNTETyFGvUmX7w2LOs1rcgK8W1jcJ X-Received: by 2002:a63:bf43:: with SMTP id i3-v6mr25696582pgo.342.1530624566336; Tue, 03 Jul 2018 06:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530624566; cv=none; d=google.com; s=arc-20160816; b=F49Pz3VOZb/SgBCs+2Pz1pOrf4AJ8beksikmBIF2Rs/2+Moopvbc1c06eN2CiW5NMm 5izGfGBOqjCk8+n1gynyS26iu5iqgipFzXXGm2b0mf1HIlbG93xpMngbdlPPle4Wz/zY zloWMuZn7bUNeLfpv1ovOW3IKFBLnL0I9O6KBtv3ob7XRRaHs4EPE2GcnQVx9enqNG/Y jLTSnEsC2RK6p28TRK+kr3exBOHybeEvYMem0dWaxuThZE2FmOxs2KT2K6HRiCIeb5a/ gRXxHnVe7b9iZSVuAc7dw98ywUEOo30mxL6PV5IxCLTvSU82jSDDLIZxyBUZRNRgRHx9 PfEw== 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 :dkim-signature:arc-authentication-results; bh=NEtxyOBXKZ4euSiZxfEPR1WUwyaRYF1kz5NqQULE+Rk=; b=Pnd4/1goWIiwd/32oYzuo//Q+EwO2tA7rMTRBi1lymd4Of3mmEHQuIDv71+uPUBnT+ VtK9VsP2jSkpoXj0W6ZwTCAffmcjAYtiTzcO+iw4WeR/u67VRA29d0fKf44ABp+cY2Y1 dXHLCg3Rp9BH8ijVJwcy90/7eECS1rL9YxA/LI2+gcRT7pQMOkZiJCW3VP/8cNJOS176 RNhqn7Hfi9B2s/ui84mmYN8jnLJKRcraQ7k02KWepB2XzCpvM1vf9H8010CGbpukv3mL 8JYQCILqZJVUxt989joi9m2BE3D+G7/5+wFclezROvXXLfOjfg9j8Djplm/92Z7KqME7 jbQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=WFCM6l2Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 n7-v6si1054126pgm.612.2018.07.03.06.29.11; Tue, 03 Jul 2018 06:29:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=WFCM6l2Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753303AbeGCN22 (ORCPT + 99 others); Tue, 3 Jul 2018 09:28:28 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.167]:24843 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbeGCN21 (ORCPT ); Tue, 3 Jul 2018 09:28:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1530624503; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=NEtxyOBXKZ4euSiZxfEPR1WUwyaRYF1kz5NqQULE+Rk=; b=WFCM6l2Zm+zrvxr3pPyn+QVh+XttnBiz5g0WJGB4JqLwN/0ZLh0rCOYHn+KwVfkDrX EVwPbQSbO6aIpW+NVTCVOfCui6xmy2xI1rwU+xEXKhH2Ov9BH+IrU0HARNgG1Uh7yD/U wUQJxyGL/4urxYRkF3la/MRbb6y50/BYVuAU3cJJl4LLkz9stMcS79aROoQmo6K2d0Gi ooM9/mah4eiXs8CYZQ7wp8JoG1og6Jt37GWj5TmmSKT9Rg3y1sTWCtMhAQa/OwgimhwW 8UAVg0+Rim0F1WDldU5n5x8hXwSO5wytMlvLrrcAK594oPOjbmwEJO//nJmv3NB/cXne Ybig== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9zT8DNpa83PTIPmPqerTA7HZWXNBW+90Md7W6RUMSSWpe5PilBm4=" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 43.10 AUTH) with ESMTPSA id V0a65fu63DS5lFs (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 3 Jul 2018 15:28:05 +0200 (CEST) From: Stephan Mueller To: Vinod Koul Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Stephen Boyd , Timur Tabi Subject: Re: [PATCH v3 3/6] crypto: Add Qcom prng driver Date: Tue, 03 Jul 2018 15:28:04 +0200 Message-ID: <2990655.vKmMgW600W@tauon.chronox.de> In-Reply-To: <20180703060434.19293-4-vkoul@kernel.org> References: <20180703060434.19293-1-vkoul@kernel.org> <20180703060434.19293-4-vkoul@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 3. Juli 2018, 08:04:31 CEST schrieb Vinod Koul: Hi Vinod, > +static int qcom_rng_read(struct qcom_rng *rng, void *data, size_t max) > +{ > + size_t currsize = 0; > + u32 *retdata = data; How can you be sure that this cast is appropriate? I.e. how is it guaranteed that data is 4-byte aligned? Also, the data variable in qcom_rng_generate is a u8 -- shouldn't this type be used instead of a void? Ciao Stephan