Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 558c05db authored by John Stultz's avatar John Stultz
Browse files

of: Fix build warnings



In commit d6cb004d80 (of: fix CONFIG_CMDLINE_EXTEND),
the types of some variables in early_init_dt_scan_chosen()
were modified, which results in build warnings.

This patch resets the unsigned long to an int, and re-adds
the const to the char*.

Change-Id: Ie60ae92b4552e453cf477dd83f42838b3f95975e
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 409b642d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -964,8 +964,8 @@ static const char *config_cmdline = "";
int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
				     int depth, void *data)
{
	unsigned long l = 0;
	char *p = NULL;
	int l = 0;
	const char *p = NULL;
	char *cmdline = data;

	pr_debug("search \"chosen\", depth: %d, uname: %s\n", depth, uname);