From patchwork Thu Jul 6 09:15:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 785075 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x3BtH1WPLz9ryQ for ; Thu, 6 Jul 2017 19:15:51 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fPTzwGHA"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uZ/p8bp4"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2XM7J6wV35+zczHVcFEYq36krw2ryQ8RLGdm32QTc00=; b=fPTzwGHAZoTXx2 6fDC7IEgN2/ICw8GzZAYdryt3aLQVrrWQQtApujY/a22mx/0SD7z6EIDStlHG29TiayQ2vA88VvFu jHAl9hxI6IYznW2RUlQzQN/NcOhXlFluna1T7sJ5t4J7DssyIhoeu56KZmYZxeSUXzkqWAPLHLVcI X84lbFjCYUy8tacc8pFLITv3fWsu28akWRzT5p/IxQq9mzlalHRwby0bYhct0ukmMj9bzhL4svT5x kQjV+78XubW3Uo57khNwPuHMCDxEXu/AOIxHZ9DMlutYNhM4R/DOlMoUrfWS7g6JT0p+q67UIkZxW hQo+9iCRvGjy+0eN6mfw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dT2t2-0006TQ-5Y; Thu, 06 Jul 2017 09:15:48 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dT2sy-0006SY-JT for linux-arm-kernel@lists.infradead.org; Thu, 06 Jul 2017 09:15:46 +0000 Received: by mail-pg0-x244.google.com with SMTP id d193so2125177pgc.2 for ; Thu, 06 Jul 2017 02:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+TZdre5AHlLcpZLF6KU5Ang+cm7S7byha6Ona+Krrd0=; b=uZ/p8bp4qE3mnYvtahE9gy+JWH8OdrmDW0e5y89KI9l0JaikaGvy0nBuV6AOxTif/T LN5zGKjVP+VBHay4YXqjWhrKuK+5bk8UQiHAvNJKPwKK47gU+lSZJgJds9o9ck+DLM5Q Fck1nIlgwouL2F7a+V8OeWXGrAnlumV+XXEHIWIN8WZCR1aOnJtcGZgkIn9VnkFxZzJX 3HV4HzCXFf6QBLPrwWHDrDVhtaA/6/XPRWTuNO7oTInWumqHq1V2rRf1xcC3WMieiXeh sn751I6VA1Ow2ts6fDSQQwUfR4VrAeqOKti0IUzVsWZjYv3dl1atYz5MMYJhnLXE/LNC Uv9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+TZdre5AHlLcpZLF6KU5Ang+cm7S7byha6Ona+Krrd0=; b=Yv1XQZpfsHBnFIG405oRqFsKzBNi0+eLqG4OElYOoNgGkfJGvagW5tq3SV631x1uzk kyCbFYJXABgC/POET8u3iiOQYIIqZb/LCjYL7qJlWJJJs0GOJQE//dALFHRzxfYiNIyA 7dCswr8UWwYugdCZ/8Sx0nyIZ9Aepxba+XIlPFsjGtccS37ogxrvG34DeHq1EzY1hZ7o P0ohdTP1zt8PV2UWk2Zf9tTMwGyJhmB94jWNpdFwWdhDjVx1X6rPZWy6Ueqkgki2YRN5 7fXpitXfeWRZDf+Pd8VD0BpXS6LOhzdZKgEmoZO2zG7vphhpiKfmG/Zr4JoeOLFepzR8 fLKw== X-Gm-Message-State: AIVw112m7Y5QQwkTmTu3h64MkzExAjBAwcNe/y92QYYsHiKZuBtxA3/J n+kY1/aqwU2/x9cW X-Received: by 10.98.211.89 with SMTP id q86mr24719996pfg.37.1499332523042; Thu, 06 Jul 2017 02:15:23 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id n74sm3568545pfh.118.2017.07.06.02.15.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 02:15:21 -0700 (PDT) From: Arvind Yadav To: gregkh@linuxfoundation.org, mathieu.poirier@linaro.org Subject: [PATCH] input: coresight: Fix redefinition error on compilation. Date: Thu, 6 Jul 2017 14:45:02 +0530 Message-Id: <6333cde19a5c0adc8faf41531c2ae431cd79e7a6.1499332268.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170706_021544_735819_406EE412 X-CRM114-Status: GOOD ( 11.41 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (arvind.yadav.cs[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org If CONFIG_CORESIGHT is disable, it'll through compilation error. drivers/hwtracing/coresight/coresight-etm-perf.c:462:5: error: redefinition of ‘etm_perf_symlink’ int etm_perf_symlink(struct coresight_device *csdev, bool link) ^ In file included from drivers/hwtracing/coresight/coresight-etm-perf.c:30:0: drivers/hwtracing/coresight/coresight-etm-perf.h:61:19: note: previous definition of ‘etm_perf_symlink’ was here static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index e97775d..74ce6a5 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -458,7 +458,7 @@ static void etm_addr_filters_sync(struct perf_event *event) filters->nr_filters = i; } - +#ifdef CONFIG_CORESIGHT int etm_perf_symlink(struct coresight_device *csdev, bool link) { char entry[sizeof("cpu9999999")]; @@ -483,7 +483,7 @@ int etm_perf_symlink(struct coresight_device *csdev, bool link) return 0; } - +#endif static int __init etm_perf_init(void) { int ret;