On Sun, 2014-05-25 at 20:21 +0200, Manfred Spraul wrote:Thanks. I'll try to remember to really run checkpatch instead of assuming what it might report.
+ */
+ printk_once(KERN_INFO "semctl(GETNCNT/GETZCNT) is since 3.16 Single " \
+ "Unix Specification compliant.\n" \
+ "The task %d triggered the difference, " \
+ "watch for misbehavior.", current->pid);
Unnecessary line continuations.
Missing terminating newline after "misbehavior"
Ideally coalesced or broken at linebreaks like:
pr_info_once("semctl(GETNCNT/GETZCNT) is Single Unix Specification compliant since kernel v3.16\n"
"Task %d triggered the difference, watch for misbehavior\n",
current->pid);
To fully check if there is a difference would mean that the old code and the new code run in parallel.if (sop->sem_num != semnum)Should the printk_once (which could be pr_info_once or _ratelimited
return 0;
or maybe even emitted at KERN_DEBUG) be done only when
the return is 1?