[alsa-devel] [PATCH] ASoC: Intel: sst: use ; instead of , at the of a C statement
This was spotted by Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU while he tried to compile a -RT kernel with this driver enabled. "make C=2" would also warn about this. This is is based on his patch.
Reported-by: Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU Signed-off-by: Sebastian Andrzej Siewior bigeasy@linutronix.de --- sound/soc/intel/atom/sst/sst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c index 96c2e420cce6..b0c3e0e56302 100644 --- a/sound/soc/intel/atom/sst/sst.c +++ b/sound/soc/intel/atom/sst/sst.c @@ -368,8 +368,8 @@ static inline void sst_restore_shim64(struct intel_sst_drv *ctx, * initialize by FW or driver when firmware is loaded */ spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags); - sst_shim_write64(shim, SST_IMRX, shim_regs->imrx), - sst_shim_write64(shim, SST_CSR, shim_regs->csr), + sst_shim_write64(shim, SST_IMRX, shim_regs->imrx): + sst_shim_write64(shim, SST_CSR, shim_regs->csr); spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags); }
On 2015-06-11 14:22, Sebastian Andrzej Siewior wrote:
This was spotted by Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU while he tried to compile a -RT kernel with this driver enabled. "make C=2" would also warn about this. This is is based on his patch.
Reported-by: Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU Signed-off-by: Sebastian Andrzej Siewior bigeasy@linutronix.de
sound/soc/intel/atom/sst/sst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c index 96c2e420cce6..b0c3e0e56302 100644 --- a/sound/soc/intel/atom/sst/sst.c +++ b/sound/soc/intel/atom/sst/sst.c @@ -368,8 +368,8 @@ static inline void sst_restore_shim64(struct intel_sst_drv *ctx, * initialize by FW or driver when firmware is loaded */ spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags);
- sst_shim_write64(shim, SST_IMRX, shim_regs->imrx),
- sst_shim_write64(shim, SST_CSR, shim_regs->csr),
- sst_shim_write64(shim, SST_IMRX, shim_regs->imrx):
Don't you mean ';' and not ':'?
- sst_shim_write64(shim, SST_CSR, shim_regs->csr); spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags); }
This was spotted by Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU while he tried to compile a -RT kernel with this driver enabled. "make C=2" would also warn about this. This is is based on his patch.
Reported-by: Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU Signed-off-by: Sebastian Andrzej Siewior bigeasy@linutronix.de --- * Mats Karrman | 2015-06-11 15:04:25 [+0200]:
- sst_shim_write64(shim, SST_IMRX, shim_regs->imrx):
Don't you mean ';' and not ':'?
Interresting, yes I do. Thanks.
sound/soc/intel/atom/sst/sst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c index 96c2e420cce6..a4b458e77089 100644 --- a/sound/soc/intel/atom/sst/sst.c +++ b/sound/soc/intel/atom/sst/sst.c @@ -368,8 +368,8 @@ static inline void sst_restore_shim64(struct intel_sst_drv *ctx, * initialize by FW or driver when firmware is loaded */ spin_lock_irqsave(&ctx->ipc_spin_lock, irq_flags); - sst_shim_write64(shim, SST_IMRX, shim_regs->imrx), - sst_shim_write64(shim, SST_CSR, shim_regs->csr), + sst_shim_write64(shim, SST_IMRX, shim_regs->imrx); + sst_shim_write64(shim, SST_CSR, shim_regs->csr); spin_unlock_irqrestore(&ctx->ipc_spin_lock, irq_flags); }
On Thu, Jun 11, 2015 at 03:14:34PM +0200, Sebastian Andrzej Siewior wrote:
This was spotted by Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU while he tried to compile a -RT kernel with this driver enabled. "make C=2" would also warn about this. This is is based on his patch.
Reported-by: Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU Signed-off-by: Sebastian Andrzej Siewior bigeasy@linutronix.de
Acked-by: Vinod Koul vinod.koul@intel.com
On Thu, Jun 11, 2015 at 03:14:34PM +0200, Sebastian Andrzej Siewior wrote:
This was spotted by Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU while he tried to compile a -RT kernel with this driver enabled. "make C=2" would also warn about this. This is is based on his patch.
Applied, thanks.
participants (4)
-
Mark Brown
-
Mats Karrman
-
Sebastian Andrzej Siewior
-
Vinod Koul