crypto/null: fix global variable multiple definitions
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 5 Sep 2019 14:53:08 +0000 (15:53 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 25 Oct 2019 21:16:23 +0000 (23:16 +0200)
commit2ce24ee7acccd68f3a8e736b67808c33f4902a46
tree3ea02552023fa98ca04f09cf8c823a3157ed8749
parentb6730d93a13ace701d4f53adcdbbd7c50a90cfbd
crypto/null: fix global variable multiple definitions

'null_logtype_driver' global variable is defined in a header file which
was causing multiple definitions of the variable, fixed it by moving it
to the .c file.

Issue has been detected by '-fno-common' gcc flag.

Fixes: 735b783d8c2b ("crypto/null: add dynamic logging")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/crypto/null/null_crypto_pmd.c
drivers/crypto/null/null_crypto_pmd_private.h