* [ptxdist] [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly
@ 2019-08-29 16:05 Sultan Alsawaf
2019-08-30 10:27 ` Roland Hieber
0 siblings, 1 reply; 2+ messages in thread
From: Sultan Alsawaf @ 2019-08-29 16:05 UTC (permalink / raw)
Cc: sultan, ptxdist
From: Sultan Alsawaf <sultan@kerneltoast.com>
Architecture-specific uaccess.h headers can have dependencies on
linux/uaccess.h (i.e., VERIFY_WRITE), so it cannot be included directly.
Since linux/uaccess.h includes asm/uaccess.h, just do that instead.
This fixes compile errors with certain kernels and architectures.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
---
src/backfire/backfire.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backfire/backfire.c b/src/backfire/backfire.c
index aaf9c4a..a8ac9f5 100644
--- a/src/backfire/backfire.c
+++ b/src/backfire/backfire.c
@@ -30,8 +30,8 @@
#include <linux/miscdevice.h>
#include <linux/proc_fs.h>
#include <linux/spinlock.h>
+#include <linux/uaccess.h>
-#include <asm/uaccess.h>
#include <asm/system.h>
#define BACKFIRE_MINOR MISC_DYNAMIC_MINOR
--
2.23.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly
2019-08-29 16:05 [ptxdist] [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly Sultan Alsawaf
@ 2019-08-30 10:27 ` Roland Hieber
0 siblings, 0 replies; 2+ messages in thread
From: Roland Hieber @ 2019-08-30 10:27 UTC (permalink / raw)
To: sultan; +Cc: ptxdist
Hi Sultan,
On Thu, Aug 29, 2019 at 09:05:51AM -0700, Sultan Alsawaf wrote:
> From: Sultan Alsawaf <sultan@kerneltoast.com>
>
> Architecture-specific uaccess.h headers can have dependencies on
> linux/uaccess.h (i.e., VERIFY_WRITE), so it cannot be included directly.
> Since linux/uaccess.h includes asm/uaccess.h, just do that instead.
>
> This fixes compile errors with certain kernels and architectures.
>
> Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
> ---
> src/backfire/backfire.c | 2 +-
Sorry, there is no such file in the PTXdist git repository [1]. I guess
you want to apply that patch to the rt-tests package, so it should live
somewhere in patches/rt-tests-1.0/, next to a series file. See
the section "Patching Packages" [2] in the manual for a guide.
In that case, it's also good style to submit the patch to the upstream
project, in this case rt-tests, so we can remove it in PTXdist somewhen
in the future :)
[1]: https://git.pengutronix.de/cgit/ptxdist/
[2]: https://www.ptxdist.org/doc/dev_manual.html#patching-packages
- Roland
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/backfire/backfire.c b/src/backfire/backfire.c
> index aaf9c4a..a8ac9f5 100644
> --- a/src/backfire/backfire.c
> +++ b/src/backfire/backfire.c
> @@ -30,8 +30,8 @@
> #include <linux/miscdevice.h>
> #include <linux/proc_fs.h>
> #include <linux/spinlock.h>
> +#include <linux/uaccess.h>
>
> -#include <asm/uaccess.h>
> #include <asm/system.h>
>
> #define BACKFIRE_MINOR MISC_DYNAMIC_MINOR
> --
> 2.23.0
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Roland Hieber | r.hieber@pengutronix.de |
Pengutronix e.K. | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-30 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 16:05 [ptxdist] [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly Sultan Alsawaf
2019-08-30 10:27 ` Roland Hieber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox