All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: fsl_asrc: protect macro argument
@ 2017-08-07  6:36 Stefan Agner
  2017-08-07  7:08 ` Nicolin Chen
  2017-12-06 15:29   ` Mark Brown
  0 siblings, 2 replies; 11+ messages in thread
From: Stefan Agner @ 2017-08-07  6:36 UTC (permalink / raw)
  To: timur, nicoleotsuka, Xiubo.Lee
  Cc: fabio.estevam, alsa-devel, linux-kernel, Stefan Agner

Protect macro argument with parentheses to avoid ambiguity.
This fixes a warning seen with clang:
  warning: logical not is only applied to the left hand side of this comparison

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 sound/soc/fsl/fsl_asrc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
index 0f163abe4ba3..ec33dab4b909 100644
--- a/sound/soc/fsl/fsl_asrc.h
+++ b/sound/soc/fsl/fsl_asrc.h
@@ -57,7 +57,7 @@
 #define REG_ASRDOC			0x74
 #define REG_ASRDI(i)			(REG_ASRDIA + (i << 3))
 #define REG_ASRDO(i)			(REG_ASRDOA + (i << 3))
-#define REG_ASRDx(x, i)			(x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
+#define REG_ASRDx(x, i)			((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
 
 #define REG_ASRIDRHA			0x80
 #define REG_ASRIDRLA			0x84
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-08-07  6:36 [PATCH] ASoC: fsl_asrc: protect macro argument Stefan Agner
@ 2017-08-07  7:08 ` Nicolin Chen
  2017-12-06 13:53   ` Stefan Agner
  2017-12-06 15:29   ` Mark Brown
  1 sibling, 1 reply; 11+ messages in thread
From: Nicolin Chen @ 2017-08-07  7:08 UTC (permalink / raw)
  To: Stefan Agner; +Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel

On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote:
> Protect macro argument with parentheses to avoid ambiguity.
> This fixes a warning seen with clang:
>   warning: logical not is only applied to the left hand side of this comparison
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>

Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

Thanks

> ---
>  sound/soc/fsl/fsl_asrc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
> index 0f163abe4ba3..ec33dab4b909 100644
> --- a/sound/soc/fsl/fsl_asrc.h
> +++ b/sound/soc/fsl/fsl_asrc.h
> @@ -57,7 +57,7 @@
>  #define REG_ASRDOC			0x74
>  #define REG_ASRDI(i)			(REG_ASRDIA + (i << 3))
>  #define REG_ASRDO(i)			(REG_ASRDOA + (i << 3))
> -#define REG_ASRDx(x, i)			(x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
> +#define REG_ASRDx(x, i)			((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
>  
>  #define REG_ASRIDRHA			0x80
>  #define REG_ASRIDRLA			0x84
> -- 
> 2.13.3
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-08-07  7:08 ` Nicolin Chen
@ 2017-12-06 13:53   ` Stefan Agner
  2017-12-06 14:11     ` Mark Brown
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Agner @ 2017-12-06 13:53 UTC (permalink / raw)
  To: broonie
  Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel,
	Nicolin Chen, lgirdwood

On 2017-08-07 09:08, Nicolin Chen wrote:
> On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote:
>> Protect macro argument with parentheses to avoid ambiguity.
>> This fixes a warning seen with clang:
>>   warning: logical not is only applied to the left hand side of this comparison
>>
>> Signed-off-by: Stefan Agner <stefan@agner.ch>
> 
> Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

Mark, you seem to have merged other patches for this driver, can you
merge this one too?

--
Stefan

