Skip to contentSkip to conversation

meson, configure: add warning when using undefined preprocessor tokens

PATCH In review Eric Engestrom 4 participants 15 messages Jan 26, 2018 – Jan 30, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/7 meson, configure: add warning when using undefined preprocessor tokens

---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
index 35378b3384290f8e1e26..3fc4e7794cd974171c0a 100644
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked.  So there's no need to do anything
 dnl else.  If for any reason you need to force a recheck, just change
 dnl MAYBE_WARN in an ignorable way (like adding whitespace)
 
-MAYBE_WARN="-Wall -Wextra \
+MAYBE_WARN="-Wall -Wextra -Wundef \
 -Wsign-compare -Werror-implicit-function-declaration \
 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +1 -1
index d7a50cf96f905b53d37a..a410627fbf16a2c6d748 100644
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
 endif
 
 warn_c_args = []
-foreach a : ['-Wall', '-Wextra', '-Wsign-compare', 
+foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/7 nouveau: remove always-true #ifdef guards

DEBUG has always been defined since 292da616fe1f936ca78a3 "nouveau:
pull in major libdrm rewrite" in 2011

---
 nouveau/Makefile.am | 3 +--
 nouveau/nouveau.c   | 4 ----
 nouveau/private.h   | 5 -----
 3 files changed, 1 insertion(+), 11 deletions(-)
nouveau/Makefile.am +1 -2
index 344a84454e420044afb5..60ebe243d4236e6aa814 100644
@@ -4,8 +4,7 @@ AM_CFLAGS = \
 	$(WARN_CFLAGS) \
 	-I$(top_srcdir) \
 	$(PTHREADSTUBS_CFLAGS) \
-	-I$(top_srcdir)/include/drm \
-	-DDEBUG
+	-I$(top_srcdir)/include/drm
 
 libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la
 libdrm_nouveau_ladir = $(libdir)
nouveau/nouveau.c +0 -4
index e113a8fe780757a096b2..e68de16fe42c1953e9c0 100644
@@ -50,7 +50,6 @@
 #include "nvif/ioctl.h"
 #include "nvif/unpack.h"
 
-#ifdef DEBUG
 drm_private uint32_t nouveau_debug = 0;
 
 static void
@@ -62,7 +61,6 @@ debug_init(char *args)
 			nouveau_debug = n;
 	}
 }
-#endif
 
 static int
 nouveau_object_ioctl(struct nouveau_object *obj, void *data, uint32_t size)
@@ -331,9 +329,7 @@ nouveau_drm_new(int fd, struct nouveau_drm **pdrm)
 	struct nouveau_drm *drm;
 	drmVersionPtr ver;
 
-#ifdef DEBUG
 	debug_init(getenv("NOUVEAU_LIBDRM_DEBUG"));
-#endif
 
 	if (!(drm = calloc(1, sizeof(*drm))))
 		return -ENOMEM;
nouveau/private.h +0 -5
index 83060f965244fac3f087..8eca0a067195d7c5c54c 100644
@@ -9,17 +9,12 @@
 
 #include "nouveau.h"
 
-#ifdef DEBUG
 drm_private uint32_t nouveau_debug;
 #define dbg_on(lvl) (nouveau_debug & (1 << lvl))
 #define dbg(lvl, fmt, args...) do {                                            \
 	if (dbg_on((lvl)))                                                     \
 		fprintf(stderr, "nouveau: "fmt, ##args);                       \
 } while(0)
-#else
-#define dbg_on(lvl) (0)
-#define dbg(lvl, fmt, args...)
-#endif
 #define err(fmt, args...) fprintf(stderr, "nouveau: "fmt, ##args)
 
 struct nouveau_client_kref {
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

PATCH 3/7 xf86drmHash: remove always-false #if guards

In reply to Eric Engestrom
---
 xf86drmHash.c | 6 ------
 1 file changed, 6 deletions(-)
xf86drmHash.c +0 -6
index f287e61fb2b7a0051abb..b2fa414e5305f94cd12d 100644
@@ -98,9 +98,6 @@ static unsigned long HashHash(unsigned long key)
     }
 
     hash %= HASH_SIZE;
