From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752043AbdJZJjd (ORCPT ); Thu, 26 Oct 2017 05:39:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52324 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbdJZJjb (ORCPT ); Thu, 26 Oct 2017 05:39:31 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0D88460314 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=clingutla@codeaurora.org From: Lingutla Chandrasekhar To: mathieu.poirier@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Lingutla Chandrasekhar , Jordan Crouse Subject: [PATCH] coresight: of_get_coresight_platform_data needs both OF and CORESIGHT Date: Thu, 26 Oct 2017 15:09:04 +0530 Message-Id: <20171026093904.10355-1-clingutla@codeaurora.org> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The file that defines of_get_coresight_platform_data() is indeed dependent on CONFIG_OF but the entire coresight directory depends on CONFIG_CORESIGHT so both need to be enabled to make the symbol resolve. Signed-off-by: Jordan Crouse Signed-off-by: Lingutla Chandrasekhar diff --git a/include/linux/coresight.h b/include/linux/coresight.h index d950dad5056a..d298eea7e6a0 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -262,7 +262,7 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset, int position, int value) { return 1; } #endif -#ifdef CONFIG_OF +#if defined(CONFIG_OF) && defined(CONFIG_CORESIGHT) extern int of_coresight_get_cpu(const struct device_node *node); extern struct coresight_platform_data * of_get_coresight_platform_data(struct device *dev, -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.