From patchwork Mon Jan 26 16:22:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 5711261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F30219F2ED for ; Mon, 26 Jan 2015 16:27:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40DC520142 for ; Mon, 26 Jan 2015 16:27:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 605052012B for ; Mon, 26 Jan 2015 16:27:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFmTt-00045v-Q9; Mon, 26 Jan 2015 16:25:41 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFmRv-0000q5-It for linux-arm-kernel@lists.infradead.org; Mon, 26 Jan 2015 16:23:40 +0000 Received: by mail-pd0-f179.google.com with SMTP id v10so12706895pde.10 for ; Mon, 26 Jan 2015 08:23:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xPJ9umJs/oqhHAM0E5bXD6YxvJ0adeYEKsJvbzZj8Hk=; b=cJ8ZH5HiFBAiVitxt9yLJnK0ySF/Lws8zTG8vDvUJDP3nTzqjJRaH9nCvvkA7O7TGM 07B+pYMA38LRNj3XDRT49nJrAfDD03I/2R2Hjmh1nZg/XmvXXTnlqp6I8+qty60To1+u VtUy7XxdV5oRrcKZJCG576BjEzLoGerNqeRxfDq1r7HY7pWGpn1LmK7os4z5Yvc2zSQx tvwTSQiT4WYJgdReZ13RzLjAOc5xsB08XgGC5xsYsBPVgPGJOzk02S0oJpwkLAVsJHla +HwkUglSehoAbCD5O20VuN1RZrGp/Keh1c2AJG1Sos41ZH+AKseRjTPrQnO743X5RxC9 04tw== X-Gm-Message-State: ALoCoQmJIkhUU7wKQlaZkS6w8GjV86vFjGngRi19nN4fxaQIZyHz1YS+dP31yTXHb8QVGUYEqm+E X-Received: by 10.70.130.33 with SMTP id ob1mr35244850pdb.7.1422289398066; Mon, 26 Jan 2015 08:23:18 -0800 (PST) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [70.73.24.112]) by mx.google.com with ESMTPSA id gr7sm10111137pbc.75.2015.01.26.08.23.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jan 2015 08:23:17 -0800 (PST) From: mathieu.poirier@linaro.org To: gregkh@linuxfoundation.org Subject: [PATCH 6/9] coresight: remove the unnecessary function coresight_is_bit_set() Date: Mon, 26 Jan 2015 09:22:22 -0700 Message-Id: <1422289345-2084-7-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1422289345-2084-1-git-send-email-mathieu.poirier@linaro.org> References: <1422289345-2084-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150126_082339_731222_DF8F87F6 X-CRM114-Status: GOOD ( 10.29 ) X-Spam-Score: -0.7 (/) Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kaixu Xia This function coresight_is_bit_set() isn't called, so we should remove it. Signed-off-by: Kaixu Xia Signed-off-by: Mathieu Poirier --- include/linux/coresight.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/coresight.h b/include/linux/coresight.h index cd6d4c384ca3..3486b9082adb 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -227,7 +227,6 @@ coresight_register(struct coresight_desc *desc); extern void coresight_unregister(struct coresight_device *csdev); extern int coresight_enable(struct coresight_device *csdev); extern void coresight_disable(struct coresight_device *csdev); -extern int coresight_is_bit_set(u32 val, int position, int value); extern int coresight_timeout(void __iomem *addr, u32 offset, int position, int value); #else @@ -237,8 +236,6 @@ static inline void coresight_unregister(struct coresight_device *csdev) {} static inline int coresight_enable(struct coresight_device *csdev) { return -ENOSYS; } static inline void coresight_disable(struct coresight_device *csdev) {} -static inline int coresight_is_bit_set(u32 val, int position, int value) - { return 0; } static inline int coresight_timeout(void __iomem *addr, u32 offset, int position, int value) { return 1; } #endif