[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8161e59d-2122-562c-dcc7-f772ddbcbdf@linux.intel.com>
Date: Wed, 27 Dec 2023 17:54:50 +0200 (EET)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
cc: linux-pci@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Rob Herring <robh@...nel.org>,
Krzysztof Wilczyński <kw@...ux.com>,
Igor Mammedov <imammedo@...hat.com>, Lukas Wunner <lukas@...ner.de>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
"Rafael J . Wysocki" <rafael@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4/7] resource: Use typedef for alignf callback
On Fri, 22 Dec 2023, Andy Shevchenko wrote:
> > +/**
> > + * resource_alignf - Resource alignment callback
> > + * @data: Private data used by the callback
> > + * @res: Resource candidate range (an empty resource slot)
> > + * @size: The minimum size of the empty slot
> > + * @align: Alignment from the constraints
> > + *
> > + * Callback allows calculating resource placement and alignment beyond min,
> > + * max, and align fields in the struct resource_constraint.
> > + *
> > + * Return: Start address for the resource.
> > + */
> > +typedef resource_size_t (*resource_alignf)(void *data,
> > + const struct resource *res,
> > + resource_size_t size,
> > + resource_size_t align);
>
> Never saw typedef kernel-doc before, so hopefully this will be rendered
> just fine.
This was a good point. It seems that one has to prefix the name with
typedef like this:
/**
* typedef resource_alignf - Resource alignment callback
...otherwise scripts/kernel-doc attempts to parse it as a function
kerneldoc.
--
i.
Powered by blists - more mailing lists