From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Li zeming <zeming@nfschina.com>
Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca,
speakup@linux-speakup.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] accessibility/speakup/speakup_acnt: Add header file macro definition
Date: Tue, 5 Jul 2022 13:16:21 +0200 [thread overview]
Message-ID: <20220705111621.smcxnfx45ai7vixy@begin> (raw)
In-Reply-To: <20220705101955.27337-1-zeming@nfschina.com>
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
>
next prev parent reply other threads:[~2022-07-05 11:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 10:19 Li zeming
2022-07-05 11:16 ` Samuel Thibault [this message]
2022-07-06 0:48 ` Li zeming
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=20220705111621.smcxnfx45ai7vixy@begin \
--to=samuel.thibault@ens-lyon.org \
--cc=chris@the-brannons.com \
--cc=kirk@reisers.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=speakup@linux-speakup.org \
--cc=w.d.hubbs@gmail.com \
--cc=zeming@nfschina.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®