[dpdk-dev] e1000: unused variable warnings with clang

2016-07-01 Thread Wiles, Keith

On 7/1/16, 12:16 PM, "dev on behalf of Wiles, Keith"  wrote:

Well, after make sure I had CCACHE off and having the RTE_SDK variable set 
correctly, it does appear we have a problem building DPDK/e1000 directory with 
CLANG on my Ubuntu 16.04 updated as of today. If someone could please verify 
the if this is something in my system. Using T=x86_64-native-linuxapp-gcc does 
not have the same problem.

Using the following build line:

--

Sorry my bad, this is NOT a problem. Today is not my day ? woke up at 4:30am



[dpdk-dev] e1000: unused variable warnings with clang

2016-07-01 Thread Wiles, Keith
Well, after make sure I had CCACHE off and having the RTE_SDK variable set 
correctly, it does appear we have a problem building DPDK/e1000 directory with 
CLANG on my Ubuntu 16.04 updated as of today. If someone could please verify 
the if this is something in my system. Using T=x86_64-native-linuxapp-gcc does 
not have the same problem.

Using the following build line:

rkwiles at supermicro (master):~/.../intel/dpdk$ CCACHE_DISABLE=true make 
install T=x86_64-native-linuxapp-clang -j
Configuration done
== Build lib
== Build lib/librte_compat
== Build lib/librte_eal
== Build lib/librte_net
== Build lib/librte_eal/common
  SYMLINK-FILE include/rte_compat.h
  SYMLINK-FILE include/rte_ip.h

---Snip---

  CC igb_ethdev.o
  CC em_ethdev.o
  CC e1000_osdep.o
  CC i40e_ethdev_vf.o
  CC igb_rxtx.o
  CC e1000_ich8lan.o
  CC null_crypto_pmd_ops.o
  CC e1000_phy.o
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:44:38:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_write_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:44:46:
 error: unused parameter 'reg' [-Werror,-Wunused-parameter]
e1000_write_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:44:56:
 error: unused parameter 'value' [-Werror,-Wunused-parameter]
e1000_write_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
   ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:50:37:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_read_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:50:45:
 error: unused parameter 'reg' [-Werror,-Wunused-parameter]
e1000_read_pci_cfg(struct e1000_hw *hw, u32 reg, u16 *value)
^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:57:36:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_pci_set_mwi(struct e1000_hw *hw)
   ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:62:38:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_pci_clear_mwi(struct e1000_hw *hw)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:71:42:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:71:50:
 error: unused parameter 'reg' [-Werror,-Wunused-parameter]
e1000_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:71:60:
 error: unused parameter 'value' [-Werror,-Wunused-parameter]
e1000_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
   ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:80:43:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
e1000_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
  ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:80:51:
 error: unused parameter 'reg' [-Werror,-Wunused-parameter]
e1000_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
  ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_osdep.c:80:61:
 error: unused parameter 'value' [-Werror,-Wunused-parameter]
e1000_write_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value)
^
13 errors generated.
/work/home/rkwiles/projects/intel/dpdk/mk/internal/rte.compile-pre.mk:126: 
recipe for target 'e1000_osdep.o' failed
make[6]: *** [e1000_osdep.o] Error 1
make[6]: *** Waiting for unfinished jobs
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_vf.c:161:62:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
STATIC s32 e1000_acquire_vf(struct e1000_hw E1000_UNUSEDARG *hw)
 ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_vf.c:175:63:
 error: unused parameter 'hw' [-Werror,-Wunused-parameter]
STATIC void e1000_release_vf(struct e1000_hw E1000_UNUSEDARG *hw)
  ^
/work/home/rkwiles/projects/intel/dpdk/drivers/net/e1000/base/e1000_vf.c:187:65:
 error: unused parameter 'hw' 

[dpdk-dev] e1000: unused variable warnings with clang

2016-07-01 Thread Wiles, Keith

Update: I pulled a new clone and now I do not see that problem, so please 
ignore. 

Regards,
Keith







[dpdk-dev] e1000: unused variable warnings with clang

2016-07-01 Thread Wiles, Keith
I am seeing unused variable warnings/errors when building the current repo with 
the clang compiler builds in the e1000/base directory.

Does anyone else see this problem?

Regards,
Keith