From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: Christoph Hellwig <hch@lst.de>,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>,
linux-kernel@vger.kernel.org,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: [PATCH] posix_acl.h: define missing ACL functions on non-posix-acl build
Date: Mon, 30 Nov 2020 10:44:04 +0900 [thread overview]
Message-ID: <20201130014404.36904-1-sergey.senozhatsky@gmail.com> (raw)
Some functions that are declared when CONFIG_POSIX_ACL is defined
are not declared when CONFIG_POSIX_ACL is not defined. Add the
missing ones:
set_posix_acl(), posix_acl_update_mode(), get_cached_acl(),
get_cached_acl_rcu(), set_cached_acl(), forget_cached_acl().
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
include/linux/posix_acl.h | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 90797f1b421d..f6d206359da5 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -117,6 +117,39 @@ static inline int posix_acl_create(struct inode *inode, umode_t *mode,
static inline void forget_all_cached_acls(struct inode *inode)
{
}
+
+static inline int set_posix_acl(struct inode *inode, int type,
+ struct posix_acl *acl)
+{
+ return 0;
+}
+
+static inline int posix_acl_update_mode(struct inode *, umode_t *,
+ struct posix_acl **)
+{
+ return 0;
+}
+
+static inline struct posix_acl *get_cached_acl(struct inode *inode,
+ int type)
+{
+ return NULL;
+}
+
+static inline struct posix_acl *get_cached_acl_rcu(struct inode *inode,
+ int type)
+{
+ return NULL;
+}
+
+static inline void set_cached_acl(struct inode *inode, int type,
+ struct posix_acl *acl)
+{
+}
+
+static inline void forget_cached_acl(struct inode *inode, int type)
+{
+}
#endif /* CONFIG_FS_POSIX_ACL */
struct posix_acl *get_acl(struct inode *inode, int type);
--
2.29.2
next reply other threads:[~2020-11-30 1:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 1:44 Sergey Senozhatsky [this message]
2020-11-30 2:00 ` Randy Dunlap
2020-11-30 3:15 ` Sergey Senozhatsky
2020-11-30 3:17 ` Sergey Senozhatsky
2020-11-30 3:37 ` Sergey Senozhatsky
2020-11-30 4:00 ` Randy Dunlap
2020-11-30 13:09 ` Andreas Gruenbacher
2020-11-30 13:13 ` Andreas Gruenbacher
2020-11-30 13:28 ` Sergey Senozhatsky
2020-11-30 6:05 ` kernel test robot
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=20201130014404.36904-1-sergey.senozhatsky@gmail.com \
--to=sergey.senozhatsky@gmail.com \
--cc=gustavo@embeddedor.com \
--cc=hch@lst.de \
--cc=linkinjeon@kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®