From: Mark Brown <broonie@kernel.org>
To: Claudiu Beznea <claudiu.beznea@microchip.com>
Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com,
nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com,
alsa-devel@alsa-project.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/5] ASoC: mchp-spdifrx: disable end of block interrupt on failures
Date: Tue, 26 Jul 2022 11:45:31 +0100 [thread overview]
Message-ID: <Yt/Fy1xWUHtpbGMn@sirena.org.uk> (raw)
In-Reply-To: <20220725130925.1781791-2-claudiu.beznea@microchip.com>
[-- Attachment #1: Type: text/plain, Size: 3113 bytes --]
On Mon, Jul 25, 2022 at 04:09:21PM +0300, Claudiu Beznea wrote:
> +++ b/sound/soc/atmel/mchp-spdifrx.c
> @@ -288,15 +288,17 @@ static void mchp_spdifrx_isr_blockend_en(struct mchp_spdifrx_dev *dev)
> spin_unlock_irqrestore(&dev->blockend_lock, flags);
> }
>
> -/* called from atomic context only */
> +/* called from atomic/non-atomic context */
> static void mchp_spdifrx_isr_blockend_dis(struct mchp_spdifrx_dev *dev)
> {
> - spin_lock(&dev->blockend_lock);
> + unsigned int flags;
> +
> + spin_lock_irqsave(&dev->blockend_lock);
> dev->blockend_refcount--;
> /* don't enable BLOCKEND interrupt if it's already enabled */
> if (dev->blockend_refcount == 0)
> regmap_write(dev->regmap, SPDIFRX_IDR, SPDIFRX_IR_BLOCKEND);
> - spin_unlock(&dev->blockend_lock);
> + spin_unlock_irqrestore(&dev->blockend_lock);
> }
This breaks an x86_64 allmodconfig build:
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c: In function ‘mchp_spdifrx_isr_blockend_dis’:
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:296:46: error: macro "spin_lock_irqsave" requires 2 arguments, but only 1 given
296 | spin_lock_irqsave(&dev->blockend_lock);
| ^
In file included from /build/stage/linux/include/linux/rwsem.h:15,
from /build/stage/linux/include/linux/notifier.h:15,
from /build/stage/linux/include/linux/clk.h:14,
from /build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:9:
/build/stage/linux/include/linux/spinlock.h:377: note: macro "spin_lock_irqsave" defined here
377 | #define spin_lock_irqsave(lock, flags) \
|
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:296:9: error: ‘spin_lock_irqsave’ undeclared (first use in this function); did you mean ‘spin_lock_irq’?
296 | spin_lock_irqsave(&dev->blockend_lock);
| ^~~~~~~~~~~~~~~~~
| spin_lock_irq
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:296:9: note: each undeclared identifier is reported only once for each function it appears in
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:301:9: error: too few arguments to function ‘spin_unlock_irqrestore’
301 | spin_unlock_irqrestore(&dev->blockend_lock);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /build/stage/linux/include/linux/rwsem.h:15,
from /build/stage/linux/include/linux/notifier.h:15,
from /build/stage/linux/include/linux/clk.h:14,
from /build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:9:
/build/stage/linux/include/linux/spinlock.h:402:29: note: declared here
402 | static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
| ^~~~~~~~~~~~~~~~~~~~~~
/build/stage/linux/sound/soc/atmel/mchp-spdifrx.c:294:22: error: unused variable ‘flags’ [-Werror=unused-variable]
294 | unsigned int flags;
| ^~~~~
cc1: all warnings being treated as errors
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-07-26 10:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 13:09 [PATCH v2 0/5] ASoC: atmel: one fix and few cleanups Claudiu Beznea
2022-07-25 13:09 ` [PATCH v2 1/5] ASoC: mchp-spdifrx: disable end of block interrupt on failures Claudiu Beznea
2022-07-26 10:45 ` Mark Brown [this message]
2022-07-25 13:09 ` [PATCH v2 2/5] ASoC: mchp-spdifrx: use single tab indent for structure Claudiu Beznea
2022-07-25 13:09 ` [PATCH v2 3/5] ASoC: mchp-spdiftx: remove references to mchp_i2s_caps Claudiu Beznea
2022-07-26 10:47 ` Mark Brown
2022-07-25 13:09 ` [PATCH v2 4/5] ASoC: mchp-spdiftx: return directly ret Claudiu Beznea
2022-07-25 13:09 ` [PATCH v2 5/5] ASoC: mchp-spdiftx: add and remove black line around MODULE_DEVICE_TABLE() Claudiu Beznea
2022-07-26 13:07 ` [PATCH v2 0/5] ASoC: atmel: one fix and few cleanups Mark Brown
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=Yt/Fy1xWUHtpbGMn@sirena.org.uk \
--to=broonie@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=alsa-devel@alsa-project.org \
--cc=claudiu.beznea@microchip.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®