scripts: gdb: redefine MS_RDONLY
PATCH v2 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.
While at that, also remove <linux/fs.h> since it's no longer necessary.
Fixes e262e32d6bde "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled"
Signed-off-by Felipe Balbi <[email protected]>
---
Changes since v1:
- keep alphabetical order of included headers
- remove <linux/fs.h>
scripts/gdb/linux/constants.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/gdb/linux/constants.py.in +1 -1
@@ -12,9 +12,9 @@ * */ -#include <linux/fs.h> #include <linux/mount.h> #include <linux/of_fdt.h> +#include <uapi/linux/mount.h> /* We need to stringify expanded macros so that they can be parsed */
Signature · 1 line
2.20.1