linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux/intel_rapl.h: Modify struct declaration
@ 2021-03-30  6:39 Wan Jiabing
  2021-04-08 17:10 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Wan Jiabing @ 2021-03-30  6:39 UTC (permalink / raw)
  To: Rafael J. Wysocki, linux-pm, linux-kernel; +Cc: kael_w, Wan Jiabing

struct rapl_package is declared twice. One has been declared
at 80th line.
By reviewing the code, it should declare struct rapl_domain
rather than rapl_package. Modify it.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/intel_rapl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/intel_rapl.h b/include/linux/intel_rapl.h
index 50b8398ffd21..93780834fc8f 100644
--- a/include/linux/intel_rapl.h
+++ b/include/linux/intel_rapl.h
@@ -33,7 +33,7 @@ enum rapl_domain_reg_id {
 	RAPL_DOMAIN_REG_MAX,
 };
 
-struct rapl_package;
+struct rapl_domain;
 
 enum rapl_primitives {
 	ENERGY_COUNTER,
-- 
2.25.1


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

* Re: [PATCH] linux/intel_rapl.h: Modify struct declaration
  2021-03-30  6:39 [PATCH] linux/intel_rapl.h: Modify struct declaration Wan Jiabing
@ 2021-04-08 17:10 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-04-08 17:10 UTC (permalink / raw)
  To: Wan Jiabing
  Cc: Rafael J. Wysocki, Linux PM, Linux Kernel Mailing List, kael_w

On Tue, Mar 30, 2021 at 8:40 AM Wan Jiabing <wanjiabing@vivo.com> wrote:
>
> struct rapl_package is declared twice. One has been declared
> at 80th line.
> By reviewing the code, it should declare struct rapl_domain
> rather than rapl_package. Modify it.
>
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
> ---
>  include/linux/intel_rapl.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/intel_rapl.h b/include/linux/intel_rapl.h
> index 50b8398ffd21..93780834fc8f 100644
> --- a/include/linux/intel_rapl.h
> +++ b/include/linux/intel_rapl.h
> @@ -33,7 +33,7 @@ enum rapl_domain_reg_id {
>         RAPL_DOMAIN_REG_MAX,
>  };
>
> -struct rapl_package;
> +struct rapl_domain;
>
>  enum rapl_primitives {
>         ENERGY_COUNTER,
> --

Applied as 5.13 material with edited subject and changelog, thanks!

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

end of thread, other threads:[~2021-04-08 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  6:39 [PATCH] linux/intel_rapl.h: Modify struct declaration Wan Jiabing
2021-04-08 17:10 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).