powercap: RAPL: Fix struct declaration in header file
authorWan Jiabing <wanjiabing@vivo.com>
Tue, 30 Mar 2021 06:39:23 +0000 (14:39 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:09:02 +0000 (19:09 +0200)
struct rapl_package is declared twice in intel_rapl.h, once at line 80
and once earlier.

Code inspection suggests that the first instance should be struct
rapl_domain rather than rapl_package, so change it.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/intel_rapl.h

index 50b8398ffd214f189c1713a453b5595621d1c16d..93780834fc8f0fa4fca70b35123770758b820893 100644 (file)
@@ -33,7 +33,7 @@ enum rapl_domain_reg_id {
        RAPL_DOMAIN_REG_MAX,
 };
 
-struct rapl_package;
+struct rapl_domain;
 
 enum rapl_primitives {
        ENERGY_COUNTER,