[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHRSSEy7dU_x=1i5HiOfLOJ7_ZoR0m+9LM6RHDdhNNhfjDW+xA@mail.gmail.com>
Date: Tue, 5 Jul 2022 09:26:54 -0700
From: Todd Kjos <tkjos@...gle.com>
To: daniel.lezcano@...exp.org
Cc: Lukasz Luba <lukasz.luba@....com>, daniel.lezcano@...aro.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
khilman@...libre.com, abailon@...libre.com,
Amit Kucheria <amitk@...nel.org>,
Zhang Rui <rui.zhang@...el.com>, Wei Wang <wvw@...gle.com>,
rafael@...nel.org
Subject: Re: [PATCH v3 05/12] thermal/core: Remove unneeded EXPORT_SYMBOLS
On Mon, Jul 4, 2022 at 2:14 PM Daniel Lezcano <daniel.lezcano@...exp.org> wrote:
>
> On 04/07/2022 09:35, Lukasz Luba wrote:
> > Hi Daniel,
> >
> > (+Todd and Wei on CC)
> >
> >
> > On 7/3/22 19:30, Daniel Lezcano wrote:
>
> [ ... ]
>
> >> }
> >> -EXPORT_SYMBOL(get_tz_trend);
>
> [ ... ]
>
> >> }
> >> -EXPORT_SYMBOL(thermal_cdev_update);
> >
> > I wouldn't remove that export. I can see in my Pixel6 modules dir, that
> > it's called in 7 places.
> >
> > I assume that in Android world this is common use.
>
> It is not possible to do changes taking into consideration out of tree
> code. Moreover there is logically no good reason to use the
> thermal_cdev_update() function from outside of the thermal core code.
>
I agree. It is totally appropriate for the export to be removed for
these functions if the exports are only for out of tree code. If they
are needed for Android, they can be carried in the Android kernel
trees.
Powered by blists - more mailing lists