summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-04-28 23:36:38 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-05 15:33:24 +0300
commit01f259f3720c3965443109d82a0f12611ea8bb58 (patch)
treecd88c92e7652ff0db936d2579b2499f74ae6d102 /scripts/objdiff
parent3bd12da7f50b8bc191fcb3bab1f55c582234df59 (diff)
downloadkernel-01f259f3720c3965443109d82a0f12611ea8bb58.tar.gz
platform/x86: intel_pmc_core: avoid unused-function warnings
When both CONFIG_DEBUG_FS and CONFIG_PM_SLEEP are disabled, the functions that got moved out of the #ifdef section now cause a warning: drivers/platform/x86/intel_pmc_core.c:654:13: error: 'pmc_core_lpm_display' defined but not used [-Werror=unused-function] 654 | static void pmc_core_lpm_display(struct pmc_dev *pmcdev, struct device *dev, | ^~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/intel_pmc_core.c:617:13: error: 'pmc_core_slps0_display' defined but not used [-Werror=unused-function] 617 | static void pmc_core_slps0_display(struct pmc_dev *pmcdev, struct device *dev, | ^~~~~~~~~~~~~~~~~~~~~~ Rather than add even more #ifdefs here, remove them entirely and let the compiler work it out, it can actually get rid of all the debugfs calls without problems as long as the struct member is there. The two PM functions just need a __maybe_unused annotations to avoid another warning instead of the #ifdef. Fixes: aae43c2bcdc1 ("platform/x86: intel_pmc_core: Relocate pmc_core_*_display() to outside of CONFIG_DEBUG_FS") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
4md: make ->congested robust against personality changes.NeilBrown 2014-10-14md: remove unwanted white space from md.cNeilBrown 2014-05-29raid5: add an option to avoid copy data from bio to stripe cacheShaohua Li 2013-11-20Merge tag 'md/3.13' of git://neil.brown.name/mdLinus Torvalds 2013-11-19raid5: relieve lock contention in get_active_stripe()Shaohua Li 2013-11-15Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds 2013-11-14raid5: relieve lock contention in get_active_stripe()Shaohua Li 2013-10-14treewide: fix "distingush" typoMichael Opdenacker 2013-09-02raid5: only wakeup necessary threadsShaohua Li 2013-08-28md/raid5: use seqcount to protect access to shape in make_request.NeilBrown 2013-08-28raid5: offload stripe handle to workqueueShaohua Li 2013-08-28raid5: make release_stripe locklessShaohua Li 2013-07-25md/raid5: fix interaction of 'replace' and 'recovery'.NeilBrown 2013-03-20md: remove CONFIG_MULTICORE_RAID456 entirelyPaul Bolle 2013-03-20md/raid5: ensure sync and DISCARD don't happen at the same time.NeilBrown 2012-10-11MD: raid5 trim supportShaohua Li 2012-08-02Merge tag 'md-3.6' of git://neil.brown.name/mdLinus Torvalds 2012-08-02raid5: make_request use batch stripe releaseShaohua Li 2012-07-31raid5: Add R5_ReadNoMerge flag which prevent bio from merging at block layermajianpeng 2012-07-19raid5: add a per-stripe lockShaohua Li 2012-05-22raid5: support sync requestShaohua Li 2012-05-21md/raid5: allow for change in data_offset while managing a reshape.NeilBrown