From patchwork Thu Jun 1 11:03:01 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: 100887 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp699908obc; Thu, 1 Jun 2017 04:04:54 -0700 (PDT) X-Received: by 10.98.55.198 with SMTP id e189mr561165pfa.38.1496315094792; Thu, 01 Jun 2017 04:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315094; cv=none; d=google.com; s=arc-20160816; b=uTVcF2azcRiJ0N38jSRdpKLT/pzR1uhMbcOOf9cGUxzkDAJoWJ6ygxxcNiZPLtjGOB JrapKU73i97fQQfxl7y3XerJ17UuXLtLzx2LbR6jyG4UmxqJ7qIrlyioO42nwXTaNczJ MawMzdLxkN7R3nI7XTuWaKwKylTMaKdEySNcegxwQn7lW0biMTnGvFoeWHFKinIQbh2c qJJD5xk9czuhC83pfzFmbnYBlAXILXjnV+m//TU27rVmJ/hd9yI1ynUYH9n3y7LKsR0/ 9Fk9TTyQWVZnfa/LjhyiO/lzh2YUbaEXU2KUwArOrq2Etn/FeYtqEBW0TBYuH7HGkCoW 8D+A== 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=iWG3tP1I7RwKVzqOEXj83dlHpdc+ldk5nj4DE7R296U=; b=D2sLS/I1cpvbnIN3Mt9bDSMsBdMQDG5LjLefsXmV5KzynKllW209P7nUz0DqpSGTT4 wQF0a+UYbGPAsNR1aVmYbeAT3IB3Z8yd9OWIsZmKLNRXMbC5j/D7pDsjPQGS1p75P1gG 3bRfdPlE4DIAyfENmHqqAiImwJ3tpQMddMBVa0oBusAX1AkcIJ80EVYgbvQM7vEyezWV +rHisVI4MfcJtxYIvjD/ccwIRS0bd74d43sJ4og+ZCKdW356GM9V3tRVBOr6KtSOgXo+ Abb7vm/KstHnqMB0vUNKGWjZKLOlLTH/YN9EL0s5q7Ha4wgGYSELQIhyjRpLa2bSvk+w HWlA== 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 f7si28114073plj.42.2017.06.01.04.04.54; Thu, 01 Jun 2017 04:04:54 -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 S1751866AbdFALEt (ORCPT + 1 other); Thu, 1 Jun 2017 07:04:49 -0400 Received: from foss.arm.com ([217.140.101.70]:54484 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbdFALEs (ORCPT ); Thu, 1 Jun 2017 07:04:48 -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 E3CFE1596; Thu, 1 Jun 2017 04:04:37 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BADE3F578; Thu, 1 Jun 2017 04:04:35 -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 v2 11/20] staging: ccree: remove unused debug macros Date: Thu, 1 Jun 2017 14:03:01 +0300 Message-Id: <1496314993-30229-12-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com> References: <1496314993-30229-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 The DUMP_SGL() and DUMP_MLLI_TABLE() debug macros were defined but not used anywhere and the difference of their definitions for debug vs. none debug indicated this has not being used in a while. Remove the dead code. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 19 ------------------- 1 file changed, 19 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 25b2876..4864597 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -34,30 +34,11 @@ #include "ssi_aead.h" #ifdef CC_DEBUG -#define DUMP_SGL(sg) \ - while (sg) { \ - SSI_LOG_DEBUG("page=%p offset=%u length=%u (dma_len=%u) " \ - "dma_addr=%08x\n", sg_page(sg), (sg)->offset, \ - (sg)->length, sg_dma_len(sg), (sg)->dma_address); \ - (sg) = sg_next(sg); \ - } -#define DUMP_MLLI_TABLE(mlli_p, nents) \ - do { \ - SSI_LOG_DEBUG("mlli=%pK nents=%u\n", (mlli_p), (nents)); \ - while((nents)--) { \ - SSI_LOG_DEBUG("addr=0x%08X size=0x%08X\n", \ - (mlli_p)[LLI_WORD0_OFFSET], \ - (mlli_p)[LLI_WORD1_OFFSET]); \ - (mlli_p) += LLI_ENTRY_WORD_SIZE; \ - } \ - } while (0) #define GET_DMA_BUFFER_TYPE(buff_type) ( \ ((buff_type) == SSI_DMA_BUF_NULL) ? "BUF_NULL" : \ ((buff_type) == SSI_DMA_BUF_DLLI) ? "BUF_DLLI" : \ ((buff_type) == SSI_DMA_BUF_MLLI) ? "BUF_MLLI" : "BUF_INVALID") #else -#define DX_BUFFER_MGR_DUMP_SGL(sg) -#define DX_BUFFER_MGR_DUMP_MLLI_TABLE(mlli_p, nents) #define GET_DMA_BUFFER_TYPE(buff_type) #endif