From patchwork Sun Jun 4 08:02:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 101329 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp437313qgd; Sun, 4 Jun 2017 01:03:11 -0700 (PDT) X-Received: by 10.84.134.228 with SMTP id 91mr8642432plh.61.1496563391158; Sun, 04 Jun 2017 01:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496563391; cv=none; d=google.com; s=arc-20160816; b=Z2oWarc3ijNwhBjHnPVNf0cSmLvMBqojgCUFdrAmMxDIlvtQ3dtNF/xWgszrK+Y/dW OYcHAwMnXMQI8JRzWgJdycxLgOcmnS+TQ3sMl1BAfNhj9652EtaX4KeP+DEPlf763sxq 53Ek51BIEa0PZNF9ylYGG62lzQ7XLaUDMHxlamRZIvV185M0XykXD+jtxg4lazPWXiCs bqUYgeR6G7E+SFcSRdBGD2s4BFtwFQWobvleU0AOcmuUGb1c0ZIs0BaerzIaHeV2O4tF OCXvfrkf9+oDoYbOQnRnXMx+hPSl/fDD79HGewAfHh4sPr0Q2X8VDdkgD6IBeMepYlxN 86BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=j5Ynb7pW16s1oaafwCGC5nQ/pY6QRk0Ey628ueHhPhQ=; b=HTj1/9LBd9nvUl4AjDFAihbyN7IFhmz0TEvjPi993rugUc3d55fDOa7MiaV/MWVmmD iUsBXO+RYj1nEsKQo49GaMO7KCodkywUz9vVMoxrz2mHpV2PFA7sBws0Z2XlllPiG87e 7mvie9O8fYCz/iaKKoqjgQO9wjXD+poTCpJ+oxKTDJhipePe2LhHXXhfOZ4yXnKi84Se 2SKINm7vgXWtgA7JnXUztTD5nzIHeifkbIHWq5CG4Z1obz2a5Zj6NYQGNfDG3pWQ4Nl2 PaTl/hpFeN3DeJpk9uW01Dzi7Zyvnm9gOqcRr+GlTzjnAckZgfTIuSRASCJbDYB+w8Qb Nu/A== 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 v77si27589846pfa.176.2017.06.04.01.03.11; Sun, 04 Jun 2017 01:03:11 -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 S1751188AbdFDIDD (ORCPT + 1 other); Sun, 4 Jun 2017 04:03:03 -0400 Received: from foss.arm.com ([217.140.101.70]:52652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbdFDIC5 (ORCPT ); Sun, 4 Jun 2017 04:02:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EFEB5344; Sun, 4 Jun 2017 01:02:56 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F28283F589; Sun, 4 Jun 2017 01:02:54 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v3 01/18] staging: ccree: replace bit shift with BIT macro Date: Sun, 4 Jun 2017 11:02:22 +0300 Message-Id: <1496563362-7954-2-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496563362-7954-1-git-send-email-gilad@benyossef.com> References: <1496563362-7954-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org CC_CTX_SIZE was being defined using a hand rolled bit shift operation. Replace with use of BIT macro. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 1fc68de..20f3f9f 100644 --- a/drivers/staging/ccree/cc_crypto_ctx.h +++ b/drivers/staging/ccree/cc_crypto_ctx.h @@ -27,7 +27,7 @@ #define CC_CTX_SIZE_LOG2 7 #endif #endif -#define CC_CTX_SIZE (1 << CC_CTX_SIZE_LOG2) +#define CC_CTX_SIZE BIT(CC_CTX_SIZE_LOG2) #define CC_DRV_CTX_SIZE_WORDS (CC_CTX_SIZE >> 2) #define CC_DRV_DES_IV_SIZE 8