> 
> Thanks
> 
>> ---
>>  sound/soc/fsl/fsl_asrc.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
>> index 0f163abe4ba3..ec33dab4b909 100644
>> --- a/sound/soc/fsl/fsl_asrc.h
>> +++ b/sound/soc/fsl/fsl_asrc.h
>> @@ -57,7 +57,7 @@
>>  #define REG_ASRDOC			0x74
>>  #define REG_ASRDI(i)			(REG_ASRDIA + (i << 3))
>>  #define REG_ASRDO(i)			(REG_ASRDOA + (i << 3))
>> -#define REG_ASRDx(x, i)			(x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
>> +#define REG_ASRDx(x, i)			((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
>>
>>  #define REG_ASRIDRHA			0x80
>>  #define REG_ASRIDRLA			0x84
>> --
>> 2.13.3
>>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-12-06 13:53   ` Stefan Agner
@ 2017-12-06 14:11     ` Mark Brown
  2017-12-06 14:25       ` Stefan Agner
  0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2017-12-06 14:11 UTC (permalink / raw)
  To: Stefan Agner
  Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel,
	Nicolin Chen, lgirdwood

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

On Wed, Dec 06, 2017 at 02:53:39PM +0100, Stefan Agner wrote:
> On 2017-08-07 09:08, Nicolin Chen wrote:
> > On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote:

> Mark, you seem to have merged other patches for this driver, can you
> merge this one too?

Please don't send content free pings and please allow a reasonable time
for review.  People get busy, go on holiday, attend conferences and so 
on so unless there is some reason for urgency (like critical bug fixes)
please allow at least a couple of weeks for review.  If there have been
review comments then people may be waiting for those to be addressed.

Sending content free pings adds to the mail volume (if they are seen at
all) which is often the problem and since they can't be reviewed
directly if something has gone wrong you'll have to resend the patches
anyway, though there are some other maintainers who like them - if in
doubt look at how patches for the subsystem are normally handled.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-12-06 14:11     ` Mark Brown
@ 2017-12-06 14:25       ` Stefan Agner
  2017-12-06 14:39           ` Mark Brown
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Agner @ 2017-12-06 14:25 UTC (permalink / raw)
  To: Mark Brown
  Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel,
	Nicolin Chen, lgirdwood

On 2017-12-06 15:11, Mark Brown wrote:
> On Wed, Dec 06, 2017 at 02:53:39PM +0100, Stefan Agner wrote:
>> On 2017-08-07 09:08, Nicolin Chen wrote:
>> > On Sun, Aug 06, 2017 at 11:36:57PM -0700, Stefan Agner wrote:
> 
>> Mark, you seem to have merged other patches for this driver, can you
>> merge this one too?
> 
> Please don't send content free pings and please allow a reasonable time
> for review.  People get busy, go on holiday, attend conferences and so 
> on so unless there is some reason for urgency (like critical bug fixes)
> please allow at least a couple of weeks for review.  If there have been
> review comments then people may be waiting for those to be addressed.

Well, it was not entirely content free since I added you/Liam to the
list of recipient which I missed in the initial patch. I probably should
have mentioned that.

I did not meant to bug people, just wanted to make sure the patch does
not falls through the cracks... After all, patch as well as the Ack
already more than 3 months old....

