* [RFC] alpha: use asm-generic/io.h
@ 2015-08-01 0:38 Luis R. Rodriguez
2015-08-01 1:00 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Luis R. Rodriguez @ 2015-08-01 0:38 UTC (permalink / raw)
To: rth
Cc: ink, mattst88, will.deacon, linux-alpha, linux-kernel, linux,
paul.gortmaker, mingo, linux-next, Luis R. Rodriguez
From: "Luis R. Rodriguez" <mcgrof@suse.com>
Since alpha does not include asm-generic/io.h it would mean
alpha folks have to always carefully monitor asm-generic patches
and before they get merged make sure their own arch implementation
solution gets added. By using asm-generic/io.h alpha gets sensible
defaults, in this case ioremap_uc() would be one example, where
by default it would return NULL, so not implemented. When alpha
folks get a chance then they can add the appropriate
implementation.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
The easy solution *for now* is to just do:
#define ioremap_uc ioremap_nocache
*But* that would have to be done for any other asm-generic/io.h collateral
evolution, this on the other hand, would get it right for alpha from the
get-go -- so I ask -- can this please be tested and if it is OK then consider
it be merged?
If we can't add asm-generic/io.h then the above define replacement would
be the way to go.
arch/alpha/include/asm/io.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
index f05bdb4b1cb9..16a5bda42750 100644
--- a/arch/alpha/include/asm/io.h
+++ b/arch/alpha/include/asm/io.h
@@ -581,4 +581,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
#endif /* __KERNEL__ */
+#include <asm-generic/io.h>
+
#endif /* __ALPHA_IO_H */
--
2.3.2.209.gd67f9d5.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC] alpha: use asm-generic/io.h
2015-08-01 0:38 [RFC] alpha: use asm-generic/io.h Luis R. Rodriguez
@ 2015-08-01 1:00 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2015-08-01 1:00 UTC (permalink / raw)
To: Luis R. Rodriguez, rth
Cc: ink, mattst88, will.deacon, linux-alpha, linux-kernel,
paul.gortmaker, mingo, linux-next, Luis R. Rodriguez
On 07/31/2015 05:38 PM, Luis R. Rodriguez wrote:
> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>
> Since alpha does not include asm-generic/io.h it would mean
> alpha folks have to always carefully monitor asm-generic patches
> and before they get merged make sure their own arch implementation
> solution gets added. By using asm-generic/io.h alpha gets sensible
> defaults, in this case ioremap_uc() would be one example, where
> by default it would return NULL, so not implemented. When alpha
> folks get a chance then they can add the appropriate
> implementation.
>
> Reported-by: Guenter Roeck <linux@roeck-us.net>
> Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
> Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Doesn't work. Gives me lots of duplicate symbols.
Guenter
> ---
>
> The easy solution *for now* is to just do:
>
> #define ioremap_uc ioremap_nocache
>
> *But* that would have to be done for any other asm-generic/io.h collateral
> evolution, this on the other hand, would get it right for alpha from the
> get-go -- so I ask -- can this please be tested and if it is OK then consider
> it be merged?
>
> If we can't add asm-generic/io.h then the above define replacement would
> be the way to go.
>
> arch/alpha/include/asm/io.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
> index f05bdb4b1cb9..16a5bda42750 100644
> --- a/arch/alpha/include/asm/io.h
> +++ b/arch/alpha/include/asm/io.h
> @@ -581,4 +581,6 @@ extern void outsl (unsigned long port, const void *src, unsigned long count);
>
> #endif /* __KERNEL__ */
>
> +#include <asm-generic/io.h>
> +
> #endif /* __ALPHA_IO_H */
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-01 1:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-01 0:38 [RFC] alpha: use asm-generic/io.h Luis R. Rodriguez
2015-08-01 1:00 ` Guenter Roeck
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).