net/thunderx: fix build with clang
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 27 Jun 2016 16:16:06 +0000 (21:46 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Jun 2016 10:36:57 +0000 (12:36 +0200)
commit714b319f1168f77e551d7772a0bb7ecc99cf03cf
tree53b08484da43e8f9ee426529f17f7cb078cacd04
parent6e1429737089f6eff2561ee3623f6a23ff67b7d1
net/thunderx: fix build with clang

Fix the following error with clang
error: unused function 'nicvf_mbox_msg_str'

The function nicvf_mbox_msg_str() may be unused, based on DEBUG
compilation option selected. Mark __attribute__((unused)) on
this function, to inform compiler that this function may be unused

Fixes: 966e225c2396 ("net/thunderx/base: add mailbox for PF/VF communication")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/thunderx/base/nicvf_mbox.c