From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vyacheslav Dubeyko Subject: [PATCH] posix_acl: fix warning in acl_by_type() function Date: Sun, 03 Mar 2013 19:27:14 +0400 Message-ID: <1362324434.29435.34.camel@slavad-ubuntu-12.04> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, Andrew Morton , Christoph Hellwig , Al Viro To: linux-fsdevel@vger.kernel.org Return-path: Received: from oproxy14-pub.unifiedlayer.com ([67.222.51.224]:44126 "HELO oproxy14-pub.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753294Ab3CCP1S (ORCPT ); Sun, 3 Mar 2013 10:27:18 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: =46rom: Vyacheslav Dubeyko Subject: [PATCH] posix_acl: fix warning in acl_by_type() function This patch fixes warning in function =E2=80=98acl_by_type=E2=80=99: inc= lude/linux/posix_acl.h:108:1: warning: control reaches end of non-void = function [-Wreturn-type]. Signed-off-by: Vyacheslav Dubeyko --- 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(struc= t inode *inode, int type) return &inode->i_acl; case ACL_TYPE_DEFAULT: return &inode->i_default_acl; - default: - BUG(); } + + BUG(); + return NULL; } =20 static inline struct posix_acl *get_cached_acl(struct inode *inode, in= t type) --=20 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