-#if DEBUG
-    printf( "Hash(%lu) = %lu\n", key, hash);
-#endif
     return hash;
 }
 
@@ -201,9 +198,6 @@ int drmHashInsert(void *t, unsigned long key, void *value)
     bucket->value        = value;
     bucket->next         = table->buckets[hash];
     table->buckets[hash] = bucket;
-#if DEBUG
-    printf("Inserted %lu at %lu/%p\n", key, hash, bucket);
-#endif
     return 0;			/* Added to table */
 }
 
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

PATCH 4/7 configure: always define HAVE_LIBDRM_ATOMIC_PRIMITIVES and HAVE_LIB_ATOMIC_OPS

In reply to Eric Engestrom

Fixes #if undefined warnings

---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)
configure.ac +4 -0
index 3fc4e7794cd974171c0a..a6df1a5f7fcd4576c5a8 100644
@@ -259,9 +259,13 @@ AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [
 if test "x$drm_cv_atomic_primitives" = xIntel; then
 	AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1,
 		[Enable if your compiler supports the Intel __sync_* atomic primitives])
+else
+	AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 0)
 fi
 if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
 	AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed])
+else
+	AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 0)
 fi
 
 dnl Print out the approapriate message considering the value set be the
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

PATCH 5/7 exynos/tests: use #ifdef for never-defined token

In reply to Eric Engestrom
---
 tests/exynos/exynos_fimg2d_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/exynos/exynos_fimg2d_test.c +2 -2
index b71cf59351a6c0688c04..03a79c4e9d2579d71ed3 100644
@@ -536,7 +536,7 @@ static int g2d_copy_with_scale_test(struct exynos_device *dev,
 	return ret;;
 }
 
-#if EXYNOS_G2D_USERPTR_TEST
+#ifdef EXYNOS_G2D_USERPTR_TEST
 static int g2d_blend_test(struct exynos_device *dev,
 					struct exynos_bo *src,
 					struct exynos_bo *dst,
@@ -880,7 +880,7 @@ int main(int argc, char **argv)
 	 *
 	 * Disable the test for now, until the kernel code has been sanitized.
 	 */
-#if EXYNOS_G2D_USERPTR_TEST
+#ifdef EXYNOS_G2D_USERPTR_TEST
 	ret  = g2d_blend_test(dev, src, bo, G2D_IMGBUF_USERPTR);
 	if (ret < 0)
 		fprintf(stderr, "failed to test blend operation.\n");
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

PATCH 6/7 meson, configure: turn undefined preprocessor tokens warnings into errors

In reply to Eric Engestrom
---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
index a6df1a5f7fcd4576c5a8..031e849bd0fc97d8762b 100644
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked.  So there's no need to do anything
 dnl else.  If for any reason you need to force a recheck, just change
 dnl MAYBE_WARN in an ignorable way (like adding whitespace)
 
-MAYBE_WARN="-Wall -Wextra -Wundef \
+MAYBE_WARN="-Wall -Wextra -Werror=undef \
 -Wsign-compare -Werror-implicit-function-declaration \
 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +1 -1
index a410627fbf16a2c6d748..1fd58b071bb90a49996e 100644
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
 endif
 
 warn_c_args = []
-foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',
+foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

PATCH 7/7 meson: cleanup whitespace

In reply to Eric Engestrom
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meson.build +4 -4
index 1fd58b071bb90a49996e..1bccdb2c03d7846e7bfb 100644
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
-             '-Wswitch-enum', '-Wmissing-format-attribute', 
-             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', 
+             '-Wswitch-enum', '-Wmissing-format-attribute',
+             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow',
              '-Wdeclaration-after-statement', '-Wold-style-definition']
   if cc.has_argument(a)
     warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
 endforeach
 # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list
 # of options
