linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] affs: add default case in switch
@ 2015-05-02 18:56 Fabian Frederick
  2015-05-03 14:51 ` Richard Weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Fabian Frederick @ 2015-05-02 18:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fabian Frederick, Andrew Morton, linux-fsdevel

Fix gcc -Wswitch-default warnings

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 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);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-03 18:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 18:56 [PATCH 1/1 linux-next] affs: add default case in switch Fabian Frederick
2015-05-03 14:51 ` Richard Weinberger
2015-05-03 18:15   ` Fabian Frederick
2015-05-03 18:23     ` Richard Weinberger
2015-05-03 18:38       ` Fabian Frederick
2015-05-03 18:39         ` Richard Weinberger

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).