Re: [PATCH v2] iio: frequency: ad9834: clean up includes

From: Andy Shevchenko

Date: Thu Apr 16 2026 - 05:21:34 EST


On Thu, Apr 16, 2026 at 11:05:21AM +0200, Joshua Crofts wrote:
> On Wed, 15 Apr 2026 at 16:37, Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxx> wrote:
> > Still missing types.h, math.h, and probably more...

> I don't get why I should include a math header (I presume you meant
> something like linux/math64.h), since we're only using do_div(),
> which is a macro from asm/div64.h (which linux/math64.h includes).
> Last time I came up with this, you recommended working on this in
> another patch.

Ah, sorry, yes, currently included asm/div64.h is fine. If we ever
want to replace that, we need to do it treewide.

--
With Best Regards,
Andy Shevchenko