-foreach a : ['unused-parameter', 'attributes', 'long-long', 
+foreach a : ['unused-parameter', 'attributes', 'long-long',
              'missing-field-initializers']
   if cc.has_argument('-W@0@'.format(a))
     warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate(
   version : meson.project_version(),
   description : 'Userspace interface to kernel DRM services',
 )
- 
+
 if with_libkms
   subdir('libkms')
 endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw
In reply to Eric Engestrom
Quoted 24 lines · Eric Engestrom
---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
index 35378b3384290f8e1e26..3fc4e7794cd974171c0a 100644
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked.  So there's no need to do anything
 dnl else.  If for any reason you need to force a recheck, just change
 dnl MAYBE_WARN in an ignorable way (like adding whitespace)
 
-MAYBE_WARN="-Wall -Wextra \
+MAYBE_WARN="-Wall -Wextra -Wundef \
 -Wsign-compare -Werror-implicit-function-declaration \
 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +0 -0
index d7a50cf96f905b53d37a..a410627fbf16a2c6d748 100644

meson.build if cc.has_function('open_memstream') · line 206

Quoted 5 lines
meson.build +1 -1
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
 endif
 
 warn_c_args = []
-foreach a : ['-Wall', '-Wextra', '-Wsign-compare',
+foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',

Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
Quoted 27 lines · Emil Velikov
Quoted 26 lines · Eric Engestrom
---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
index 35378b3384290f8e1e26..3fc4e7794cd974171c0a 100644
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked.  So there's no need to do anything
 dnl else.  If for any reason you need to force a recheck, just change
 dnl MAYBE_WARN in an ignorable way (like adding whitespace)
 
-MAYBE_WARN="-Wall -Wextra \
+MAYBE_WARN="-Wall -Wextra -Wundef \
 -Wsign-compare -Werror-implicit-function-declaration \
 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +0 -0
index d7a50cf96f905b53d37a..a410627fbf16a2c6d748 100644
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
 endif
 
Quoted 6 lines

meson.build if cc.has_function('open_memstream') · line 206

Quoted 3 lines
meson.build +1 -1
 warn_c_args = []
-foreach a : ['-Wall', '-Wextra', '-Wsign-compare',
+foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',

Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.

This is what patch 6/7 of this series does.
I chose to make it a two step thing, first enable the warning, fix the code, and then turn the warning into an error.

I guess I could just skip this patch, and introduce the warning as an error in 6/7.

Quoted 2 lines

-Emil

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Re: [PATCH libdrm 2/7] nouveau: remove always-true #ifdef guards

In reply to Eric Engestrom
Quoted 65 lines · Eric Engestrom

DEBUG has always been defined since 292da616fe1f936ca78a3 "nouveau:
pull in major libdrm rewrite" in 2011

---
 nouveau/Makefile.am | 3 +--
 nouveau/nouveau.c   | 4 ----
 nouveau/private.h   | 5 -----
 3 files changed, 1 insertion(+), 11 deletions(-)
nouveau/Makefile.am +1 -2
index 344a84454e420044afb5..60ebe243d4236e6aa814 100644
@@ -4,8 +4,7 @@ AM_CFLAGS = \
        $(WARN_CFLAGS) \
        -I$(top_srcdir) \
        $(PTHREADSTUBS_CFLAGS) \
-       -I$(top_srcdir)/include/drm \
-       -DDEBUG
+       -I$(top_srcdir)/include/drm
 
 libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la
 libdrm_nouveau_ladir = $(libdir)
nouveau/nouveau.c +0 -4
index e113a8fe780757a096b2..e68de16fe42c1953e9c0 100644
@@ -50,7 +50,6 @@
 #include "nvif/ioctl.h"
 #include "nvif/unpack.h"
 
-#ifdef DEBUG
 drm_private uint32_t nouveau_debug = 0;
 
 static void
@@ -62,7 +61,6 @@ debug_init(char *args)
                        nouveau_debug = n;
        }
 }
-#endif
 
 static int
 nouveau_object_ioctl(struct nouveau_object *obj, void *data, uint32_t size)
@@ -331,9 +329,7 @@ nouveau_drm_new(int fd, struct nouveau_drm **pdrm)
        struct nouveau_drm *drm;
        drmVersionPtr ver;
 
-#ifdef DEBUG
        debug_init(getenv("NOUVEAU_LIBDRM_DEBUG"));
-#endif
 
        if (!(drm = calloc(1, sizeof(*drm))))
                return -ENOMEM;
nouveau/private.h +0 -1
index 83060f965244fac3f087..8eca0a067195d7c5c54c 100644
@@ -9,17 +9,12 @@
 
 #include "nouveau.h"
 
-#ifdef DEBUG
 drm_private uint32_t nouveau_debug;
 #define dbg_on(lvl) (nouveau_debug & (1 << lvl))

nouveau/private.h line 19

Quoted 10 lines
nouveau/private.h +0 -4
 #define dbg(lvl, fmt, args...) do {                                            \
        if (dbg_on((lvl)))                                                     \
                fprintf(stderr, "nouveau: "fmt, ##args);                       \
 } while(0)
-#else
-#define dbg_on(lvl) (0)
-#define dbg(lvl, fmt, args...)
-#endif
 #define err(fmt, args...) fprintf(stderr, "nouveau: "fmt, ##args)
 

I've been meaning to ask Ben about the the DEBUG and SIMULATE bits in nouveau. The latter seems like a debug left-over (that we can drop), while the former is...

Ben can you shed some light?

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 7/7
#8 lore raw

Re: [PATCH libdrm 7/7] meson: cleanup whitespace

In reply to Eric Engestrom

Quoting Eric Engestrom (2018-01-26 03:30:47)

Quoted 46 lines
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meson.build +4 -4
index 1fd58b071bb90a49996e..1bccdb2c03d7846e7bfb 100644
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
-             '-Wswitch-enum', '-Wmissing-format-attribute', 
-             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', 
+             '-Wswitch-enum', '-Wmissing-format-attribute',
+             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow',
              '-Wdeclaration-after-statement', '-Wold-style-definition']
   if cc.has_argument(a)
     warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
 endforeach
 # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list
 # of options
