Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6658916ybp; Tue, 15 Oct 2019 19:20:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1tWVSCKjOBpaIR8Uwuo2TIKjWgI1h+bRlXQpk85vB5iejdPZv78OWlRZeTexMmp4fI6N/ X-Received: by 2002:a17:906:d928:: with SMTP id rn8mr36403736ejb.143.1571192413389; Tue, 15 Oct 2019 19:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571192413; cv=none; d=google.com; s=arc-20160816; b=PeD8ed+VXq68VuoN/5qFFX6VXsKH5ZCP5V1hNyZ2thLIBJs+XOZGnzFGbqNy+56h5S BXbWF9u3eO8wI/+tYQthm2rALId7a9I9a7leNyqtTH/Drgy8FwQT5RDYs1rpc5eYzLwa WBtEm61g7tft2JTNyQHArRdGNoC7p1fCFdlv2CJEsXM5QYurY50sZGB+vFv6UgZrJA9f EfCkHEYjNk8eo25vts8bvpq6AdlWKPSL9QM5fpABzjONr3m47QMvVZK5UiTq/BePAegD mwVdUQ53hy6Y+i0+6l/hz+7k8XiqikDazNQyVjul8N71m+c+wU84gL7eMUB9sB7ED3xm fDNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:to:from:subject:cc:date :in-reply-to:content-transfer-encoding; bh=EYLzNWOcSPH7Gk77jFl0Pzm3VwzduWZmS2IVjjfHiPo=; b=rrFRRGTGNxoO5WOOPslsTXARmv0thZ2JnXXIb+ArC43K+BIouFeSL/UC4uh7D/aaAt VxcqvrVcexUKZz4gE58wxojBmQb51h53540GMJNwr6OJueiwOCmHmHgRAGQvEFzXeg+v jJM/QA66WM/BNX+VLfYhwI6hUUWTNnwDCQQgOULC7d9NVevme2yDjPY76bNzLD13SACJ V30+EHijSr/gJHJUg4l9tHQYx7iPJs/i4WMy99l5JhMHcu6v0yyyq8P6tOzd7riBC0dP u1FRJ62df0wIAaO5CZusmJFQv+SpUhEXQrpeCofUKIj3EbzOII4saqT/UZTTO9igVkkt 7miQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y43si15397080edd.42.2019.10.15.19.19.50; Tue, 15 Oct 2019 19:20:13 -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; 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 S1732127AbfJOTjC (ORCPT + 99 others); Tue, 15 Oct 2019 15:39:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48542 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbfJOTjB (ORCPT ); Tue, 15 Oct 2019 15:39:01 -0400 Received: from [213.220.153.21] (helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iKSep-00038e-V2; Tue, 15 Oct 2019 19:38:59 +0000 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 In-Reply-To: <20191015165531.27469-1-ckellner@redhat.com> Date: Tue, 15 Oct 2019 21:38:59 +0200 Cc: "Christian Kellner" , "Christian Brauner" , "Shuah Khan" , Subject: Re: [PATCH v2] pidfd: avoid linux/wait.h and sys/wait.h name clashes From: "Christian Brauner" To: "Christian Kellner" , Message-Id: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue Oct 15, 2019 at 6:55 PM Christian Kellner wrote: > From: Christian Kellner >=20 > Both linux/wait.h and sys/wait.h contain values for the first argument > of 'waitid' (P_ALL, P_PID, ...). While the former uses defines the > latter uses an enum. When linux/wait.h is included before sys/wait.h > this will lead to an error, because P_ALL, P_PID, ... will already > have been substituted to 0, 1, ... respectively and this the resulting > code will be 'typedef enum {0, 1, ...'. > Remove 'linux/wait.h' and rename P_PIDFD to avoid a future clash, in > case P_PIDFD gets added to the idtype_t enum in sys/wait.h. >=20 > Signed-off-by: Christian Kellner Reviewed-by: Christian Brauner