* [PATCH] posix_acl: fix warning in acl_by_type() function
@ 2013-03-03 15:27 Vyacheslav Dubeyko
0 siblings, 0 replies; only message in thread
From: Vyacheslav Dubeyko @ 2013-03-03 15:27 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, Andrew Morton, Christoph Hellwig, Al Viro
From: Vyacheslav Dubeyko <slava@dubeyko.com>
Subject: [PATCH] posix_acl: fix warning in acl_by_type() function
This patch fixes warning in function ‘acl_by_type’: include/linux/posix_acl.h:108:1: warning: control reaches end of non-void function [-Wreturn-type].
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
---
include/linux/posix_acl.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 7931efe..db1155a 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -102,9 +102,10 @@ static inline struct posix_acl **acl_by_type(struct inode *inode, int type)
return &inode->i_acl;
case ACL_TYPE_DEFAULT:
return &inode->i_default_acl;
- default:
- BUG();
}
+
+ BUG();
+ return NULL;
}
static inline struct posix_acl *get_cached_acl(struct inode *inode, int type)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-03 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-03 15:27 [PATCH] posix_acl: fix warning in acl_by_type() function Vyacheslav Dubeyko
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).