Issue 52923
Summary Kernel 5.15.11 (and higher) C syntax parse error
Labels new issue
Assignees
Reporter ErichLoew
    Compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project.git 946eb7a037d5f83ea9cdc99bac0f939ddd344e09)
          Target: x86_64-unknown-linux-gnu
          Thread model: posix
Kernel:   5.15.11 vanilla
Module:   source/drivers/gpu/drm/i915/intel_pm.c
Method:   snb_wm_latency_quirk(struct drm_i915_private *dev_priv)
Observations:
  --> Compiles fine with "gcc (GCC) 11.2.0" without changes of source code
  --> clang 14.0.0 fails on original source code --> source code mitigation changes are required.
Mitigation for clang 14.0.0:
        A) Change ilk_increase_wm_latency() to return int instead of bool
        B) Updated statement:
           changed = (bool)(ilk_increase_wm_latency(dev_priv, dev_priv->wm.pri_latency, 12) |
                            ilk_increase_wm_latency(dev_priv, dev_priv->wm.spr_latency, 12) |
                            ilk_increase_wm_latency(dev_priv, dev_priv->wm.cur_latency, 12));
Guess: clang-14 refuses usage of data type bool inside of bit logic evaluating statements.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to