* linux-next: build failure after merge of the pwm tree
@ 2014-08-22 21:07 Stephen Rothwell
2014-08-22 22:06 ` Thierry Reding
0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2014-08-22 21:07 UTC (permalink / raw)
To: Thierry Reding; +Cc: linux-next, linux-kernel, Andy Shevchenko
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
Hi Thierry,
After merging the pwm tree, today's linux-next build (powerpc allyesconfig)
failed like this:
drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_config':
drivers/pwm/pwm-lpss.c:81:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
ctrl = readl(lpwm->regs + PWM);
^
drivers/pwm/pwm-lpss.c:87:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
writel(ctrl, lpwm->regs + PWM);
^
Caused by commit 28160b18787b ("pwm: lpss: Properly split driver to
parts").
I have reverted that commit for today (and 06c7b5394e21 ("pwm: lpss:
pci: Move to use pcim_enable_device()") which depends on it).
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2014-08-22 21:07 linux-next: build failure after merge of the pwm tree Stephen Rothwell
@ 2014-08-22 22:06 ` Thierry Reding
2014-08-22 22:15 ` Thierry Reding
0 siblings, 1 reply; 20+ messages in thread
From: Thierry Reding @ 2014-08-22 22:06 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Andy Shevchenko
[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
On Sat, Aug 23, 2014 at 07:07:37AM +1000, Stephen Rothwell wrote:
> Hi Thierry,
>
> After merging the pwm tree, today's linux-next build (powerpc allyesconfig)
> failed like this:
>
> drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_config':
> drivers/pwm/pwm-lpss.c:81:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
> ctrl = readl(lpwm->regs + PWM);
> ^
> drivers/pwm/pwm-lpss.c:87:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
> writel(ctrl, lpwm->regs + PWM);
> ^
>
> Caused by commit 28160b18787b ("pwm: lpss: Properly split driver to
> parts").
>
> I have reverted that commit for today (and 06c7b5394e21 ("pwm: lpss:
> pci: Move to use pcim_enable_device()") which depends on it).
Ugh, that's unfortunate. I have a set of scripts I use to build-test
before pushing, but I don't usually do full allyesconfig builds. It
seems like pwm-lpss.c might only be missing a linux/io.h include. It
will likely be Monday before I find the time to properly test and fix
this, do you want me to remove the commits from the pwm/for-next branch
so you don't have to revert it again?
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2014-08-22 22:06 ` Thierry Reding
@ 2014-08-22 22:15 ` Thierry Reding
2014-08-22 22:30 ` Stephen Rothwell
0 siblings, 1 reply; 20+ messages in thread
From: Thierry Reding @ 2014-08-22 22:15 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Andy Shevchenko
[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]
On Sat, Aug 23, 2014 at 12:06:16AM +0200, Thierry Reding wrote:
> On Sat, Aug 23, 2014 at 07:07:37AM +1000, Stephen Rothwell wrote:
> > Hi Thierry,
> >
> > After merging the pwm tree, today's linux-next build (powerpc allyesconfig)
> > failed like this:
> >
> > drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_config':
> > drivers/pwm/pwm-lpss.c:81:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
> > ctrl = readl(lpwm->regs + PWM);
> > ^
> > drivers/pwm/pwm-lpss.c:87:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
> > writel(ctrl, lpwm->regs + PWM);
> > ^
> >
> > Caused by commit 28160b18787b ("pwm: lpss: Properly split driver to
> > parts").
> >
> > I have reverted that commit for today (and 06c7b5394e21 ("pwm: lpss:
> > pci: Move to use pcim_enable_device()") which depends on it).
>
> Ugh, that's unfortunate. I have a set of scripts I use to build-test
> before pushing, but I don't usually do full allyesconfig builds. It
> seems like pwm-lpss.c might only be missing a linux/io.h include. It
> will likely be Monday before I find the time to properly test and fix
> this, do you want me to remove the commits from the pwm/for-next branch
> so you don't have to revert it again?
Just confirmed that adding a linux/io.h include fixes the build. Will
push a fix in a minute.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2014-08-22 22:15 ` Thierry Reding
@ 2014-08-22 22:30 ` Stephen Rothwell
0 siblings, 0 replies; 20+ messages in thread
From: Stephen Rothwell @ 2014-08-22 22:30 UTC (permalink / raw)
To: Thierry Reding; +Cc: linux-next, linux-kernel, Andy Shevchenko
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
Hi Thierry,
On Sat, 23 Aug 2014 00:15:54 +0200 Thierry Reding <thierry.reding@gmail.com> wrote:
>
> On Sat, Aug 23, 2014 at 12:06:16AM +0200, Thierry Reding wrote:
> >
> > Ugh, that's unfortunate. I have a set of scripts I use to build-test
> > before pushing, but I don't usually do full allyesconfig builds. It
> > seems like pwm-lpss.c might only be missing a linux/io.h include. It
> > will likely be Monday before I find the time to properly test and fix
> > this, do you want me to remove the commits from the pwm/for-next branch
> > so you don't have to revert it again?
>
> Just confirmed that adding a linux/io.h include fixes the build. Will
> push a fix in a minute.
The revert would have happened automatically, but if it is fixed I will
remove it, thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* linux-next: build failure after merge of the pwm tree
@ 2019-01-12 6:01 Stephen Rothwell
2019-01-12 6:08 ` Stephen Rothwell
0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2019-01-12 6:01 UTC (permalink / raw)
To: Thierry Reding
Cc: Linux Next Mailing List, Linux Kernel Mailing List,
Uwe Kleine-König
[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]
Hi all,
[Reported by "kernelci.org bot" <bot@kernelci.org>]
After merging the pwm tree, today's linux-next build (arm64-allmodconfig)
failed like this:
In file included from drivers/pwm/pwm-imx27.c:15:
drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?
MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
^~~~~~~~~~~~~~
include/linux/module.h:213:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
extern typeof(name) __mod_##type##__##name##_device_table \
^~~~
include/linux/module.h:213:21: error: '__mod_of__imx_pwm_dt_ids_device_table' aliased to undefined symbol 'imx_pwm_dt_ids'
extern typeof(name) __mod_##type##__##name##_device_table \
^~~~~~
drivers/pwm/pwm-imx27.c:292:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
Caused by commit
5a309d380019 ("pwm: imx: Split into two drivers")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2019-01-12 6:01 Stephen Rothwell
@ 2019-01-12 6:08 ` Stephen Rothwell
2019-01-12 15:27 ` Uwe Kleine-König
0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2019-01-12 6:08 UTC (permalink / raw)
To: Thierry Reding
Cc: Linux Next Mailing List, Linux Kernel Mailing List,
Uwe Kleine-König, Mark Brown
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
Hi all,
On Sat, 12 Jan 2019 17:01:17 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> [Reported by "kernelci.org bot" <bot@kernelci.org>]
[Also reported by Mark Brown <broonie@kernel.org>]
>
> After merging the pwm tree, today's linux-next build (arm64-allmodconfig)
> failed like this:
>
> In file included from drivers/pwm/pwm-imx27.c:15:
> drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?
> MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
> ^~~~~~~~~~~~~~
> include/linux/module.h:213:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
> extern typeof(name) __mod_##type##__##name##_device_table \
> ^~~~
> include/linux/module.h:213:21: error: '__mod_of__imx_pwm_dt_ids_device_table' aliased to undefined symbol 'imx_pwm_dt_ids'
> extern typeof(name) __mod_##type##__##name##_device_table \
> ^~~~~~
> drivers/pwm/pwm-imx27.c:292:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
> MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
>
> Caused by commit
>
> 5a309d380019 ("pwm: imx: Split into two drivers")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2019-01-12 6:08 ` Stephen Rothwell
@ 2019-01-12 15:27 ` Uwe Kleine-König
0 siblings, 0 replies; 20+ messages in thread
From: Uwe Kleine-König @ 2019-01-12 15:27 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Thierry Reding, Linux Next Mailing List,
Linux Kernel Mailing List, Mark Brown
Hello,
On Sat, Jan 12, 2019 at 05:08:59PM +1100, Stephen Rothwell wrote:
> On Sat, 12 Jan 2019 17:01:17 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > [Reported by "kernelci.org bot" <bot@kernelci.org>]
>
> [Also reported by Mark Brown <broonie@kernel.org>]
And also reported by the zero-day bot
(201901110232.L51oPCXW%fengguang.wu@intel.com).
> > After merging the pwm tree, today's linux-next build (arm64-allmodconfig)
> > failed like this:
> >
> > In file included from drivers/pwm/pwm-imx27.c:15:
> > drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?
> > MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
I already asked Thierry if he can fixup my commit with
s/imx_pwm_dt_ids/pwm_imx27_dt_ids/
(as already suggested by the compiler), but it seems he didn't act on
that yet.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 20+ messages in thread
* linux-next: build failure after merge of the pwm tree
@ 2023-12-21 5:58 Stephen Rothwell
2023-12-21 9:25 ` Thierry Reding
0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2023-12-21 5:58 UTC (permalink / raw)
To: Lee Jones, Thierry Reding
Cc: Sean Young, Flavio Suligoi, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 2285 bytes --]
Hi all,
After merging the backlight tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status':
drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration]
134 | ret = pwm_apply_state(chip->pwmd, &pwmstate);
| ^~~~~~~~~~~~~~~
| pwm_apply_args
Caused by commit
c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
interacting with commit
2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
from the backlight tree.
I have appplied the following merge fix patch.
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 21 Dec 2023 16:13:37 +1100
Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C"
from the backlight tree interacting with commit
c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
from the pwm tree.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/video/backlight/mp3309c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c
index 34d71259fac1..b0d9aef6942b 100644
--- a/drivers/video/backlight/mp3309c.c
+++ b/drivers/video/backlight/mp3309c.c
@@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl)
chip->pdata->levels[brightness],
chip->pdata->levels[chip->pdata->max_brightness]);
pwmstate.enabled = true;
- ret = pwm_apply_state(chip->pwmd, &pwmstate);
+ ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
if (ret)
return ret;
@@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client)
chip->pdata->default_brightness,
chip->pdata->max_brightness);
pwmstate.enabled = true;
- ret = pwm_apply_state(chip->pwmd, &pwmstate);
+ ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
if (ret)
return dev_err_probe(chip->dev, ret,
"error setting pwm device\n");
--
2.43.0
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2023-12-21 5:58 Stephen Rothwell
@ 2023-12-21 9:25 ` Thierry Reding
2023-12-21 10:09 ` Lee Jones
0 siblings, 1 reply; 20+ messages in thread
From: Thierry Reding @ 2023-12-21 9:25 UTC (permalink / raw)
To: Lee Jones
Cc: Sean Young, Stephen Rothwell, Flavio Suligoi,
Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 2733 bytes --]
On Thu, Dec 21, 2023 at 04:58:05PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the backlight tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status':
> drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration]
> 134 | ret = pwm_apply_state(chip->pwmd, &pwmstate);
> | ^~~~~~~~~~~~~~~
> | pwm_apply_args
>
> Caused by commit
>
> c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
>
> interacting with commit
>
> 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
>
> from the backlight tree.
>
> I have appplied the following merge fix patch.
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Thu, 21 Dec 2023 16:13:37 +1100
> Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C"
>
> from the backlight tree interacting with commit
>
> c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
>
> from the pwm tree.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/video/backlight/mp3309c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c
> index 34d71259fac1..b0d9aef6942b 100644
> --- a/drivers/video/backlight/mp3309c.c
> +++ b/drivers/video/backlight/mp3309c.c
> @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl)
> chip->pdata->levels[brightness],
> chip->pdata->levels[chip->pdata->max_brightness]);
> pwmstate.enabled = true;
> - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> if (ret)
> return ret;
>
> @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client)
> chip->pdata->default_brightness,
> chip->pdata->max_brightness);
> pwmstate.enabled = true;
> - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> if (ret)
> return dev_err_probe(chip->dev, ret,
> "error setting pwm device\n");
Hi Lee,
We could exchange stable tags to make this work, but given that people
(myself included) are getting into holiday mode I'm inclined to just add
a pwm_apply_state() compatibility inline for now and then we can address
this in the new year or for the next cycle. What do you think?
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2023-12-21 9:25 ` Thierry Reding
@ 2023-12-21 10:09 ` Lee Jones
2023-12-21 12:13 ` Sean Young
0 siblings, 1 reply; 20+ messages in thread
From: Lee Jones @ 2023-12-21 10:09 UTC (permalink / raw)
To: Thierry Reding
Cc: Sean Young, Stephen Rothwell, Flavio Suligoi,
Linux Kernel Mailing List, Linux Next Mailing List
On Thu, 21 Dec 2023, Thierry Reding wrote:
> On Thu, Dec 21, 2023 at 04:58:05PM +1100, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the backlight tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status':
> > drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration]
> > 134 | ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > | ^~~~~~~~~~~~~~~
> > | pwm_apply_args
> >
> > Caused by commit
> >
> > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> >
> > interacting with commit
> >
> > 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
> >
> > from the backlight tree.
> >
> > I have appplied the following merge fix patch.
> >
> > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > Date: Thu, 21 Dec 2023 16:13:37 +1100
> > Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C"
> >
> > from the backlight tree interacting with commit
> >
> > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> >
> > from the pwm tree.
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > ---
> > drivers/video/backlight/mp3309c.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c
> > index 34d71259fac1..b0d9aef6942b 100644
> > --- a/drivers/video/backlight/mp3309c.c
> > +++ b/drivers/video/backlight/mp3309c.c
> > @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl)
> > chip->pdata->levels[brightness],
> > chip->pdata->levels[chip->pdata->max_brightness]);
> > pwmstate.enabled = true;
> > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > if (ret)
> > return ret;
> >
> > @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client)
> > chip->pdata->default_brightness,
> > chip->pdata->max_brightness);
> > pwmstate.enabled = true;
> > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > if (ret)
> > return dev_err_probe(chip->dev, ret,
> > "error setting pwm device\n");
>
> Hi Lee,
>
> We could exchange stable tags to make this work, but given that people
> (myself included) are getting into holiday mode I'm inclined to just add
> a pwm_apply_state() compatibility inline for now and then we can address
> this in the new year or for the next cycle. What do you think?
Sorry, why is this happening?
I still see support for pwm_apply_state() in -next.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2023-12-21 10:09 ` Lee Jones
@ 2023-12-21 12:13 ` Sean Young
2023-12-21 12:51 ` Lee Jones
0 siblings, 1 reply; 20+ messages in thread
From: Sean Young @ 2023-12-21 12:13 UTC (permalink / raw)
To: Lee Jones
Cc: Thierry Reding, Stephen Rothwell, Flavio Suligoi,
Linux Kernel Mailing List, Linux Next Mailing List
On Thu, Dec 21, 2023 at 10:09:50AM +0000, Lee Jones wrote:
> On Thu, 21 Dec 2023, Thierry Reding wrote:
>
> > On Thu, Dec 21, 2023 at 04:58:05PM +1100, Stephen Rothwell wrote:
> > > Hi all,
> > >
> > > After merging the backlight tree, today's linux-next build (x86_64
> > > allmodconfig) failed like this:
> > >
> > > drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status':
> > > drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration]
> > > 134 | ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > | ^~~~~~~~~~~~~~~
> > > | pwm_apply_args
> > >
> > > Caused by commit
> > >
> > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> > >
> > > interacting with commit
> > >
> > > 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
> > >
> > > from the backlight tree.
> > >
> > > I have appplied the following merge fix patch.
> > >
> > > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > > Date: Thu, 21 Dec 2023 16:13:37 +1100
> > > Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C"
> > >
> > > from the backlight tree interacting with commit
> > >
> > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> > >
> > > from the pwm tree.
> > >
> > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > ---
> > > drivers/video/backlight/mp3309c.c | 4 ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c
> > > index 34d71259fac1..b0d9aef6942b 100644
> > > --- a/drivers/video/backlight/mp3309c.c
> > > +++ b/drivers/video/backlight/mp3309c.c
> > > @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl)
> > > chip->pdata->levels[brightness],
> > > chip->pdata->levels[chip->pdata->max_brightness]);
> > > pwmstate.enabled = true;
> > > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > > if (ret)
> > > return ret;
> > >
> > > @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client)
> > > chip->pdata->default_brightness,
> > > chip->pdata->max_brightness);
> > > pwmstate.enabled = true;
> > > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > > if (ret)
> > > return dev_err_probe(chip->dev, ret,
> > > "error setting pwm device\n");
> >
> > Hi Lee,
> >
> > We could exchange stable tags to make this work, but given that people
> > (myself included) are getting into holiday mode I'm inclined to just add
> > a pwm_apply_state() compatibility inline for now and then we can address
> > this in the new year or for the next cycle. What do you think?
>
> Sorry, why is this happening?
>
> I still see support for pwm_apply_state() in -next.
Not any more:
$ git grep pwm_apply_state linux-next/master
$
Sean
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2023-12-21 12:13 ` Sean Young
@ 2023-12-21 12:51 ` Lee Jones
0 siblings, 0 replies; 20+ messages in thread
From: Lee Jones @ 2023-12-21 12:51 UTC (permalink / raw)
To: Sean Young
Cc: Thierry Reding, Stephen Rothwell, Flavio Suligoi,
Linux Kernel Mailing List, Linux Next Mailing List
On Thu, 21 Dec 2023, Sean Young wrote:
> On Thu, Dec 21, 2023 at 10:09:50AM +0000, Lee Jones wrote:
> > On Thu, 21 Dec 2023, Thierry Reding wrote:
> >
> > > On Thu, Dec 21, 2023 at 04:58:05PM +1100, Stephen Rothwell wrote:
> > > > Hi all,
> > > >
> > > > After merging the backlight tree, today's linux-next build (x86_64
> > > > allmodconfig) failed like this:
> > > >
> > > > drivers/video/backlight/mp3309c.c: In function 'mp3309c_bl_update_status':
> > > > drivers/video/backlight/mp3309c.c:134:23: error: implicit declaration of function 'pwm_apply_state'; did you mean 'pwm_apply_args'? [-Werror=implicit-function-declaration]
> > > > 134 | ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > > | ^~~~~~~~~~~~~~~
> > > > | pwm_apply_args
> > > >
> > > > Caused by commit
> > > >
> > > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> > > >
> > > > interacting with commit
> > > >
> > > > 2e914516a58c ("backlight: mp3309c: Add support for MPS MP3309C")
> > > >
> > > > from the backlight tree.
> > > >
> > > > I have appplied the following merge fix patch.
> > > >
> > > > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > > > Date: Thu, 21 Dec 2023 16:13:37 +1100
> > > > Subject: [PATCH] fix up for "backlight: mp3309c: Add support for MPS MP3309C"
> > > >
> > > > from the backlight tree interacting with commit
> > > >
> > > > c748a6d77c06 ("pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()")
> > > >
> > > > from the pwm tree.
> > > >
> > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > > ---
> > > > drivers/video/backlight/mp3309c.c | 4 ++--
> > > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git a/drivers/video/backlight/mp3309c.c b/drivers/video/backlight/mp3309c.c
> > > > index 34d71259fac1..b0d9aef6942b 100644
> > > > --- a/drivers/video/backlight/mp3309c.c
> > > > +++ b/drivers/video/backlight/mp3309c.c
> > > > @@ -131,7 +131,7 @@ static int mp3309c_bl_update_status(struct backlight_device *bl)
> > > > chip->pdata->levels[brightness],
> > > > chip->pdata->levels[chip->pdata->max_brightness]);
> > > > pwmstate.enabled = true;
> > > > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > > > if (ret)
> > > > return ret;
> > > >
> > > > @@ -393,7 +393,7 @@ static int mp3309c_probe(struct i2c_client *client)
> > > > chip->pdata->default_brightness,
> > > > chip->pdata->max_brightness);
> > > > pwmstate.enabled = true;
> > > > - ret = pwm_apply_state(chip->pwmd, &pwmstate);
> > > > + ret = pwm_apply_might_sleep(chip->pwmd, &pwmstate);
> > > > if (ret)
> > > > return dev_err_probe(chip->dev, ret,
> > > > "error setting pwm device\n");
> > >
> > > Hi Lee,
> > >
> > > We could exchange stable tags to make this work, but given that people
> > > (myself included) are getting into holiday mode I'm inclined to just add
> > > a pwm_apply_state() compatibility inline for now and then we can address
> > > this in the new year or for the next cycle. What do you think?
> >
> > Sorry, why is this happening?
> >
> > I still see support for pwm_apply_state() in -next.
>
> Not any more:
>
> $ git grep pwm_apply_state linux-next/master
> $
Okay, that's changed since this morning.
I think the easiest solution would be to take Stephen's patch.
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 20+ messages in thread
* linux-next: build failure after merge of the pwm tree
@ 2025-10-27 1:51 ` Stephen Rothwell
2025-10-27 8:11 ` Uwe Kleine-König
2025-10-27 8:36 ` Michal Wilczynski
0 siblings, 2 replies; 20+ messages in thread
From: Stephen Rothwell @ 2025-10-27 1:51 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Michal Wilczynski, Danilo Krummrich, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]
Hi all,
After merging the pwm tree, today's linux-next build (x86_64 allmodconfig)
failed like this:
error[E0277]: the trait bound `core::result::Result<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>: PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not satisfied
--> drivers/pwm/pwm_th1520.rs:331:10
|
331 | ) -> Result<Pin<KBox<Self>>> {
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
= help: the trait `PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not implemented for `Result<Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, Error>`
but trait `PinInit<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>` is implemented for it
= help: for that trait implementation, expected `core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>`, found `Th1520PwmPlatformDriver`
note: required by a bound in `kernel::platform::Driver::{synthetic#0}`
--> rust/kernel/platform.rs:196:15
|
196 | ) -> impl PinInit<Self, Error>;
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `Driver::{synthetic#0}`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.
Caused by commit
fb3957af9ec6 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
presumably interacting with something merged earlier in my tree.
If someone could provide me with an appropriate merge resolution, I will
apply it.
I have used the pwm tree from next-20251024 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 1:51 ` Stephen Rothwell
@ 2025-10-27 8:11 ` Uwe Kleine-König
2025-10-27 9:38 ` Danilo Krummrich
2025-10-27 13:40 ` Uwe Kleine-König
2025-10-27 8:36 ` Michal Wilczynski
1 sibling, 2 replies; 20+ messages in thread
From: Uwe Kleine-König @ 2025-10-27 8:11 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Michal Wilczynski, Danilo Krummrich, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 2766 bytes --]
Hello Stephen,
thanks for your report (and creating next each day!)
On Mon, Oct 27, 2025 at 12:51:48PM +1100, Stephen Rothwell wrote:
> After merging the pwm tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> error[E0277]: the trait bound `core::result::Result<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>: PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not satisfied
> --> drivers/pwm/pwm_th1520.rs:331:10
> |
> 331 | ) -> Result<Pin<KBox<Self>>> {
> | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
> |
> = help: the trait `PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not implemented for `Result<Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, Error>`
> but trait `PinInit<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>` is implemented for it
> = help: for that trait implementation, expected `core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>`, found `Th1520PwmPlatformDriver`
> note: required by a bound in `kernel::platform::Driver::{synthetic#0}`
> --> rust/kernel/platform.rs:196:15
> |
> 196 | ) -> impl PinInit<Self, Error>;
> | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `Driver::{synthetic#0}`
>
> error: aborting due to 1 previous error
>
> For more information about this error, try `rustc --explain E0277`.
>
> Caused by commit
>
> fb3957af9ec6 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
>
> presumably interacting with something merged earlier in my tree.
> If someone could provide me with an appropriate merge resolution, I will
> apply it.
Having no relevant clue about Rust, I bisected that. The bisection points to
0242623384c7 ("rust: driver: let probe() return impl PinInit<Self, Error>").
Translating the changes that commit does to
drivers/gpu/drm/nova/driver.rs for drivers/pwm/pwm_th1520.rs results in:
diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
index 0ad38b78be85..dd554574adc8 100644
--- a/drivers/pwm/pwm_th1520.rs
+++ b/drivers/pwm/pwm_th1520.rs
@@ -328,7 +328,7 @@ impl platform::Driver for Th1520PwmPlatformDriver {
fn probe(
pdev: &platform::Device<Core>,
_id_info: Option<&Self::IdInfo>,
- ) -> Result<Pin<KBox<Self>>> {
+ ) -> impl PinInit<Self, Error> {
let dev = pdev.as_ref();
let request = pdev.io_request_by_index(0).ok_or(ENODEV)?;
@@ -365,7 +365,7 @@ fn probe(
pwm::Registration::register(dev, chip)?;
- Ok(KBox::new(Th1520PwmPlatformDriver, GFP_KERNEL)?.into())
+ Ok(Th1520PwmPlatformDriver)
}
}
which builds again.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 1:51 ` Stephen Rothwell
2025-10-27 8:11 ` Uwe Kleine-König
@ 2025-10-27 8:36 ` Michal Wilczynski
1 sibling, 0 replies; 20+ messages in thread
From: Michal Wilczynski @ 2025-10-27 8:36 UTC (permalink / raw)
To: Stephen Rothwell, Uwe Kleine-König
Cc: Danilo Krummrich, Boqun Feng, Daniel Almeida, Peter Colberg,
Lyude Paul, Miguel Ojeda, Linux Kernel Mailing List,
Linux Next Mailing List
On 10/27/25 02:51, Stephen Rothwell wrote:
> Hi all,
>
> After merging the pwm tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> error[E0277]: the trait bound `core::result::Result<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>: PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not satisfied
> --> drivers/pwm/pwm_th1520.rs:331:10
> |
> 331 | ) -> Result<Pin<KBox<Self>>> {
> | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
> |
> = help: the trait `PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not implemented for `Result<Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, Error>`
> but trait `PinInit<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>` is implemented for it
> = help: for that trait implementation, expected `core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>`, found `Th1520PwmPlatformDriver`
> note: required by a bound in `kernel::platform::Driver::{synthetic#0}`
> --> rust/kernel/platform.rs:196:15
> |
> 196 | ) -> impl PinInit<Self, Error>;
> | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `Driver::{synthetic#0}`
>
> error: aborting due to 1 previous error
>
> For more information about this error, try `rustc --explain E0277`.
>
> Caused by commit
>
> fb3957af9ec6 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
>
> presumably interacting with something merged earlier in my tree.
> If someone could provide me with an appropriate merge resolution, I will
> apply it.
>
> I have used the pwm tree from next-20251024 for today.
>
Hi,
I believe this would fix the problem:
diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
index 0ad38b78be85..dd554574adc8 100644
--- a/drivers/pwm/pwm_th1520.rs
+++ b/drivers/pwm/pwm_th1520.rs
@@ -328,7 +328,7 @@ impl platform::Driver for Th1520PwmPlatformDriver {
fn probe(
pdev: &platform::Device<Core>,
_id_info: Option<&Self::IdInfo>,
- ) -> Result<Pin<KBox<Self>>> {
+ ) -> impl PinInit<Self, Error> {
let dev = pdev.as_ref();
let request = pdev.io_request_by_index(0).ok_or(ENODEV)?;
@@ -365,7 +365,7 @@ fn probe(
pwm::Registration::register(dev, chip)?;
- Ok(KBox::new(Th1520PwmPlatformDriver, GFP_KERNEL)?.into())
+ Ok(Th1520PwmPlatformDriver)
}
}
This is caused by change in fn probe, caused by this commit [1].
[1] - https://lore.kernel.org/all/20251016125544.15559-1-dakr@kernel.org/
Best regards,
--
Michal Wilczynski <m.wilczynski@samsung.com>
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 8:11 ` Uwe Kleine-König
@ 2025-10-27 9:38 ` Danilo Krummrich
2025-10-28 1:51 ` Stephen Rothwell
2025-10-27 13:40 ` Uwe Kleine-König
1 sibling, 1 reply; 20+ messages in thread
From: Danilo Krummrich @ 2025-10-27 9:38 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Stephen Rothwell, Michal Wilczynski, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Greg Kroah-Hartman
On Mon Oct 27, 2025 at 9:11 AM CET, Uwe Kleine-König wrote:
> Translating the changes that commit does to
> drivers/gpu/drm/nova/driver.rs for drivers/pwm/pwm_th1520.rs results in:
>
> diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
> index 0ad38b78be85..dd554574adc8 100644
> --- a/drivers/pwm/pwm_th1520.rs
> +++ b/drivers/pwm/pwm_th1520.rs
> @@ -328,7 +328,7 @@ impl platform::Driver for Th1520PwmPlatformDriver {
> fn probe(
> pdev: &platform::Device<Core>,
> _id_info: Option<&Self::IdInfo>,
> - ) -> Result<Pin<KBox<Self>>> {
> + ) -> impl PinInit<Self, Error> {
> let dev = pdev.as_ref();
> let request = pdev.io_request_by_index(0).ok_or(ENODEV)?;
>
> @@ -365,7 +365,7 @@ fn probe(
>
> pwm::Registration::register(dev, chip)?;
>
> - Ok(KBox::new(Th1520PwmPlatformDriver, GFP_KERNEL)?.into())
> + Ok(Th1520PwmPlatformDriver)
> }
> }
Yes, this looks good.
Thanks,
Danilo
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 8:11 ` Uwe Kleine-König
2025-10-27 9:38 ` Danilo Krummrich
@ 2025-10-27 13:40 ` Uwe Kleine-König
2025-10-27 13:49 ` Danilo Krummrich
1 sibling, 1 reply; 20+ messages in thread
From: Uwe Kleine-König @ 2025-10-27 13:40 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Michal Wilczynski, Danilo Krummrich, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Stephen Rothwell
[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]
Hello Greg,
On Mon, Oct 27, 2025 at 09:11:35AM +0100, Uwe Kleine-König wrote:
> On Mon, Oct 27, 2025 at 12:51:48PM +1100, Stephen Rothwell wrote:
> > After merging the pwm tree, today's linux-next build (x86_64 allmodconfig)
> > failed like this:
> >
> > error[E0277]: the trait bound `core::result::Result<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>: PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not satisfied
> > --> drivers/pwm/pwm_th1520.rs:331:10
> > |
> > 331 | ) -> Result<Pin<KBox<Self>>> {
> > | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
> > |
> > = help: the trait `PinInit<Th1520PwmPlatformDriver, kernel::error::Error>` is not implemented for `Result<Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, Error>`
> > but trait `PinInit<core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>, kernel::error::Error>` is implemented for it
> > = help: for that trait implementation, expected `core::pin::Pin<Box<Th1520PwmPlatformDriver, Kmalloc>>`, found `Th1520PwmPlatformDriver`
> > note: required by a bound in `kernel::platform::Driver::{synthetic#0}`
> > --> rust/kernel/platform.rs:196:15
> > |
> > 196 | ) -> impl PinInit<Self, Error>;
> > | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `Driver::{synthetic#0}`
> >
> > error: aborting due to 1 previous error
> >
> > For more information about this error, try `rustc --explain E0277`.
> >
> > Caused by commit
> >
> > fb3957af9ec6 ("pwm: Add Rust driver for T-HEAD TH1520 SoC")
> >
> > presumably interacting with something merged earlier in my tree.
> > If someone could provide me with an appropriate merge resolution, I will
> > apply it.
>
> Having no relevant clue about Rust, I bisected that. The bisection points to
> 0242623384c7 ("rust: driver: let probe() return impl PinInit<Self, Error>").
To make it easy for Linus to merge my pwm tree during the next merge
window, it would be great if it could contain the conflict resolution.
Can I assume that this commit is stable, will be part of your next MR
and are you ok if I merge it into my tree with the fix for the conflict?
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 13:40 ` Uwe Kleine-König
@ 2025-10-27 13:49 ` Danilo Krummrich
0 siblings, 0 replies; 20+ messages in thread
From: Danilo Krummrich @ 2025-10-27 13:49 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Greg Kroah-Hartman, Michal Wilczynski, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Stephen Rothwell
On Mon Oct 27, 2025 at 2:40 PM CET, Uwe Kleine-König wrote:
> To make it easy for Linus to merge my pwm tree during the next merge
> window, it would be great if it could contain the conflict resolution.
> Can I assume that this commit is stable, will be part of your next MR
> and are you ok if I merge it into my tree with the fix for the conflict?
I think the conflict is trivial enough to resolve, so I don't think Linus would
mind.
Anyways, the commit is stable, so feel free to go ahead. Also note, when I send
the PR (which I will likely do) I usually send a very early PR to Linus, right
before the merge window opens.
- Danilo
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-27 9:38 ` Danilo Krummrich
@ 2025-10-28 1:51 ` Stephen Rothwell
2025-12-05 3:33 ` Stephen Rothwell
0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2025-10-28 1:51 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Danilo Krummrich, Michal Wilczynski, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]
Hi all,
On Mon, 27 Oct 2025 10:38:05 +0100 "Danilo Krummrich" <dakr@kernel.org> wrote:
>
> On Mon Oct 27, 2025 at 9:11 AM CET, Uwe Kleine-König wrote:
> > Translating the changes that commit does to
> > drivers/gpu/drm/nova/driver.rs for drivers/pwm/pwm_th1520.rs results in:
> >
> > diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
> > index 0ad38b78be85..dd554574adc8 100644
> > --- a/drivers/pwm/pwm_th1520.rs
> > +++ b/drivers/pwm/pwm_th1520.rs
> > @@ -328,7 +328,7 @@ impl platform::Driver for Th1520PwmPlatformDriver {
> > fn probe(
> > pdev: &platform::Device<Core>,
> > _id_info: Option<&Self::IdInfo>,
> > - ) -> Result<Pin<KBox<Self>>> {
> > + ) -> impl PinInit<Self, Error> {
> > let dev = pdev.as_ref();
> > let request = pdev.io_request_by_index(0).ok_or(ENODEV)?;
> >
> > @@ -365,7 +365,7 @@ fn probe(
> >
> > pwm::Registration::register(dev, chip)?;
> >
> > - Ok(KBox::new(Th1520PwmPlatformDriver, GFP_KERNEL)?.into())
> > + Ok(Th1520PwmPlatformDriver)
> > }
> > }
>
> Yes, this looks good.
OK, I have applied that to linux-next from today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: linux-next: build failure after merge of the pwm tree
2025-10-28 1:51 ` Stephen Rothwell
@ 2025-12-05 3:33 ` Stephen Rothwell
0 siblings, 0 replies; 20+ messages in thread
From: Stephen Rothwell @ 2025-12-05 3:33 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Danilo Krummrich, Michal Wilczynski, Boqun Feng, Daniel Almeida,
Peter Colberg, Lyude Paul, Miguel Ojeda,
Linux Kernel Mailing List, Linux Next Mailing List, Alice Ryhl,
Viresh Kumar, Alexandre Courbot, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
Hi all,
On Tue, 28 Oct 2025 12:51:42 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Mon, 27 Oct 2025 10:38:05 +0100 "Danilo Krummrich" <dakr@kernel.org> wrote:
> >
> > On Mon Oct 27, 2025 at 9:11 AM CET, Uwe Kleine-König wrote:
> > > Translating the changes that commit does to
> > > drivers/gpu/drm/nova/driver.rs for drivers/pwm/pwm_th1520.rs results in:
> > >
> > > diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
> > > index 0ad38b78be85..dd554574adc8 100644
> > > --- a/drivers/pwm/pwm_th1520.rs
> > > +++ b/drivers/pwm/pwm_th1520.rs
> > > @@ -328,7 +328,7 @@ impl platform::Driver for Th1520PwmPlatformDriver {
> > > fn probe(
> > > pdev: &platform::Device<Core>,
> > > _id_info: Option<&Self::IdInfo>,
> > > - ) -> Result<Pin<KBox<Self>>> {
> > > + ) -> impl PinInit<Self, Error> {
> > > let dev = pdev.as_ref();
> > > let request = pdev.io_request_by_index(0).ok_or(ENODEV)?;
> > >
> > > @@ -365,7 +365,7 @@ fn probe(
> > >
> > > pwm::Registration::register(dev, chip)?;
> > >
> > > - Ok(KBox::new(Th1520PwmPlatformDriver, GFP_KERNEL)?.into())
> > > + Ok(Th1520PwmPlatformDriver)
> > > }
> > > }
> >
> > Yes, this looks good.
>
> OK, I have applied that to linux-next from today.
This now needs to be applied to the merge of the modules tree.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2025-12-05 3:33 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-22 21:07 linux-next: build failure after merge of the pwm tree Stephen Rothwell
2014-08-22 22:06 ` Thierry Reding
2014-08-22 22:15 ` Thierry Reding
2014-08-22 22:30 ` Stephen Rothwell
-- strict thread matches above, loose matches on Subject: below --
2019-01-12 6:01 Stephen Rothwell
2019-01-12 6:08 ` Stephen Rothwell
2019-01-12 15:27 ` Uwe Kleine-König
2023-12-21 5:58 Stephen Rothwell
2023-12-21 9:25 ` Thierry Reding
2023-12-21 10:09 ` Lee Jones
2023-12-21 12:13 ` Sean Young
2023-12-21 12:51 ` Lee Jones
[not found] <CGME20251027015241eucas1p1784b974d0c150e8c3513f32401205669@eucas1p1.samsung.com>
2025-10-27 1:51 ` Stephen Rothwell
2025-10-27 8:11 ` Uwe Kleine-König
2025-10-27 9:38 ` Danilo Krummrich
2025-10-28 1:51 ` Stephen Rothwell
2025-12-05 3:33 ` Stephen Rothwell
2025-10-27 13:40 ` Uwe Kleine-König
2025-10-27 13:49 ` Danilo Krummrich
2025-10-27 8:36 ` Michal Wilczynski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox