Re: [PATCH 2/3] tty: Make constants to be enums instead of #define in goldfish.c
From: Greg KH
Date: Sat Jul 21 2018 - 03:45:26 EST
On Tue, Jul 17, 2018 at 05:14:54PM -0700, rkir@xxxxxxxxxx wrote:
> From: Roman Kiryanov <rkir@xxxxxxxxxx>
>
> enums produce better compilation errors than defines.
Yes, if you name the enum. But you didn't do that here, so this patch
really does not do anything to cause any "protection" at all :(
Please fix this up and resend.
thanks,
greg k-h