* [PATCH v2] speakup: remove usage of non-standard u_char
@ 2022-11-17 0:12 Yureka Lilian
2022-11-17 8:20 ` Samuel Thibault
0 siblings, 1 reply; 2+ messages in thread
From: Yureka Lilian @ 2022-11-17 0:12 UTC (permalink / raw)
To: samuel.thibault
Cc: gregkh, chris, linux-kernel, speakup, w.d.hubbs, Yureka Lilian
This code is included in the build tools makemapdata and genmap, and it
expects that libc exposes a definition of u_char. But u_char is not
defined in either C or POSIX standards, and some systems don't have it.
Namely this breaks the build on hosts using musl libc, because musl only
exposes u_char if _GNU_SOURCE is defined.
Signed-off-by: Yureka Lilian <yuka@yuka.dev>
Cc: stable@vger.kernel.org
---
Content is unchanged compared to v1, but hopefully the patch is not
corrupted this time and I added a cc: stable
---
drivers/accessibility/speakup/utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/accessibility/speakup/utils.h b/drivers/accessibility/speakup/utils.h
index 4bf2ee8ac246..4ce9a12f7664 100644
--- a/drivers/accessibility/speakup/utils.h
+++ b/drivers/accessibility/speakup/utils.h
@@ -54,7 +54,7 @@ static inline int oops(const char *msg, const char *info)
static inline struct st_key *hash_name(char *name)
{
- u_char *pn = (u_char *)name;
+ unsigned char *pn = (unsigned char *)name;
int hash = 0;
while (*pn) {
--
2.38.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] speakup: remove usage of non-standard u_char
2022-11-17 0:12 [PATCH v2] speakup: remove usage of non-standard u_char Yureka Lilian
@ 2022-11-17 8:20 ` Samuel Thibault
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ 2022-11-17 8:20 UTC (permalink / raw)
To: Yureka Lilian; +Cc: gregkh, chris, linux-kernel, speakup, w.d.hubbs
Yureka Lilian, le jeu. 17 nov. 2022 01:12:44 +0100, a ecrit:
> This code is included in the build tools makemapdata and genmap, and it
> expects that libc exposes a definition of u_char. But u_char is not
> defined in either C or POSIX standards, and some systems don't have it.
> Namely this breaks the build on hosts using musl libc, because musl only
> exposes u_char if _GNU_SOURCE is defined.
>
> Signed-off-by: Yureka Lilian <yuka@yuka.dev>
> Cc: stable@vger.kernel.org
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
thanks!
> ---
> Content is unchanged compared to v1, but hopefully the patch is not
> corrupted this time and I added a cc: stable
> ---
> drivers/accessibility/speakup/utils.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/accessibility/speakup/utils.h b/drivers/accessibility/speakup/utils.h
> index 4bf2ee8ac246..4ce9a12f7664 100644
> --- a/drivers/accessibility/speakup/utils.h
> +++ b/drivers/accessibility/speakup/utils.h
> @@ -54,7 +54,7 @@ static inline int oops(const char *msg, const char *info)
>
> static inline struct st_key *hash_name(char *name)
> {
> - u_char *pn = (u_char *)name;
> + unsigned char *pn = (unsigned char *)name;
> int hash = 0;
>
> while (*pn) {
> --
> 2.38.1
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-17 8:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 0:12 [PATCH v2] speakup: remove usage of non-standard u_char Yureka Lilian
2022-11-17 8:20 ` Samuel Thibault
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®