Commit 2020608
rockchip64: panel-simple-dsi: fix clang -Wincompatible-pointer-types-discards-qualifiers
of_get_drm_display_mode() takes u32 *bus_format, but the patch passed
&p->desc->bus_format where desc is const struct panel_desc *. GCC
tolerates this; clang rejects it under -Werror since the removal of
the blanket -Wno-error=unknown-warning-option from KCFLAGS.
The pointed-to memory is actually writable (desc is allocated via
devm_kmemdup in this driver), so cast the constness away at the call
site. Applied to rockchip64-6.6/6.12/6.18/7.1; the 7.2 copy of the
patch is .disabled and left untouched.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d18ee3a commit 2020608
4 files changed
Lines changed: 4 additions & 4 deletions
File tree
- patch/kernel/archive
- rockchip64-6.12
- rockchip64-6.18
- rockchip64-6.6
- rockchip64-7.1
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
0 commit comments