-foreach a : ['unused-parameter', 'attributes', 'long-long', 
+foreach a : ['unused-parameter', 'attributes', 'long-long',
              'missing-field-initializers']
   if cc.has_argument('-W@0@'.format(a))
     warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate(
   version : meson.project_version(),
   description : 'Userspace interface to kernel DRM services',
 )
- 
+
 if with_libkms
   subdir('libkms')
 endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to Eric Engestrom

Quoting Eric Engestrom (2018-01-26 09:17:43)

Quoted 35 lines · Emil Velikov
Quoted 27 lines · Eric Engestrom
Quoted 26 lines
---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
index 35378b3384290f8e1e26..3fc4e7794cd974171c0a 100644
@@ -197,7 +197,7 @@ dnl skipped and all flags rechecked.  So there's no need to do anything
 dnl else.  If for any reason you need to force a recheck, just change
 dnl MAYBE_WARN in an ignorable way (like adding whitespace)
 
-MAYBE_WARN="-Wall -Wextra \
+MAYBE_WARN="-Wall -Wextra -Wundef \
 -Wsign-compare -Werror-implicit-function-declaration \
 -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
meson.build +0 -0
index d7a50cf96f905b53d37a..a410627fbf16a2c6d748 100644
@@ -203,7 +203,7 @@ if cc.has_function('open_memstream')
 endif
 
Quoted 6 lines

meson.build if cc.has_function('open_memstream') · line 206

Quoted 3 lines
meson.build +1 -1
 warn_c_args = []
-foreach a : ['-Wall', '-Wextra', '-Wsign-compare',
+foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Wundef',

Unless we have [m]any undef warnings, I'd just make that Werror=undef, across build systems.

Quoted 9 lines

This is what patch 6/7 of this series does.
I chose to make it a two step thing, first enable the warning, fix the code, and then turn the warning into an error.

I guess I could just skip this patch, and introduce the warning as an error in 6/7.

Quoted 2 lines

-Emil

I'd either leave 1/7 as-is or drop it completely, so we can bisect across this series. I don't care which.

Dylan

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

Re: [PATCH libdrm 7/7] meson: cleanup whitespace

In reply to Dylan Baker
Quoted 1 line · Dylan Baker

Thanks :)
Is that for this patch or the series?

Quoted 44 lines

Quoting Eric Engestrom (2018-01-26 03:30:47)

Quoted 42 lines
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meson.build +4 -4
index 1fd58b071bb90a49996e..1bccdb2c03d7846e7bfb 100644
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
-             '-Wswitch-enum', '-Wmissing-format-attribute', 
-             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', 
+             '-Wswitch-enum', '-Wmissing-format-attribute',
+             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow',
              '-Wdeclaration-after-statement', '-Wold-style-definition']
   if cc.has_argument(a)
     warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
 endforeach
 # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list
 # of options
