From patchwork Wed Jan 4 04:34:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Ryan X-Patchwork-Id: 9496357 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 872B2606B5 for ; Wed, 4 Jan 2017 09:48:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 879CD27B13 for ; Wed, 4 Jan 2017 09:48:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C3A827D85; Wed, 4 Jan 2017 09:48:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2155727B13 for ; Wed, 4 Jan 2017 09:48:26 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v049jROb031530; Wed, 4 Jan 2017 04:45:28 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v044ZaF6021669 for ; Tue, 3 Jan 2017 23:35:36 -0500 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v044Za4b024084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 3 Jan 2017 23:35:36 -0500 Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7D1E8FCFB for ; Wed, 4 Jan 2017 04:35:35 +0000 (UTC) Received: by mail-oi0-f67.google.com with SMTP id u15so73098977oie.3 for ; Tue, 03 Jan 2017 20:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4NoamDv6LVZ8XQsiOE3/1AOf8Fff6O79c04HceO9Bwk=; b=mDOB9R6hBFZYOhmLqnjunWgveog3EPLCyWoGSUaSYFz0IW716crd6pJica4n6VoCuw s+6kniwsjLCf7X8ahtahGJ975D1fvGhGpvQTc7xQzFXDblG9y+VXNdN6VGffXFk1J9uB FZsHNPquyGOYQc5n8MxC+rkYWloh3YtSkJpYXD2uf9b0S6IrfKVwdhJMxctthb+JQfBU O/Xs6S+SLHF+8UGM4iEuWNFnlBMSgmyP5aABQJm8qbIs2cypZf67KRURShrggjWQlnO/ ssksHZ4jungPRDaF/2FexK54OqpJqXsTU556OuS3lALrmhtRX4wPC3N1ODO7eL8SJrCg i90Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4NoamDv6LVZ8XQsiOE3/1AOf8Fff6O79c04HceO9Bwk=; b=jZAAbQ2TiVKJEbsEpD76M8mrGe4xU2XNClZtL4MYhcNLEw3YARRD577ylos+qHJdCe kkC/+gT4gLNCXN7e/lk1/fbNbAKzDatm9/XtLMi2f8gyluXmajMlyDXsFuiOw5qWZwvt 90JgrnV7h+UzkJ18rYEg42iwrZ6IsJWiJC4+QP01UhqNZK+oC0OIzJ38sBkIv5TYYIHe 9Up0Aaw70sdsbweFm3q6ggV6q7J5BYBb/LC1KaJmhiPMLlxxYt7CfSWKmjFDNNv7mYGw QRwenXLHLmhmJ37cVzoSY2SSvadGAMCjqqIGRMgSrkjIfrgz+R1l0xI1rG3tsplwuA97 fsZg== X-Gm-Message-State: AIkVDXJsOmav6NDnGrV4678XeDUkFefXfkd7FfQiyBnqGoT+IwoTAY3BRIgBAfcnmDBg2iHFhJe1bcWX5Tsxxg== X-Received: by 10.202.177.6 with SMTP id a6mr27602514oif.147.1483504534199; Tue, 03 Jan 2017 20:35:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.56.196 with HTTP; Tue, 3 Jan 2017 20:34:53 -0800 (PST) From: Anthony Ryan Date: Tue, 3 Jan 2017 23:34:53 -0500 Message-ID: To: dm-devel@redhat.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 04 Jan 2017 04:35:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 04 Jan 2017 04:35:36 +0000 (UTC) for IP:'209.85.218.67' DOMAIN:'mail-oi0-f67.google.com' HELO:'mail-oi0-f67.google.com' FROM:'anthonyryan1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.42 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.218.67 mail-oi0-f67.google.com 209.85.218.67 mail-oi0-f67.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 04 Jan 2017 04:45:25 -0500 Subject: [dm-devel] [PATCH] Include sys/sysmacros.h X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP The major, minor & makedev macros are not supposed to be included with sys/types.h but glibc has done this against POSIX standards. Alternative libcs aren't able to be used because of this and glibc has expressed interest in correcting this behaviour in a future release. --- kpartx/dasd.c | 1 + kpartx/kpartx.c | 1 + libmultipath/checkers/tur.c | 1 + libmultipath/devmapper.c | 1 + libmultipath/util.c | 1 + 5 files changed, 5 insertions(+) diff --git a/kpartx/dasd.c b/kpartx/dasd.c index 1206e45..f50c1bd 100644 --- a/kpartx/dasd.c +++ b/kpartx/dasd.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c index d31fea8..3452787 100644 --- a/kpartx/kpartx.c +++ b/kpartx/kpartx.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/libmultipath/checkers/tur.c b/libmultipath/checkers/tur.c index 4d6c3c2..d9a9e67 100644 --- a/libmultipath/checkers/tur.c +++ b/libmultipath/checkers/tur.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index 4f8ef13..9c0b240 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "checkers.h" #include "vector.h" diff --git a/libmultipath/util.c b/libmultipath/util.c index 03a5738..1841f35 100644 --- a/libmultipath/util.c +++ b/libmultipath/util.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include