From: Thomas Richter <tmricht@linux.vnet.ibm.com>
To: trinity@vger.kernel.org, davej@codemonkey.org.uk
Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com,
heiko.carstens@de.ibm.com,
Thomas Richter <tmricht@linux.vnet.ibm.com>
Subject: [PATCH 1/7] trinity: Fix compile error on linux 4.15 kernel
Date: Tue, 6 Feb 2018 09:02:23 +0100 [thread overview]
Message-ID: <20180206080229.27721-1-tmricht@linux.vnet.ibm.com> (raw)
Commit 1f28c5d055032e7e8ee5e48198dca7e125d0eec6
("autofs: remove unused AUTOFS_IOC_EXPIRE_DIRECT/INDIRECT")
in the linux kernel removed the 2 defines
AUTOFS_IOC_EXPIRE_INDIRECT
AUTOFS_IOC_EXPIRE_DIRECT
Since they are used unconditionally the build fails.
To fix this add #ifdef/#endif around it.
Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
---
ioctls/autofs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ioctls/autofs.c b/ioctls/autofs.c
index a39ccccc..03eacaae 100644
--- a/ioctls/autofs.c
+++ b/ioctls/autofs.c
@@ -239,8 +239,15 @@ static const struct ioctl autofs_ioctls[] = {
IOCTL(AUTOFS_IOC_SETTIMEOUT),
IOCTL(AUTOFS_IOC_EXPIRE),
IOCTL(AUTOFS_IOC_EXPIRE_MULTI),
+ /* Both defines removed by kernel commit
+ * 1f28c5d055032e7e8ee5e48198dca7e125d0eec6
+ */
+#ifdef AUTOFS_IOC_EXPIRE_INDIRECT
IOCTL(AUTOFS_IOC_EXPIRE_INDIRECT),
+#endif
+#ifdef AUTOFS_IOC_EXPIRE_DIRECT
IOCTL(AUTOFS_IOC_EXPIRE_DIRECT),
+#endif
IOCTL(AUTOFS_IOC_PROTOSUBVER),
IOCTL(AUTOFS_IOC_ASKUMOUNT),
--
2.14.3
next reply other threads:[~2018-02-06 8:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-06 8:02 Thomas Richter [this message]
2018-02-06 8:02 ` [PATCH 2/7] trinity: Update and comment on s390 system call table Thomas Richter
2018-02-06 8:02 ` [PATCH 3/7] trinity: Add support for preadv2/pwritev2 svcs Thomas Richter
2018-02-06 8:02 ` [PATCH 4/7] trinity: Add support for statx svc Thomas Richter
2018-02-06 8:02 ` [PATCH 5/7] trinity: Add support for mlock2 svc Thomas Richter
2018-02-06 8:02 ` [PATCH 6/7] trinity: Add support for copy_file_range svc Thomas Richter
2018-02-06 8:02 ` [PATCH 7/7] trinity: Add support for readdir svc Thomas Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180206080229.27721-1-tmricht@linux.vnet.ibm.com \
--to=tmricht@linux.vnet.ibm.com \
--cc=brueckner@linux.vnet.ibm.com \
--cc=davej@codemonkey.org.uk \
--cc=heiko.carstens@de.ibm.com \
--cc=schwidefsky@de.ibm.com \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).