From 6c52f78febeef3e2c3a70d00da36632254a7cdbd Mon Sep 17 00:00:00 2001 From: David Ng Date: Fri, 5 Oct 2012 10:28:19 -0700 Subject: [PATCH] coresight: Export coresight-stm header to userspace Export coresight-stm header for userspace STM logging definitions. Change-Id: I75923ea8beea36269995e311c3fbb2667beac3cc Signed-off-by: David Ng --- include/linux/Kbuild | 1 + include/linux/coresight-stm.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 28c80ad5b0c..3e681aa6016 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild @@ -446,3 +446,4 @@ header-y += idle_stats_device.h header-y += genlock.h header-y += msm_audio_amrwb.h header-y += msm_audio_amrwbplus.h +header-y += coresight-stm.h diff --git a/include/linux/coresight-stm.h b/include/linux/coresight-stm.h index 9ff81f40027..69f8c98f547 100644 --- a/include/linux/coresight-stm.h +++ b/include/linux/coresight-stm.h @@ -28,6 +28,7 @@ enum { STM_OPTION_GUARANTEED = 0x80, }; +#ifdef __KERNEL__ #define stm_log_inv(entity_id, proto_id, data, size) \ stm_trace(STM_OPTION_NONE, entity_id, proto_id, data, size) @@ -56,5 +57,6 @@ static inline int stm_trace(uint32_t options, uint8_t entity_id, return 0; } #endif +#endif /* __KERNEL__ */ #endif