On 11 March 2017 at 23:02, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > On Sat, Mar 11, 2017 at 2:57 PM, Dibyendu Majumdar > <mobile@xxxxxxxxxxxxxxx> wrote: >> >> Why the division? That seems incorrect to me. > > Pointer differences are not byte differences, but index differences. > So with an "int *" you need to divide the difference by 4 (you don't > see the subtraction, since subtracting NULL ends up being a no-op). > Okay that makes sense. Regards -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html