From patchwork Tue Aug 6 23:09:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez via B4 Relay X-Patchwork-Id: 13755470 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BD0CC52D6F for ; Tue, 6 Aug 2024 23:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YCdVLjQpWb6qhGGmeCE9Bk6p5KlCSEtwjnRuk65bw4g=; b=olvHaM5NhQzoGZYhqv4Fdos1ha No0WB9EAoEZUNQ1cVboILDi9LttbrQurgQwO/pTAo5xH7RNINAlSZYwfA5j5JCMJDop9MbYpRL66J m6pTe+6PRRh01OO1v3qevBkyQaYb0luuki015DHX47HpQzA08GeHx/Q84ZkI76fdtn4M0Fdh3qv4A FrTfD4nZG/+8AxF2XhMKtD6xd+1qPReVwBkQLzWnZSFmvqmF/O/j70uIRMRztSPxN6Awv/x1WzGFO 0MizoqrbyZ0ZQpl7cb/QozMxAeJs1YfPXkGCUInDMhD28Q29lG0n/1kka5lopxsqUb8lHvV9bqPtL PSBaxlIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbTNN-00000003H0H-3YGf; Tue, 06 Aug 2024 23:13:57 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbTJe-00000003Ffx-3brU for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 23:10:09 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 871F6CE0FB1; Tue, 6 Aug 2024 23:10:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 21795C4AF52; Tue, 6 Aug 2024 23:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722985803; bh=+He+gtxBEfl84UV5f19qlMQcV5CCfyJDOMqxiVvtbII=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aLbLyJxtYoDu5TGf0hBkTczCnA5tXznd/CqtRPoDueECJQqPixBgxrK1R6VJU4ALQ wHZifyZwJpUqkcXzqh6ZTUeJXh9uE8lwd+OxU3dU99uZ56ZTSP+q0vSy4QSJktfZ2x /tZyFRY2dnCmPxOfo9NVMRqfVfcLqsZZVeXzBKgqj3BArSKVY8my2wx9g9QVJssTD6 gNmwARWq1WXchHb2JkQ5HlE7cifTbfItuWLYcMPM7rUweSS21IVX5l3qCGZP/bNc0S UUfSWuCWYu8/aAQmFYejLcdLA2FzilLeIF0l4Ry824CqiUIGQZq5bXm3UEaPJIRGnc RI9UhDJq7BmUw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13D5DC52D7D; Tue, 6 Aug 2024 23:10:03 +0000 (UTC) From: Daniel Gomez via B4 Relay Date: Wed, 07 Aug 2024 01:09:19 +0200 Subject: [PATCH 05/12] accessiblity/speakup: genmap and makemapdata require linux/version.h MIME-Version: 1.0 Message-Id: <20240807-macos-build-support-v1-5-4cd1ded85694@samsung.com> References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> In-Reply-To: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Lucas De Marchi , =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Paul Moore , Stephen Smalley , Ondrej Mosnacek , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Greg Kroah-Hartman , Jiri Slaby , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, speakup@linux-speakup.org, selinux@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-serial@vger.kernel.org, llvm@lists.linux.dev, Finn Behrens , "Daniel Gomez (Samsung)" , gost.dev@samsung.com, Daniel Gomez X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722985800; l=1496; i=da.gomez@samsung.com; s=20240621; h=from:subject:message-id; bh=D/b2l/ogAQ53pGShlNQZ21O8ea5Cj2WGeFYeW0o1yvE=; b=R4qyiYP+OSMcXzv9ooR7/t6MnLqProoNVp1nlUQ8nIYUNbvpy7GzUbYP6W8c5xRb6Xs1z5qrf NNsKqstejrNCJU8W3NSEixOEN8GSNjVGvk+o0yOAwyi6oB306luifET X-Developer-Key: i=da.gomez@samsung.com; a=ed25519; pk=BqYk31UHkmv0WZShES6pIZcdmPPGay5LbzifAdZ2Ia4= X-Endpoint-Received: by B4 Relay for da.gomez@samsung.com/20240621 with auth_id=175 X-Original-From: Daniel Gomez X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_161007_450418_64F09C2F X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: da.gomez@samsung.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Daniel Gomez Both genmap and makemapdata require the linux/version.h header. To ensure successful builds on macOS hosts, make sure usr/include is included in the HOSTCFLAGS. Fixes errors: drivers/accessibility/speakup/genmap.c:13:10: fatal error: 'linux/version.h' file not found 13 | #include | ^~~~~~~~~~~~~~~~~ 1 error generated. drivers/accessibility/speakup/makemapdata.c:13:10: fatal error: 'linux/version.h' file not found 13 | #include | ^~~~~~~~~~~~~~~~~ 1 error generated. Signed-off-by: Daniel Gomez --- drivers/accessibility/speakup/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/accessibility/speakup/Makefile b/drivers/accessibility/speakup/Makefile index 6f6a83565c0d..74ee0c31370f 100644 --- a/drivers/accessibility/speakup/Makefile +++ b/drivers/accessibility/speakup/Makefile @@ -38,6 +38,7 @@ clean-files := mapdata.h speakupmap.h # Generate mapdata.h from headers hostprogs += makemapdata makemapdata-objs := makemapdata.o +HOSTCFLAGS_makemapdata.o += -I$(srctree)/usr/include quiet_cmd_mkmap = MKMAP $@ cmd_mkmap = TOPDIR=$(srctree) \ @@ -51,6 +52,7 @@ $(obj)/mapdata.h: $(obj)/makemapdata # Generate speakupmap.h from mapdata.h hostprogs += genmap genmap-objs := genmap.o +HOSTCFLAGS_genmap.o += -I$(srctree)/usr/include $(obj)/genmap.o: $(obj)/mapdata.h quiet_cmd_genmap = GENMAP $@