From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> To: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Tomasz Figa <tomasz.figa@gmail.com>, Kukjin Kim <kgene.kim@samsung.com>, Kyungmin Park <kyungmin.park@samsung.com>, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [linux-next PATCH] samsung_pwm: fix build for CONFIG_CLKSRC_SAMSUNG_PWM=n Date: Wed, 26 Jun 2013 18:39:49 +0200 [thread overview] Message-ID: <1913259.iCGtCKZW7f@amdc1032> (raw) From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [linux-next PATCH] samsung_pwm: fix build for CONFIG_CLKSRC_SAMSUNG_PWM=n If CONFIG_PWM_SAMSUNG=y and CONFIG_CLKSRC_SAMSUNG_PWM=n next-20130626 build fails with the following error: drivers/pwm/pwm-samsung.c:89:19: error: static declaration of ‘samsung_pwm_lock’ follows non-static declaration include/clocksource/samsung_pwm.h:23:19: note: previous declaration of ‘samsung_pwm_lock’ was here It is caused by commit 9ebe293 ("pwm: Add new pwm-samsung driver"). Fix it by adding missing ifdef. Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- include/clocksource/samsung_pwm.h | 2 ++ 1 file changed, 2 insertions(+) Index: b/include/clocksource/samsung_pwm.h =================================================================== --- a/include/clocksource/samsung_pwm.h 2013-06-21 12:05:51.329680497 +0200 +++ b/include/clocksource/samsung_pwm.h 2013-06-26 17:48:02.574187287 +0200 @@ -20,7 +20,9 @@ #define SAMSUNG_PWM_NUM 5 +#ifdef CONFIG_CLKSRC_SAMSUNG_PWM extern spinlock_t samsung_pwm_lock; +#endif struct samsung_pwm_variant { u8 bits;
WARNING: multiple messages have this Message-ID (diff)
From: b.zolnierkie@samsung.com (Bartlomiej Zolnierkiewicz) To: linux-arm-kernel@lists.infradead.org Subject: [linux-next PATCH] samsung_pwm: fix build for CONFIG_CLKSRC_SAMSUNG_PWM=n Date: Wed, 26 Jun 2013 18:39:49 +0200 [thread overview] Message-ID: <1913259.iCGtCKZW7f@amdc1032> (raw) From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [linux-next PATCH] samsung_pwm: fix build for CONFIG_CLKSRC_SAMSUNG_PWM=n If CONFIG_PWM_SAMSUNG=y and CONFIG_CLKSRC_SAMSUNG_PWM=n next-20130626 build fails with the following error: drivers/pwm/pwm-samsung.c:89:19: error: static declaration of ?samsung_pwm_lock? follows non-static declaration include/clocksource/samsung_pwm.h:23:19: note: previous declaration of ?samsung_pwm_lock? was here It is caused by commit 9ebe293 ("pwm: Add new pwm-samsung driver"). Fix it by adding missing ifdef. Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Tomasz Figa <tomasz.figa@gmail.com> Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- include/clocksource/samsung_pwm.h | 2 ++ 1 file changed, 2 insertions(+) Index: b/include/clocksource/samsung_pwm.h =================================================================== --- a/include/clocksource/samsung_pwm.h 2013-06-21 12:05:51.329680497 +0200 +++ b/include/clocksource/samsung_pwm.h 2013-06-26 17:48:02.574187287 +0200 @@ -20,7 +20,9 @@ #define SAMSUNG_PWM_NUM 5 +#ifdef CONFIG_CLKSRC_SAMSUNG_PWM extern spinlock_t samsung_pwm_lock; +#endif struct samsung_pwm_variant { u8 bits;
next reply other threads:[~2013-06-26 16:40 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-06-26 16:39 Bartlomiej Zolnierkiewicz [this message] 2013-06-26 16:39 ` [linux-next PATCH] samsung_pwm: fix build for CONFIG_CLKSRC_SAMSUNG_PWM=n Bartlomiej Zolnierkiewicz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1913259.iCGtCKZW7f@amdc1032 \ --to=b.zolnierkie@samsung.com \ --cc=kgene.kim@samsung.com \ --cc=kyungmin.park@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=sfr@canb.auug.org.au \ --cc=tomasz.figa@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.