]> git.droids-corp.org - dpdk.git/commitdiff
e1000: suppress misleading indentation warning
authorAaron Conole <aconole@redhat.com>
Wed, 30 Mar 2016 14:06:36 +0000 (10:06 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 15:09:23 +0000 (17:09 +0200)
The register read/write mphy functions have misleading whitespace around
the `locked` check. This cleanup merely preserves the existing functionality
and suppresses future gcc versions' "misleading indentation" warning.

Suggested-by: Panu Matilainen <pmatilai@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/Makefile

index ccd2b7bdd406a98ecd87af41456cf2f76a79f307..f4879e67160c5bf3696e4a8f8a8e4cae558e12d6 100644 (file)
@@ -54,6 +54,9 @@ else
 #
 CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter
 CFLAGS_BASE_DRIVER += -Wno-unused-variable
+ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1)
+CFLAGS_BASE_DRIVER += -Wno-misleading-indentation
+endif
 endif
 
 #