Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3447385rwb; Tue, 16 Aug 2022 03:16:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR7CTgzFh1Y90lPREcmgXffvO2CBkjQ1xjp0tWzG5fObwDZmZwZXMhMYQdSHgClYueVH19zW X-Received: by 2002:a17:906:9b16:b0:730:d5f4:d46e with SMTP id eo22-20020a1709069b1600b00730d5f4d46emr12893734ejc.701.1660645017643; Tue, 16 Aug 2022 03:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660645017; cv=none; d=google.com; s=arc-20160816; b=uKxHVCOpIn3SQk+o3mBP0xRWiKm3O+RHnLf7M1iC+O8WmofeqQ09cFSBlnURewsxEI VRhs/86T1ynNBnKWINm7GWn2w9uaTIEoZRyZ3BnG4g3bGtDRR8fepC10BD9G9LpgVMZm f1JPDUG5HMuE8iOs5xoNgZZ8dE+CXiOdXf+KRHhhKiRKt5UfpsFsOwD+r0G4q/EgRQbA SymVdDOZb4VWAMmzZpcb5xYMOhMlB8fbjIG+51E3kzis1f9kM2RLroxmPSHNlfcg2vKX OW3N43UPrwoC/cRdsCmN8+d/Jh6vAjEN5dhbC1mEwY03zzHfz0QXpUhit1XwKXm6i27J Qpew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=85Mx8fcEGnhrLXqNEnoiDTnp+C2zaVmR43QxwqziZAk=; b=Z5H42HqMWvlxRMYyvVG/AV7zC6oH5e4Rt+UEIJ9zT8aG+VEbG7mF/6MwqPFI+3Io8Q 5foHsUH5HrCbVGfeog/FlCSP7qNcjzpCbe+s9smN/ouGwMjDWWcJ0eP5h3dPYPdFYF05 sRZTSviKprkeFHafo8OtBI0bB3vI+t/tDKqM6HGC9wqfg321KQSLBOrjiKZLrW9ZUIMA ZQ3U74bO2/NWcSQrpanM186PEOk99nhHmHMrRdOR4zVbmBIBpTaCd7N3YCDvuw+ShnI4 bC/ikeY67W0hljMxxpPL79udk3hlZ7tFzlXuLCMIay3E2h7IjtK9FveGemGbsvqnKmBP nzDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=hyKSTkBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a056402359400b0043bb89f1c11si10272911edc.553.2022.08.16.03.16.32; Tue, 16 Aug 2022 03:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=hyKSTkBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231819AbiHPJOi (ORCPT + 99 others); Tue, 16 Aug 2022 05:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231655AbiHPJNu (ORCPT ); Tue, 16 Aug 2022 05:13:50 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87BF4E096F for ; Tue, 16 Aug 2022 00:29:27 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 7D589413B5; Tue, 16 Aug 2022 12:29:22 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1660634963; bh=KO2yBCCsjyqMCOIjGZUnVjiLjyzF2mSA6vth3iKlpFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hyKSTkBpeELAqETpHujZtkVzXW8QG+Ln6oD4o87dZSJNTi0U/fL/lyiJ02aWGKclm RBe7FaIlZJxDXzIHCr3pmHd/fSqy+ZUJhRg9glXvq5gqWNmycMT6aVu1UzrN6qfCPA MDJw56YBxACMrQHM5d2SSd6bwBjhGSFcOW1k7OqeviDLrSlFIp8EXMcObBMfw4ORcO mi5UmsntLQNA/t6er3NYGU8dhVi4SwLYhR3CRvfeRt1Sm9qIKEnkPLuRiwFgmw49W7 DyhVdtpUv6jg+h6cZUqgAIySs1Lm5Kw1Z6fitn0kz4ZFaKR9j3AJwnD9gVNp8BdFGe sQkSlewmF/cjA== From: Nikita Travkin To: samuel.thibault@ens-lyon.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, speakup@linux-speakup.org, Nikita Travkin Subject: Re: [PATCHv4] speakup: Generate speakupmap.h automatically Date: Tue, 16 Aug 2022 12:28:43 +0500 Message-Id: <20220816072843.1699317-1-nikita@trvn.ru> In-Reply-To: <20220612172244.il3siyq7ueqnvah5@begin> References: <20220612172244.il3siyq7ueqnvah5@begin> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I was building 6.0-rc1 and this patch seem to cause some compiling issues. The u_char was not defined in my host build environment (I suspect because of the musl based host) which leads to the makemapdata failing to compile. Changing the file to use "unsigned char" seems to solve the issue. After that I also had some weird issues of the build system trying to write speakupmap.h into the source dir and not the output dir (the source is read only due to the tooling I use) but this seems to have been resolved by cleanly rebuilding the speakup dir. A patch changing the type follows. Nikita -- >8 -- From bc239d8740f9e31240e8727f76227daa1aec3c4f Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Tue, 16 Aug 2022 11:39:52 +0500 Subject: [PATCH] speakup: Fix compilation in some build environments A compilation error may occur if the host CC doesn't have u_char defined: HOSTCC drivers/accessibility/speakup/makemapdata.o In file included from ../drivers/accessibility/speakup/makemapdata.c:15: ../drivers/accessibility/speakup/utils.h: In function 'hash_name': ../drivers/accessibility/speakup/utils.h:57:9: error: unknown type name 'u_char'; did you mean 'char'? 57 | u_char *pn = (u_char *)name; | ^~~~~~ | char Fix this by using "unsigned char" instead. Fixes: 6a5c94d92699 ("speakup: Generate speakupmap.h automatically") Signed-off-by: Nikita Travkin --- 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.35.3