tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup head: 3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67 commit: 3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67 [124/124] platform/x86: fix changelog config: i386-randconfig-a2-201905 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67 # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/platform/x86/intel_pmc_core.c: In function 'pmc_core_dbgfs_register':
>> drivers/platform/x86/intel_pmc_core.c:721:2: warning: 'return' with a value,
>> in function returning void
return 0;
^
drivers/platform/x86/intel_pmc_core.c: In function 'pmc_core_probe':
drivers/platform/x86/intel_pmc_core.c:754:6: warning: unused variable 'err'
[-Wunused-variable]
int err;
^
vim +/return +721 drivers/platform/x86/intel_pmc_core.c
b740d2e9 Rajneesh Bhardwaj 2016-05-26 684
3ec9bc11 Greg Kroah-Hartman 2019-02-07 685 static void
pmc_core_dbgfs_register(struct pmc_dev *pmcdev)
b740d2e9 Rajneesh Bhardwaj 2016-05-26 686 {
750e0f57 Rajneesh Bhardwaj 2018-01-19 687 struct dentry *dir;
b740d2e9 Rajneesh Bhardwaj 2016-05-26 688
b740d2e9 Rajneesh Bhardwaj 2016-05-26 689 dir =
debugfs_create_dir("pmc_core", NULL);
b740d2e9 Rajneesh Bhardwaj 2016-05-26 690 pmcdev->dbgfs_dir = dir;
9c2ee199 Rajneesh Bhardwaj 2016-10-07 691
750e0f57 Rajneesh Bhardwaj 2018-01-19 692
debugfs_create_file("slp_s0_residency_usec", 0444, dir, pmcdev,
750e0f57 Rajneesh Bhardwaj 2018-01-19 693
&pmc_core_dev_state);
750e0f57 Rajneesh Bhardwaj 2018-01-19 694
750e0f57 Rajneesh Bhardwaj 2018-01-19 695
debugfs_create_file("pch_ip_power_gating_status", 0444, dir, pmcdev,
3b1f9955 Yangtao Li 2018-12-05 696
&pmc_core_ppfear_fops);
750e0f57 Rajneesh Bhardwaj 2018-01-19 697
750e0f57 Rajneesh Bhardwaj 2018-01-19 698
debugfs_create_file("ltr_ignore", 0644, dir, pmcdev,
9c2ee199 Rajneesh Bhardwaj 2016-10-07 699
&pmc_core_ltr_ignore_ops);
9c2ee199 Rajneesh Bhardwaj 2016-10-07 700
2eb15055 Rajneesh Bhardwaj 2018-11-09 701 debugfs_create_file("ltr_show",
0644, dir, pmcdev, &pmc_core_ltr_fops);
2eb15055 Rajneesh Bhardwaj 2018-11-09 702
750e0f57 Rajneesh Bhardwaj 2018-01-19 703 if (pmcdev->map->pll_sts)
750e0f57 Rajneesh Bhardwaj 2018-01-19 704
debugfs_create_file("pll_status", 0444, dir, pmcdev,
3b1f9955 Yangtao Li 2018-12-05 705
&pmc_core_pll_fops);
750e0f57 Rajneesh Bhardwaj 2018-01-19 706
750e0f57 Rajneesh Bhardwaj 2018-01-19 707 if (pmcdev->map->mphy_sts)
750e0f57 Rajneesh Bhardwaj 2018-01-19 708
debugfs_create_file("mphy_core_lanes_power_gating_status",
750e0f57 Rajneesh Bhardwaj 2018-01-19 709
0444, dir, pmcdev,
3b1f9955 Yangtao Li 2018-12-05 710
&pmc_core_mphy_pg_fops);
0bdfaf42 Rajneesh Bhardwaj 2016-10-07 711
4cf2afd6 Box, David E 2018-06-08 712 if
(pmcdev->map->slps0_dbg_maps) {
4cf2afd6 Box, David E 2018-06-08 713
debugfs_create_file("slp_s0_debug_status", 0444,
4cf2afd6 Box, David E 2018-06-08 714
dir, pmcdev,
4cf2afd6 Box, David E 2018-06-08 715
&pmc_core_slps0_dbg_fops);
4cf2afd6 Box, David E 2018-06-08 716
4cf2afd6 Box, David E 2018-06-08 717
debugfs_create_bool("slp_s0_dbg_latch", 0644,
4cf2afd6 Box, David E 2018-06-08 718
dir, &slps0_dbg_latch);
4cf2afd6 Box, David E 2018-06-08 719 }
4cf2afd6 Box, David E 2018-06-08 720
fe748227 Rajneesh Bhardwaj 2016-10-07 @721 return 0;
b740d2e9 Rajneesh Bhardwaj 2016-05-26 722 }
0bdfaf42 Rajneesh Bhardwaj 2016-10-07 723 #else
0bdfaf42 Rajneesh Bhardwaj 2016-10-07 724 static inline int
pmc_core_dbgfs_register(struct pmc_dev *pmcdev)
0bdfaf42 Rajneesh Bhardwaj 2016-10-07 725 {
b740d2e9 Rajneesh Bhardwaj 2016-05-26 726 }
b740d2e9 Rajneesh Bhardwaj 2016-05-26 727
:::::: The code at line 721 was first introduced by commit
:::::: fe748227570107abaa4767c39be3eff934bdaf5c platform/x86: intel_pmc_core:
Add MPHY PLL clock gating status
:::::: TO: Rajneesh Bhardwaj <[email protected]>
:::::: CC: Darren Hart <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
