Yidi Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84113?usp=email )
Change subject: soc/mediatek/common/pcie: Add DEVTREE_CONST qualifier ......................................................................
soc/mediatek/common/pcie: Add DEVTREE_CONST qualifier
Fix the compilation error for
``` 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 --- M src/soc/mediatek/common/pcie.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/84113/1
diff --git a/src/soc/mediatek/common/pcie.c b/src/soc/mediatek/common/pcie.c index ce9055a..c07cc4f 100644 --- a/src/soc/mediatek/common/pcie.c +++ b/src/soc/mediatek/common/pcie.c @@ -96,7 +96,7 @@
static uintptr_t mtk_pcie_get_controller_base(pci_devfn_t devfn) { - struct device *root_dev; + DEVTREE_CONST struct device *root_dev; const mtk_soc_config_t *config; static uintptr_t base = 0;