From patchwork Wed Feb 17 03:20:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 383791 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp2465424jao; Tue, 16 Feb 2021 19:21:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoVOIFZr783IqGyH3fhRWMsPqYde16zpAvKAP0ZOZIaciUc/X59J8G/KLWsYQEs5RKYvPj X-Received: by 2002:a05:6402:2210:: with SMTP id cq16mr24155263edb.148.1613532076988; Tue, 16 Feb 2021 19:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613532076; cv=none; d=google.com; s=arc-20160816; b=bJukEaL3UTwCKDX1BXfx18CYRp5+UeRkbXV758K1PrgruKx+K6hsdmNo36Osb4xmOA RCNTQy8NzssaEsgeAWrma2orOIZoHCpzFApJCyAIMZAz6vt8avbuaHXZPSWI8Rr9S4AX 8bxRE66v3Y+L1IS3EP2eu+HtbNowu46e5h85orVNdLEwVZ3eFCqmT/eWCdGB0FY3BaEx NM76kHV6bdUWU5uGPcJvnhB3aXujwvm0RzNp1YRkGv4RR4b+y3EInEAuui4gnDTkeUMm ydRPP0wgRVYDu5TVG6cGxsV+gHdXH9RbThsfNoJJcEnlJ1ys6CJ7vltTQQq0p7mxikGw PqLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Nt+c5PIBe19tTBuT1+cPItaJUQS7rWhkaUuDGNQ/lYY=; b=Q04mH/J61YNsJ34cDnIdT/sKm2bqY5l1vPTnSdb5QjxUmO/+O7uKQGWlrDCWm3oxrX Tqy8SyRT2VnjZWlOArUjOYYya2pswnXqEaZ/Cp0wDsm/wX9ApcHzSoz/Q40PORPFV0ni x8eJDxlvJY7c7sXDpowyxTN9sz/Fgbaz57pF8NwJQzOurHDjfEpBG5Bb6mRkdbymc4Zm QDIounTakmRaTVRacy7dViuuzbD64IgS7lFkx7NQFV7JZnRQ/uBotRdtODq3xyW8f94U IMwnjw+g3G8Hdt3Mg9b1FZ1LZayo6hMsaQxxgcOwCiYgS2VQX3XbskaEOMUxtuhxukQt q6pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lK7flpkC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id g2si386182edn.428.2021.02.16.19.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 19:21:16 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lK7flpkC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22FA28286B; Wed, 17 Feb 2021 04:21:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lK7flpkC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 954F58285E; Wed, 17 Feb 2021 04:21:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SBL_CSS,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A8568284D for ; Wed, 17 Feb 2021 04:20:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=joel.stan@gmail.com Received: by mail-pl1-x62b.google.com with SMTP id ba1so6698099plb.1 for ; Tue, 16 Feb 2021 19:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nt+c5PIBe19tTBuT1+cPItaJUQS7rWhkaUuDGNQ/lYY=; b=lK7flpkCK7OXH/Gt4l9Vv/M9dMjfIBHQeHEmywAqCz8Yx33+lXkr1EcXSZNiDdd6Wc fCJaUiubG/yb3Bv0Ji2dZuuZqeJD6CtyY3Zm/SvW4adr9fyCgz8N0IUjq16LLJc4FkvD lp63f7yttJbPxjXFbPZ9KHUGzGheEUOIFICvz9lh8PJymn/aKzAW8rD7RxquvG/ZwJOP pqH5i+bUbBIFFmHm+Ble0Yf2yyfy5m6654iMNnl6KOhOwdyWk0qT2Y27ztcYVGqh7W20 Mer6sqLgQ6/VIAfcdtnLMwD0xL1+RGLR4wYvgdJdihy74MuVyC01Ig9QNxEa0zyzxmgL kgoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Nt+c5PIBe19tTBuT1+cPItaJUQS7rWhkaUuDGNQ/lYY=; b=bItC9YuZOfJT8DhISs5azEzTaFF1312OBW4A4o55IwHVrtRdNRMtfCKWQTL6Q2tCi0 +6RVrJ9VjV6+nVdrrNdc2rm4/rhmk8b5QB54sRlSNTdZzEcJ960iqViKvuXlFMk4fB3W nCx3zRHi9B+JSSu6sAFxwYqW6F3UaG+44xS8iu7hyytgTUxeGRz76dTNWPUOzRGPZDDA SyS35a5cL+MRuSCJl1RT9p7Jk7H6GOUlDNmGwufI4ZgWXopvC9L31lCFpzsJDcITEz9L jdG1dya2/w7c0dNL7j/QtZpS84otAI5w45FnyDv/aR2DA3+xWtP3H11UEkvyeB/hivqX P5aA== X-Gm-Message-State: AOAM530aYzGV6zQ80dOC6/jIcwlv3eiHztBvsHDv+JVR65HNOrJWUU5Z om0zOqOpQP9Fu+NMB+Ho32o= X-Received: by 2002:a17:90a:5417:: with SMTP id z23mr7035726pjh.111.1613532058010; Tue, 16 Feb 2021 19:20:58 -0800 (PST) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id 4sm336466pjc.23.2021.02.16.19.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 19:20:57 -0800 (PST) From: Joel Stanley To: Simon Glass , u-boot@lists.denx.de Cc: Andrew Jeffery Subject: [PATCH 1/3] hw_sha: Fix coding style errors Date: Wed, 17 Feb 2021 13:50:40 +1030 Message-Id: <20210217032042.425512-2-joel@jms.id.au> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210217032042.425512-1-joel@jms.id.au> References: <20210217032042.425512-1-joel@jms.id.au> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Checkpatch complains about: ERROR: "foo * bar" should be "foo *bar" and CHECK: Alignment should match open parenthesis Signed-off-by: Joel Stanley --- include/hw_sha.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.30.0 diff --git a/include/hw_sha.h b/include/hw_sha.h index 991e496a3cb2..15b1a1c79836 100644 --- a/include/hw_sha.h +++ b/include/hw_sha.h @@ -18,8 +18,8 @@ * should allocate at least 32 bytes at pOut in advance. * @param chunk_size chunk size for sha256 */ -void hw_sha256(const uchar * in_addr, uint buflen, - uchar * out_addr, uint chunk_size); +void hw_sha256(const uchar *in_addr, uint buflen, uchar *out_addr, + uint chunk_size); /** * Computes hash value of input pbuf using h/w acceleration @@ -31,8 +31,8 @@ void hw_sha256(const uchar * in_addr, uint buflen, * should allocate at least 32 bytes at pOut in advance. * @param chunk_size chunk_size for sha1 */ -void hw_sha1(const uchar * in_addr, uint buflen, - uchar * out_addr, uint chunk_size); +void hw_sha1(const uchar *in_addr, uint buflen, uchar *out_addr, + uint chunk_size); /* * Create the context for sha progressive hashing using h/w acceleration @@ -56,7 +56,7 @@ int hw_sha_init(struct hash_algo *algo, void **ctxp); * @return 0 if ok, -ve on error */ int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, - unsigned int size, int is_last); + unsigned int size, int is_last); /* * Copy sha hash result at destination location @@ -70,6 +70,6 @@ int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, * @return 0 if ok, -ve on error */ int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, - int size); + int size); #endif