Cc: Jan Engelhardt <jengelh@...>, Rusty Russell <rusty@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, Jeff Garzik <jeff@...>, Tejun Heo <htejun@...>
No. This is bad because it gives the impression that it takes only two
essential arguments which is not the case.
This is better. I prefer naming the rest args instead of using __VA_ARGS__:
#define kthread_create(threadfn, data, namefmt, fmtargs...) ({ \
... \
__kthread_create((void *)_threadfn, (data), namefmt, ## fmtargs) \
})
but I think that is just a matter of taste.
Hannes
--