--
Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-12-06 14:25       ` Stefan Agner
@ 2017-12-06 14:39           ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-12-06 14:39 UTC (permalink / raw)
  To: Stefan Agner
  Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel,
	Nicolin Chen, lgirdwood

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

On Wed, Dec 06, 2017 at 03:25:37PM +0100, Stefan Agner wrote:
> On 2017-12-06 15:11, Mark Brown wrote:

> > Please don't send content free pings and please allow a reasonable time
> > for review.  People get busy, go on holiday, attend conferences and so 
> > on so unless there is some reason for urgency (like critical bug fixes)
> > please allow at least a couple of weeks for review.  If there have been
> > review comments then people may be waiting for those to be addressed.

> Well, it was not entirely content free since I added you/Liam to the
> list of recipient which I missed in the initial patch. I probably should
> have mentioned that.

Then it's definitely just a content free ping since I obviously don't
have the patch if you didn't send it to me and as the mail you're
replying to said you'll need to send me a copy.

> I did not meant to bug people, just wanted to make sure the patch does
> not falls through the cracks... After all, patch as well as the Ack
> already more than 3 months old....

You need to send patches to the relevant maintainers as covered in
SubmittingPatches, if you don't send us patches we won't have them and
can't apply them.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
@ 2017-12-06 14:39           ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-12-06 14:39 UTC (permalink / raw)
  To: Stefan Agner
  Cc: alsa-devel, Xiubo.Lee, lgirdwood, linux-kernel, timur,
	Nicolin Chen, fabio.estevam


[-- Attachment #1.1: Type: text/plain, Size: 1199 bytes --]

On Wed, Dec 06, 2017 at 03:25:37PM +0100, Stefan Agner wrote:
> On 2017-12-06 15:11, Mark Brown wrote:

> > Please don't send content free pings and please allow a reasonable time
> > for review.  People get busy, go on holiday, attend conferences and so 
> > on so unless there is some reason for urgency (like critical bug fixes)
> > please allow at least a couple of weeks for review.  If there have been
> > review comments then people may be waiting for those to be addressed.

> Well, it was not entirely content free since I added you/Liam to the
> list of recipient which I missed in the initial patch. I probably should
> have mentioned that.

Then it's definitely just a content free ping since I obviously don't
have the patch if you didn't send it to me and as the mail you're
replying to said you'll need to send me a copy.

> I did not meant to bug people, just wanted to make sure the patch does
> not falls through the cracks... After all, patch as well as the Ack
> already more than 3 months old....

You need to send patches to the relevant maintainers as covered in
SubmittingPatches, if you don't send us patches we won't have them and
can't apply them.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
  2017-12-06 14:39           ` Mark Brown
@ 2017-12-06 15:03             ` Stefan Agner
  -1 siblings, 0 replies; 11+ messages in thread
From: Stefan Agner @ 2017-12-06 15:03 UTC (permalink / raw)
  To: Mark Brown
  Cc: timur, Xiubo.Lee, fabio.estevam, alsa-devel, linux-kernel,
	Nicolin Chen, lgirdwood

On 2017-12-06 15:39, Mark Brown wrote:
> On Wed, Dec 06, 2017 at 03:25:37PM +0100, Stefan Agner wrote:
>> On 2017-12-06 15:11, Mark Brown wrote:
> 
[...]
>> I did not meant to bug people, just wanted to make sure the patch does
>> not falls through the cracks... After all, patch as well as the Ack
>> already more than 3 months old....
> 
> You need to send patches to the relevant maintainers as covered in
> SubmittingPatches, if you don't send us patches we won't have them and
> can't apply them.

Yeah this is where it gets a bit fuzzy around the affected file, there
are maintainers mentioned in the MAINTAINER file but I just realized
today that it was typically you which merged patches for the file.

Will resend the patch and add you as recipient.

--
Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] ASoC: fsl_asrc: protect macro argument
@ 2017-12-06 15:03             ` Stefan Agner
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Agner @ 2017-12-06 15:03 UTC (permalink / raw)
  To: Mark Brown
  Cc: alsa-devel, Xiubo.Lee, lgirdwood, linux-kernel, timur,
	Nicolin Chen, fabio.estevam

On 2017-12-06 15:39, Mark Brown wrote:
> On Wed, Dec 06, 2017 at 03:25:37PM +0100, Stefan Agner wrote:
>> On 2017-12-06 15:11, Mark Brown wrote:
> 
[...]
>> I did not meant to bug people, just wanted to make sure the patch does
>> not falls through the cracks... After all, patch as well as the Ack
>> already more than 3 months old....
> 
> You need to send patches to the relevant maintainers as covered in
> SubmittingPatches, if you don't send us patches we won't have them and
> can't apply them.

Yeah this is where it gets a bit fuzzy around the affected file, there
are maintainers mentioned in the MAINTAINER file but I just realized
today that it was typically you which merged patches for the file.

