* [PATCH] char: tpm: Prepare cleanup of powerpc's asm/prom.h
[not found] <7a522d9029737d7a1fb513529659321ed62d50d9.1648895070.git.christophe.leroy@csgroup.eu>
@ 2022-04-02 10:29 ` Christophe Leroy
2022-04-03 10:23 ` Jarkko Sakkinen
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Leroy @ 2022-04-02 10:29 UTC (permalink / raw)
To: Arnd Bergmann, Greg Kroah-Hartman, Peter Huewe, Jarkko Sakkinen,
Jason Gunthorpe, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea
Cc: Christophe Leroy, linux-kernel, linuxppc-dev, linux-integrity,
linux-arm-kernel
powerpc's asm/prom.h brings some headers that it doesn't
need itself.
In order to clean it up, first add missing headers in
users of asm/prom.h
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
drivers/char/tpm/tpm_atmel.h | 2 --
drivers/char/tpm/tpm_ibmvtpm.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/char/tpm/tpm_atmel.h b/drivers/char/tpm/tpm_atmel.h
index ba37e77e8af3..959f7cce8301 100644
--- a/drivers/char/tpm/tpm_atmel.h
+++ b/drivers/char/tpm/tpm_atmel.h
@@ -26,8 +26,6 @@ struct tpm_atmel_priv {
#ifdef CONFIG_PPC64
-#include <asm/prom.h>
-
#define atmel_getb(priv, offset) readb(priv->iobase + offset)
#define atmel_putb(val, priv, offset) writeb(val, priv->iobase + offset)
#define atmel_request_region request_mem_region
diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c
index 3af4c07a9342..1180cce7067a 100644
--- a/drivers/char/tpm/tpm_ibmvtpm.c
+++ b/drivers/char/tpm/tpm_ibmvtpm.c
@@ -20,7 +20,6 @@
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/wait.h>
-#include <asm/prom.h>
#include "tpm.h"
#include "tpm_ibmvtpm.h"
--
2.35.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] char: tpm: Prepare cleanup of powerpc's asm/prom.h
2022-04-02 10:29 ` [PATCH] char: tpm: Prepare cleanup of powerpc's asm/prom.h Christophe Leroy
@ 2022-04-03 10:23 ` Jarkko Sakkinen
2022-04-15 8:44 ` Christophe Leroy
0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Sakkinen @ 2022-04-03 10:23 UTC (permalink / raw)
To: Christophe Leroy
Cc: Alexandre Belloni, Arnd Bergmann, Greg Kroah-Hartman,
linux-kernel, Jason Gunthorpe, linux-integrity, Peter Huewe,
linuxppc-dev, Claudiu Beznea, linux-arm-kernel
On Sat, Apr 02, 2022 at 12:29:19PM +0200, Christophe Leroy wrote:
> powerpc's asm/prom.h brings some headers that it doesn't
> need itself.
>
> In order to clean it up, first add missing headers in
> users of asm/prom.h
>
> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
I don't understand this. It changes nothing as far as kernel is concerned.
> ---
> drivers/char/tpm/tpm_atmel.h | 2 --
> drivers/char/tpm/tpm_ibmvtpm.c | 1 -
> 2 files changed, 3 deletions(-)
>
> diff --git a/drivers/char/tpm/tpm_atmel.h b/drivers/char/tpm/tpm_atmel.h
> index ba37e77e8af3..959f7cce8301 100644
> --- a/drivers/char/tpm/tpm_atmel.h
> +++ b/drivers/char/tpm/tpm_atmel.h
> @@ -26,8 +26,6 @@ struct tpm_atmel_priv {
>
> #ifdef CONFIG_PPC64
>
> -#include <asm/prom.h>
> -
> #define atmel_getb(priv, offset) readb(priv->iobase + offset)
> #define atmel_putb(val, priv, offset) writeb(val, priv->iobase + offset)
> #define atmel_request_region request_mem_region
> diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c
> index 3af4c07a9342..1180cce7067a 100644
> --- a/drivers/char/tpm/tpm_ibmvtpm.c
> +++ b/drivers/char/tpm/tpm_ibmvtpm.c
> @@ -20,7 +20,6 @@
> #include <linux/spinlock.h>
> #include <linux/interrupt.h>
> #include <linux/wait.h>
> -#include <asm/prom.h>
>
> #include "tpm.h"
> #include "tpm_ibmvtpm.h"
> --
> 2.35.1
>
BR, Jarkko
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] char: tpm: Prepare cleanup of powerpc's asm/prom.h
2022-04-03 10:23 ` Jarkko Sakkinen
@ 2022-04-15 8:44 ` Christophe Leroy
0 siblings, 0 replies; 3+ messages in thread
From: Christophe Leroy @ 2022-04-15 8:44 UTC (permalink / raw)
To: Jarkko Sakkinen
Cc: Alexandre Belloni, Arnd Bergmann, Greg Kroah-Hartman,
linux-kernel@vger.kernel.org, Jason Gunthorpe,
linux-integrity@vger.kernel.org, Peter Huewe,
linuxppc-dev@lists.ozlabs.org, Claudiu Beznea,
linux-arm-kernel@lists.infradead.org
Le 03/04/2022 à 12:23, Jarkko Sakkinen a écrit :
> On Sat, Apr 02, 2022 at 12:29:19PM +0200, Christophe Leroy wrote:
>> powerpc's asm/prom.h brings some headers that it doesn't
>> need itself.
>>
>> In order to clean it up, first add missing headers in
>> users of asm/prom.h
>>
>> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
>
> I don't understand this. It changes nothing as far as kernel is concerned.
I sent v2 with a more detailed description.
Thanks
Christophe
>
>> ---
>> drivers/char/tpm/tpm_atmel.h | 2 --
>> drivers/char/tpm/tpm_ibmvtpm.c | 1 -
>> 2 files changed, 3 deletions(-)
>>
>> diff --git a/drivers/char/tpm/tpm_atmel.h b/drivers/char/tpm/tpm_atmel.h
>> index ba37e77e8af3..959f7cce8301 100644
>> --- a/drivers/char/tpm/tpm_atmel.h
>> +++ b/drivers/char/tpm/tpm_atmel.h
>> @@ -26,8 +26,6 @@ struct tpm_atmel_priv {
>>
>> #ifdef CONFIG_PPC64
>>
>> -#include <asm/prom.h>
>> -
>> #define atmel_getb(priv, offset) readb(priv->iobase + offset)
>> #define atmel_putb(val, priv, offset) writeb(val, priv->iobase + offset)
>> #define atmel_request_region request_mem_region
>> diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c
>> index 3af4c07a9342..1180cce7067a 100644
>> --- a/drivers/char/tpm/tpm_ibmvtpm.c
>> +++ b/drivers/char/tpm/tpm_ibmvtpm.c
>> @@ -20,7 +20,6 @@
>> #include <linux/spinlock.h>
>> #include <linux/interrupt.h>
>> #include <linux/wait.h>
>> -#include <asm/prom.h>
>>
>> #include "tpm.h"
>> #include "tpm_ibmvtpm.h"
>> --
>> 2.35.1
>>
>
> BR, Jarkko
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-15 8:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <7a522d9029737d7a1fb513529659321ed62d50d9.1648895070.git.christophe.leroy@csgroup.eu>
2022-04-02 10:29 ` [PATCH] char: tpm: Prepare cleanup of powerpc's asm/prom.h Christophe Leroy
2022-04-03 10:23 ` Jarkko Sakkinen
2022-04-15 8:44 ` Christophe Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).