From nobody Wed Nov 5 10:03:19 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533921170406128.76401569557834; Fri, 10 Aug 2018 10:12:50 -0700 (PDT) Received: from localhost ([::1]:57339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foAxz-0007tu-7Y for importer@patchew.org; Fri, 10 Aug 2018 13:12:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foAwO-00074n-QV for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foAwN-0007jd-LK for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:08 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foAwN-0007io-Ea for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:07 -0400 Received: by mail-wm0-x244.google.com with SMTP id o18-v6so2651756wmc.0 for ; Fri, 10 Aug 2018 10:11:07 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 9-v6sm20479397wrb.48.2018.08.10.10.11.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 10:11:03 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3444B3E062B; Fri, 10 Aug 2018 18:11:02 +0100 (BST) 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=gPBdu0wEcFDRIRZUQIUU4OmBFrIksOlD2TFE3XFjfkw=; b=HNLKluqWyQvxVIIFXQI56Jn52lbVYTUlDtDdwbg6JtmoktzowUcwE342Z/SvKMpT7n H+ehCRmcilZW9Z36qdHhXrbjuBDHqECGEtw5Nfy48o1t1Vah41fO8BDa2yTfL5ddEbej ko+YhEuGJZPnfbp98uHYebP8ciVg4ChbPnNQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gPBdu0wEcFDRIRZUQIUU4OmBFrIksOlD2TFE3XFjfkw=; b=WOdg3P0r+qqyZUocha2UpC5AUiwABwbtsItUoEnS0lx5WIAqhBORV3TspaCIxC8qoP tLyb6mRhGZaOdYZKx1JNV7Q1jGw7nOu4iwBJNbu0gebn4V1USKPymldOcg88NSWZ6TPs TG/sUkL1FOGG6bjD2Xcy4BACEdImWnyo0X8ZSVv1E1ktR4Nn0Oo5hGzIr/5py4sS8Vjd V0GbnNwlWBPbYOSH86N0FV8kmKhzLGtZ3n+Cix0L6SHah7aOdrEEqM2doVZPRnyd+nBt XSgppA3dU2XCU5wI6eSGDNxnF0aHROPLSIGn8TXzoeyP+PJOj+RYGKpRVjOvt9y3cB8D qGKg== X-Gm-Message-State: AOUpUlGtLc0CYsZ2wWxuPWJqP+11U5Az3xyTo2jCL2EmyaFzgaIdyWAn 6a2rFvJxNTiQA0Ygs15DfD3gMA== X-Google-Smtp-Source: AA+uWPxMlwLqhFvkDJm2viislyY0lVfbkfGb4zqXEQA7iKfnREQpEvq4/J3sYIORS+7OJMlOtuuydg== X-Received: by 2002:a1c:a6cc:: with SMTP id p195-v6mr2201925wme.76.1533921066132; Fri, 10 Aug 2018 10:11:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 10 Aug 2018 18:11:00 +0100 Message-Id: <20180810171102.16451-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180810171102.16451-1-alex.bennee@linaro.org> References: <20180810171102.16451-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [RFC PATCH 2/3] qemu-seccomp: manually expand SCMP_A1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 The expansion of ((struct scmp_arg_cmp){1, SCMP_CMP_NE, 5}) doesn't work with -std=3Dgnu99. Signed-off-by: Alex Benn=C3=A9e Acked-by: Eduardo Otubo --- qemu-seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index 9cd8eb9499..4dc1c22924 100644 --- a/qemu-seccomp.c +++ b/qemu-seccomp.c @@ -39,7 +39,7 @@ struct QemuSeccompSyscall { }; =20 const struct scmp_arg_cmp sched_setscheduler_arg[] =3D { - SCMP_A1(SCMP_CMP_NE, SCHED_IDLE) + {1, SCMP_CMP_NE, SCHED_IDLE} }; =20 static const struct QemuSeccompSyscall blacklist[] =3D { --=20 2.17.1