scripts: gdb: redefine MS_RDONLY
PATCH 1/1 scripts: gdb: redefine MS_RDONLY
Since commit e262e32d6bde0f77fb0c95d977482fc872c51996 "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled", the generated gdb scripts can't be used anymore. That commit moved the definition of MS_* flags but forgot to update gdb scripts to use the new location. This patch includes <uapi/linux/mount.h> to constants.py.in so gdb scripts are functional again.
--- scripts/gdb/linux/constants.py.in | 1 + 1 file changed, 1 insertion(+)
scripts/gdb/linux/constants.py.in +1 -0
@@ -13,6 +13,7 @@ */ #include <linux/fs.h> +#include <uapi/linux/mount.h> #include <linux/mount.h> #include <linux/of_fdt.h>
Signature · 1 line
2.20.1
Hi Felipe,
Thank you for the patch,
Quoted 18 lines · Felipe Balbi
Since commit
e262e32d6bde0f77fb0c95d977482fc872c51996"vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled", the generated gdb scripts can't be used anymore. That commit moved the definition of MS_* flags but forgot to update gdb scripts to use the new location. This patch includes <uapi/linux/mount.h> to constants.py.in so gdb scripts are functional again.Fixes e262e32d6bde "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled"Signed-off-by Felipe Balbi <[email protected]>--- scripts/gdb/linux/constants.py.in | 1 + 1 file changed, 1 insertion(+)scripts/gdb/linux/constants.py.in +0
-0
scripts/gdb/linux/constants.py.in line 15
Quoted 3 lines
scripts/gdb/linux/constants.py.in +0
-0@@ -13,6 +13,7 @@ */ #include <linux/fs.h>
Do we still need linux/fs.h?
scripts/gdb/linux/constants.py.in line 16
Quoted 1 line
scripts/gdb/linux/constants.py.in +1
-0+#include <uapi/linux/mount.h>
Perhaps this should go at the end to maintain alphabetical ordering?
scripts/gdb/linux/constants.py.in line 19
Quoted 3 lines
scripts/gdb/linux/constants.py.in +0
-0#include <linux/mount.h> #include <linux/of_fdt.h>
We can see from Dan's patch - that the comment above the value definitions also needs to be updated...
Felipe, you won the patch race - how would you like to handle this? Will you resubmit with changes? or should we just add the missing Fixes: tag to Dan's patch?
Signature · 3 lines
Regards -- Kieran
Hi,
Quoted 25 lines · Kieran Bingham
Hi Felipe,
Thank you for the patch,
Quoted 20 lines · Felipe Balbi
Since commit
e262e32d6bde0f77fb0c95d977482fc872c51996"vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled", the generated gdb scripts can't be used anymore. That commit moved the definition of MS_* flags but forgot to update gdb scripts to use the new location. This patch includes <uapi/linux/mount.h> to constants.py.in so gdb scripts are functional again.Fixes e262e32d6bde "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled"Signed-off-by Felipe Balbi <[email protected]>--- scripts/gdb/linux/constants.py.in | 1 + 1 file changed, 1 insertion(+)scripts/gdb/linux/constants.py.in +0
-0@@ -13,6 +13,7 @@ */
Quoted 3 lines
scripts/gdb/linux/constants.py.in line 15
Quoted 1 line
scripts/gdb/linux/constants.py.in +0
-0#include <linux/fs.h>Do we still need
linux/fs.h?
don't know enough about the tool to judge that. Just added the minimal change to get it working again.
Quoted 8 lines
scripts/gdb/linux/constants.py.in line 16
Quoted 1 line
scripts/gdb/linux/constants.py.in +1
-0+#include <uapi/linux/mount.h>Perhaps this should go at the end to maintain alphabetical ordering?
scripts/gdb/linux/constants.py.in line 19
Quoted 3 lines
scripts/gdb/linux/constants.py.in +0
-0#include <linux/mount.h> #include <linux/of_fdt.h>
Quoted 6 lines
We can see from Dan's patch - that the comment above the value definitions also needs to be updated...
Felipe, you won the patch race - how would you like to handle this? Will you resubmit with changes? or should we just add the missing Fixes: tag to Dan's patch?
I don't mind either way, as long as the GDB scripts are working upstream :-)
Signature · 1 line
balbi