devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] srcpos: increase MAX_SRCFILE_DEPTH
@ 2021-01-12 23:13 Ignacy Kuchciński
       [not found] ` <CAJq_QG0BHBQYT4RnVi0QSxM_vFK2K-5k1eTpJnwZQtWbKnCBJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Ignacy Kuchciński @ 2021-01-12 23:13 UTC (permalink / raw)
  To: david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+, jdl-CYoMK+44s/E
  Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

Some kernels require the MAX_SRCFILE_DEPTH to be bigger than 100, and
since it's just a sanity check to detect infinite recursion it shouldn't
hurt increasing it to 200.

Signed-off-by: Ignacy Kuchciński <ignacykuchcinski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 srcpos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpos.c b/srcpos.c
index f5205fb..4fdb22a 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -20,7 +20,7 @@ struct search_path {
 static struct search_path *search_path_head, **search_path_tail;

 /* Detect infinite include recursion. */
-#define MAX_SRCFILE_DEPTH     (100)
+#define MAX_SRCFILE_DEPTH     (200)
 static int srcfile_depth; /* = 0 */

 static char *get_dirname(const char *path)
-- 
2.30.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] srcpos: increase MAX_SRCFILE_DEPTH
       [not found] ` <CAJq_QG0BHBQYT4RnVi0QSxM_vFK2K-5k1eTpJnwZQtWbKnCBJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-01-13  1:06   ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2021-01-13  1:06 UTC (permalink / raw)
  To: Ignacy Kuchciński
  Cc: jdl-CYoMK+44s/E, devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

On Wed, Jan 13, 2021 at 12:13:23AM +0100, Ignacy Kuchciński wrote:
> Some kernels require the MAX_SRCFILE_DEPTH to be bigger than 100,

Wow...

> and
> since it's just a sanity check to detect infinite recursion it shouldn't
> hurt increasing it to 200.

Fair enough, applied.

> 
> Signed-off-by: Ignacy Kuchciński <ignacykuchcinski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
>  srcpos.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/srcpos.c b/srcpos.c
> index f5205fb..4fdb22a 100644
> --- a/srcpos.c
> +++ b/srcpos.c
> @@ -20,7 +20,7 @@ struct search_path {
>  static struct search_path *search_path_head, **search_path_tail;
> 
>  /* Detect infinite include recursion. */
> -#define MAX_SRCFILE_DEPTH     (100)
> +#define MAX_SRCFILE_DEPTH     (200)
>  static int srcfile_depth; /* = 0 */
> 
>  static char *get_dirname(const char *path)

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-13  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12 23:13 [PATCH] srcpos: increase MAX_SRCFILE_DEPTH Ignacy Kuchciński
     [not found] ` <CAJq_QG0BHBQYT4RnVi0QSxM_vFK2K-5k1eTpJnwZQtWbKnCBJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-01-13  1:06   ` David Gibson

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).