From patchwork Wed Nov 17 16:04:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519230 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp1181219imj; Wed, 17 Nov 2021 08:17:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZgL7zkGqf+QE0ZKKi4qQUsmz+QDS3+kpguJhe3XmWwSUe6By7MuCBsFNCeQ0Lzj+2JFoo X-Received: by 2002:a05:622a:42:: with SMTP id y2mr18223170qtw.250.1637165872714; Wed, 17 Nov 2021 08:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637165872; cv=none; d=google.com; s=arc-20160816; b=wGMdbfZGT1Kb919pUjyQ+HJntAALTYLjTUdF0/P+R9ZPMki7qxWx/FAVgm9AJiGtFn TExl1HHoBVRxPXlpYAOkBCecw4WZJsNmO+D5WL3qYNAqAhrjnD+QDdVzJ3r5cBEDXqj7 zt7TCcdrymQupYb/OmAQyfjO3CZQdvl+Jg9bcP/wGZ+z+dKU86v7wz9IAVXnrCcMbwhJ y+X/wxpRbuWDroPIpEpqkzXipkKWN1Mk/ijJyRtYpEtNQ8DI7eyua8rSupTo7b0PJu33 TOQL/XvxtZjWy3e0+KyJkGWixUwXcSMUc+4JuRMdg2yThOkHHbgrfPw82Uaj6e4+Xjcq v0BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=wf8sidbCeve0P0JaE6VQCRWBZsCGCNB330akAsLUJZk=; b=aVimRwQYbSrWlcQ/V72AD9UFi/+NJDkBCLwX2dGz7EMtDOrJypJkAHE0n8IyVu3O8L tsahciVGUNhmXJoibz7K9UVY57DCCM+Z83lj3d9dVf1J96z3Jb4Nl8kbUi/+1FgFqWRJ P38jnttBKwZv9sbSYerfNjli0fUakCmKMt9OD2VGTlcspvxXNQ/Do6zP6q8XCt/2tiuh uPt1GtqRv4XFqu8hblpYlhJaVeNrv+EuoNcObZkN43Uf6FbXmpAjNKoungE4OQrfjlfz aiLLYD8otoXt+17INr/9U/bxtqXjeHGwPtwtOfhYqXpZzg6uMNJaGkqt/33KTDY61Mo8 y0Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="bqrY9/wq"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e21si122477qkl.268.2021.11.17.08.17.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Nov 2021 08:17:52 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="bqrY9/wq"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnNdA-0007AL-5O for patch@linaro.org; Wed, 17 Nov 2021 11:17:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnNQQ-0000fF-OD for qemu-devel@nongnu.org; Wed, 17 Nov 2021 11:04:42 -0500 Received: from [2a00:1450:4864:20::436] (port=43802 helo=mail-wr1-x436.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnNQP-00034z-CN for qemu-devel@nongnu.org; Wed, 17 Nov 2021 11:04:42 -0500 Received: by mail-wr1-x436.google.com with SMTP id t30so5632595wra.10 for ; Wed, 17 Nov 2021 08:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wf8sidbCeve0P0JaE6VQCRWBZsCGCNB330akAsLUJZk=; b=bqrY9/wqKCxhSG4/k8IDVXcQ/PHp7lbhZwJZce/l4povg+/QIgVbrFbess06LZgOPb tNJT0G6u5t3KtaYswNE7bYBnnI+ReK3WVkX2z5Ve2ofoFAwDpeqZdjITcTdl/wogDks4 XNJaYkIaXoCGslwa61x6PKBYVQYlbtYU0XLrb2RhBj6meV9Ru99zjlaw3mGPTzbb9wZm cJyqAkiy/zAuvfs7cDV4Y0WUumKkhERK7VmvXFbOnKDh4EQMJ1Ydv97lbGLSJau0Oixm iKcGd0R1XnjPmCkPabZ1j2SqNMUetfP3LiJFcjMG5+g06BKjyZ+xa0Kn5oMlF4bU0Fu0 eiQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wf8sidbCeve0P0JaE6VQCRWBZsCGCNB330akAsLUJZk=; b=LFd1Are6SopOAJH1iSAcdmq7jPT4MCwbfM2jkz3Kn3MlTM+HTjhO7a+EZ63ZLt7H28 CJQFyu9Zo0cfzIs+tpCCdOC/pvZC0rwG8vitVAMquZIMIsLetItVcuRzsm3AtMA5RXAf pMS1hiuXuToPUOyg40+H0BVHfhDAkb5Yjf31fXrgC4seVZvxA0898IcNO608T9fmdZQX Ql6ZgLaGs+Y1MM+iRl1adkCupOMd9pOROGI0q1siQ8pdD1XsyNUBtIjpL14YD/CzNfKP WSTxgoTZKGx+g7SkQi0q7PuMqI5ChSmfPOA2rSvoYr+VtgOqS6Z6aZIi9yms3eNacnMz hrDw== X-Gm-Message-State: AOAM5314VFJBeBGgwTlWrrlCFzlw6MW6A13bbf6tZg//3T3hXWWj6FqV f2KL6GNmrfpvxLYEg0xSBbXLXk8dAwXvwR65FwQ= X-Received: by 2002:adf:dd0d:: with SMTP id a13mr20419484wrm.259.1637165080149; Wed, 17 Nov 2021 08:04:40 -0800 (PST) Received: from localhost.localdomain (101.red-176-80-44.dynamicip.rima-tde.net. [176.80.44.101]) by smtp.gmail.com with ESMTPSA id m2sm5826742wml.15.2021.11.17.08.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 08:04:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 15/17] linux-user: Move thunk.c from top-level Date: Wed, 17 Nov 2021 17:04:10 +0100 Message-Id: <20211117160412.71563-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211117160412.71563-1-richard.henderson@linaro.org> References: <20211117160412.71563-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::436 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, imp@bsdimp.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" So far, linux-user is the only user of these functions. Clean up the build machinery by restricting it to linux-user. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh --- meson.build | 1 - thunk.c => linux-user/thunk.c | 0 linux-user/meson.build | 1 + 3 files changed, 1 insertion(+), 1 deletion(-) rename thunk.c => linux-user/thunk.c (100%) diff --git a/meson.build b/meson.build index 387f7fe1c9..9f59c57909 100644 --- a/meson.build +++ b/meson.build @@ -2614,7 +2614,6 @@ subdir('linux-user') specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss) -linux_user_ss.add(files('thunk.c')) specific_ss.add_all(when: 'CONFIG_LINUX_USER', if_true: linux_user_ss) common_user_ss = common_user_ss.apply(config_all, strict: false) diff --git a/thunk.c b/linux-user/thunk.c similarity index 100% rename from thunk.c rename to linux-user/thunk.c diff --git a/linux-user/meson.build b/linux-user/meson.build index bf9d945504..fcf7d40f23 100644 --- a/linux-user/meson.build +++ b/linux-user/meson.build @@ -15,6 +15,7 @@ linux_user_ss.add(files( 'signal.c', 'strace.c', 'syscall.c', + 'thunk.c', 'uaccess.c', 'uname.c', ))