]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: fix sparse warning about different address spaces
authorMario Bambagini <mario.bambagini@gmail.com>
Wed, 1 Mar 2017 23:57:09 +0000 (00:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Mar 2017 18:56:08 +0000 (19:56 +0100)
commit7c14a67962aa63244991267269732577490405b5
treefcb4a9bc54b3ae71691b28915673f16fed59fe45
parentc657b1a6fac35873de6ac9507cfb1c8cfa9d1a88
staging: lustre: fix sparse warning about different address spaces

fixed the following sparse warning by adding proper cast:
drivers/staging//lustre/lustre/obdclass/obd_config.c:1055:74: warning: incorrect type in argument 2 (different address spaces)
drivers/staging//lustre/lustre/obdclass/obd_config.c:1055:74:    expected char const [noderef] <asn:1>*<noident>
drivers/staging//lustre/lustre/obdclass/obd_config.c:1055:74:    got char *[assigned] sval

Signed-off-by: Mario Bambagini <mario.bambagini@gmail.com>
Acked-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/obd_config.c