Re: [PATCH] lib/math/rational.c: Fix divide by zero

From: Trent Piepho
Date: Tue May 25 2021 - 01:08:45 EST


On Mon, May 24, 2021 at 6:49 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> > Personally, I think that RATIONAL is probably an okay thing to select
> > here: it's not as heavyweight as drivers/filesystems/etc, and our
> > general guidance here is "avoid select where sensible to do so", not
> > "don't use it under any circumstances".
>
> RATIONAL does not have a prompt string, so depending on it would not
> be reliable. I.e., it is meant to be selected.

Yes, there are no out of tree or userspace users of it. The only
possible way to use it, is if some code in the kernel uses it. So
that code can select it.

If it could be used by out of tree modules, then there should be an
entry for it, like some of the compression and crc routines got so
they could be turned on for out of tree modules when nothing in the
kernel config used them.