On Thu, Aug 02, 2007 at 03:45:45PM -0700, Brandon Philips wrote: > /** > + * devm_kcalloc - resource-managed kcalloc > + * @dev: Device to allocate memory for > + * @n: number of elements. > + * @size: element size. > + * @flags: the type of memory to allocate. > + */ > +inline void * devm_kcalloc(struct device * dev, size_t n, size_t size, > + gfp_t flags) > +{ > + if (n != 0 && size > ULONG_MAX / n) > + return NULL; > + return devm_kzalloc(dev, n * size, flags); > +} > +EXPORT_SYMBOL_GPL(devm_kcalloc);
Please drop inline. It's meaningless. Other than that, Acked-by: Tejun Heo <[EMAIL PROTECTED]> -- tejun - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html