summaryrefslogtreecommitdiff
path: root/src/drivers/aspeed
diff options
context:
space:
mode:
authorYidi Lin <yidilin@chromium.org>2024-08-28 16:35:23 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-09-02 09:02:19 +0000
commitd86c5bf83b66565c437b0c3f399c61305c33d870 (patch)
treef2082a1b44d7ff17248944a4b76befc811e2d71c /src/drivers/aspeed
parenta6b42b6c3397c1127bde37b3d1cd029f9ac35e8a (diff)
soc/mediatek/common/pcie: Add DEVTREE_CONST qualifier
Currently pcie.c is built into ramstage only, where DEVTREE_CONST is an empty macro, so there's no problem with that. However, if we would like to include that file in pre-ramstage, then DEVTREE_CONST would be 'const', leading to the following build error: ``` src/soc/mediatek/common/pcie.c:104:26: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 104 | root_dev = pcidev_path_on_root(devfn); | ^ ``` BUG=none TEST=emerge-cherry coreboot Change-Id: Ia7c95424019ec0dca50bbc6be7f81b6180d06d6e Signed-off-by: Yidi Lin <yidilin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84113 Reviewed-by: Jianjun Wang <jianjun.wang@mediatek.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/drivers/aspeed')
0 files changed, 0 insertions, 0 deletions