On Sat, 2017-06-17 at 15:02 +0530, Praveen Kumar wrote: > The 'rb_first()', 'rb_last()', 'rb_next()' and 'rb_prev()' calls > take a pointer to an RB node or RB root. They do not change the > pointed objects, so add a 'const' qualifier in order to make life > of the users of these functions easier. > > Indeed, if I have my own constant pointer &const struct my_type *p, > and I call 'rb_next(&p->rb)', I get a GCC warning: > > warning: passing argument 1 of ‘rb_next’ discards qualifiers from > pointer target > type > > Signed-off-by: Artem Bityutskiy > Signed-off-by: David Woodhouse > Signed-off-by: Linus Torvalds > [Linux commit f4b477c47332367d35686bd2b808c2156b96d7c7] > > Ported to Xen. > > Signed-off-by: Praveen Kumar > With authorship (the From: field) fixed as Jan suggested, Reviewed-by: Dario Faggioli (The remark on the authorship applies of course to all the patches, even if I don't explicitly state it again). Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)