* [PATCH] speakup: remove usage of non-standard u_char
@ 2022-10-11 0:17 Yureka
2022-10-11 0:24 ` Samuel Thibault
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yureka @ 2022-10-11 0:17 UTC (permalink / raw)
To: samuel.thibault; +Cc: w.d.hubbs, chris, chris, gregkh, speakup, linux-kernel
From: Yureka Lilian <yuka@yuka.dev>
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>
---
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 4bf2ee8ac..4ce9a12f7 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.37.3
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] speakup: remove usage of non-standard u_char
2022-10-11 0:17 [PATCH] speakup: remove usage of non-standard u_char Yureka
@ 2022-10-11 0:24 ` Samuel Thibault
[not found] ` <Y0UKhAzH+RSGyhKi@kroah.com>
2022-11-09 14:20 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Samuel Thibault @ 2022-10-11 0:24 UTC (permalink / raw)
To: Yureka; +Cc: w.d.hubbs, chris, gregkh, speakup, linux-kernel
Yureka, le mar. 11 oct. 2022 02:17:43 +0200, a ecrit:
> From: Yureka Lilian <yuka@yuka.dev>
>
> 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>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> 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 4bf2ee8ac..4ce9a12f7 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.37.3
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <Y0UKhAzH+RSGyhKi@kroah.com>]
* Re: [PATCH] speakup: remove usage of non-standard u_char
[not found] ` <Y0UKhAzH+RSGyhKi@kroah.com>
@ 2022-10-15 12:34 ` Yureka
0 siblings, 0 replies; 4+ messages in thread
From: Yureka @ 2022-10-15 12:34 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel
On 10/11/22 08:17, Greg KH wrote:
> On Tue, Oct 11, 2022 at 02:17:43AM +0200, Yureka wrote:
>> From: Yureka Lilian <yuka@yuka.dev>
>>
>> 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>
>> ---
>> 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 4bf2ee8ac..4ce9a12f7 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.37.3
>
> Hi,
>
> This is the friendly semi-automated patch-bot of Greg Kroah-Hartman.
> You have sent him a patch that has triggered this response.
>
> Right now, the development tree you have sent a patch for is "closed"
> due to the timing of the merge window. Don't worry, the patch(es) you
> have sent are not lost, and will be looked at after the merge window is
> over (after the -rc1 kernel is released by Linus).
>
> So thank you for your patience and your patches will be reviewed at this
> later time, you do not have to do anything further, this is just a short
> note to let you know the patch status and so you don't worry they didn't
> make it through.
>
> thanks,
>
> greg k-h's patch email bot
I noticed in hindsight this patch might be suitable for the 6.0.x stable line as well, since it is a build fix with otherwise seemingly little impact.
Let me know if I should do anything to get it in the queue for stable/fix reviews.
Thanks,
Yureka
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] speakup: remove usage of non-standard u_char
2022-10-11 0:17 [PATCH] speakup: remove usage of non-standard u_char Yureka
2022-10-11 0:24 ` Samuel Thibault
[not found] ` <Y0UKhAzH+RSGyhKi@kroah.com>
@ 2022-11-09 14:20 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2022-11-09 14:20 UTC (permalink / raw)
To: Yureka; +Cc: samuel.thibault, w.d.hubbs, chris, speakup, linux-kernel
On Tue, Oct 11, 2022 at 02:17:43AM +0200, Yureka wrote:
> From: Yureka Lilian <yuka@yuka.dev>
>
> 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>
> ---
> 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 4bf2ee8ac..4ce9a12f7 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.37.3
This patch is corrupted and can not be applied. Please fix up and add
the proper cc: stable tag when you resend it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-09 14:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 0:17 [PATCH] speakup: remove usage of non-standard u_char Yureka
2022-10-11 0:24 ` Samuel Thibault
[not found] ` <Y0UKhAzH+RSGyhKi@kroah.com>
2022-10-15 12:34 ` Yureka
2022-11-09 14:20 ` Greg KH
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®