From patchwork Tue Jan 9 10:24:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123862 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3847145qgn; Tue, 9 Jan 2018 02:26:01 -0800 (PST) X-Google-Smtp-Source: ACJfBotbUM6dMlyimSwZiUshM3kgkiVq+JRw018pWfZiXgR6xAa9RQDYrkDp8vogunUB4lvbv9Xk X-Received: by 10.159.241.134 with SMTP id s6mr15123853plr.70.1515493561404; Tue, 09 Jan 2018 02:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493561; cv=none; d=google.com; s=arc-20160816; b=VSgnMSyp1caMJWI0Xx6slNO6/dS0GFjeFlPXN43QtS7cIATW/RHBewSOtg0B1QM6Jd VDMv0qFcdreBCNO4DWVVb+NP5wHZ8s2oATBs9kgjNy7fmAc24OaBctyGuAQK9V+9657I vryltCf9pAkKJ6THmDRY4nrPj6zac6iVNM8OkUKb5ly8TpBMlJzxSd4t8lKFiPIYnpus Aah/J1t030+W3EkiS2e08tMN+8DFoO0FZeF8Dy4vVmiZEDiVOvlo1+OmnFSbAZpFWcxT Zoo0rnULAqGxTAPmYWKzaVDtsl8ABgecQrkkG3nQpQ+6Bj2/UXOmk+DmWrTiFXOjuc7y Vt9A== 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=6JvzqCdC9ub39GrOHuAOGPJdIwgN1yu0pfE9xD+HsaU=; b=QDoyRmhH6dkjn3teULpSB3BtYzwMgo/YlMYJKtojjMCMgZYwt3cDnUhEaNuQi0dZHt qlWxcrNVG2Omi0bdLtJUAmPb11V0zyVuR5hRVQaTilBCl1zFzbTbq4c3X2vMx72eL0Vk 9v5ESSMmvRWXhtK3u/VV1nnMUEnj7qfKF40J6/GzHjMpsTZbl2p1ova71YMN1HjW5IX5 F/A8v5U7Oq5jeyyuBqocPRS6v5szWS+zAYFLQeUhK4kS5A8w+KxTj1Umr6KxLwapjIau thsP3ws3vLJ8w1Kg9XHAksOGQ1GDfkN/XHsEiNHW45twYtSmmY9sJ2NmRACMsDLHsI/w f+2A== ARC-Authentication-Results: i=1; mx.google.com; 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 x7si8840478pgc.170.2018.01.09.02.26.01; Tue, 09 Jan 2018 02:26:01 -0800 (PST) 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; 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 S1754117AbeAIKZ6 (ORCPT + 28 others); Tue, 9 Jan 2018 05:25:58 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51644 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753686AbeAIKZy (ORCPT ); Tue, 9 Jan 2018 05:25:54 -0500 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 0F48C80D; Tue, 9 Jan 2018 02:25:54 -0800 (PST) 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 29A423F41F; Tue, 9 Jan 2018 02:25:51 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] staging: ccree: use a consistent file naming convention Date: Tue, 9 Jan 2018 10:24:29 +0000 Message-Id: <1515493478-30454-2-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ccree driver source files were using an inconsistent naming convention stemming from what the company was called when they were added. Move to a single consistent naming convention for better code readability. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Makefile | 6 +++--- drivers/staging/ccree/{ssi_aead.c => cc_aead.c} | 12 ++++++------ drivers/staging/ccree/{ssi_aead.h => cc_aead.h} | 2 +- .../ccree/{ssi_buffer_mgr.c => cc_buffer_mgr.c} | 8 ++++---- .../ccree/{ssi_buffer_mgr.h => cc_buffer_mgr.h} | 4 ++-- drivers/staging/ccree/{ssi_cipher.c => cc_cipher.c} | 8 ++++---- drivers/staging/ccree/{ssi_cipher.h => cc_cipher.h} | 6 +++--- drivers/staging/ccree/cc_debugfs.c | 2 +- drivers/staging/ccree/{ssi_driver.c => cc_driver.c} | 20 ++++++++++---------- drivers/staging/ccree/{ssi_driver.h => cc_driver.h} | 6 +++--- drivers/staging/ccree/{ssi_fips.c => cc_fips.c} | 4 ++-- drivers/staging/ccree/{ssi_fips.h => cc_fips.h} | 0 drivers/staging/ccree/{ssi_hash.c => cc_hash.c} | 10 +++++----- drivers/staging/ccree/{ssi_hash.h => cc_hash.h} | 4 ++-- drivers/staging/ccree/{dx_host.h => cc_host_regs.h} | 0 drivers/staging/ccree/cc_hw_queue_defs.h | 2 +- drivers/staging/ccree/{ssi_ivgen.c => cc_ivgen.c} | 10 +++++----- drivers/staging/ccree/{ssi_ivgen.h => cc_ivgen.h} | 0 .../ccree/{dx_crys_kernel.h => cc_kernel_regs.h} | 0 drivers/staging/ccree/{ssi_pm.c => cc_pm.c} | 14 +++++++------- drivers/staging/ccree/{ssi_pm.h => cc_pm.h} | 4 ++-- .../ccree/{ssi_request_mgr.c => cc_request_mgr.c} | 10 +++++----- .../ccree/{ssi_request_mgr.h => cc_request_mgr.h} | 2 +- .../staging/ccree/{ssi_sram_mgr.c => cc_sram_mgr.c} | 4 ++-- .../staging/ccree/{ssi_sram_mgr.h => cc_sram_mgr.h} | 0 25 files changed, 69 insertions(+), 69 deletions(-) rename drivers/staging/ccree/{ssi_aead.c => cc_aead.c} (99%) rename drivers/staging/ccree/{ssi_aead.h => cc_aead.h} (99%) rename drivers/staging/ccree/{ssi_buffer_mgr.c => cc_buffer_mgr.c} (99%) rename drivers/staging/ccree/{ssi_buffer_mgr.h => cc_buffer_mgr.h} (97%) rename drivers/staging/ccree/{ssi_cipher.c => cc_cipher.c} (99%) rename drivers/staging/ccree/{ssi_cipher.h => cc_cipher.h} (95%) rename drivers/staging/ccree/{ssi_driver.c => cc_driver.c} (98%) rename drivers/staging/ccree/{ssi_driver.h => cc_driver.h} (98%) rename drivers/staging/ccree/{ssi_fips.c => cc_fips.c} (98%) rename drivers/staging/ccree/{ssi_fips.h => cc_fips.h} (100%) rename drivers/staging/ccree/{ssi_hash.c => cc_hash.c} (99%) rename drivers/staging/ccree/{ssi_hash.h => cc_hash.h} (98%) rename drivers/staging/ccree/{dx_host.h => cc_host_regs.h} (100%) rename drivers/staging/ccree/{ssi_ivgen.c => cc_ivgen.c} (98%) rename drivers/staging/ccree/{ssi_ivgen.h => cc_ivgen.h} (100%) rename drivers/staging/ccree/{dx_crys_kernel.h => cc_kernel_regs.h} (100%) rename drivers/staging/ccree/{ssi_pm.c => cc_pm.c} (93%) rename drivers/staging/ccree/{ssi_pm.h => cc_pm.h} (95%) rename drivers/staging/ccree/{ssi_request_mgr.c => cc_request_mgr.c} (99%) rename drivers/staging/ccree/{ssi_request_mgr.h => cc_request_mgr.h} (98%) rename drivers/staging/ccree/{ssi_sram_mgr.c => cc_sram_mgr.c} (98%) rename drivers/staging/ccree/{ssi_sram_mgr.h => cc_sram_mgr.h} (100%) -- 2.7.4 diff --git a/drivers/staging/ccree/Makefile b/drivers/staging/ccree/Makefile index c107e25..bdc2797 100644 --- a/drivers/staging/ccree/Makefile +++ b/drivers/staging/ccree/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_CRYPTO_DEV_CCREE) := ccree.o -ccree-y := ssi_driver.o ssi_buffer_mgr.o ssi_request_mgr.o ssi_cipher.o ssi_hash.o ssi_aead.o ssi_ivgen.o ssi_sram_mgr.o -ccree-$(CONFIG_CRYPTO_FIPS) += ssi_fips.o +ccree-y := cc_driver.o cc_buffer_mgr.o cc_request_mgr.o cc_cipher.o cc_hash.o cc_aead.o cc_ivgen.o cc_sram_mgr.o +ccree-$(CONFIG_CRYPTO_FIPS) += cc_fips.o ccree-$(CONFIG_DEBUG_FS) += cc_debugfs.o -ccree-$(CONFIG_PM) += ssi_pm.o +ccree-$(CONFIG_PM) += cc_pm.o diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/cc_aead.c similarity index 99% rename from drivers/staging/ccree/ssi_aead.c rename to drivers/staging/ccree/cc_aead.c index 6f41a00..da74423 100644 --- a/drivers/staging/ccree/ssi_aead.c +++ b/drivers/staging/ccree/cc_aead.c @@ -15,12 +15,12 @@ #include #include #include -#include "ssi_driver.h" -#include "ssi_buffer_mgr.h" -#include "ssi_aead.h" -#include "ssi_request_mgr.h" -#include "ssi_hash.h" -#include "ssi_sram_mgr.h" +#include "cc_driver.h" +#include "cc_buffer_mgr.h" +#include "cc_aead.h" +#include "cc_request_mgr.h" +#include "cc_hash.h" +#include "cc_sram_mgr.h" #define template_aead template_u.aead diff --git a/drivers/staging/ccree/ssi_aead.h b/drivers/staging/ccree/cc_aead.h similarity index 99% rename from drivers/staging/ccree/ssi_aead.h rename to drivers/staging/ccree/cc_aead.h index 9567b8f..5edf3b3 100644 --- a/drivers/staging/ccree/ssi_aead.h +++ b/drivers/staging/ccree/cc_aead.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file ssi_aead.h +/* \file cc_aead.h * ARM CryptoCell AEAD Crypto API */ diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/cc_buffer_mgr.c similarity index 99% rename from drivers/staging/ccree/ssi_buffer_mgr.c rename to drivers/staging/ccree/cc_buffer_mgr.c index 684070d..01c786c 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/cc_buffer_mgr.c @@ -13,11 +13,11 @@ #include #include -#include "ssi_buffer_mgr.h" +#include "cc_buffer_mgr.h" #include "cc_lli_defs.h" -#include "ssi_cipher.h" -#include "ssi_hash.h" -#include "ssi_aead.h" +#include "cc_cipher.h" +#include "cc_hash.h" +#include "cc_aead.h" enum dma_buffer_type { DMA_NULL_TYPE = -1, diff --git a/drivers/staging/ccree/ssi_buffer_mgr.h b/drivers/staging/ccree/cc_buffer_mgr.h similarity index 97% rename from drivers/staging/ccree/ssi_buffer_mgr.h rename to drivers/staging/ccree/cc_buffer_mgr.h index 0ddadd7..99b752a 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.h +++ b/drivers/staging/ccree/cc_buffer_mgr.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file buffer_mgr.h +/* \file cc_buffer_mgr.h * Buffer Manager */ @@ -10,7 +10,7 @@ #include -#include "ssi_driver.h" +#include "cc_driver.h" enum cc_req_dma_buf_type { CC_DMA_BUF_NULL = 0, diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/cc_cipher.c similarity index 99% rename from drivers/staging/ccree/ssi_cipher.c rename to drivers/staging/ccree/cc_cipher.c index a0e7d00..eca0578 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/cc_cipher.c @@ -13,11 +13,11 @@ #include #include -#include "ssi_driver.h" +#include "cc_driver.h" #include "cc_lli_defs.h" -#include "ssi_buffer_mgr.h" -#include "ssi_cipher.h" -#include "ssi_request_mgr.h" +#include "cc_buffer_mgr.h" +#include "cc_cipher.h" +#include "cc_request_mgr.h" #define MAX_ABLKCIPHER_SEQ_LEN 6 diff --git a/drivers/staging/ccree/ssi_cipher.h b/drivers/staging/ccree/cc_cipher.h similarity index 95% rename from drivers/staging/ccree/ssi_cipher.h rename to drivers/staging/ccree/cc_cipher.h index 97b266b..4c181c7 100644 --- a/drivers/staging/ccree/ssi_cipher.h +++ b/drivers/staging/ccree/cc_cipher.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file ssi_cipher.h +/* \file cc_cipher.h * ARM CryptoCell Cipher Crypto API */ @@ -10,8 +10,8 @@ #include #include -#include "ssi_driver.h" -#include "ssi_buffer_mgr.h" +#include "cc_driver.h" +#include "cc_buffer_mgr.h" /* Crypto cipher flags */ #define CC_CRYPTO_CIPHER_KEY_KFDE0 BIT(0) diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index 72eb2b3..f927a73 100644 --- a/drivers/staging/ccree/cc_debugfs.c +++ b/drivers/staging/ccree/cc_debugfs.c @@ -4,7 +4,7 @@ #include #include #include -#include "ssi_driver.h" +#include "cc_driver.h" #include "cc_crypto_ctx.h" struct cc_debugfs_ctx { diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/cc_driver.c similarity index 98% rename from drivers/staging/ccree/ssi_driver.c rename to drivers/staging/ccree/cc_driver.c index b5df9b4..98d491e 100644 --- a/drivers/staging/ccree/ssi_driver.c +++ b/drivers/staging/ccree/cc_driver.c @@ -46,17 +46,17 @@ #include #include -#include "ssi_driver.h" -#include "ssi_request_mgr.h" -#include "ssi_buffer_mgr.h" +#include "cc_driver.h" +#include "cc_request_mgr.h" +#include "cc_buffer_mgr.h" #include "cc_debugfs.h" -#include "ssi_cipher.h" -#include "ssi_aead.h" -#include "ssi_hash.h" -#include "ssi_ivgen.h" -#include "ssi_sram_mgr.h" -#include "ssi_pm.h" -#include "ssi_fips.h" +#include "cc_cipher.h" +#include "cc_aead.h" +#include "cc_hash.h" +#include "cc_ivgen.h" +#include "cc_sram_mgr.h" +#include "cc_pm.h" +#include "cc_fips.h" bool cc_dump_desc; module_param_named(dump_desc, cc_dump_desc, bool, 0600); diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/cc_driver.h similarity index 98% rename from drivers/staging/ccree/ssi_driver.h rename to drivers/staging/ccree/cc_driver.h index c2b978b..773ac59 100644 --- a/drivers/staging/ccree/ssi_driver.h +++ b/drivers/staging/ccree/cc_driver.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file ssi_driver.h +/* \file cc_driver.h * ARM CryptoCell Linux Crypto Driver */ @@ -26,11 +26,11 @@ #include /* Registers definitions from shared/hw/ree_include */ -#include "dx_host.h" +#include "cc_host_regs.h" #define CC_DEV_SHA_MAX 512 #include "cc_crypto_ctx.h" #include "cc_hw_queue_defs.h" -#include "ssi_sram_mgr.h" +#include "cc_sram_mgr.h" extern bool cc_dump_desc; extern bool cc_dump_bytes; diff --git a/drivers/staging/ccree/ssi_fips.c b/drivers/staging/ccree/cc_fips.c similarity index 98% rename from drivers/staging/ccree/ssi_fips.c rename to drivers/staging/ccree/cc_fips.c index 2c58f90..b25c34e 100644 --- a/drivers/staging/ccree/ssi_fips.c +++ b/drivers/staging/ccree/cc_fips.c @@ -4,8 +4,8 @@ #include #include -#include "ssi_driver.h" -#include "ssi_fips.h" +#include "cc_driver.h" +#include "cc_fips.h" static void fips_dsr(unsigned long devarg); diff --git a/drivers/staging/ccree/ssi_fips.h b/drivers/staging/ccree/cc_fips.h similarity index 100% rename from drivers/staging/ccree/ssi_fips.h rename to drivers/staging/ccree/cc_fips.h diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/cc_hash.c similarity index 99% rename from drivers/staging/ccree/ssi_hash.c rename to drivers/staging/ccree/cc_hash.c index 57031c7..7c1645d 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/cc_hash.c @@ -10,11 +10,11 @@ #include #include -#include "ssi_driver.h" -#include "ssi_request_mgr.h" -#include "ssi_buffer_mgr.h" -#include "ssi_hash.h" -#include "ssi_sram_mgr.h" +#include "cc_driver.h" +#include "cc_request_mgr.h" +#include "cc_buffer_mgr.h" +#include "cc_hash.h" +#include "cc_sram_mgr.h" #define CC_MAX_HASH_SEQ_LEN 12 #define CC_MAX_OPAD_KEYS_SIZE CC_MAX_HASH_BLCK_SIZE diff --git a/drivers/staging/ccree/ssi_hash.h b/drivers/staging/ccree/cc_hash.h similarity index 98% rename from drivers/staging/ccree/ssi_hash.h rename to drivers/staging/ccree/cc_hash.h index e45bb69..aa42b8f 100644 --- a/drivers/staging/ccree/ssi_hash.h +++ b/drivers/staging/ccree/cc_hash.h @@ -1,14 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file ssi_hash.h +/* \file cc_hash.h * ARM CryptoCell Hash Crypto API */ #ifndef __CC_HASH_H__ #define __CC_HASH_H__ -#include "ssi_buffer_mgr.h" +#include "cc_buffer_mgr.h" #define HMAC_IPAD_CONST 0x36363636 #define HMAC_OPAD_CONST 0x5C5C5C5C diff --git a/drivers/staging/ccree/dx_host.h b/drivers/staging/ccree/cc_host_regs.h similarity index 100% rename from drivers/staging/ccree/dx_host.h rename to drivers/staging/ccree/cc_host_regs.h diff --git a/drivers/staging/ccree/cc_hw_queue_defs.h b/drivers/staging/ccree/cc_hw_queue_defs.h index bfc18b3..a79f28ce 100644 --- a/drivers/staging/ccree/cc_hw_queue_defs.h +++ b/drivers/staging/ccree/cc_hw_queue_defs.h @@ -6,7 +6,7 @@ #include -#include "dx_crys_kernel.h" +#include "cc_kernel_regs.h" #include /****************************************************************************** diff --git a/drivers/staging/ccree/ssi_ivgen.c b/drivers/staging/ccree/cc_ivgen.c similarity index 98% rename from drivers/staging/ccree/ssi_ivgen.c rename to drivers/staging/ccree/cc_ivgen.c index 2ba15a5..43f70d4 100644 --- a/drivers/staging/ccree/ssi_ivgen.c +++ b/drivers/staging/ccree/cc_ivgen.c @@ -3,11 +3,11 @@ #include #include -#include "ssi_driver.h" -#include "ssi_ivgen.h" -#include "ssi_request_mgr.h" -#include "ssi_sram_mgr.h" -#include "ssi_buffer_mgr.h" +#include "cc_driver.h" +#include "cc_ivgen.h" +#include "cc_request_mgr.h" +#include "cc_sram_mgr.h" +#include "cc_buffer_mgr.h" /* The max. size of pool *MUST* be <= SRAM total size */ #define CC_IVPOOL_SIZE 1024 diff --git a/drivers/staging/ccree/ssi_ivgen.h b/drivers/staging/ccree/cc_ivgen.h similarity index 100% rename from drivers/staging/ccree/ssi_ivgen.h rename to drivers/staging/ccree/cc_ivgen.h diff --git a/drivers/staging/ccree/dx_crys_kernel.h b/drivers/staging/ccree/cc_kernel_regs.h similarity index 100% rename from drivers/staging/ccree/dx_crys_kernel.h rename to drivers/staging/ccree/cc_kernel_regs.h diff --git a/drivers/staging/ccree/ssi_pm.c b/drivers/staging/ccree/cc_pm.c similarity index 93% rename from drivers/staging/ccree/ssi_pm.c rename to drivers/staging/ccree/cc_pm.c index 3a8d91c..1f5da86 100644 --- a/drivers/staging/ccree/ssi_pm.c +++ b/drivers/staging/ccree/cc_pm.c @@ -6,13 +6,13 @@ #include #include #include -#include "ssi_driver.h" -#include "ssi_buffer_mgr.h" -#include "ssi_request_mgr.h" -#include "ssi_sram_mgr.h" -#include "ssi_ivgen.h" -#include "ssi_hash.h" -#include "ssi_pm.h" +#include "cc_driver.h" +#include "cc_buffer_mgr.h" +#include "cc_request_mgr.h" +#include "cc_sram_mgr.h" +#include "cc_ivgen.h" +#include "cc_hash.h" +#include "cc_pm.h" #define POWER_DOWN_ENABLE 0x01 #define POWER_DOWN_DISABLE 0x00 diff --git a/drivers/staging/ccree/ssi_pm.h b/drivers/staging/ccree/cc_pm.h similarity index 95% rename from drivers/staging/ccree/ssi_pm.h rename to drivers/staging/ccree/cc_pm.h index f603255..aac8190 100644 --- a/drivers/staging/ccree/ssi_pm.h +++ b/drivers/staging/ccree/cc_pm.h @@ -1,13 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file ssi_pm.h +/* \file cc_pm.h */ #ifndef __CC_POWER_MGR_H__ #define __CC_POWER_MGR_H__ -#include "ssi_driver.h" +#include "cc_driver.h" #define CC_SUSPEND_TIMEOUT 3000 diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/cc_request_mgr.c similarity index 99% rename from drivers/staging/ccree/ssi_request_mgr.c rename to drivers/staging/ccree/cc_request_mgr.c index dc3be29..cbcfcc3 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/cc_request_mgr.c @@ -7,11 +7,11 @@ #include #include #include -#include "ssi_driver.h" -#include "ssi_buffer_mgr.h" -#include "ssi_request_mgr.h" -#include "ssi_ivgen.h" -#include "ssi_pm.h" +#include "cc_driver.h" +#include "cc_buffer_mgr.h" +#include "cc_request_mgr.h" +#include "cc_ivgen.h" +#include "cc_pm.h" #define CC_MAX_POLL_ITER 10 /* The highest descriptor count in used */ diff --git a/drivers/staging/ccree/ssi_request_mgr.h b/drivers/staging/ccree/cc_request_mgr.h similarity index 98% rename from drivers/staging/ccree/ssi_request_mgr.h rename to drivers/staging/ccree/cc_request_mgr.h index f11a26a..573cb97 100644 --- a/drivers/staging/ccree/ssi_request_mgr.h +++ b/drivers/staging/ccree/cc_request_mgr.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -/* \file request_mgr.h +/* \file cc_request_mgr.h * Request Manager */ diff --git a/drivers/staging/ccree/ssi_sram_mgr.c b/drivers/staging/ccree/cc_sram_mgr.c similarity index 98% rename from drivers/staging/ccree/ssi_sram_mgr.c rename to drivers/staging/ccree/cc_sram_mgr.c index c5497aa..d1f8a9c 100644 --- a/drivers/staging/ccree/ssi_sram_mgr.c +++ b/drivers/staging/ccree/cc_sram_mgr.c @@ -1,8 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -#include "ssi_driver.h" -#include "ssi_sram_mgr.h" +#include "cc_driver.h" +#include "cc_sram_mgr.h" /** * struct cc_sram_ctx -Internal RAM context manager diff --git a/drivers/staging/ccree/ssi_sram_mgr.h b/drivers/staging/ccree/cc_sram_mgr.h similarity index 100% rename from drivers/staging/ccree/ssi_sram_mgr.h rename to drivers/staging/ccree/cc_sram_mgr.h From patchwork Tue Jan 9 10:24:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123863 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp280148edr; Tue, 9 Jan 2018 02:26:08 -0800 (PST) X-Google-Smtp-Source: ACJfBotVANOb6DFlFiFgiAwhYVUi9IPK+XzqSint5Vu0hPQ2VcHoP4qyh3DHm0XgFKELy1zr46+Y X-Received: by 10.98.172.7 with SMTP id v7mr13344428pfe.181.1515493567998; Tue, 09 Jan 2018 02:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493567; cv=none; d=google.com; s=arc-20160816; b=UKsHVKb4GGSUIGyMpFKAlhWGzQsKZW7XspF6ywLbz0OOBiPtI/KJ+rPxHmY6AUFT7d tZlTo0W2dAgA+7J8D1S2n0XK5xjnXRPg0GSZh+nGcVb9CCSDSQSJ46napG5CICyw6iK8 Vj7rknWTbpDzaT/ZV9OrxGSKuIjOxe3tOjzEvW3o8TcDZjY4/bai86FG5P+WNkIkOLMA pmPWt/eJeAdPmyULaa4/r1/r3jOMmq7H7zr5RW1D3L3PC0WaIlmpN73/QpqKFXkrKOub kBIvPUhF2zDZV4EazZvvO8+5C57zhR2ew28lSk5LPUEa7gvnTl4/wLNtfTOaVHy57XRr Rm7g== 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=FhFIJVvIfvfUQMSHMYmBRJVZEHLCgB4W1NukUVrkbTA=; b=k+OX4rsiwjsuDHFrol//zXWmy3i7Y/TSW1QhLaOLO7x+Jvx5sprpP7TMrvCxP8DCb9 4vnka1X8jd1Jlh1vx9qieJaRrgWBbImbV6S04a1daiXq2wfB4VAHgIEd38kx1yGh1ROO rvJpwEZCNd7EH7RbA/6Ba3e5/UzHwn0cuYeIkwodgSCb+uP8X6SCzutjmB3joISUngLP 0kF7TOIU0wmE0fwU4ZrRrMXX4qGNWB88q3559boZT5gpB8SxyAFEcBmF/m6bNh5S+h1s 8cmzf7QvsDFjKMNDh0p5WuZZ4qFyV3FzEDed+1WOWGi0G9GWeqEO4wDehgASAX3eFq15 mXRQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y77si2540419pfd.136.2018.01.09.02.26.07; Tue, 09 Jan 2018 02:26:07 -0800 (PST) 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; 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 S1754274AbeAIK0E (ORCPT + 28 others); Tue, 9 Jan 2018 05:26:04 -0500 Received: from foss.arm.com ([217.140.101.70]:51652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753686AbeAIK0B (ORCPT ); Tue, 9 Jan 2018 05:26:01 -0500 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 02FC080D; Tue, 9 Jan 2018 02:26:01 -0800 (PST) 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 2B1E03F41F; Tue, 9 Jan 2018 02:25:58 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] staging: ccree: remove unneeded includes Date: Tue, 9 Jan 2018 10:24:30 +0000 Message-Id: <1515493478-30454-3-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove include files not needed for compilation. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_aead.c | 7 ------- drivers/staging/ccree/cc_buffer_mgr.c | 6 ------ drivers/staging/ccree/cc_cipher.c | 4 ---- drivers/staging/ccree/cc_driver.c | 31 ------------------------------- drivers/staging/ccree/cc_hash.c | 2 -- drivers/staging/ccree/cc_ivgen.c | 1 - drivers/staging/ccree/cc_pm.c | 2 -- drivers/staging/ccree/cc_request_mgr.c | 5 ----- 8 files changed, 58 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_aead.c b/drivers/staging/ccree/cc_aead.c index da74423..265adff 100644 --- a/drivers/staging/ccree/cc_aead.c +++ b/drivers/staging/ccree/cc_aead.c @@ -3,18 +3,11 @@ #include #include -#include #include -#include -#include #include -#include -#include #include -#include #include #include -#include #include "cc_driver.h" #include "cc_buffer_mgr.h" #include "cc_aead.h" diff --git a/drivers/staging/ccree/cc_buffer_mgr.c b/drivers/staging/ccree/cc_buffer_mgr.c index 01c786c..14b2eab 100644 --- a/drivers/staging/ccree/cc_buffer_mgr.c +++ b/drivers/staging/ccree/cc_buffer_mgr.c @@ -1,17 +1,11 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -#include -#include -#include #include -#include #include #include #include #include -#include -#include #include "cc_buffer_mgr.h" #include "cc_lli_defs.h" diff --git a/drivers/staging/ccree/cc_cipher.c b/drivers/staging/ccree/cc_cipher.c index eca0578..8afdbc1 100644 --- a/drivers/staging/ccree/cc_cipher.c +++ b/drivers/staging/ccree/cc_cipher.c @@ -3,12 +3,8 @@ #include #include -#include -#include #include #include -#include -#include #include #include #include diff --git a/drivers/staging/ccree/cc_driver.c b/drivers/staging/ccree/cc_driver.c index 98d491e..b49bc25 100644 --- a/drivers/staging/ccree/cc_driver.c +++ b/drivers/staging/ccree/cc_driver.c @@ -5,43 +5,12 @@ #include #include -#include -#include -#include -#include -#include -#include -#include - -#include #include #include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include #include #include -#include - -/* cache.h required for L1_CACHE_ALIGN() and cache_line_size() */ -#include -#include -#include -#include -#include #include #include #include diff --git a/drivers/staging/ccree/cc_hash.c b/drivers/staging/ccree/cc_hash.c index 7c1645d..86f9ec7 100644 --- a/drivers/staging/ccree/cc_hash.c +++ b/drivers/staging/ccree/cc_hash.c @@ -3,10 +3,8 @@ #include #include -#include #include #include -#include #include #include diff --git a/drivers/staging/ccree/cc_ivgen.c b/drivers/staging/ccree/cc_ivgen.c index 43f70d4..25a3131 100644 --- a/drivers/staging/ccree/cc_ivgen.c +++ b/drivers/staging/ccree/cc_ivgen.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ -#include #include #include "cc_driver.h" #include "cc_ivgen.h" diff --git a/drivers/staging/ccree/cc_pm.c b/drivers/staging/ccree/cc_pm.c index 1f5da86..c7d6b86 100644 --- a/drivers/staging/ccree/cc_pm.c +++ b/drivers/staging/ccree/cc_pm.c @@ -2,9 +2,7 @@ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ #include -#include #include -#include #include #include "cc_driver.h" #include "cc_buffer_mgr.h" diff --git a/drivers/staging/ccree/cc_request_mgr.c b/drivers/staging/ccree/cc_request_mgr.c index cbcfcc3..8372410 100644 --- a/drivers/staging/ccree/cc_request_mgr.c +++ b/drivers/staging/ccree/cc_request_mgr.c @@ -2,11 +2,6 @@ /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */ #include -#include -#include -#include -#include -#include #include "cc_driver.h" #include "cc_buffer_mgr.h" #include "cc_request_mgr.h" From patchwork Tue Jan 9 10:24:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123864 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp280245edr; Tue, 9 Jan 2018 02:26:15 -0800 (PST) X-Google-Smtp-Source: ACJfBovHvmcVqX+64q4wJspAqizcLJTfdpQ4bjCAdzfciZdxhUJB9GVfx+lpA1zcKvzl6Qn4IMb4 X-Received: by 10.84.193.129 with SMTP id f1mr15342017pld.359.1515493575711; Tue, 09 Jan 2018 02:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493575; cv=none; d=google.com; s=arc-20160816; b=k5lhzgILAwkn8UFP1C9PtaaTuWT8BA3lnn4dpHRz84wwC0DUCvH3GcJnpT+KC8Hxio jPrZ5llLM5fTAjHpUqG5izgyNF2l3dKUR6iR+mRvbR6UB95AOD2JeTcNdFNyoRq8Ie3v MhzrCMH+BXXRkG7gCmtKh5DsoDeuJd+BUj8vmWpIHZxkVpFdU2QMpFqA44UfnNTVfZtH 6A69wdmE6f3kkPUgw74HlZdAEXh7yEcqDK58VFI83/uo21Ltkx5qDPIzpUjRW2qbUMz6 XfO/sEV4q2+W50AKspd/tej0OpYAwWPNkZ9POceulTnolSoICAA6iaYsBCvEV48igUj0 +Vzw== 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=4AOU7XeXkc1KHVVCNgG8VQovc2CPY5CH3lyWdyeTGSk=; b=dMoShrp+9BvjnLa+psVKq45PudpRIpfcIWTzCjmRJXWICC65IQ5OXwdNuRS5M9eii9 9NDmJ74NNhF6Snc/rFtQCNICaQDzMXiyn30dMDzpSI/0KHMu3yuL67hYWF0zH2Ct5teo Q4jev8x8629I/9ZNDdAFqszmxTorgsQwWZqn344K9q/cLmoNQ7lvcTgqYg70BX2xwvcE Mb6xbfQRIBOf5ZYNzpgP8ZAR8HBiiIi1csGLHzlhHR2V562apLej0KVLkvlgPmSv/hQu fSJJ1zCpIsIE4HFjrpRD/WdccvTb2NfOp4mWN/AjK7u0xavL73PCbShnmr3XSR/NdKAy c4mQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x4si2414067plw.150.2018.01.09.02.26.15; Tue, 09 Jan 2018 02:26:15 -0800 (PST) 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; 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 S1754408AbeAIK0N (ORCPT + 28 others); Tue, 9 Jan 2018 05:26:13 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51662 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754276AbeAIK0I (ORCPT ); Tue, 9 Jan 2018 05:26:08 -0500 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 1443880D; Tue, 9 Jan 2018 02:26:08 -0800 (PST) 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 3C7063F41F; Tue, 9 Jan 2018 02:26:06 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] staging: ccree: add missing include Date: Tue, 9 Jan 2018 10:24:31 +0000 Message-Id: <1515493478-30454-4-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the missing include of include file with function declarations. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_debugfs.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index f927a73..08f8db4 100644 --- a/drivers/staging/ccree/cc_debugfs.c +++ b/drivers/staging/ccree/cc_debugfs.c @@ -6,6 +6,7 @@ #include #include "cc_driver.h" #include "cc_crypto_ctx.h" +#include "cc_debugfs.h" struct cc_debugfs_ctx { struct dentry *dir; From patchwork Tue Jan 9 10:24:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123865 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp280316edr; Tue, 9 Jan 2018 02:26:21 -0800 (PST) X-Google-Smtp-Source: ACJfBotXoleDpmoGxVy4MT3teGVLbeI2HkLSDkQ0+4rhLnnZFMCR5qUDM3rfm7yUYbFMmmuKd6Hg X-Received: by 10.101.64.129 with SMTP id t1mr11803396pgp.287.1515493581566; Tue, 09 Jan 2018 02:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493581; cv=none; d=google.com; s=arc-20160816; b=KAhKoSTSciv5huWOa8ljQjd3i8KiK2cTxi/vuWLaB+2+IpdBixecVzUsvHjhtNasY9 XZilm82LWNHHt/9to2KpbsMguN3cwYNAcakAQLdBxEEuhWR6Dxj3QG/3Bv3XRCUaJS9I QeZBm4MfR6N6gJ9Da+H4kHM2L/keIR5yB0xR473mXGuN2cLoySNfZH8KGfwZ2W64HVsR UNIlBngfFtUeDVC7GhvYvwl5oVehqHZgieo53ejjKy2N1VnyzL8AwXOqVTpeQisx8zvI VmP+gr91FdafwArtdAmrvQ6YgHLomwu3Ig4NVdjwD+93EBGbvDqcQI3wuZhLH4p9gYnG 8eDg== 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=+BPe3EuXt/ZDAmni/K2+ZRzVW02LBTxLP3RqhJLjmv0=; b=SQ9PJ3vFSiCNGSPQDEZQOOL0MWqMtVumXlUBGiSW6rvAGwJOWI+qjlJkxsN0BiMgsK bDSUGi1yEq6eu8ShoHPgE7rAj8cVTSZljhhmogSNRSVGYEN4r3/p2d0ALlVtn+BCWrHq OmKquxaOmczLqNCmgFStjUNVx+J7uRmP6ioug20Yb3DcrPi5H5x4kJBKeKJSKB0e6Wxz soulBQ2bOanCSNdudRNkBzY0Tv9BxzpyJxAw/rYIZrxEoeOiG3mJleR4Sl/cmbmqzej8 7dmetxAmQL8yqv72nyBFAuFW4DIGAQW5rDj/JOLg+LUlkApbz/luH9VVzFlhIAS7TlP9 +GpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y73si551333plh.85.2018.01.09.02.26.21; Tue, 09 Jan 2018 02:26:21 -0800 (PST) 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; 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 S1754549AbeAIK0S (ORCPT + 28 others); Tue, 9 Jan 2018 05:26:18 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51674 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754343AbeAIK0P (ORCPT ); Tue, 9 Jan 2018 05:26:15 -0500 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 B5AD080D; Tue, 9 Jan 2018 02:26:15 -0800 (PST) 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 DF3263F41F; Tue, 9 Jan 2018 02:26:13 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] staging: ccree: make stub function static inline Date: Tue, 9 Jan 2018 10:24:32 +0000 Message-Id: <1515493478-30454-5-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The debugfs interface defines stub function if debugfs is not enabled, which were missing the 'static inline' qualifiers causing sparse warnings. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_debugfs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_debugfs.h b/drivers/staging/ccree/cc_debugfs.h index 354ec17..5b5320e 100644 --- a/drivers/staging/ccree/cc_debugfs.h +++ b/drivers/staging/ccree/cc_debugfs.h @@ -13,19 +13,19 @@ void cc_debugfs_fini(struct cc_drvdata *drvdata); #else -int cc_debugfs_global_init(void) +static inline int cc_debugfs_global_init(void) { return 0; } -void cc_debugfs_global_fini(void) {} +static inline void cc_debugfs_global_fini(void) {} -int cc_debugfs_init(struct cc_drvdata *drvdata) +static inline int cc_debugfs_init(struct cc_drvdata *drvdata) { return 0; } -void cc_debugfs_fini(struct cc_drvdata *drvdata) {} +static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} #endif