diff options
author | Ignacy Kuchciński <ignacykuchcinski@gmail.com> | 2021-01-13 00:13:23 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-01-13 12:05:26 +1100 |
commit | 64990a272e8f7cbbdfd5a53f752b5a0db7ddf41c (patch) | |
tree | fc9702112e812e7c076b0ea432b8f55c503a559b | |
parent | 163f0469bf2ed8b2fe5aa15bc796b93c70243ddc (diff) | |
download | dtc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |