Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2 drm: sprinkle some -Wno-unused-functio...



details:   https://anonhg.NetBSD.org/src/rev/5338c3de98d5
branches:  trunk
changeset: 1029095:5338c3de98d5
user:      tnn <tnn%NetBSD.org@localhost>
date:      Tue Dec 21 12:55:23 2021 +0000

description:
drm: sprinkle some -Wno-unused-function for clang

915_sw_fence.c: for debug_fence_init_onstack
drm_mm.c: for rb_hole_size_to_node
intel_hdmi.c: for intel_hdmi_hdcp2_protocol
intel_guc_submission.c: for rq_prio
nouveau_nvkm_subdev_instmem_base.c: for fake_ioread32_native
nouveau_nvkm_subdev_mmu_vmmnv04.c: for nv04_vmm_pgt_pte

diffstat:

 sys/external/bsd/drm2/drm/files.drmkms         |  3 ++-
 sys/external/bsd/drm2/i915drm/files.i915drmkms |  5 ++++-
 sys/external/bsd/drm2/nouveau/files.nouveau    |  4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (59 lines):

diff -r 984f66afdffb -r 5338c3de98d5 sys/external/bsd/drm2/drm/files.drmkms
--- a/sys/external/bsd/drm2/drm/files.drmkms    Tue Dec 21 12:28:34 2021 +0000
+++ b/sys/external/bsd/drm2/drm/files.drmkms    Tue Dec 21 12:55:23 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.drmkms,v 1.71 2021/12/19 12:39:48 riastradh Exp $
+#      $NetBSD: files.drmkms,v 1.72 2021/12/21 12:55:23 tnn Exp $
 
 version        20180827
 
@@ -79,6 +79,7 @@
 makeoptions    drmkms  "CWARNFLAGS.drm_fb_helper.c"+="-Wno-shadow"
 makeoptions    drmkms  "CWARNFLAGS.drm_edid.c"+="-Wno-shadow"
 makeoptions    drmkms  "CWARNFLAGS.drm_ioctl.c"+="-Wno-shadow"
+makeoptions    drmkms  "CWARNFLAGS.drm_mm.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
 makeoptions    drmkms  "CWARNFLAGS.drm_modes.c"+="-Wno-shadow"
 
 # Legacy user-mode setting
diff -r 984f66afdffb -r 5338c3de98d5 sys/external/bsd/drm2/i915drm/files.i915drmkms
--- a/sys/external/bsd/drm2/i915drm/files.i915drmkms    Tue Dec 21 12:28:34 2021 +0000
+++ b/sys/external/bsd/drm2/i915drm/files.i915drmkms    Tue Dec 21 12:55:23 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.i915drmkms,v 1.84 2021/12/19 11:57:42 riastradh Exp $
+#      $NetBSD: files.i915drmkms,v 1.85 2021/12/21 12:55:23 tnn Exp $
 
 version        20180827
 
@@ -45,11 +45,14 @@
 
 makeoptions    i915drmkms      "CWARNFLAGS.i915_pci.c"+="${${ACTIVE_CC} == gcc:? -Wno-override-init :}"
 makeoptions    i915drmkms      "CWARNFLAGS.i915_pci.c"+="${${ACTIVE_CC} == clang:? -Wno-initializer-overrides :}"
+makeoptions    i915drmkms      "CWARNFLAGS.i915_sw_fence.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
 
 makeoptions    i915drmkms      "CWARNFLAGS.intel_sprite.c"+="${${ACTIVE_CC} == gcc:? -Wno-maybe-uninitialized :}"
 
 makeoptions    i915drmkms      "CWARNFLAGS.intel_ddi.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 10:? -Wno-maybe-uninitialized :} ${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? 
-Wno-implicit-fallthrough :}"
 makeoptions    i915drmkms      "CWARNFLAGS.intel_display.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-implicit-fallthrough :}"
+makeoptions    i915drmkms      "CWARNFLAGS.intel_guc_submission.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
+makeoptions    i915drmkms      "CWARNFLAGS.intel_hdmi.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
 makeoptions    i915drmkms      "CWARNFLAGS.intel_sdvo.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-implicit-fallthrough :}"
 
 makeoptions    intelfb         "CPPFLAGS.intelfb"+="${CPPFLAGS.i915drmkms}"
diff -r 984f66afdffb -r 5338c3de98d5 sys/external/bsd/drm2/nouveau/files.nouveau
--- a/sys/external/bsd/drm2/nouveau/files.nouveau       Tue Dec 21 12:28:34 2021 +0000
+++ b/sys/external/bsd/drm2/nouveau/files.nouveau       Tue Dec 21 12:55:23 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.nouveau,v 1.36 2021/12/19 10:55:37 riastradh Exp $
+#      $NetBSD: files.nouveau,v 1.37 2021/12/21 12:55:24 tnn Exp $
 
 version        20180827
 
@@ -37,6 +37,8 @@
 makeoptions    nouveau "CWARNFLAGS.nouveau"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}"
 makeoptions    nouveau "CWARNFLAGS.nouveau_nvkm_subdev_bios_timing.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=int-in-bool-context :}"
 makeoptions    nouveau "CWARNFLAGS.nouveau_nvkm_subdev_clk_gt215.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} >= 7:? -Wno-error=int-in-bool-context :}"
+makeoptions    nouveau "CWARNFLAGS.nouveau_nvkm_subdev_instmem_base.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
+makeoptions    nouveau "CWARNFLAGS.nouveau_nvkm_subdev_mmu_vmmnv04.c"+="${${ACTIVE_CC} == clang :? -Wno-unused-function :}"
 
 file   external/bsd/drm2/nouveau/nouveau_module.c      nouveau
 



Home | Main Index | Thread Index | Old Index