Will resend the patch and add you as recipient.

--
Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Applied "ASoC: fsl_asrc: protect macro argument" to the asoc tree
  2017-08-07  6:36 [PATCH] ASoC: fsl_asrc: protect macro argument Stefan Agner
@ 2017-12-06 15:29   ` Mark Brown
  2017-12-06 15:29   ` Mark Brown
  1 sibling, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-12-06 15:29 UTC (permalink / raw)
  To: Stefan Agner
  Cc: Nicolin Chen, Mark Brown, timur, nicoleotsuka, Xiubo.Lee,
	fabio.estevam, alsa-devel, linux-kernel, alsa-devel

The patch

   ASoC: fsl_asrc: protect macro argument

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From d1b726a9018e3f684ce190a1cbe012cb64f363d8 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Wed, 6 Dec 2017 16:17:27 +0100
Subject: [PATCH] ASoC: fsl_asrc: protect macro argument

Protect macro argument with parentheses to avoid ambiguity.
This fixes a warning seen with clang:
  warning: logical not is only applied to the left hand side of this comparison

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/fsl/fsl_asrc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
index 0f163abe4ba3..ec33dab4b909 100644
--- a/sound/soc/fsl/fsl_asrc.h
+++ b/sound/soc/fsl/fsl_asrc.h
@@ -57,7 +57,7 @@
 #define REG_ASRDOC			0x74
 #define REG_ASRDI(i)			(REG_ASRDIA + (i << 3))
 #define REG_ASRDO(i)			(REG_ASRDOA + (i << 3))
-#define REG_ASRDx(x, i)			(x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
+#define REG_ASRDx(x, i)			((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
 
 #define REG_ASRIDRHA			0x80
 #define REG_ASRIDRLA			0x84
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: fsl_asrc: protect macro argument" to the asoc tree
@ 2017-12-06 15:29   ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-12-06 15:29 UTC (permalink / raw)
  To: Stefan Agner; +Cc: Nicolin Chen, Mark Brown, timur

The patch

   ASoC: fsl_asrc: protect macro argument

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From d1b726a9018e3f684ce190a1cbe012cb64f363d8 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Wed, 6 Dec 2017 16:17:27 +0100
Subject: [PATCH] ASoC: fsl_asrc: protect macro argument

Protect macro argument with parentheses to avoid ambiguity.
This fixes a warning seen with clang:
  warning: logical not is only applied to the left hand side of this comparison

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/fsl/fsl_asrc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
index 0f163abe4ba3..ec33dab4b909 100644
--- a/sound/soc/fsl/fsl_asrc.h
+++ b/sound/soc/fsl/fsl_asrc.h
@@ -57,7 +57,7 @@
 #define REG_ASRDOC			0x74
 #define REG_ASRDI(i)			(REG_ASRDIA + (i << 3))
 #define REG_ASRDO(i)			(REG_ASRDOA + (i << 3))
-#define REG_ASRDx(x, i)			(x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
+#define REG_ASRDx(x, i)			((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))
 
 #define REG_ASRIDRHA			0x80
 #define REG_ASRIDRLA			0x84
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-06 15:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07  6:36 [PATCH] ASoC: fsl_asrc: protect macro argument Stefan Agner
2017-08-07  7:08 ` Nicolin Chen
2017-12-06 13:53   ` Stefan Agner
2017-12-06 14:11     ` Mark Brown
2017-12-06 14:25       ` Stefan Agner
2017-12-06 14:39         ` Mark Brown
2017-12-06 14:39           ` Mark Brown
2017-12-06 15:03           ` Stefan Agner
2017-12-06 15:03             ` Stefan Agner
2017-12-06 15:29 ` Applied "ASoC: fsl_asrc: protect macro argument" to the asoc tree Mark Brown
2017-12-06 15:29   ` Mark Brown

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.