diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-07-30 14:15:21 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-07-30 14:15:21 +0000 |
commit | 1bc72be7cee5d764f607149301b595f99a50dfa7 (patch) | |
tree | 1d5869e5d45f62051d1099ec445b62b101e6bb54 | |
parent | 1d48961f853638cd76e713638ae4078226f362c0 (diff) |
Fix build without intagp
Pull inteldrm_refcnt out of NINTAGP > 0, otherwise it remains undefined but
still used in inteldrm_attachhook().
OK jsg
-rw-r--r-- | sys/dev/pci/drm/i915/i915_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c index 0510113caef..e8c07f45da2 100644 --- a/sys/dev/pci/drm/i915/i915_drv.c +++ b/sys/dev/pci/drm/i915/i915_drv.c @@ -2007,16 +2007,16 @@ static const struct drm_driver driver = { #include "intagp.h" -#if NINTAGP > 0 -int intagpsubmatch(struct device *, void *, void *); -int intagp_print(void *, const char *); - /* * some functions are only called once on init regardless of how many times * inteldrm attaches in linux this is handled via module_init()/module_exit() */ int inteldrm_refcnt; +#if NINTAGP > 0 +int intagpsubmatch(struct device *, void *, void *); +int intagp_print(void *, const char *); + int intagpsubmatch(struct device *parent, void *match, void *aux) { |