Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2248971ybd; Mon, 24 Jun 2019 03:16:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh6kZZ6vQt0ZAmwqyR6+RiMW/oEUuN9V/37oZ5AupRF4IoO5UUepODP77DYc0uwt4JMyCs X-Received: by 2002:a17:902:e211:: with SMTP id ce17mr65289787plb.193.1561371411912; Mon, 24 Jun 2019 03:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561371411; cv=none; d=google.com; s=arc-20160816; b=DNzqNKuhoI7R5UtYhcxH3DLfLms9uv1XsqMenBnL0fpxnOWYXvHUXv82cD64fKw+md WJNe5IQkR2R561PUUdBYgwk65MnofAEenSoyTuO+mh+FuULffI9LsyACkR5lVQrrQ1rk 9Ek4mS0ANX/cvJ0iDvMrs+NcNUpSPLTOvNbWsSfTZMiK7KYye3tyyHCJFx0BNUhZ06qS paK1RL16wY+xzwc5MZVfmDMWbUZKRaeqOlnjd9dd3Bv2MudZsIvVX+SC+coTwnwlN+3f nHrCHPyETopnQc1zdpEu3Eq0zQHmH5q79RGWaWuqkJqnUPUc2eRPkwVYO9oWBXiFXqCB emkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DOLnDn/Hocy90fJAzeNp4e3S48nMiaQh9C/Un57BmZY=; b=JSqA83xxuCwQt4M7ewq/b56WDmX2ibDw0YCBlDRh3xtBIunBELTX2pSsKkMoOpbatg a/m+HUddcPilbYByjihkZ7WCatSFINdLdBMYYmC0CwCSsY2VeUrdS7Try3F89Blbp0xK LEYsOoM/42TFj52d7jr/9C6AvL8iP+u+p/Bfnwqr+yGzB3o/HLcA8rJjEPdsJVw60H+9 6S81vvkVLnAbObSUmLoYFiG0KjdI50OiWvS112k3U/t+xevZwz1Y5t9RCysxsrCw2IwC V/i3wp403UbaFzTjuD4a8vK2OdPi20onuvFEagL4dxnlRXuyK+zDGGMASXMAwWTKVxue IAmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A82ehgmC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si10297532pff.51.2019.06.24.03.16.36; Mon, 24 Jun 2019 03:16:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A82ehgmC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726453AbfFXKQS (ORCPT + 99 others); Mon, 24 Jun 2019 06:16:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:53752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730228AbfFXKQR (ORCPT ); Mon, 24 Jun 2019 06:16:17 -0400 Received: from localhost (f4.8f.5177.ip4.static.sl-reverse.com [119.81.143.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2861C205C9; Mon, 24 Jun 2019 10:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561371376; bh=KrAKWW5IpsGHd1sDRLiz0BAsr+MVpsf80lL8mL0hDLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A82ehgmCwz/Eux2ovLwS4d7KIXF1EXzyW2hr68N4FQnmeuZsZxbO8W8I80ozJoBdv ffqf6w4MldkacDHK3yn44M1QUUk1+9bRY9P2pKw76DwpQb5qOixICv6ogEDoBc/DVE Ie6slJj8/nDq8rs/HASxmdiMre9v2h+FW3bK3Cgs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Brauner , Sasha Levin Subject: [PATCH 5.1 081/121] tests: fix pidfd-test compilation Date: Mon, 24 Jun 2019 17:56:53 +0800 Message-Id: <20190624092324.997360765@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190624092320.652599624@linuxfoundation.org> References: <20190624092320.652599624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 1fcd0eb356ad56c4e405f06e31dd9fde2109d5ab ] Define __NR_pidfd_send_signal if it isn't to prevent a potential compilation error. To make pidfd-test compile on all arches, irrespective of whether or not syscall numbers are assigned, define the syscall number to -1. If it isn't defined this will cause the kernel to return -ENOSYS. Fixes: 575a0ae9744d ("selftests: add tests for pidfd_send_signal()") Signed-off-by: Christian Brauner Signed-off-by: Sasha Levin --- tools/testing/selftests/pidfd/pidfd_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/pidfd/pidfd_test.c b/tools/testing/selftests/pidfd/pidfd_test.c index d59378a93782..20323f55613a 100644 --- a/tools/testing/selftests/pidfd/pidfd_test.c +++ b/tools/testing/selftests/pidfd/pidfd_test.c @@ -16,6 +16,10 @@ #include "../kselftest.h" +#ifndef __NR_pidfd_send_signal +#define __NR_pidfd_send_signal -1 +#endif + static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, unsigned int flags) { -- 2.20.1