Hello Alex, On Tue, Sep 22, 2026 at 07:37:53AM -0500, Alex Elder wrote: > On 9/20/26 2:39 PM, Uwe Kleine-König wrote: > > On Fri, Sep 18, 2026 at 11:52:32AM -0500, Alex Elder wrote: > > > +#include <linux/bits.h> > > > +#include <linux/clk-provider.h> > > > +#include <linux/mfd/syscon.h> > > > +#include <linux/mod_devicetable.h> > > > +#include <linux/module.h> > > > +#include <linux/platform_device.h> > > > +#include <linux/regmap.h> > > > +#include <linux/reset-controller.h> > > > > Please rely on linux/platform_device.h to provide of_device_id and drop > > including <linux/mod_devicetable.h>. (If you want to go full iwyu, > > include <linux/device-id/of.h> instead.) > > In general I would like to "go full iwyu" but have never heard > it expressed that way. Can you recommend a tool available that > will help me do that?
There is `apt install iwyu`, but I only tried that shortly and didn't manage to make it work nicely with-in the kernel. > It looks like "mod_devicetable.h" doesn't help much unless I > need struct_cpu_feature (which I do not), so I'll include "of.h". Yeah, and for struct cpu_feature there is https://lore.kernel.org/all/ef103a4b9e1cd7477fa52ee347c4ec301354fba9.1789988540.git.u.kleine-koe...@baylibre.com/ . > > > +static const struct of_device_id tc9564_clk_ids[] = { > > > + { .compatible = "toshiba,tc9564-clock" }, > > > + { }, > > > +}; > > > > Drop the trailing comma after the list terminator please. > > OK. Only for the list terminator, right, because nothing > will ever follow it? Non-empty final initializer is OK > to have a comma as far as you're concerned? correct. A non-empty last item even should have a comma. Best regards Uwe
signature.asc
Description: PGP signature

