Browse Source

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>
main
Ignacy Kuchciński 4 years ago committed by David Gibson
parent
commit
64990a272e
  1. 2
      srcpos.c

2
srcpos.c

@ -20,7 +20,7 @@ struct search_path { @@ -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)

Loading…
Cancel
Save