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

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86:intel/pmc: Convert index variables to be unsigned

Convert the index variables type to be unsigned to avoid confusion
and error.

Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250409191056.15434-5-xi.pardee@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Xi Pardee and committed by
Ilpo Järvinen
052fabdd 1b1aaa9c

+5 -4
+3 -2
drivers/platform/x86/intel/pmc/core.c
··· 1457 1457 1458 1458 static int pmc_core_ssram_get_lpm_reqs(struct pmc_dev *pmcdev) 1459 1459 { 1460 - int ret, i; 1460 + unsigned int i; 1461 + int ret; 1461 1462 1462 1463 if (!pmcdev->ssram_pcidev) 1463 1464 return -ENODEV; ··· 1485 1484 } 1486 1485 1487 1486 int pmc_core_pmc_add(struct pmc_dev *pmcdev, u64 pwrm_base, 1488 - const struct pmc_reg_map *reg_map, int pmc_index) 1487 + const struct pmc_reg_map *reg_map, unsigned int pmc_index) 1489 1488 { 1490 1489 struct pmc *pmc = pmcdev->pmcs[pmc_index]; 1491 1490
+1 -1
drivers/platform/x86/intel/pmc/core.h
··· 515 515 int generic_core_init(struct pmc_dev *pmcdev, struct pmc_dev_info *pmc_dev_info); 516 516 const struct pmc_reg_map *pmc_core_find_regmap(struct pmc_info *list, u16 devid); 517 517 int pmc_core_pmc_add(struct pmc_dev *pmcdev, u64 pwrm_base, 518 - const struct pmc_reg_map *reg_map, int pmc_index); 518 + const struct pmc_reg_map *reg_map, unsigned int pmc_index); 519 519 520 520 extern struct pmc_dev_info spt_pmc_dev; 521 521 extern struct pmc_dev_info cnp_pmc_dev;
+1 -1
drivers/platform/x86/intel/pmc/ssram_telemetry.c
··· 74 74 } 75 75 76 76 static int 77 - pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) 77 + pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, unsigned int pmc_idx, u32 offset) 78 78 { 79 79 struct pci_dev *ssram_pcidev = pmcdev->ssram_pcidev; 80 80 void __iomem __free(pmc_core_iounmap) *tmp_ssram = NULL;