On Mon, Aug 4, 2014 at 5:02 PM, Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> wrote: >> > + GFP_KERNEL); >> > + if (!rchan->irqname) >> > + return -ENOMEM; >> > + sprintf(rchan->irqname, "%s:%u", dev_name(dmac->dev), index); >> >> We really need devm_kasprintf() (coding it up)... >> >> > +static int rcar_dmac_probe(struct platform_device *pdev) >> > +{ >> > >> > + dmac->irqname = devm_kmalloc(dmac->dev, >> > strlen(dev_name(dmac->dev)) + 7, + >> > GFP_KERNEL); >> > + if (!dmac->irqname) >> > + return -ENOMEM; >> > + sprintf(dmac->irqname, "%s:error", dev_name(&pdev->dev)); >> >> We really need devm_kasprintf()... > > I'll update the driver to use it once it will be upstream :-) Apparently someone already implemented it during my holidays, and it's now upstream, causing rebase conflicts in my local tree... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html