git: 8843787aa1bd - main - ena: Remove redundant declaration of ena_log_level.

John Baldwin jhb at FreeBSD.org
Fri Jul 23 23:08:00 UTC 2021


The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=8843787aa1bdbd10de6ba47a04489179ec2d2d3c

commit 8843787aa1bdbd10de6ba47a04489179ec2d2d3c
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-07-23 22:31:32 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-07-23 23:07:35 +0000

    ena: Remove redundant declaration of ena_log_level.
    
    GCC6 raises a -Wredundant-decl error due to duplicate declarations
    in ena_fbsd_log.h and ena_plat.h.
    
    Sponsored by:   Chelsio Communications
---
 sys/contrib/ena-com/ena_plat.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/contrib/ena-com/ena_plat.h b/sys/contrib/ena-com/ena_plat.h
index b31821248398..274f795950c0 100644
--- a/sys/contrib/ena-com/ena_plat.h
+++ b/sys/contrib/ena-com/ena_plat.h
@@ -98,8 +98,6 @@ extern struct ena_bus_space ebs;
 #define DEFAULT_ALLOC_ALIGNMENT	8
 #define ENA_CDESC_RING_SIZE_ALIGNMENT  (1 << 12) /* 4K */
 
-extern int ena_log_level;
-
 #define container_of(ptr, type, member)					\
 	({								\
 		const __typeof(((type *)0)->member) *__p = (ptr);	\


More information about the dev-commits-src-main mailing list