Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37770000
en ru br
ALT Linux repos
S:6.5-alt1
5.0: 2.6.27-alt3
4.1: 2.6.24-alt4
4.0: 2.6.17-alt6
3.0: 2.4.25-alt2

Group :: Development/Kernel
RPM: glibc-kernheaders

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0002-uapi-move-struct-reiserfs_security_handle-out-from-l.patch
Download


From e635e684e74268b6f19c28f8802e792788381449 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Mon, 20 Feb 2017 15:21:03 +0000
Subject: [PATCH 02/21] uapi: move struct reiserfs_security_handle out from
 linux/reiserfs_xattr.h
As there seems to be no way struct reiserfs_security_handle could be
passed between the kernel and userspace, move its definition from the
UAPI header to a private header fs/reiserfs/xattr.h which is the only
file in the tree that includes linux/reiserfs_xattr.h.
This also fixes the following linux/reiserfs_xattr.h userspace
compilation error:
/usr/include/linux/reiserfs_xattr.h:21:2: error: unknown type name 'size_t'
  size_t length;
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Link: http://lkml.kernel.org/r/20170228005328.GA27363@altlinux.org
---
 fs/reiserfs/xattr.h                 | 6 ++++++
 include/uapi/linux/reiserfs_xattr.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/reiserfs/xattr.h b/fs/reiserfs/xattr.h
index c764352447ba..fb1d22899748 100644
--- a/fs/reiserfs/xattr.h
+++ b/fs/reiserfs/xattr.h
@@ -5,6 +5,12 @@
 #include <linux/rwsem.h>
 #include <linux/xattr.h>
 
+struct reiserfs_security_handle {
+	const char *name;
+	void *value;
+	size_t length;
+};
+
 struct inode;
 struct dentry;
 struct iattr;
diff --git a/include/uapi/linux/reiserfs_xattr.h b/include/uapi/linux/reiserfs_xattr.h
index 28f10842f047..54fc398f4a4e 100644
--- a/include/uapi/linux/reiserfs_xattr.h
+++ b/include/uapi/linux/reiserfs_xattr.h
@@ -16,10 +16,4 @@ struct reiserfs_xattr_header {
 	__le32 h_hash;		/* hash of the value */
 };
 
-struct reiserfs_security_handle {
-	const char *name;
-	void *value;
-	size_t length;
-};
-
 #endif  /*  _LINUX_REISERFS_XATTR_H  */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin