Re: [PATCH] docs: Introduce deprecated APIs list

2018-10-21 Thread Miguel Ojeda
On Wed, Oct 17, 2018 at 4:20 AM Kees Cook wrote: > > As discussed in the "API replacement/deprecation" thread[1], this > makes an effort to document what things shouldn't get (re)added to the > kernel, by introducing Documentation/process/deprecated.rst. It also > adds the overflow kerndoc to ReST

[PATCH 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough

2018-10-21 Thread Miguel Ojeda
Let gcc know these cases are meant to fall through to the next label by annotating them with the new __fallthrough statement attribute; and remove the comment since it conveys the same information (which was also parsed by gcc to suppress the warning). Signed-off-by: Miguel Ojeda --- drivers/aux

[PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1)

2018-10-21 Thread Miguel Ojeda
>From the GCC manual: fallthrough The fallthrough attribute with a null statement serves as a fallthrough statement. It hints to the compiler that a statement that falls through to another case label, or user-defined label in a switch statement is intentional and thus the -Wimpl

[PATCH 0/2] Compiler Attributes: __fallthrough

2018-10-21 Thread Miguel Ojeda
These are two patches are meant to go on top of the rest of the compiler attributes series on: https://github.com/ojeda/linux/tree/compiler-attributes which will be sent to Greg for the next merge window. Please review them and let me know! (specially if someone is against __fallthrough for so

Re: [PATCH 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough

2018-10-21 Thread Joe Perches
On Sun, 2018-10-21 at 19:14 +0200, Miguel Ojeda wrote: > Let gcc know these cases are meant to fall through to the next label > by annotating them with the new __fallthrough statement attribute; > and remove the comment since it conveys the same information > (which was also parsed by gcc to suppre

Re: [PATCH 0/2] Compiler Attributes: __fallthrough

2018-10-21 Thread Greg Kroah-Hartman
On Sun, Oct 21, 2018 at 07:14:12PM +0200, Miguel Ojeda wrote: > These are two patches are meant to go on top of the rest of the compiler > attributes series on: > > https://github.com/ojeda/linux/tree/compiler-attributes > > which will be sent to Greg for the next merge window. > > Please revi

Re: [PATCH 0/2] Compiler Attributes: __fallthrough

2018-10-21 Thread Joe Perches
On Sun, 2018-10-21 at 19:29 +0100, Greg Kroah-Hartman wrote:i > On Sun, Oct 21, 2018 at 07:14:12PM +0200, Miguel Ojeda wrote: > > These are two patches are meant to go on top of the rest of the compiler > > attributes series on: > > > > https://github.com/ojeda/linux/tree/compiler-attributes > >

Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1)

2018-10-21 Thread Theodore Y. Ts'o
On Sun, Oct 21, 2018 at 07:14:13PM +0200, Miguel Ojeda wrote: > From the GCC manual: > > fallthrough > > The fallthrough attribute with a null statement serves as a > fallthrough statement. It hints to the compiler that a statement > that falls through to another case label, or user

Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1)

2018-10-21 Thread Matthew Wilcox
On Sun, Oct 21, 2018 at 07:14:13PM +0200, Miguel Ojeda wrote: > +#if __has_attribute(__fallthrough__) > +# define __fallthrough __attribute__((__fallthrough__)) > +#else > +# define __fallthrough > +#endif Why is the #else not: # define __fallthrough /* fallthrough */ W

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2018-10-21 Thread Sergey Senozhatsky
On (10/19/18 22:03), Calvin Owens wrote: > Hi Sergey, > > It's in-progress, I'm sorry it hasn't happened sooner. Great! > By embedding the kobject in the console struct, we end up needing to refactor > the console drivers to use the kobject refcount instead of simply calling > kfree(), which is

Re: [PATCH 0/2] Compiler Attributes: __fallthrough

2018-10-21 Thread Dan Carpenter
On Sun, Oct 21, 2018 at 11:52:21AM -0700, Joe Perches wrote: > On Sun, 2018-10-21 at 19:29 +0100, Greg Kroah-Hartman wrote:i > > On Sun, Oct 21, 2018 at 07:14:12PM +0200, Miguel Ojeda wrote: > > > These are two patches are meant to go on top of the rest of the compiler > > > attributes series on: >

Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1)

2018-10-21 Thread Theodore Y. Ts'o
On Sun, Oct 21, 2018 at 05:42:18PM -0700, Matthew Wilcox wrote: > On Sun, Oct 21, 2018 at 07:14:13PM +0200, Miguel Ojeda wrote: > > +#if __has_attribute(__fallthrough__) > > +# define __fallthrough __attribute__((__fallthrough__)) > > +#else > > +# define __fallthrough > > +#endif