Skip to content

Commit baab730

Browse files
mcuelenaerekgene
authored andcommitted
ARM: SAMSUNG: Fix warning 's3c_pm_show_resume_irqs' defined but not used
s3c_pm_show_resume_irqs() is used by some s3c_pm_arch_show_resume_irqs() implementations, which get included through mach/pm-core.h. Add __maybe_unused to silence warnings when it isn't used (e.g. on S3C64XX platforms). Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
1 parent 96cfb97 commit baab730

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • arch/arm/plat-samsung

‎arch/arm/plat-samsung/pm.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ void s3c_pm_do_restore_core(struct sleep_save *ptr, int count)
214214
*
215215
* print any IRQs asserted at resume time (ie, we woke from)
216216
*/
217-
static void s3c_pm_show_resume_irqs(int start, unsigned long which,
218-
unsigned long mask)
217+
static void __maybe_unused s3c_pm_show_resume_irqs(int start,
218+
unsigned long which,
219+
unsigned long mask)
219220
{
220221
int i;
221222

0 commit comments

Comments
 (0)