From: Suzuki K Poulose Date: Wed, 19 Jun 2019 19:53:09 +0000 (-0600) Subject: coresight: Add dummy definition for of_coresight_get_cpu() X-Git-Tag: v5.3-rc1~127^2~56 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=40a1c5b31969eb9b6fa9102f2c460b2e0104e85d;p=linux-block.git coresight: Add dummy definition for of_coresight_get_cpu() For !CONFIG_OF case, add a dummy definition for the of_coresight_get_cpu(). Reported-by: Mike Leach Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 6fef8732eea5..3c5ceda8db24 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -307,6 +307,11 @@ of_get_coresight_platform_data(struct device *dev, { return -ENOENT; } + +static inline int of_coresight_get_cpu(struct device *dev) +{ + return 0; +} #endif #ifdef CONFIG_ACPI