Re: [PATCH] prctl: Deprecate non PR_SET_MM_MAP operations

From: Cyrill Gorcunov
Date: Wed Apr 04 2018 - 16:04:34 EST


On Wed, Apr 04, 2018 at 12:24:33PM -0700, Randy Dunlap wrote:
>
> > + pr_warn_once("Non PR_SET_MM_MAP operations are deprecated\n");
> > + return -EINVAL;
> > }
>
> I'm not against removing such functionality, but I think that it's more than
> "deprecated." It's gone.

At first this was plain warning without code removal but I've
been advised that dropping it completely may be a better idea
which I agree https://lkml.org/lkml/2018/4/4/31 Or you mean the
warning message itsef? We aready have similars, for example
in kernel/auditfilter.c

printk(KERN_ERR "AUDIT_POSSIBLE is deprecated\n");