Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1152285ybp; Fri, 11 Oct 2019 09:42:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSg7jlZBDrlOerfyB9IWW6Te6eKa1SEHnUNj6MYhF5TlJGIuOqvVpjuomh6wFwaAw9vB30 X-Received: by 2002:a17:906:5e49:: with SMTP id b9mr14822966eju.255.1570812130345; Fri, 11 Oct 2019 09:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570812130; cv=none; d=google.com; s=arc-20160816; b=byWpiEMMqzz2MB/8OXOXa8a0KZpHvwk/4abhpqAPtp6YXmg1JgTUx/HJNcVutAwiNV lwPGMfsK9lKZc9PBz7Z7Ngr6XE0MvpJSJGGGydnfa9XSVAAKr4C2TrVWmuhqTbvWnY+C 9NHGvE8aw4chezZTqtFp4+Iyartew6S3D6BxcU5KvfbtLdkrAA8zYk4wBOzYTKDLYa9w LJ3pC3HIMBtSseDRmz569DrjdcFHsSdaWDNXbCPgTkE3McgSTGPy/G5FozevA8Ab4AEs eyFzT3yephc5buYlH8jClQhv8MWyWiu9ZDofiSuw3UJbHl4BYfkh1dxl/LQsYFK8jhWp k+rw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3nslHDYKmfLHYdBDlpyt062nlj7ZyCRzMN4HOI+mqsM=; b=rIhFOg5Hdy6AH/ZhW3paqZgKHqqQvmPOxITc6D2HFReQB+NCBsjykCcKUWTbk1ZjdN 1+j/q1kOxbZs9Kd2Y5x5qMVdMfFREcHEONtxATWUIY6YN2OqLTslA8wCuHcqe5iKdsD6 vi4xLDJHKs01zcNF7xNjBgQhIX7I9NKMSaK8JM2MDg2ZT2SwdrwkMF5jUH2aIkybXF3Q SYEcCwfyO/j4BnN+mmzntEFaeWNHOmmg9jWwOekCeQ1vmdf8Bk+RXWpx1ljn4MlS9xTP m0xSAngeiBF/Wbslimt+bcBaSs7INu8do3nBnX+p/3gt6eofEdxX4UE0eSL7ad4AQPKs qG2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P2DlWRdb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si5562957ejx.315.2019.10.11.09.41.46; Fri, 11 Oct 2019 09:42:10 -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=@redhat.com header.s=mimecast20190719 header.b=P2DlWRdb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbfJKQib (ORCPT + 99 others); Fri, 11 Oct 2019 12:38:31 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:20714 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728463AbfJKQia (ORCPT ); Fri, 11 Oct 2019 12:38:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1570811909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3nslHDYKmfLHYdBDlpyt062nlj7ZyCRzMN4HOI+mqsM=; b=P2DlWRdboZVSWOqm5BDgvyQlXpTl6dr3RDARWwl/6LJQa5qRqMevyybcsjBeFzJ7sn9TS8 VE/L/OCxT2ygL4V/rz410zAryuqhyPwMfeykJSIrK8jRXQT4Smh2K7eEYis6fPiRX0BWXJ ZUvOIGwONDKTQqw8Q4rI82T//VJj/nU= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-148-JzU9i6wLNcSjixMk4k9wLA-1; Fri, 11 Oct 2019 12:38:28 -0400 Received: by mail-ed1-f70.google.com with SMTP id c23so6099219edb.14 for ; Fri, 11 Oct 2019 09:38:27 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=QESqrn4NLBY+/uVxnw2MijgU+W7zIC6MI7jLwA7o+II=; b=hjk7kvbZYnn1dcc6PAl9+cT7hcTnqXZcvuIRPgtP00be8MLn9QqQv6FWeEl5pxcZsh xj82NazS8wyv9Zcsrl1WsHLoiJ4ToW4bPofvkWMU3ymGwkxF0oWOoZ/olNjjzkhKT5kj 5rCt7HzgeuNMdN4irkVgXc7DMaVxkMHQe2D3jHhVbAHRWv+mRTEVvAFylKw9ExUH3cIl xcO+UN3DWUU1KPaKD6+NiUoLVA93NYo4OIO48ApGj6RPPu38sS/CX2lCW6lEUD0rzAnz 3FoTT+KZfz85e5SkRwtE3q2QT1IZtTA5hJe1abVK6w5fA0fcYaGIhw8snfokBcGXtpr3 M1kA== X-Gm-Message-State: APjAAAXFMNdKSEMrdtbJmKXugVp+c5xqB543Y611cyQ8fJ12HbyjSWOY LkVVIsbmSpCdJg8PxosSHjGVBHLfQOF9F3o/oKvfl6qBGE5AegcvUlYXwW3S6C4GGxpaDz76G5r FltPJ0B8cX6bdgqqvOaLZawUr X-Received: by 2002:aa7:c616:: with SMTP id h22mr14362304edq.296.1570811906390; Fri, 11 Oct 2019 09:38:26 -0700 (PDT) X-Received: by 2002:aa7:c616:: with SMTP id h22mr14362282edq.296.1570811906157; Fri, 11 Oct 2019 09:38:26 -0700 (PDT) Received: from localhost ([2a02:2450:102e:d85:877d:43b4:dd8f:144d]) by smtp.gmail.com with ESMTPSA id f21sm1542726edt.52.2019.10.11.09.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 09:38:24 -0700 (PDT) From: Christian Kellner To: linux-kernel@vger.kernel.org Cc: Christian Kellner , Christian Brauner , Shuah Khan , linux-kselftest@vger.kernel.org Subject: [PATCH] pidfd: fix selftest compilation by removing linux/wait.h Date: Fri, 11 Oct 2019 18:38:11 +0200 Message-Id: <20191011163811.8607-1-ckellner@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-MC-Unique: JzU9i6wLNcSjixMk4k9wLA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Kellner The pidfd_{open,poll}_test.c files both include `linux/wait.h` and later `sys/wait.h`. The former has `#define P_ALL 0`, but in the latter P_ALL is part of idtype_t enum, where it gets substituted due to the aforementioned define to be `0`, which then results in `typedef enum {0, ...`, which then results into a compiler error: "error: expected identifier before numeric constant". Since we need `sys/wait.h` for waitpid, drop `linux/wait.h`. Signed-off-by: Christian Kellner --- tools/testing/selftests/pidfd/pidfd_open_test.c | 1 - tools/testing/selftests/pidfd/pidfd_poll_test.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/testing/selftests/pidfd/pidfd_open_test.c b/tools/testin= g/selftests/pidfd/pidfd_open_test.c index b9fe75fc3e51..8a59438ccc78 100644 --- a/tools/testing/selftests/pidfd/pidfd_open_test.c +++ b/tools/testing/selftests/pidfd/pidfd_open_test.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_poll_test.c b/tools/testin= g/selftests/pidfd/pidfd_poll_test.c index 4b115444dfe9..610811275357 100644 --- a/tools/testing/selftests/pidfd/pidfd_poll_test.c +++ b/tools/testing/selftests/pidfd/pidfd_poll_test.c @@ -3,7 +3,6 @@ #define _GNU_SOURCE #include #include -#include #include #include #include --=20 2.21.0