caused by use of makedev(major,minor++). makedev() now (since 32-bit dev_t conversion) evaluates its second argument twice.