All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition
@ 2022-07-05 10:19 Li zeming
  2022-07-05 11:16 ` Samuel Thibault
  0 siblings, 1 reply; 3+ messages in thread
From: Li zeming @ 2022-07-05 10:19 UTC (permalink / raw)
  To: w.d.hubbs, chris, kirk, samuel.thibault; +Cc: speakup, linux-kernel, Li zeming

I think the header file could avoid redefinition errors.
 at compile time by adding macro definitions.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 drivers/accessibility/speakup/speakup_acnt.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/accessibility/speakup/speakup_acnt.h b/drivers/accessibility/speakup/speakup_acnt.h
index cffa938ae580..cea05d770f6d 100644
--- a/drivers/accessibility/speakup/speakup_acnt.h
+++ b/drivers/accessibility/speakup/speakup_acnt.h
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* speakup_acntpc.h - header file for speakups Accent-PC driver. */
+#ifndef _SPEAKUP_ACNT_H
+#define _SPEAKUP_ACNT_H
 
 #define SYNTH_IO_EXTENT	0x02
 
@@ -17,3 +19,4 @@
 #define SYNTH_FULL	'F' /* synth is full. */
 #define SYNTH_ALMOST_EMPTY 'M' /* synth has less than 2 seconds of text left */
 #define SYNTH_SPEAKING	's' /* synth is speaking and has a fare way to go */
+#endif
-- 
2.18.2


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

* Re: [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition
  2022-07-05 10:19 [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition Li zeming
@ 2022-07-05 11:16 ` Samuel Thibault
  2022-07-06  0:48   ` Li zeming
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2022-07-05 11:16 UTC (permalink / raw)
  To: Li zeming; +Cc: w.d.hubbs, chris, kirk, speakup, linux-kernel

Hello,

Li zeming, le mar. 05 juil. 2022 18:19:55 +0800, a ecrit:
> I think the header file could avoid redefinition errors.
>  at compile time by adding macro definitions.

Redefining a macro to the same value is not a problem, but better have it
indeed.

> Signed-off-by: Li zeming <zeming@nfschina.com>

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

Could you also patch speakup_dtlk.h the same way? Thanks.

Samuel

> ---
>  drivers/accessibility/speakup/speakup_acnt.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/accessibility/speakup/speakup_acnt.h b/drivers/accessibility/speakup/speakup_acnt.h
> index cffa938ae580..cea05d770f6d 100644
> --- a/drivers/accessibility/speakup/speakup_acnt.h
> +++ b/drivers/accessibility/speakup/speakup_acnt.h
> @@ -1,5 +1,7 @@
>  /* SPDX-License-Identifier: GPL-2.0 */
>  /* speakup_acntpc.h - header file for speakups Accent-PC driver. */
> +#ifndef _SPEAKUP_ACNT_H
> +#define _SPEAKUP_ACNT_H
>  
>  #define SYNTH_IO_EXTENT	0x02
>  
> @@ -17,3 +19,4 @@
>  #define SYNTH_FULL	'F' /* synth is full. */
>  #define SYNTH_ALMOST_EMPTY 'M' /* synth has less than 2 seconds of text left */
>  #define SYNTH_SPEAKING	's' /* synth is speaking and has a fare way to go */
> +#endif
> -- 
> 2.18.2
> 

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

* Re: [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition
  2022-07-05 11:16 ` Samuel Thibault
@ 2022-07-06  0:48   ` Li zeming
  0 siblings, 0 replies; 3+ messages in thread
From: Li zeming @ 2022-07-06  0:48 UTC (permalink / raw)
  To: samuel.thibault; +Cc: chris, kirk, linux-kernel, speakup, w.d.hubbs, zeming


Thank you very much for your approval. 
I continue to add macros to speakup_dtlk.h and any header files I could add.


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

end of thread, other threads:[~2022-07-06  0:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 10:19 [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition Li zeming
2022-07-05 11:16 ` Samuel Thibault
2022-07-06  0:48   ` Li zeming

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.