os: Disambiguate friend Avl_node.

It seems clang does not take "using namespace Genode" statement in
Driver namespace into account when parsing those friend Avl_node
lines.

Issue #4421
This commit is contained in:
Piotr Tworek 2021-12-18 21:47:58 +01:00 committed by Norman Feske
parent 5e93a5806b
commit f1f3b423ec
3 changed files with 6 additions and 6 deletions

View File

@ -36,8 +36,8 @@ class Driver::Clock : Clocks::Element, Interface
/* friendships needed to make 'Clocks::Element' private */
friend class Clocks::Element;
friend class Avl_node<Clock>;
friend class Avl_tree<Clock>;
friend class Genode::Avl_node<Clock>;
friend class Genode::Avl_tree<Clock>;
Switch<Clock> _switch { *this, &Clock::_enable, &Clock::_disable };

View File

@ -33,8 +33,8 @@ class Driver::Power : Powers::Element, Interface
/* friendships needed to make 'Powers::Element' private */
friend class Powers::Element;
friend class Avl_node<Power>;
friend class Avl_tree<Power>;
friend class Genode::Avl_node<Power>;
friend class Genode::Avl_tree<Power>;
Switch<Power> _switch { *this, &Power::_on, &Power::_off };

View File

@ -33,8 +33,8 @@ class Driver::Reset : Resets::Element, Interface
/* friendships needed to make 'Resets::Element' private */
friend class Resets::Element;
friend class Avl_node<Reset>;
friend class Avl_tree<Reset>;
friend class Genode::Avl_node<Reset>;
friend class Genode::Avl_tree<Reset>;
Switch<Reset> _switch { *this, &Reset::_deassert, &Reset::_assert };