-foreach a : ['unused-parameter', 'attributes', 'long-long', 
+foreach a : ['unused-parameter', 'attributes', 'long-long',
              'missing-field-initializers']
   if cc.has_argument('-W@0@'.format(a))
     warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate(
   version : meson.project_version(),
   description : 'Userspace interface to kernel DRM services',
 )
- 
+
 if with_libkms
   subdir('libkms')
 endif
Signature · 2 lines
Cheers,
  Eric
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

Re: [PATCH libdrm 7/7] meson: cleanup whitespace

For the series :)

But please do get someone from nouveau (Emil CC'd Ben, so presumably him) before pushing the nouveau patch.

Dylan

Quoting Eric Engestrom (2018-01-29 02:54:47)

Quoted 50 lines · Dylan Baker
Quoted 1 line

Thanks :)
Is that for this patch or the series?

Quoted 44 lines

Quoting Eric Engestrom (2018-01-26 03:30:47)

Quoted 42 lines
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meson.build +4 -4
index 1fd58b071bb90a49996e..1bccdb2c03d7846e7bfb 100644
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
              '-Werror-implicit-function-declaration', '-Wpointer-arith',
              '-Wwrite-strings', '-Wstrict-prototypes', '-Wmissing-prototypes',
              '-Wmissing-declarations', '-Wnested-externs', '-Wpacked',
-             '-Wswitch-enum', '-Wmissing-format-attribute', 
-             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow', 
+             '-Wswitch-enum', '-Wmissing-format-attribute',
+             '-Wstrict-aliasing=2', '-Winit-self', '-Winline', '-Wshadow',
              '-Wdeclaration-after-statement', '-Wold-style-definition']
   if cc.has_argument(a)
     warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra', '-Wsign-compare', '-Werror=undef',
 endforeach
 # GCC will never error for -Wno-*, so check for -W* then add -Wno-* to the list
 # of options
-foreach a : ['unused-parameter', 'attributes', 'long-long', 
+foreach a : ['unused-parameter', 'attributes', 'long-long',
              'missing-field-initializers']
   if cc.has_argument('-W@0@'.format(a))
     warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate(
   version : meson.project_version(),
   description : 'Userspace interface to kernel DRM services',
 )
- 
+
 if with_libkms
   subdir('libkms')
 endif
Signature · 2 lines
Cheers,
  Eric
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

Re: [PATCH libdrm 7/7] meson: cleanup whitespace

Quoted 1 line · Dylan Baker

For the series :)

Thanks :)

Quoted 4 lines

