Skip to content

Commit

Permalink
powercap: RAPL: Fix struct declaration in header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wan Jiabing authored and Rafael J. Wysocki committed Apr 8, 2021
1 parent 922e5dd commit 35eb1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/intel_rapl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum rapl_domain_reg_id {
RAPL_DOMAIN_REG_MAX,
};

struct rapl_package;
struct rapl_domain;

enum rapl_primitives {
ENERGY_COUNTER,
Expand Down

0 comments on commit 35eb1f5

Please sign in to comment.