Re: [PATCH] deprecated.rst: Remove now removed uninitialized_var

From: Joe Perches
Date: Thu Aug 27 2020 - 11:56:54 EST


On Thu, 2020-08-27 at 07:58 -0700, Kees Cook wrote:
> On Wed, Aug 26, 2020 at 08:12:01PM -0700, Joe Perches wrote:
> > It's now gone from the kernel so remove it from the deprecated API text.
> >
> > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
>
> Oh! Right, thank you. I forgot to rewrite this. I'd like to keep the
> details about why "tricking the compiler to be quiet" should not be
> done.

Probably better in coding style.

> One of my fears about removing uninitialized_var() is that folks
> may start adding open-coded versions to silence warnings. I'd like to
> keep a section in deprecated.rst that describes the problem and why
> those kinds of work-arounds should not be used.
>