From patchwork Sat May 2 18:56:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 6314921 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F5C79F1C2 for ; Sat, 2 May 2015 18:56:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 453D0203B8 for ; Sat, 2 May 2015 18:56:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5EC58203B4 for ; Sat, 2 May 2015 18:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751023AbbEBS4d (ORCPT ); Sat, 2 May 2015 14:56:33 -0400 Received: from mailrelay105.isp.belgacom.be ([195.238.20.132]:38155 "EHLO mailrelay105.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbbEBS4d (ORCPT ); Sat, 2 May 2015 14:56:33 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=KjSUzZxnmGSQ+6+vr4Kd0OSSUs/Ia9ciENKrYVIfwLU= c=1 sm=2 a=Z4Rwk6OoAAAA:8 a=rFa_517_zaZ5arCGX8YA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2D4EAAEHUVV/6R7sFtcgwyBL7NqAQEBAQEBBQGBAphHgVNNAQEBAQEBgQtBBYQILyOBGjeILwHFVSyGF4onHYQXBZFniniWHiNgZgEeghE8MYJFAQEB Received: from 164.123-176-91.adsl-dyn.isp.belgacom.be (HELO localhost.home.) ([91.176.123.164]) by relay.skynet.be with ESMTP; 02 May 2015 20:56:30 +0200 From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , Andrew Morton , linux-fsdevel@vger.kernel.org Subject: [PATCH 1/1 linux-next] affs: add default case in switch Date: Sat, 2 May 2015 20:56:20 +0200 Message-Id: <1430592980-28856-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.1 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix gcc -Wswitch-default warnings Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/affs/inode.c | 2 ++ fs/affs/namei.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/fs/affs/inode.c b/fs/affs/inode.c index 1734950..623398e 100644 --- a/fs/affs/inode.c +++ b/fs/affs/inode.c @@ -143,6 +143,8 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino) inode->i_op = &affs_symlink_inode_operations; inode->i_data.a_ops = &affs_symlink_aops; break; + default: + break; } inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec diff --git a/fs/affs/namei.c b/fs/affs/namei.c index 181e05b..517926d 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -237,6 +237,9 @@ affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) //case ST_LINKDIR: case ST_LINKFILE: ino = be32_to_cpu(AFFS_TAIL(sb, bh)->original); + break; + default: + break; } affs_brelse(bh); inode = affs_iget(sb, ino);