staging: kernel.h: Prevent macro expantion bug in container_of_safe()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Apr 2018 05:58:27 +0000 (08:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 07:17:34 +0000 (09:17 +0200)
commit227abcc6da7b803e380f034d6772ea0861612340
treeda31117a7adf47048b796df3c7fb0fac3962824d
parent2bbdd81567c6113e1aa929080365084e31422d02
staging: kernel.h: Prevent macro expantion bug in container_of_safe()

There aren't many users of this so it doesn't cause a problem, but we
obviously want to use "__mptr" here instead of "ptr" to prevent the
parameter from being executed twice.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kernel.h