Re: [PATCH v3 14/14] lib/test_printf.c: test dentry printing

From: Andrew Morton
Date: Thu Dec 03 2015 - 19:19:15 EST


On Thu, 3 Dec 2015 21:51:13 +0100 Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> wrote:

> +static struct dentry test_dentry[4] __initdata = {
> + { .d_parent = &test_dentry[0],
> + .d_name = { .len = 3, .name = test_dentry[0].d_iname },
> + .d_iname = "foo" },

Confused. qstr has no .len.

lib/test_printf.c:332: error: unknown field 'len' specified in initializer

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/