But please do get someone from nouveau (Emil CC'd Ben, so presumably him) before
pushing the nouveau patch.

I'm not pushing the nouveau patch until I get an ack, and the amdgpu sign patch needs a v2.
I'll push the rest tomorrow.

Quoted 36 lines

Dylan

Quoting Eric Engestrom (2018-01-29 02:54:47)

Quoted 13 lines · Dylan Baker
Quoted 1 line

Thanks :)
Is that for this patch or the series?

Quoted 7 lines

Quoting Eric Engestrom (2018-01-26 03:30:47)

Quoted 5 lines
---
 meson.build | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 5 lines
Quoted 5 lines

meson.build foreach a : ['-Wall', '-Wextra',

Quoted 5 lines
meson.build +0 -0
index 1fd58b071bb90a49996e..1bccdb2c03d7846e7bfb 100644
@@ -207,8 +207,8 @@ foreach a : ['-Wall', '-Wextra',

'-Wsign-compare', '-Werror=undef',

Quoted 1 line
Quoted 1 line

meson.build foreach a : ['-Wall', '-Wextra', · line 207

Quoted 1 line
meson.build +0 -0
              '-Werror-implicit-function-declaration',

'-Wpointer-arith',

Quoted 1 line
Quoted 1 line

meson.build foreach a : ['-Wall', '-Wextra', · line 208

Quoted 1 line
meson.build +0 -0
              '-Wwrite-strings', '-Wstrict-prototypes',

'-Wmissing-prototypes',

Quoted 1 line
Quoted 1 line

meson.build foreach a : ['-Wall', '-Wextra', · line 209

Quoted 1 line
meson.build +0 -0
              '-Wmissing-declarations', '-Wnested-externs',

'-Wpacked',

Quoted 2 lines
Quoted 2 lines

meson.build foreach a : ['-Wall', '-Wextra', · line 211

Quoted 2 lines
meson.build +0 -2
-             '-Wswitch-enum', '-Wmissing-format-attribute', 
-             '-Wstrict-aliasing=2', '-Winit-self', '-Winline',

'-Wshadow',

Quoted 2 lines
Quoted 2 lines

meson.build foreach a : ['-Wall', '-Wextra', · line 211

Quoted 2 lines
meson.build +2 -0
+             '-Wswitch-enum', '-Wmissing-format-attribute',
+             '-Wstrict-aliasing=2', '-Winit-self', '-Winline',

'-Wshadow',

Quoted 1 line
Quoted 1 line

meson.build foreach a : ['-Wall', '-Wextra', · line 212

Quoted 1 line
meson.build +0 -0
              '-Wdeclaration-after-statement',
Quoted 33 lines

'-Wold-style-definition']

Quoted 3 lines
Quoted 3 lines

meson.build foreach a : ['-Wall', '-Wextra',

Quoted 3 lines
meson.build +0 -0
   if cc.has_argument(a)
     warn_c_args += a
@@ -216,7 +216,7 @@ foreach a : ['-Wall', '-Wextra',

'-Wsign-compare', '-Werror=undef',

Quoted 2 lines
Quoted 2 lines

meson.build foreach a : ['-Wall', '-Wextra', · line 217

Quoted 2 lines
meson.build +0 -0
 endforeach
 # GCC will never error for -Wno-*, so check for -W* then add

-Wno-* to the list

Quoted 25 lines
Quoted 23 lines
Quoted 23 lines
meson.build +2 -2
 # of options
-foreach a : ['unused-parameter', 'attributes', 'long-long', 
+foreach a : ['unused-parameter', 'attributes', 'long-long',
              'missing-field-initializers']
   if cc.has_argument('-W@0@'.format(a))
     warn_c_args += '-Wno-@0@'.format(a)
@@ -326,7 +326,7 @@ pkg.generate(
   version : meson.project_version(),
   description : 'Userspace interface to kernel DRM services',
 )
- 
+
 if with_libkms
   subdir('libkms')
 endif
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel