Re: PRJQUOTA case not handled in need_print_warning()
From: Jan Kara
Date: Tue Oct 09 2012 - 17:42:22 EST
On Fri 05-10-12 00:34:29, Jiri Kosina wrote:
> Hi,
>
> commit e8a3e4719b7ec19288c56f22623f537cb78885c1
> Author: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
> Date: Sun Sep 16 01:11:45 2012 -0700
>
> userns: Implement struct kqid
>
> causes this warning:
>
> fs/quota/dquot.c: In function âneed_print_warningâ:
> fs/quota/dquot.c:1158: warning: enumeration value âPRJQUOTAâ not handled in switch
>
> and it seems to be a valid one -- the switch in need_print_warning()
> contains neither 'default' nor PRJQUOTA case handler.
Hum, since Eric didn't seem to care, I've fixed this up myself with the
attached patch. Actually, PRJQUOTA should never get to that function so it
shouldn't cause any problems in practice. Thanks for the report.
Honza