All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] coresight: remove the unused macro CORESIGHT_DEBUGFS_ENTRY
@ 2014-12-30 11:07 ` Kaixu Xia
  0 siblings, 0 replies; 4+ messages in thread
From: Kaixu Xia @ 2014-12-30 11:07 UTC (permalink / raw)
  To: mathieu.poirier; +Cc: gregkh, linux-arm-kernel, linux-kernel, pratikp, xiakaixu

From: Xia Kaixu <xiakaixu@huawei.com>

Debugfs isn't used for coresight configuration, so the macro
CORESIGHT_DEBUGFS_ENTRY is unnecessary, just remove it.

Signed-off-by: Xia Kaixu <xiakaixu@huawei.com>
---
 include/linux/coresight.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 5d3c543..7cbfecb 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -179,15 +179,6 @@ struct coresight_device {
 #define sink_ops(csdev)		csdev->ops->sink_ops
 #define link_ops(csdev)		csdev->ops->link_ops
 
-#define CORESIGHT_DEBUGFS_ENTRY(__name, __entry_name,			\
-				 __mode, __get, __set, __fmt)		\
-DEFINE_SIMPLE_ATTRIBUTE(__name ## _ops, __get, __set, __fmt);		\
-static const struct coresight_ops_entry __name ## _entry = {		\
-	.name = __entry_name,						\
-	.mode = __mode,							\
-	.ops  = &__name ## _ops						\
-}
-
 /**
  * struct coresight_ops_sink - basic operations for a sink
  * Operations available for sinks
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] coresight: remove the unused macro CORESIGHT_DEBUGFS_ENTRY
@ 2014-12-30 11:07 ` Kaixu Xia
  0 siblings, 0 replies; 4+ messages in thread
From: Kaixu Xia @ 2014-12-30 11:07 UTC (permalink / raw)
  To: linux-arm-kernel

From: Xia Kaixu <xiakaixu@huawei.com>

Debugfs isn't used for coresight configuration, so the macro
CORESIGHT_DEBUGFS_ENTRY is unnecessary, just remove it.

Signed-off-by: Xia Kaixu <xiakaixu@huawei.com>
---
 include/linux/coresight.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index 5d3c543..7cbfecb 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -179,15 +179,6 @@ struct coresight_device {
 #define sink_ops(csdev)		csdev->ops->sink_ops
 #define link_ops(csdev)		csdev->ops->link_ops
 
-#define CORESIGHT_DEBUGFS_ENTRY(__name, __entry_name,			\
-				 __mode, __get, __set, __fmt)		\
-DEFINE_SIMPLE_ATTRIBUTE(__name ## _ops, __get, __set, __fmt);		\
-static const struct coresight_ops_entry __name ## _entry = {		\
-	.name = __entry_name,						\
-	.mode = __mode,							\
-	.ops  = &__name ## _ops						\
-}
-
 /**
  * struct coresight_ops_sink - basic operations for a sink
  * Operations available for sinks
-- 
2.2.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] coresight: remove the unused macro CORESIGHT_DEBUGFS_ENTRY
  2014-12-30 11:07 ` Kaixu Xia
@ 2015-01-02 15:08   ` Mathieu Poirier
  -1 siblings, 0 replies; 4+ messages in thread
From: Mathieu Poirier @ 2015-01-02 15:08 UTC (permalink / raw)
  To: Kaixu Xia; +Cc: Greg KH, linux-arm-kernel, linux-kernel, Pratik Patel

On 30 December 2014 at 04:07, Kaixu Xia <xiakaixu@huawei.com> wrote:
> From: Xia Kaixu <xiakaixu@huawei.com>
>
> Debugfs isn't used for coresight configuration, so the macro
> CORESIGHT_DEBUGFS_ENTRY is unnecessary, just remove it.
>
> Signed-off-by: Xia Kaixu <xiakaixu@huawei.com>
> ---
>  include/linux/coresight.h | 9 ---------
>  1 file changed, 9 deletions(-)
>
> diff --git a/include/linux/coresight.h b/include/linux/coresight.h
> index 5d3c543..7cbfecb 100644
> --- a/include/linux/coresight.h
> +++ b/include/linux/coresight.h
> @@ -179,15 +179,6 @@ struct coresight_device {
>  #define sink_ops(csdev)                csdev->ops->sink_ops
>  #define link_ops(csdev)                csdev->ops->link_ops
>
> -#define CORESIGHT_DEBUGFS_ENTRY(__name, __entry_name,                  \
> -                                __mode, __get, __set, __fmt)           \
> -DEFINE_SIMPLE_ATTRIBUTE(__name ## _ops, __get, __set, __fmt);          \
> -static const struct coresight_ops_entry __name ## _entry = {           \
> -       .name = __entry_name,                                           \
> -       .mode = __mode,                                                 \
> -       .ops  = &__name ## _ops                                         \
> -}
> -
>  /**
>   * struct coresight_ops_sink - basic operations for a sink
>   * Operations available for sinks
> --
> 2.2.1
>

Applied - thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] coresight: remove the unused macro CORESIGHT_DEBUGFS_ENTRY
@ 2015-01-02 15:08   ` Mathieu Poirier
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Poirier @ 2015-01-02 15:08 UTC (permalink / raw)
  To: linux-arm-kernel

On 30 December 2014 at 04:07, Kaixu Xia <xiakaixu@huawei.com> wrote:
> From: Xia Kaixu <xiakaixu@huawei.com>
>
> Debugfs isn't used for coresight configuration, so the macro
> CORESIGHT_DEBUGFS_ENTRY is unnecessary, just remove it.
>
> Signed-off-by: Xia Kaixu <xiakaixu@huawei.com>
> ---
>  include/linux/coresight.h | 9 ---------
>  1 file changed, 9 deletions(-)
>
> diff --git a/include/linux/coresight.h b/include/linux/coresight.h
> index 5d3c543..7cbfecb 100644
> --- a/include/linux/coresight.h
> +++ b/include/linux/coresight.h
> @@ -179,15 +179,6 @@ struct coresight_device {
>  #define sink_ops(csdev)                csdev->ops->sink_ops
>  #define link_ops(csdev)                csdev->ops->link_ops
>
> -#define CORESIGHT_DEBUGFS_ENTRY(__name, __entry_name,                  \
> -                                __mode, __get, __set, __fmt)           \
> -DEFINE_SIMPLE_ATTRIBUTE(__name ## _ops, __get, __set, __fmt);          \
> -static const struct coresight_ops_entry __name ## _entry = {           \
> -       .name = __entry_name,                                           \
> -       .mode = __mode,                                                 \
> -       .ops  = &__name ## _ops                                         \
> -}
> -
>  /**
>   * struct coresight_ops_sink - basic operations for a sink
>   * Operations available for sinks
> --
> 2.2.1
>

Applied - thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-02 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-30 11:07 [PATCH] coresight: remove the unused macro CORESIGHT_DEBUGFS_ENTRY Kaixu Xia
2014-12-30 11:07 ` Kaixu Xia
2015-01-02 15:08 ` Mathieu Poirier
2015-01-02 15:08   ` Mathieu Poirier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.