static int pmc_core_ssram_get_lpm_reqs(struct pmc_dev *pmcdev)
 {
-       int ret, i;
+       unsigned int i;
+       int ret;
 
        if (!pmcdev->ssram_pcidev)
                return -ENODEV;
 }
 
 int pmc_core_pmc_add(struct pmc_dev *pmcdev, u64 pwrm_base,
-                    const struct pmc_reg_map *reg_map, int pmc_index)
+                    const struct pmc_reg_map *reg_map, unsigned int pmc_index)
 {
        struct pmc *pmc = pmcdev->pmcs[pmc_index];
 
 
 int generic_core_init(struct pmc_dev *pmcdev, struct pmc_dev_info *pmc_dev_info);
 const struct pmc_reg_map *pmc_core_find_regmap(struct pmc_info *list, u16 devid);
 int pmc_core_pmc_add(struct pmc_dev *pmcdev, u64 pwrm_base,
-                    const struct pmc_reg_map *reg_map, int pmc_index);
+                    const struct pmc_reg_map *reg_map, unsigned int pmc_index);
 
 extern struct pmc_dev_info spt_pmc_dev;
 extern struct pmc_dev_info cnp_pmc_dev;
 
 }
 
 static int
-pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)
+pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, unsigned int pmc_idx, u32 offset)
 {
        struct pci_dev *ssram_pcidev = pmcdev->ssram_pcidev;
        void __iomem __free(pmc_core_iounmap) *tmp_ssram = NULL;