Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-29 Thread Andy Shevchenko
On Tue, May 28, 2024 at 05:01:31PM +0530, Devarsh Thakkar wrote: > On 28/05/24 02:08, Andy Shevchenko wrote: > > On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: > >> On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: ... > >>> +MODULE_LICENSE("GPL"); > >> > >> modpo

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-29 Thread Andy Shevchenko
On Tue, May 28, 2024 at 04:51:46PM +0530, Devarsh Thakkar wrote: > On 28/05/24 02:07, Andy Shevchenko wrote: [..] > >> +#include > >> +#include > >> +#include > > > > + math.h (where abs()/DIV_ROUND_*()/etc come from?) > > I believe I mentioned that. > > > > I did compile and test this, so

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-28 Thread Devarsh Thakkar
On 28/05/24 02:08, Andy Shevchenko wrote: > On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: >> On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: > > ... > >>> +MODULE_LICENSE("GPL"); >> >> modpost validator won't be happy about this, i.e. missing >> MODULE_DESC

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-28 Thread Devarsh Thakkar
Hi Andy, Thanks for the review. On 28/05/24 02:07, Andy Shevchenko wrote: [..] >> +#include >> +#include >> +#include > > + math.h (where abs()/DIV_ROUND_*()/etc come from?) > I believe I mentioned that. > I did compile and test this, so math.h was indirectly getting included via some othe

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-27 Thread Andy Shevchenko
On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: > On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: ... > > +MODULE_LICENSE("GPL"); > > modpost validator won't be happy about this, i.e. missing > MODULE_DESCRIPTION(). And obviously + module.h in the inclusion bl

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-27 Thread Andy Shevchenko
On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: > From: Daniel Latypov > > Add basic test coverage for files that don't require any config options: > * part of math.h (what seem to be the most commonly used macros) > * gcd.c > * lcm.c > * int_sqrt.c > * reciprocal_div.c > (Ignore

[PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-26 Thread Devarsh Thakkar
From: Daniel Latypov Add basic test coverage for files that don't require any config options: * part of math.h (what seem to be the most commonly used macros) * gcd.c * lcm.c * int_sqrt.c * reciprocal_div.c (Ignored int_pow.c since it's a simple textbook algorithm.) These tests aren't particular