On Sat, May 14, 2016 at 02:31:04PM -0700, Linus Torvalds wrote: > On Sat, May 14, 2016 at 11:24 AM, Linus Torvalds > <torva...@linux-foundation.org> wrote: > > > > > > - net->ct.slabname = kasprintf(GFP_KERNEL, "nf_conntrack_%p", net); > > + net->ct.slabname = kasprintf(GFP_KERNEL, "nf_conntrack_%llu", > > + (u64)atomic64_inc_return(&unique_id)); > > Oh well. I suspect this is going to cause a new warning on alpha and > ia64 and possibly others. > > "u64" is indeed "unsigned long long" on x86 and many other > architectures, but on alpga and ia64 it's just "unsigned long". > > So that case should have been to "long long". I detest how there isn't > a "64-bit size" printf specifier.
Why simply not cast the atomic to (unsigned long long) instead of (u64) so that %llu always matches ? Willy