This patch fixes the warnings and error reported by clang compiler on Linux. Reported-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: Sujith Sankar <ssujith@cisco.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>