Re: rfc: ARRAY_AND_SIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's mostly used like this:

static struct ltq_pmx_func falcon_funcs[] = {
	{"rst",         ARRAY_AND_SIZE(ltq_rst_grps)},
	{"ntr",         ARRAY_AND_SIZE(ltq_ntr_grps)},
	{"mdio",        ARRAY_AND_SIZE(ltq_mdio_grps)},
	{"led",         ARRAY_AND_SIZE(ltq_bled_grps)},
	{"asc",         ARRAY_AND_SIZE(ltq_asc_grps)},
	{"spi",         ARRAY_AND_SIZE(ltq_spi_grps)},
	{"i2c",         ARRAY_AND_SIZE(ltq_i2c_grps)},
	{"jtag",        ARRAY_AND_SIZE(ltq_jtag_grps)},
	{"slic",        ARRAY_AND_SIZE(ltq_slic_grps)},
	{"pcm",         ARRAY_AND_SIZE(ltq_pcm_grps)},
};

That's fine.

There are a few times when it's used as function parameters, which
looks like garbage.  If I were the maintainer, I would change it,
but I'm not so it's not worth arguing with maintainers about
something they did deliberately.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux