From patchwork Wed Jul 24 08:24:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11056283 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 970A6138D for ; Wed, 24 Jul 2019 08:25:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 896EF287A4 for ; Wed, 24 Jul 2019 08:25:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AE4F287C0; Wed, 24 Jul 2019 08:25:01 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E9F5287A4 for ; Wed, 24 Jul 2019 08:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725883AbfGXIY7 (ORCPT ); Wed, 24 Jul 2019 04:24:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57656 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfGXIY6 (ORCPT ); Wed, 24 Jul 2019 04:24:58 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D5A613092657; Wed, 24 Jul 2019 08:24:58 +0000 (UTC) Received: from localhost (ovpn-117-162.ams2.redhat.com [10.36.117.162]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2B9DC60BEC; Wed, 24 Jul 2019 08:24:55 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: Aarushi Mehta , Julia Suvorova , Jeff Moyer , linux-block@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH liburing 1/4] pkgconfig: add missing config-host.mak dependency Date: Wed, 24 Jul 2019 09:24:47 +0100 Message-Id: <20190724082450.12135-2-stefanha@redhat.com> In-Reply-To: <20190724082450.12135-1-stefanha@redhat.com> References: <20190724082450.12135-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 24 Jul 2019 08:24:58 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Rebuild the .pc file when config-host.mak changes since @prefix@, @libdir@, etc could have changed. Signed-off-by: Stefan Hajnoczi --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea639d6..4f524df 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ ifneq ($(MAKECMDGOALS),clean) include config-host.mak endif -%.pc: %.pc.in +%.pc: %.pc.in config-host.mak sed -e "s%@prefix@%$(prefix)%g" \ -e "s%@libdir@%$(libdir)%g" \ -e "s%@includedir@%$(includedir)%g" \ From patchwork Wed Jul 24 08:24:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11056291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B87F138D for ; Wed, 24 Jul 2019 08:25:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F084287B3 for ; Wed, 24 Jul 2019 08:25:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5371C287A3; Wed, 24 Jul 2019 08:25:24 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 441D8287B3 for ; Wed, 24 Jul 2019 08:25:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725851AbfGXIZF (ORCPT ); Wed, 24 Jul 2019 04:25:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33226 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfGXIZD (ORCPT ); Wed, 24 Jul 2019 04:25:03 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2DB0D87633; Wed, 24 Jul 2019 08:25:03 +0000 (UTC) Received: from localhost (ovpn-117-162.ams2.redhat.com [10.36.117.162]) by smtp.corp.redhat.com (Postfix) with ESMTP id 43E5419C70; Wed, 24 Jul 2019 08:25:00 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: Aarushi Mehta , Julia Suvorova , Jeff Moyer , linux-block@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH liburing 2/4] spec: invoke ./configure with arguments Date: Wed, 24 Jul 2019 09:24:48 +0100 Message-Id: <20190724082450.12135-3-stefanha@redhat.com> In-Reply-To: <20190724082450.12135-1-stefanha@redhat.com> References: <20190724082450.12135-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 24 Jul 2019 08:25:03 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit fd26c1a2f0eb ("configure: move directory options to ./configure") moved --prefix=PREFIX and other directory options to ./configure. Invoke ./configure with these options instead of passing them to the makefile. Signed-off-by: Stefan Hajnoczi --- liburing.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liburing.spec b/liburing.spec index 61afac8..189a16a 100644 --- a/liburing.spec +++ b/liburing.spec @@ -25,12 +25,13 @@ for the Linux-native io_uring. %setup %build +./configure --prefix=/usr --libdir=/%{_libdir} --mandir=/usr/share/man make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr libdir=/%{_libdir} mandir=/usr/share/man +make install DESTDIR=$RPM_BUILD_ROOT %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT From patchwork Wed Jul 24 08:24:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11056285 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AB07138D for ; Wed, 24 Jul 2019 08:25:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D11B287BB for ; Wed, 24 Jul 2019 08:25:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FA8928785; Wed, 24 Jul 2019 08:25:12 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ADA8287C0 for ; Wed, 24 Jul 2019 08:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726242AbfGXIZI (ORCPT ); Wed, 24 Jul 2019 04:25:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43026 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfGXIZI (ORCPT ); Wed, 24 Jul 2019 04:25:08 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1C57C30C34EC; Wed, 24 Jul 2019 08:25:08 +0000 (UTC) Received: from localhost (ovpn-117-162.ams2.redhat.com [10.36.117.162]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D4E260497; Wed, 24 Jul 2019 08:25:04 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: Aarushi Mehta , Julia Suvorova , Jeff Moyer , linux-block@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH liburing 3/4] src/Makefile: honor the caller's includedir and libdir Date: Wed, 24 Jul 2019 09:24:49 +0100 Message-Id: <20190724082450.12135-4-stefanha@redhat.com> In-Reply-To: <20190724082450.12135-1-stefanha@redhat.com> References: <20190724082450.12135-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 24 Jul 2019 08:25:08 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The top-level makefile passes in includedir and libdir so we should not override them. Signed-off-by: Stefan Hajnoczi --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 954e05e..aa93199 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ prefix ?= /usr -includedir=$(prefix)/include -libdir=$(prefix)/lib +includedir ?= $(prefix)/include +libdir ?= $(prefix)/lib CFLAGS ?= -g -fomit-frame-pointer -O2 override CFLAGS += -Wall -I. From patchwork Wed Jul 24 08:24:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11056293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D5C0513A0 for ; Wed, 24 Jul 2019 08:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C777C287B3 for ; Wed, 24 Jul 2019 08:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB8EC287A8; Wed, 24 Jul 2019 08:25: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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8D60287C1 for ; Wed, 24 Jul 2019 08:25:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbfGXIZM (ORCPT ); Wed, 24 Jul 2019 04:25:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59196 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfGXIZM (ORCPT ); Wed, 24 Jul 2019 04:25:12 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60AC330C1342; Wed, 24 Jul 2019 08:25:11 +0000 (UTC) Received: from localhost (ovpn-117-162.ams2.redhat.com [10.36.117.162]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7889719C70; Wed, 24 Jul 2019 08:25:09 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: Aarushi Mehta , Julia Suvorova , Jeff Moyer , linux-block@vger.kernel.org, Stefan Hajnoczi Subject: [PATCH liburing 4/4] src/Makefile: keep private headers in Date: Wed, 24 Jul 2019 09:24:50 +0100 Message-Id: <20190724082450.12135-5-stefanha@redhat.com> In-Reply-To: <20190724082450.12135-1-stefanha@redhat.com> References: <20190724082450.12135-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 24 Jul 2019 08:25:11 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is not possible to install barrier.h and compat.h into the top-level /usr/include directly since they are likely to conflict with other software. io_uring.h could be confused with the system's kernel header file. Put liburing headers into so there is no chance of conflicts or confusion. Existing applications continue to build successfully since the location of is unchanged. In-tree examples and tests require modification because src/liburing.h is moved to src/include/liburing.h. Signed-off-by: Stefan Hajnoczi --- examples/Makefile | 2 +- src/Makefile | 14 +++++++------- test/Makefile | 2 +- src/{ => include}/liburing.h | 6 +++--- src/{ => include/liburing}/barrier.h | 0 src/{ => include/liburing}/compat.h | 0 src/{ => include/liburing}/io_uring.h | 0 examples/io_uring-cp.c | 2 +- examples/io_uring-test.c | 2 +- examples/link-cp.c | 2 +- src/queue.c | 6 +++--- src/register.c | 4 ++-- src/setup.c | 4 ++-- src/syscall.c | 4 ++-- test/cq-full.c | 2 +- test/eeed8b54e0df-test.c | 2 +- test/fsync.c | 2 +- test/io_uring_enter.c | 4 ++-- test/io_uring_register.c | 2 +- test/io_uring_setup.c | 2 +- test/link.c | 2 +- test/nop.c | 2 +- test/poll-cancel.c | 2 +- test/poll.c | 2 +- test/ring-leak.c | 2 +- test/send_recvmsg.c | 2 +- test/sq-full.c | 2 +- liburing.spec | 3 ++- 28 files changed, 40 insertions(+), 39 deletions(-) rename src/{ => include}/liburing.h (98%) rename src/{ => include/liburing}/barrier.h (100%) rename src/{ => include/liburing}/compat.h (100%) rename src/{ => include/liburing}/io_uring.h (100%) diff --git a/examples/Makefile b/examples/Makefile index ed73fcd..1539ecc 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,5 +1,5 @@ CFLAGS ?= -g -O2 -override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ +override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ -I../src/include/ all_targets += io_uring-test io_uring-cp link-cp diff --git a/src/Makefile b/src/Makefile index aa93199..cbd3fda 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,7 +3,7 @@ includedir ?= $(prefix)/include libdir ?= $(prefix)/lib CFLAGS ?= -g -fomit-frame-pointer -O2 -override CFLAGS += -Wall -I. +override CFLAGS += -Wall -Iinclude/ SO_CFLAGS=-shared -fPIC $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= @@ -27,7 +27,7 @@ liburing_srcs := setup.c queue.c syscall.c register.c liburing_objs := $(patsubst %.c,%.ol,$(liburing_srcs)) liburing_sobjs := $(patsubst %.c,%.os,$(liburing_srcs)) -$(liburing_objs) $(liburing_sobjs): io_uring.h +$(liburing_objs) $(liburing_sobjs): include/liburing/io_uring.h %.os: %.c $(CC) $(SO_CFLAGS) -c -o $@ $< @@ -46,10 +46,10 @@ $(libname): $(liburing_sobjs) liburing.map $(CC) $(SO_CFLAGS) -Wl,--version-script=liburing.map -Wl,-soname=$(soname) -o $@ $(liburing_sobjs) $(LINK_FLAGS) install: $(all_targets) - install -D -m 644 io_uring.h $(includedir)/io_uring.h - install -D -m 644 liburing.h $(includedir)/liburing.h - install -D -m 644 compat.h $(includedir)/compat.h - install -D -m 644 barrier.h $(includedir)/barrier.h + install -D -m 644 include/liburing/io_uring.h $(includedir)/liburing/io_uring.h + install -D -m 644 include/liburing.h $(includedir)/liburing.h + install -D -m 644 include/liburing/compat.h $(includedir)/liburing/compat.h + install -D -m 644 include/liburing/barrier.h $(includedir)/liburing/barrier.h install -D -m 644 liburing.a $(libdir)/liburing.a ifeq ($(ENABLE_SHARED),1) install -D -m 755 $(libname) $(libdir)/$(libname) @@ -57,7 +57,7 @@ ifeq ($(ENABLE_SHARED),1) ln -sf $(libname) $(libdir)/liburing.so endif -$(liburing_objs): liburing.h +$(liburing_objs): include/liburing.h clean: rm -f $(all_targets) $(liburing_objs) $(liburing_sobjs) $(soname).new diff --git a/test/Makefile b/test/Makefile index 98f863c..4d056f8 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ CFLAGS ?= -g -O2 -override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ +override CFLAGS += -Wall -D_GNU_SOURCE -L../src/ -I../src/include/ all_targets += poll poll-cancel ring-leak fsync io_uring_setup io_uring_register \ io_uring_enter nop sq-full cq-full 35fa71a030ca-test \ diff --git a/src/liburing.h b/src/include/liburing.h similarity index 98% rename from src/liburing.h rename to src/include/liburing.h index a350a01..fb78cd3 100644 --- a/src/liburing.h +++ b/src/include/liburing.h @@ -9,9 +9,9 @@ extern "C" { #include #include #include -#include "compat.h" -#include "io_uring.h" -#include "barrier.h" +#include "liburing/compat.h" +#include "liburing/io_uring.h" +#include "liburing/barrier.h" /* * Library interface to io_uring diff --git a/src/barrier.h b/src/include/liburing/barrier.h similarity index 100% rename from src/barrier.h rename to src/include/liburing/barrier.h diff --git a/src/compat.h b/src/include/liburing/compat.h similarity index 100% rename from src/compat.h rename to src/include/liburing/compat.h diff --git a/src/io_uring.h b/src/include/liburing/io_uring.h similarity index 100% rename from src/io_uring.h rename to src/include/liburing/io_uring.h diff --git a/examples/io_uring-cp.c b/examples/io_uring-cp.c index 97f61aa..adb7b29 100644 --- a/examples/io_uring-cp.c +++ b/examples/io_uring-cp.c @@ -12,7 +12,7 @@ #include #include #include -#include "../src/liburing.h" +#include "liburing.h" #define QD 64 #define BS (32*1024) diff --git a/examples/io_uring-test.c b/examples/io_uring-test.c index 0b975ad..4f5ebf6 100644 --- a/examples/io_uring-test.c +++ b/examples/io_uring-test.c @@ -9,7 +9,7 @@ #include #include #include -#include "../src/liburing.h" +#include "liburing.h" #define QD 4 diff --git a/examples/link-cp.c b/examples/link-cp.c index a4c02e5..af80a2e 100644 --- a/examples/link-cp.c +++ b/examples/link-cp.c @@ -13,7 +13,7 @@ #include #include #include -#include "../src/liburing.h" +#include "liburing.h" #define QD 64 #define BS (32*1024) diff --git a/src/queue.c b/src/queue.c index 72b2293..74a077f 100644 --- a/src/queue.c +++ b/src/queue.c @@ -6,10 +6,10 @@ #include #include -#include "compat.h" -#include "io_uring.h" +#include "liburing/compat.h" +#include "liburing/io_uring.h" #include "liburing.h" -#include "barrier.h" +#include "liburing/barrier.h" static int __io_uring_get_cqe(struct io_uring *ring, struct io_uring_cqe **cqe_ptr, int wait) diff --git a/src/register.c b/src/register.c index 7561575..f5fc196 100644 --- a/src/register.c +++ b/src/register.c @@ -5,8 +5,8 @@ #include #include -#include "compat.h" -#include "io_uring.h" +#include "liburing/compat.h" +#include "liburing/io_uring.h" #include "liburing.h" int io_uring_register_buffers(struct io_uring *ring, const struct iovec *iovecs, diff --git a/src/setup.c b/src/setup.c index 343a317..47b0deb 100644 --- a/src/setup.c +++ b/src/setup.c @@ -5,8 +5,8 @@ #include #include -#include "compat.h" -#include "io_uring.h" +#include "liburing/compat.h" +#include "liburing/io_uring.h" #include "liburing.h" static int io_uring_mmap(int fd, struct io_uring_params *p, diff --git a/src/syscall.c b/src/syscall.c index d0c58cf..3fd8713 100644 --- a/src/syscall.c +++ b/src/syscall.c @@ -5,8 +5,8 @@ #include #include #include -#include "compat.h" -#include "io_uring.h" +#include "liburing/compat.h" +#include "liburing/io_uring.h" #ifdef __alpha__ /* diff --git a/test/cq-full.c b/test/cq-full.c index 82c5a65..25fa42c 100644 --- a/test/cq-full.c +++ b/test/cq-full.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static int queue_n_nops(struct io_uring *ring, int n) { diff --git a/test/eeed8b54e0df-test.c b/test/eeed8b54e0df-test.c index 9083d3e..84237d5 100644 --- a/test/eeed8b54e0df-test.c +++ b/test/eeed8b54e0df-test.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" #define BLOCK 4096 diff --git a/test/fsync.c b/test/fsync.c index 44264f4..e6e0898 100644 --- a/test/fsync.c +++ b/test/fsync.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static int test_single_fsync(struct io_uring *ring) { diff --git a/test/io_uring_enter.c b/test/io_uring_enter.c index b25afd5..c2030c1 100644 --- a/test/io_uring_enter.c +++ b/test/io_uring_enter.c @@ -22,8 +22,8 @@ #include #include #include -#include "../src/liburing.h" -#include "../src/barrier.h" +#include "liburing.h" +#include "liburing/barrier.h" #define IORING_MAX_ENTRIES 4096 diff --git a/test/io_uring_register.c b/test/io_uring_register.c index 32e5217..59c8a86 100644 --- a/test/io_uring_register.c +++ b/test/io_uring_register.c @@ -21,7 +21,7 @@ #include #include #include -#include "../src/liburing.h" +#include "liburing.h" static int pagesize; static rlim_t mlock_limit; diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c index 09e16e5..2dd3763 100644 --- a/test/io_uring_setup.c +++ b/test/io_uring_setup.c @@ -13,7 +13,7 @@ #include #include #include -#include "../src/liburing.h" +#include "liburing.h" /* * Attempt the call with the given args. Return 0 when expect matches diff --git a/test/link.c b/test/link.c index e7ca3e3..603b507 100644 --- a/test/link.c +++ b/test/link.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" /* * Test failing head of chain, and dependent getting -ECANCELED diff --git a/test/nop.c b/test/nop.c index 8e6bfb0..1373695 100644 --- a/test/nop.c +++ b/test/nop.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static int test_single_nop(struct io_uring *ring) { diff --git a/test/poll-cancel.c b/test/poll-cancel.c index 19efc5f..4761569 100644 --- a/test/poll-cancel.c +++ b/test/poll-cancel.c @@ -12,7 +12,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" struct poll_data { unsigned is_poll; diff --git a/test/poll.c b/test/poll.c index d22d9c5..ed424fc 100644 --- a/test/poll.c +++ b/test/poll.c @@ -11,7 +11,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static void sig_alrm(int sig) { diff --git a/test/ring-leak.c b/test/ring-leak.c index 99466e4..02b06f9 100644 --- a/test/ring-leak.c +++ b/test/ring-leak.c @@ -21,7 +21,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static int __io_uring_register_files(int ring_fd, int fd1, int fd2) { diff --git a/test/send_recvmsg.c b/test/send_recvmsg.c index 9187906..ada6559 100644 --- a/test/send_recvmsg.c +++ b/test/send_recvmsg.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" static char str[] = "This is a test of sendmsg and recvmsg over io_uring!"; diff --git a/test/sq-full.c b/test/sq-full.c index 5bf7f72..3fbe0a5 100644 --- a/test/sq-full.c +++ b/test/sq-full.c @@ -9,7 +9,7 @@ #include #include -#include "../src/liburing.h" +#include "liburing.h" int main(int argc, char *argv[]) { diff --git a/liburing.spec b/liburing.spec index 189a16a..e577a8f 100644 --- a/liburing.spec +++ b/liburing.spec @@ -47,7 +47,8 @@ make install DESTDIR=$RPM_BUILD_ROOT %files devel %defattr(-,root,root) -%attr(0644,root,root) %{_includedir}/* +%attr(0755,root,root) %{_includedir}/liburing/* +%attr(0644,root,root) %{_includedir}/liburing.h %attr(0755,root,root) %{_libdir}/liburing.so %attr(0644,root,root) %{_libdir}/liburing.a %attr(0644,root,root) %{_libdir}/pkgconfig/*