From patchwork Mon Dec 20 20:24:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 526063 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp4427885imb; Mon, 20 Dec 2021 12:35:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFtSS9VDTVU05IVAewDu+rYLRugF7HRtjYAWCNTndqezGVXMoCS5wn8BTEtrj+exFzTl/c X-Received: by 2002:a05:6e02:110f:: with SMTP id u15mr9012968ilk.140.1640032538495; Mon, 20 Dec 2021 12:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640032538; cv=none; d=google.com; s=arc-20160816; b=Pg6kOJwaOmtLo80UInmwWCJiCERvcR1Fl7R5x5ltUwXvIalZmhPpC+kAdSnfTF+e/m 4fay4HTWYiRj/lTE2WanMZfxtr9wcMh5QaW/+Nsnv38cfV+kPAH6NWxZbAD6+MGulUNK CwDsxyxYK+AVPO92vtZaWST8+M1vF22AgEIJATwwyK2QwePwKV5TRorOx5D66HIGGvVW EovXLQzSVRfc7KqIuv0Le3OuGUDkff9Mh6zO42eLkorekWxP/4XzdkLpb025mEsIPkd+ kEXK+eElehp2+gKkYSesYTr4WlrWEYv2h71k3pTxHb8MMt3d35UsTChsMK0HFQPn15FT dbwg== 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=s/pA8V+yNrBMZnuZyz1KWKoRUi8x+EMLOwcwdtIndmA=; b=0qlYHOiM5zyFpV3FPRdJG5f6k9FrEwZdQSD+hXDdoq0feWYHRALlORKfHNZ6ZOasl0 ZJlD+Agx0izuSPihuFGf/QCs3neSl4GHdzgZsfD+3RP0S1QqQUuU2qhTmehxS0H64VnG reSoGlIG1A4ry16AEk4eDdiamR8j+MAI2LUk41xzsJViccAqdIf9muDC/g1zTEZ+Zrq4 gxa0X5eT1qQ4G5byV9n3LbWegXq+dwuSLM2ZpxMuL4i+mP+4URu59KhLq1TQ9LOMnBJG Q65t+UEw39yYxQiEjAEwsn9L7LEFbDc5MnyYTtkr17XAKhzqYsqXdvZhL8tvAaM3Czvk 7oPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rzNwS6j4; 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 y18si6265633jat.66.2021.12.20.12.35.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Dec 2021 12:35:38 -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=rzNwS6j4; 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]:33054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzPNh-0002C2-VT for patch@linaro.org; Mon, 20 Dec 2021 15:35:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzPDj-0001jT-C7 for qemu-devel@nongnu.org; Mon, 20 Dec 2021 15:25:20 -0500 Received: from [2607:f8b0:4864:20::102b] (port=53228 helo=mail-pj1-x102b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzPDe-00070x-S2 for qemu-devel@nongnu.org; Mon, 20 Dec 2021 15:25:19 -0500 Received: by mail-pj1-x102b.google.com with SMTP id co15so10443330pjb.2 for ; Mon, 20 Dec 2021 12:25:14 -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=s/pA8V+yNrBMZnuZyz1KWKoRUi8x+EMLOwcwdtIndmA=; b=rzNwS6j4lpysmyIaAFcsaQzVY4vbOsbolvBTijrKAOXllyMIsL6x4UhQtN4+lEzjOu mMecqXu1Ncv7dvHmiMchJVRgK0GJT7xhOjIlcVcA/AQ+H04K++YyakvQkYhNGu3fyYIn b3dDJsD0V/pzIfWEPSPeMtQFPAhxJEiWg4Kf6WunQv4w+bl4UsZww1jQIDuw8PuDJ40z UgtuNI67ooYxi9YPclfQWPgg/1aCp+Ru9OQchwB478uSPpRqD6k2FrjLGaX3XHU3os5I pPBhfhwXa4OYTF3WiDj0k/3jM7/NLggzzLbICwSa3I+soxVEQsHKppG9ujwJNPa7FU8w DOOA== 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=s/pA8V+yNrBMZnuZyz1KWKoRUi8x+EMLOwcwdtIndmA=; b=ZHu1nM98n/Xb1Y/KW2dVpzICnRIQ49kEAClIbFSh+J4FnU7myaFUsm/TZfAGRVnETg ICAvx80KJ7py5JS4PhH+ic8YtPQGUCT+wq6Img4SzvQJ9elNmoaWrZiYpWvpQPlzKibx jtLLL4KPHTH9A4arQ3XLDjhzscRg9Eo+IcRF4798z7lD8Xu4KUZiECSd/qCpl8T7i5Vi UFmxotTRZHqQJUl7RLUlxNsHwt7fITTikNchSyNhVYdCeHJBFXL71tK2aBJwPxKVSLhR NZKPKz+TAESSYqX8fot9rDJwieUm3tfmCTG2RtEAqf6aGqvIRbbGbeMtDizs3y2IPlmv +MVw== X-Gm-Message-State: AOAM532+pTwrQHRIdant8uoRqWwtZC+Ebe02uWjpE36aD0YQw/lkoiKf Hy2N0wvPeK7Dr6PqIhdLHsC3RUvHMwFExQ== X-Received: by 2002:a17:90b:1b43:: with SMTP id nv3mr785498pjb.93.1640031913471; Mon, 20 Dec 2021 12:25:13 -0800 (PST) Received: from localhost.localdomain ([156.19.246.20]) by smtp.gmail.com with ESMTPSA id q19sm233118pjd.21.2021.12.20.12.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 12:25:13 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 13/15] linux-user: Move thunk.c from top-level Date: Mon, 20 Dec 2021 12:24:58 -0800 Message-Id: <20211220202500.111897-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211220202500.111897-1-richard.henderson@linaro.org> References: <20211220202500.111897-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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, 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: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Warner Losh 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. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- meson.build | 1 - thunk.c => linux-user/thunk.c | 0 MAINTAINERS | 1 - linux-user/meson.build | 1 + 4 files changed, 1 insertion(+), 2 deletions(-) rename thunk.c => linux-user/thunk.c (100%) diff --git a/meson.build b/meson.build index 4e0a8033f7..eebeaab9ce 100644 --- a/meson.build +++ b/meson.build @@ -2633,7 +2633,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/MAINTAINERS b/MAINTAINERS index be8fc57538..1de6ce6e44 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3077,7 +3077,6 @@ Usermode Emulation Overall usermode emulation M: Riku Voipio S: Maintained -F: thunk.c F: accel/tcg/user-exec*.c F: include/user/ F: common-user/ diff --git a/linux-user/meson.build b/linux-user/meson.build index eef1dd68bd..ca8b86f209 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', ))