[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 03 Mar 2013 19:27:14 +0400
From: Vyacheslav Dubeyko <slava@...eyko.com>
To: linux-fsdevel@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Hellwig <hch@...radead.org>,
Al Viro <viro@...iv.linux.org.uk>
Subject: [PATCH] posix_acl: fix warning in acl_by_type() function
From: Vyacheslav Dubeyko <slava@...eyko.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@...eyko.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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists