From patchwork Sun Jun 4 08:02:27 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: 101332 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp437454qgd; Sun, 4 Jun 2017 01:03:44 -0700 (PDT) X-Received: by 10.99.112.86 with SMTP id a22mr2029803pgn.158.1496563424030; Sun, 04 Jun 2017 01:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496563424; cv=none; d=google.com; s=arc-20160816; b=wwAVhzij+sXvyv1nb1Gq0VVFlqdTV0w1Hyi1QP0xpyWiO5jWAL2nkpJIzzlTlLqPHx nnSgGAqm2SZfP9IFymf44T9hQwxZ/tSI9WDvVO2Sg5rofZwRjuVfryozg/XeTzFWGKw0 EFnRzgnuMrzFSAyiYFToTW88t34OOhz525FMAAfTRHLnMzjHPDsOdimHiRAgW70bxyrl DszaY0iVR1SVEyHMdpPNqLrK5PIRCcbL0uiSHL4VT4VYLNSMTl5EMDjmuBxkGChE6eHy IdvHFZrCMKJZh1W23IWUo+UDBp/vPBK9YVZ9zsenvIBeK13dmST4CxQkTMYiVfZgp6mX NK3w== 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=XUFHXqdwchGBfQIXnnumwLb/+ZUMEyKt06zwpYvzLXs=; b=wXmUKm/8ethdGyo7UO3+j5gjI8LXi2AzbDlsshYyjlUb4uZndAwkvrZbSutXXziSb7 TbkV/qzbgJrIus67bZzZva0LFlCgkca4Shqx86D3qEDGQQZwSOd952zDzLZq54QM6D67 OBPe0Dbl4B5jFtUxNGrbWs8zwsRb9PyiT6tLB68KL6B3uPTlkHqjq0PEFiLYKxjNUXO5 cgmHkeZ1WjEQ3N73YT0egiV54jz6Wvgj91XonWgj0cQ/0+6nBRFwmn6u3LJme0owB1Zq KFi3PDOTR2gDQECpZN2nlCmVciHhal/SYe48YN9RWuvM1dDYFKuG+J9o5arZ3dnsgVbJ H8jg== 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 e124si26832040pgc.289.2017.06.04.01.03.43; Sun, 04 Jun 2017 01:03:44 -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 S1751256AbdFDIDg (ORCPT + 1 other); Sun, 4 Jun 2017 04:03:36 -0400 Received: from foss.arm.com ([217.140.101.70]:52716 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193AbdFDIDb (ORCPT ); Sun, 4 Jun 2017 04:03:31 -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 A6518344; Sun, 4 Jun 2017 01:03:25 -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 AA6F13F589; Sun, 4 Jun 2017 01:03:23 -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 06/18] staging: ccree: remove unused debug macros Date: Sun, 4 Jun 2017 11:02:27 +0300 Message-Id: <1496563362-7954-7-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 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 63ffcd5..3252114 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