Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wan Jiabing and committed by
Rafael J. Wysocki
35eb1f50 922e5dde

+1 -1
+1 -1
include/linux/intel_rapl.h
··· 33 33 RAPL_DOMAIN_REG_MAX, 34 34 }; 35 35 36 - struct rapl_package; 36 + struct rapl_domain; 37 37 38 38 enum rapl_primitives { 39 39 ENERGY_COUNTER,