diff options
author | Wan Jiabing <wanjiabing@vivo.com> | 2021-03-30 14:39:23 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-04-08 19:09:02 +0200 |
commit | 35eb1f5033cf301bda48a22f2edcaed2fda70bfd (patch) | |
tree | 1efc7dc8cf330282e9ef647f5e915d2b94bf6a60 | |
parent | 922e5ddef973f2a8a155b41f3bb9d3269c79017a (diff) | |
download | lwn-35eb1f5033cf301bda48a22f2edcaed2fda70bfd.tar.gz lwn-35eb1f5033cf301bda48a22f2edcaed2fda70bfd.zip |
powercap: RAPL: Fix struct declaration in header file
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>
-rw-r--r-- | include/linux/intel_rapl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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, |