Skip to content

Commit ffa370c

Browse files
Jerin Jacobdavid-marchand
authored andcommitted
net/iavf: fix build with clang 21
Fix the following error seen with clang 21.1.4 drivers/net/intel/iavf/iavf_vchnl.c:123:38: error: variable 'notify_byte' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] Fixes: cb5c1b9 ("net/iavf: add thread for event callbacks") Cc: [email protected] Signed-off-by: Jerin Jacob <[email protected]> Acked-by: Vladimir Medvedkin <[email protected]> Reviewed-by: David Marchand <[email protected]>
1 parent 5ff1ab4 commit ffa370c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/intel/iavf/iavf_vchnl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ iavf_dev_event_post(struct rte_eth_dev *dev,
102102
void *param, size_t param_alloc_size)
103103
{
104104
struct iavf_event_handler *handler = &event_handler;
105-
char notify_byte;
105+
char notify_byte = 0;
106106
struct iavf_event_element *elem = rte_malloc(NULL, sizeof(*elem) + param_alloc_size, 0);
107107
if (!elem)
108108
return;

0 commit comments

Comments
 (0)