maintainer-feedback requested: [Bug 269684] graphics/drm-510-kmod fails to compile on 14-CURRENT

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 (Nobody)
<[email protected]> for maintainer-feedback:
Bug 269684: graphics/drm-510-kmod fails to compile on 14-CURRENT
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269684



--- Description ---
```
/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.163_2/drivers/gpu/drm/
i915/gem/i915_gem_shmem.c:687:8:
error: implicit declaration of function 'totalram_pages' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
					  totalram_pages() << PAGE_SHIFT,
					  ^
1 error generated.
*** [i915_gem_shmem.o] Error code 1

make[2]: stopped in
/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.163_2/i915
1 error

make[2]: stopped in
/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.163_2/i915

make[1]: stopped in
/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.163_2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-510-kmod
root@labo:/usr/ports/graphics/drm-510-kmod # 


```

My issue comes from this commit I think:

https://github.com/freebsd/drm-kmod/commit/58b2f2602fc11ec9b013f89bf556f105c678
74e0#diff-7458df6aa24bcbd93579cfbe0eb08cfe5c207c8f7d12aad09a63da3192b2e8c1


```
(__FreeBSD_version < 1400080 && __FreeBSD_version < 1302501)
```

As 1400073 < 1400080 but not to 1302501, I get this error.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.