Re: Build failure for graphics/drm-fbsd13-kmod during stable/13 update

From: Vladimir Kondratyev <vladimir_at_kondratyev.su>
Date: Sun, 05 Jun 2022 15:03:43 UTC
On 05.06.2022 17:10, David Wolfskill wrote:

> On the laptop where I track stable/13 daily that uses
> graphics/drm-fbsd13-kmod, I have
> 
> PORTS_MODULES+=graphics/drm-fbsd13-kmod
> 
> in /etc/src.conf.  Today, it was running:
> g1-48(13.1-S)[2] uname -aUK
> FreeBSD g1-48.catwhisker.org 13.1-STABLE FreeBSD 13.1-STABLE #495 stable/13-n250980-2699604d8eae: Sat Jun  4 05:14:24 PDT 2022     root@g1-48.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/CANARY amd64 1301503 1301503
> 
> and after updating sources to stable/13-n251011-2b005e89681b and
> ports to main-n585690-75fc11eb3dbe, the kernel build failed:
> 
> /common/S3/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.144_7/drivers/gpu/drm/i915/intel_pm.c:3028:12: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
>          changed = ilk_increase_wm_latency(dev_priv, dev_priv->wm.pri_latency, 12) |
>                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /common/S3/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.144_7/drivers/gpu/drm/i915/intel_pm.c:3028:12: note: cast one or both operands to int to silence this warning
> /common/S3/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.144_7/drivers/gpu/drm/i915/intel_pm.c:3028:12: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
>          changed = ilk_increase_wm_latency(dev_priv, dev_priv->wm.pri_latency, 12) |
>                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                                                                                    ||
> /common/S3/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/graphics/drm-fbsd13-kmod/work/drm-kmod-drm_v5.4.144_7/drivers/gpu/drm/i915/intel_pm.c:3028:12: note: cast one or both operands to int to silence this warning
> 2 errors generated.
> *** Error code 1
> 

PR containing the fix is waiting for x11 approval:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264449

-- 
WBR
Vladimir Kondratyev