From: Tom Rini <trini@konsulko.com>
To: Troy Kisky <troykiskyboundary@gmail.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
sjg@chromium.org, festevam@gmail.com, marex@denx.de,
gary.bisson@lairdconnect.com
Subject: Re: CONFIG_IS_ENABLED vs IS_ENABLED
Date: Mon, 30 Jan 2023 14:44:16 -0500 [thread overview]
Message-ID: <Y9geEEO8RMiDskbv@bill-the-cat> (raw)
In-Reply-To: <CAO46J5U3J-+RQddFZu-GPa4YFgTP3+r43r9hjxvwK+tWgs+eRA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2327 bytes --]
On Mon, Jan 30, 2023 at 10:51:03AM -0800, Troy Kisky wrote:
> Hi Tom
>
>
> On Mon, Jan 30, 2023 at 9:18 AM Tom Rini <trini@konsulko.com> wrote:
>
> > On Sat, Jan 28, 2023 at 09:25:54AM -0800, Troy Kisky wrote:
> > > Thanks Tom,
> > >
> > > I cleaned up the PR based on the CI results. Here's my current changes.
> > >
> > > Author: Troy Kisky <troy.kisky@boundarydevices.com>
> > > Date: Fri Jan 27 11:03:11 2023 -0800
> > >
> > > dm: device-internal: use EVENT instead of DM_EVENT, because
> > > event_notify is built for EVENT
> > >
> > > Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> > >
> > > diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h
> > > index f31c4702086..2e725aa9416 100644
> > > --- a/include/dm/device-internal.h
> > > +++ b/include/dm/device-internal.h
> > > @@ -431,7 +431,7 @@ static inline void devres_release_all(struct udevice
> > > *dev)
> > >
> > > static inline int device_notify(const struct udevice *dev, enum event_t
> > > type)
> > > {
> > > -#if CONFIG_IS_ENABLED(DM_EVENT)
> > > +#if CONFIG_IS_ENABLED(EVENT)
> > > return event_notify(type, &dev, sizeof(dev));
> > > #else
> > > return 0;
> >
> > Given 448e2b6327d0 ("event: Correct dependencies on the EVENT
> > framework") I'm a little worried about this change here and want to be
> > extra sure it doesn't break something inadvertently.
>
>
> event_notify is in common/event, and the Makefile has
> obj-$(CONFIG_$(SPL_TPL_)EVENT) += event.o
>
> So, the other option is to change the Makefile line to
> obj-$(CONFIG_$(SPL_TPL_)DM_EVENT) += event.o
>
> I don't know which is best.
Right, event_notify is part of the general event framework. The function
above, device_notify, is part of DM_EVENT. This should probably be
IS_ENABLED and not CONFIG_IS_ENABLED.
> > Aside from that,
> > are you able to post your series?
>
>
>
> I was hoping each of the maintainers could run the script and see if the
> patches for their area make sense.
> I don't need my sign-off on any of the patches.
Ah. I'm not sure how likely that is to happen.
> And incorporate your checking script
> > in to .gitlab-ci.yml / .azure-pipline.yml ?
> >
>
> I'll post a patch for that as an RFC
OK.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-01-30 19:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 17:26 CONFIG_IS_ENABLED vs IS_ENABLED Troy Kisky
2023-01-26 17:34 ` Tom Rini
2023-01-28 17:25 ` Troy Kisky
2023-01-30 17:18 ` Tom Rini
2023-01-30 18:51 ` Troy Kisky
2023-01-30 19:44 ` Tom Rini [this message]
2023-01-30 22:16 ` Troy Kisky
2023-01-31 14:16 ` Simon Glass
-- strict thread matches above, loose matches on Subject: below --
2023-01-24 22:52 Troy Kisky
2023-01-24 23:31 ` Troy Kisky
2023-01-25 1:36 ` Simon Glass
2023-01-26 17:21 ` Tom Rini
2023-01-26 18:04 ` Simon Glass
2023-01-26 18:16 ` Tom Rini
2023-01-26 21:29 ` Simon Glass
2023-01-26 21:33 ` Tom Rini
2023-01-27 14:30 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9geEEO8RMiDskbv@bill-the-cat \
--to=trini@konsulko.com \
--cc=festevam@gmail.com \
--cc=gary.bisson@lairdconnect.com \
--cc=marex@denx.de \
--cc=sjg@chromium.org \
--cc=troykiskyboundary@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox