aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgnacy Kuchciński <ignacykuchcinski@gmail.com>2021-01-13 00:13:23 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2021-01-13 12:05:26 +1100
commit64990a272e8f7cbbdfd5a53f752b5a0db7ddf41c (patch)
treefc9702112e812e7c076b0ea432b8f55c503a559b
parent163f0469bf2ed8b2fe5aa15bc796b93c70243ddc (diff)
downloaddtc-64990a272e8f7cbbdfd5a53f752b5a0db7ddf41c.tar.gz
srcpos: increase MAX_SRCFILE_DEPTH
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@gmail.com> Message-Id: <CAJq_QG0BHBQYT4RnVi0QSxM_vFK2K-5k1eTpJnwZQtWbKnCBJA@mail.gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--srcpos.c2
1 files changed, 1 insertions, 1 deletions
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)