public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Gaelan Steele <gbs@canishe.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-man@vger.kernel.org,
	Michael Kerrisk <mtk.manpages@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-api@vger.kernel.org, Gaelan Steele <gbs@canishe.com>
Subject: [PATCH 2/2] fs: move dirent.h into uapi
Date: Mon, 20 Sep 2021 10:56:49 +0100	[thread overview]
Message-ID: <20210920095649.28600-2-gbs@canishe.com> (raw)
In-Reply-To: <20210920095649.28600-1-gbs@canishe.com>

The structures defined in dirent.h are part of Linux's uAPI, but
it was previously necessary for user code to duplicate the struct
definitions themselves. Let's make them public.

Signed-off-by: Gaelan Steele <gbs@canishe.com>
---
 include/{ => uapi}/linux/dirent.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename include/{ => uapi}/linux/dirent.h (66%)

diff --git a/include/linux/dirent.h b/include/uapi/linux/dirent.h
similarity index 66%
rename from include/linux/dirent.h
rename to include/uapi/linux/dirent.h
index 48e119dd3694..99293c651612 100644
--- a/include/linux/dirent.h
+++ b/include/uapi/linux/dirent.h
@@ -1,6 +1,6 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINUX_DIRENT_H
-#define _LINUX_DIRENT_H
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI_LINUX_DIRENT_H
+#define _UAPI_LINUX_DIRENT_H
 
 struct linux_dirent {
 	unsigned long	d_ino;
-- 
2.30.1 (Apple Git-130)


  reply	other threads:[~2021-09-20  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20  9:56 [PATCH 1/2] fs: move struct linux_dirent into headers Gaelan Steele
2021-09-20  9:56 ` Gaelan Steele [this message]
2021-09-20 10:06 ` Greg KH

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=20210920095649.28600-2-gbs@canishe.com \
    --to=gbs@canishe.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=viro@zeniv.linux.org.uk \
    /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