mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
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>
This commit is contained in:
parent
163f0469bf
commit
64990a272e
1 changed files with 1 additions and 1 deletions
2
srcpos.c
2
srcpos.c
|
@ -20,7 +20,7 @@ struct search_path {
|
||||||
static struct search_path *search_path_head, **search_path_tail;
|
static struct search_path *search_path_head, **search_path_tail;
|
||||||
|
|
||||||
/* Detect infinite include recursion. */
|
/* Detect infinite include recursion. */
|
||||||
#define MAX_SRCFILE_DEPTH (100)
|
#define MAX_SRCFILE_DEPTH (200)
|
||||||
static int srcfile_depth; /* = 0 */
|
static int srcfile_depth; /* = 0 */
|
||||||
|
|
||||||
static char *get_dirname(const char *path)
|
static char *get_dirname(const char *path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue