* [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver
@ 2023-08-01 10:58 Arnd Bergmann
2023-08-01 22:20 ` Andi Shyti
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Arnd Bergmann @ 2023-08-01 10:58 UTC (permalink / raw)
To: Andi Shyti
Cc: Arnd Bergmann, Michael S. Tsirkin, Jason Wang, Xuan Zhuo,
Stefano Garzarella, Christophe JAILLET, Feng Liu, Viresh Kumar,
Paul Cercueil, Jonathan Cameron, virtualization, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
A cleanup in the virtio i2c caused a build failure:
drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver' has no member named 'freeze'
drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver' has no member named 'restore'
Change the structure definition to allow this cleanup to
be applied everywhere.
Fixes: 73d546c76235b ("i2c: virtio: Remove #ifdef guards for PM related functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
include/linux/virtio.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index 0f3b9017dff40..9b94e2c9bbb81 100644
--- a/include/linux/virtio.h
+++ b/include/linux/virtio.h
@@ -218,10 +218,8 @@ struct virtio_driver {
void (*scan)(struct virtio_device *dev);
void (*remove)(struct virtio_device *dev);
void (*config_changed)(struct virtio_device *dev);
-#ifdef CONFIG_PM
int (*freeze)(struct virtio_device *dev);
int (*restore)(struct virtio_device *dev);
-#endif
};
static inline struct virtio_driver *drv_to_virtio(struct device_driver *drv)
--
2.39.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver
2023-08-01 10:58 [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver Arnd Bergmann
@ 2023-08-01 22:20 ` Andi Shyti
2023-08-01 23:06 ` Paul Cercueil
2023-08-02 20:10 ` Andi Shyti
2 siblings, 0 replies; 5+ messages in thread
From: Andi Shyti @ 2023-08-01 22:20 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Arnd Bergmann, Michael S. Tsirkin, Jason Wang, Xuan Zhuo,
Stefano Garzarella, Christophe JAILLET, Feng Liu, Viresh Kumar,
Paul Cercueil, Jonathan Cameron, virtualization, linux-kernel
Hi Arnd,
On Tue, Aug 01, 2023 at 12:58:15PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> A cleanup in the virtio i2c caused a build failure:
>
> drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver' has no member named 'freeze'
> drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver' has no member named 'restore'
>
> Change the structure definition to allow this cleanup to
> be applied everywhere.
>
> Fixes: 73d546c76235b ("i2c: virtio: Remove #ifdef guards for PM related functions")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> include/linux/virtio.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/linux/virtio.h b/include/linux/virtio.h
> index 0f3b9017dff40..9b94e2c9bbb81 100644
> --- a/include/linux/virtio.h
> +++ b/include/linux/virtio.h
> @@ -218,10 +218,8 @@ struct virtio_driver {
> void (*scan)(struct virtio_device *dev);
> void (*remove)(struct virtio_device *dev);
> void (*config_changed)(struct virtio_device *dev);
> -#ifdef CONFIG_PM
> int (*freeze)(struct virtio_device *dev);
> int (*restore)(struct virtio_device *dev);
> -#endif
oh yes! Thank you!
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Andi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver
2023-08-01 10:58 [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver Arnd Bergmann
2023-08-01 22:20 ` Andi Shyti
@ 2023-08-01 23:06 ` Paul Cercueil
2023-08-01 23:42 ` Andi Shyti
2023-08-02 20:10 ` Andi Shyti
2 siblings, 1 reply; 5+ messages in thread
From: Paul Cercueil @ 2023-08-01 23:06 UTC (permalink / raw)
To: Arnd Bergmann, Andi Shyti
Cc: Arnd Bergmann, Michael S. Tsirkin, Jason Wang, Xuan Zhuo,
Stefano Garzarella, Christophe JAILLET, Feng Liu, Viresh Kumar,
Jonathan Cameron, virtualization, linux-kernel
Hi,
Le mardi 01 août 2023 à 12:58 +0200, Arnd Bergmann a écrit :
> From: Arnd Bergmann <arnd@arndb.de>
>
> A cleanup in the virtio i2c caused a build failure:
>
> drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver'
> has no member named 'freeze'
> drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver'
> has no member named 'restore'
>
> Change the structure definition to allow this cleanup to
> be applied everywhere.
>
> Fixes: 73d546c76235b ("i2c: virtio: Remove #ifdef guards for PM
> related functions")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thanks, I didn't realize it was merged already.
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> include/linux/virtio.h | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/include/linux/virtio.h b/include/linux/virtio.h
> index 0f3b9017dff40..9b94e2c9bbb81 100644
> --- a/include/linux/virtio.h
> +++ b/include/linux/virtio.h
> @@ -218,10 +218,8 @@ struct virtio_driver {
> void (*scan)(struct virtio_device *dev);
> void (*remove)(struct virtio_device *dev);
> void (*config_changed)(struct virtio_device *dev);
> -#ifdef CONFIG_PM
> int (*freeze)(struct virtio_device *dev);
> int (*restore)(struct virtio_device *dev);
> -#endif
> };
>
> static inline struct virtio_driver *drv_to_virtio(struct
> device_driver *drv)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver
2023-08-01 23:06 ` Paul Cercueil
@ 2023-08-01 23:42 ` Andi Shyti
0 siblings, 0 replies; 5+ messages in thread
From: Andi Shyti @ 2023-08-01 23:42 UTC (permalink / raw)
To: Paul Cercueil
Cc: Arnd Bergmann, Arnd Bergmann, Michael S. Tsirkin, Jason Wang,
Xuan Zhuo, Stefano Garzarella, Christophe JAILLET, Feng Liu,
Viresh Kumar, Jonathan Cameron, virtualization, linux-kernel,
Wolfram Sang
Hi,
On Wed, Aug 02, 2023 at 01:06:47AM +0200, Paul Cercueil wrote:
> Hi,
>
> Le mardi 01 août 2023 à 12:58 +0200, Arnd Bergmann a écrit :
> > From: Arnd Bergmann <arnd@arndb.de>
> >
> > A cleanup in the virtio i2c caused a build failure:
> >
> > drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver'
> > has no member named 'freeze'
> > drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver'
> > has no member named 'restore'
> >
> > Change the structure definition to allow this cleanup to
> > be applied everywhere.
> >
> > Fixes: 73d546c76235b ("i2c: virtio: Remove #ifdef guards for PM
> > related functions")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> Thanks, I didn't realize it was merged already.
>
> Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Actually this fix is taken from linux-next, it's not in
Wolfram's branch, it's in mine. I can still force-push a fixed
version in Paul's original patch in order to avoid breaking the
bisectability.
Andi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver
2023-08-01 10:58 [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver Arnd Bergmann
2023-08-01 22:20 ` Andi Shyti
2023-08-01 23:06 ` Paul Cercueil
@ 2023-08-02 20:10 ` Andi Shyti
2 siblings, 0 replies; 5+ messages in thread
From: Andi Shyti @ 2023-08-02 20:10 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Andi Shyti, Arnd Bergmann, Michael S. Tsirkin, Jason Wang,
Xuan Zhuo, Stefano Garzarella, Christophe JAILLET, Feng Liu,
Viresh Kumar, Paul Cercueil, Jonathan Cameron, virtualization,
linux-kernel
Hi
On Tue, 01 Aug 2023 12:58:15 +0200, Arnd Bergmann wrote:
> A cleanup in the virtio i2c caused a build failure:
>
> drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver' has no member named 'freeze'
> drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver' has no member named 'restore'
>
> Change the structure definition to allow this cleanup to
> be applied everywhere.
>
> [...]
Applied to i2c/andi-for-next on
https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git
Please note that this patch may still undergo further evaluation
and the final decision will be made in collaboration with
Wolfram.
Thank you,
Andi
Patches applied
===============
[1/1] virtio: Remove PM #ifdef guards to fix i2c driver
commit: 37097e6ffd22bb9ec0d87dfe5c6c3eec4d5b5421
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-02 23:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 10:58 [PATCH] virtio: Remove PM #ifdef guards to fix i2c driver Arnd Bergmann
2023-08-01 22:20 ` Andi Shyti
2023-08-01 23:06 ` Paul Cercueil
2023-08-01 23:42 ` Andi Shyti
2023-08-02 20:10 ` Andi Shyti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®