]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9498170af18d68b37322d732e973286534e14442
treeda31117a7adf47048b796df3c7fb0fac3962824d
parent8d98e12c364bc9c9203985a2f838e21da7934e91
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