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: 43762 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8DCA720D5D for ; Mon, 26 Jan 2015 16:23:42 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf4836508wes.1 for ; Mon, 26 Jan 2015 08:23:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2KNbIZNfjUW4rEAV3E1g6pe5tkDGpY3afBd7y9PO6DM=; b=f56BiO7xqxGuahGwywaz+g4ophndz2WTIzJ0/jUmRdTN58E89HCv3keMlGhl4FcePE +/UWSzkPWwY6diJjorh2eR9InvFWlOPYMfxTFDq4HYqvdXsLfSZtC1al4kgU8Lel7l10 zeo1d8K58saU88Yk3zsHh95QEOj2uBCGM1QPrv3XbhMyE71hiKyq1+LwwoDxlq4HDTT9 vMnRTlZ34AhL2S9+RdiIigjf3QgNoOOaY36XXqUoqM1xxu4wbpU7LI4bywo+GQ1LQpvs uTSEYGIK4P4XD6uzkdwbrmVdYNyV5cnMh1oqCwjHgJRbIUz07Pa6/MuDmsi2YPeTVnQO NXpw== X-Gm-Message-State: ALoCoQnnLbaeTJBcUSRpCHs7nK7l6kk38soI7tPSpUxCh6JYgbTpKS+2WMiJeaWAe7H06K1TYbCa X-Received: by 10.112.35.135 with SMTP id h7mr911307lbj.23.1422289421814; Mon, 26 Jan 2015 08:23:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.136 with SMTP id k8ls197026lak.21.gmail; Mon, 26 Jan 2015 08:23:41 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr22345395lbl.25.1422289421559; Mon, 26 Jan 2015 08:23:41 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id ln11si9363103lac.114.2015.01.26.08.23.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Jan 2015 08:23:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z12so8398931lbi.7 for ; Mon, 26 Jan 2015 08:23:41 -0800 (PST) X-Received: by 10.152.6.132 with SMTP id b4mr22295146laa.59.1422289421451; Mon, 26 Jan 2015 08:23:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp828528lbj; Mon, 26 Jan 2015 08:23:40 -0800 (PST) X-Received: by 10.70.128.231 with SMTP id nr7mr25478617pdb.116.1422289419306; Mon, 26 Jan 2015 08:23:39 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si12748861pat.153.2015.01.26.08.23.38; Mon, 26 Jan 2015 08:23:39 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756205AbbAZQXV (ORCPT + 28 others); Mon, 26 Jan 2015 11:23:21 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:55666 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756066AbbAZQXS (ORCPT ); Mon, 26 Jan 2015 11:23:18 -0500 Received: by mail-pd0-f171.google.com with SMTP id fp1so12761473pdb.2 for ; Mon, 26 Jan 2015 08:23:18 -0800 (PST) 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mathieu.poirier@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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