cxgb4: enable ZLIB_DEFLATE when building cxgb4
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 24 Jan 2018 08:01:04 +0000 (13:31 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 15:56:59 +0000 (10:56 -0500)
commita1cf9c9ffe652a4f109eb2cd8e69d8fcdb855d00
tree7a66a8aa09a5db7b7c0a15467fc2a527694468b1
parent9e1a27cdaba7da6ab3b78798653c9be454810435
cxgb4: enable ZLIB_DEFLATE when building cxgb4

Fixes:
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.c:39:5: error:
redefinition of 'cudbg_compress_buff'
    int cudbg_compress_buff(struct cudbg_init *pdbg_init,
        ^~~~~~~~~~~~~~~~~~~
   In file included from
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.c:23:0:
   drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.h:45:19: note: previous
definition of 'cudbg_compress_buff' was here
    static inline int cudbg_compress_buff(struct cudbg_init *pdbg_init,
                      ^~~~~~~~~~~~~~~~~~~

Fixes: 91c1953de387 ("cxgb4: use zlib deflate to compress firmware dump")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/Kconfig
drivers/net/ethernet/chelsio/cxgb4/Makefile
drivers/net/ethernet/chelsio/cxgb4/cudbg_zlib.h