From c62a947a2804c3027471b20815c7544e0fd698d0 Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 2 Dec 2022 14:20:39 +0100 Subject: api: Make NetInfo* of checkPipAvailForNet const Signed-off-by: gatecat --- common/kernel/base_arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/kernel/base_arch.h') diff --git a/common/kernel/base_arch.h b/common/kernel/base_arch.h index 3055619d..55fcf280 100644 --- a/common/kernel/base_arch.h +++ b/common/kernel/base_arch.h @@ -274,7 +274,7 @@ template struct BaseArch : ArchAPI p2n_entry = nullptr; } virtual bool checkPipAvail(PipId pip) const override { return getBoundPipNet(pip) == nullptr; } - virtual bool checkPipAvailForNet(PipId pip, NetInfo *net) const override + virtual bool checkPipAvailForNet(PipId pip, const NetInfo *net) const override { NetInfo *bound_net = getBoundPipNet(pip); return bound_net == nullptr || bound_net == net; -- cgit v1.2.3