Minor code adjustments for LLVM
This commit is contained in:
parent
fa5b9a9002
commit
da0c9da996
|
@ -51,7 +51,7 @@ class Kernel::Ipc_node : private Ipc_node_queue::Element
|
|||
|
||||
private:
|
||||
|
||||
friend class Core_thread;
|
||||
friend struct Core_thread;
|
||||
friend class Genode::Fifo<Ipc_node>;
|
||||
|
||||
State _state = INACTIVE;
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace Genode
|
|||
class Kernel::Irq : Genode::Avl_node<Irq>
|
||||
{
|
||||
friend class Genode::Avl_tree<Irq>;
|
||||
friend class Genode::Avl_node<Irq>;
|
||||
friend struct Genode::Avl_node<Irq>;
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Kernel
|
|||
/**
|
||||
* Base class of all Kernel objects
|
||||
*/
|
||||
class Object;
|
||||
struct Object;
|
||||
|
||||
/**
|
||||
* An object identity helps to distinguish different capability owners
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace Kernel
|
|||
{
|
||||
struct Thread_fault;
|
||||
class Thread;
|
||||
class Core_thread;
|
||||
struct Core_thread;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
namespace Genode {
|
||||
|
||||
class Signal_context_component;
|
||||
class Signal_source_component;
|
||||
struct Signal_context_component;
|
||||
struct Signal_source_component;
|
||||
|
||||
typedef Object_pool<Signal_context_component> Signal_context_pool;
|
||||
typedef Object_pool<Signal_source_component> Signal_source_pool;
|
||||
|
@ -50,7 +50,7 @@ struct Genode::Signal_source_component : private Kernel_object<Kernel::Signal_re
|
|||
public Signal_source_pool::Entry
|
||||
{
|
||||
friend class Object_pool<Signal_source_component>;
|
||||
friend class Signal_context_component;
|
||||
friend struct Signal_context_component;
|
||||
|
||||
using Signal_source_pool::Entry::cap;
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
*/
|
||||
|
||||
/* core includes */
|
||||
#include "../../kernel/cpu.h"
|
||||
#include "../../kernel/kernel.h"
|
||||
#include "../../../kernel/cpu.h"
|
||||
#include "../../../kernel/kernel.h"
|
||||
|
||||
void Kernel::Cpu::_arch_init()
|
||||
{
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
* under the terms of the GNU Affero General Public License version 3.
|
||||
*/
|
||||
|
||||
#include "../../kernel/cpu.h"
|
||||
#include "../../kernel/pd.h"
|
||||
#include "../../../kernel/cpu.h"
|
||||
#include "../../../kernel/pd.h"
|
||||
|
||||
|
||||
bool Kernel::Pd::invalidate_tlb(Cpu & cpu, addr_t, size_t)
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
|
||||
/* core includes */
|
||||
#include "../../kernel/cpu.h"
|
||||
#include "../../kernel/thread.h"
|
||||
#include "../../kernel/pd.h"
|
||||
#include "../../../kernel/cpu.h"
|
||||
#include "../../../kernel/thread.h"
|
||||
#include "../../../kernel/pd.h"
|
||||
|
||||
void Kernel::Thread::Tlb_invalidation::execute()
|
||||
{
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
*/
|
||||
|
||||
/* core includes */
|
||||
#include "../../kernel/cpu.h"
|
||||
#include "../../kernel/thread.h"
|
||||
#include "../../../kernel/cpu.h"
|
||||
#include "../../../kernel/thread.h"
|
||||
|
||||
using namespace Kernel;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <port_io.h>
|
||||
#include <board.h>
|
||||
|
||||
namespace Board { class Timer; }
|
||||
namespace Board { struct Timer; }
|
||||
|
||||
/**
|
||||
* LAPIC-based timer driver for core
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
#include <kernel/interface.h>
|
||||
|
||||
namespace Genode {
|
||||
|
||||
struct Native_utcb;
|
||||
|
||||
class Native_utcb;
|
||||
|
||||
/**
|
||||
* The main thread's UTCB, used during bootstrap of the main thread before it
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include <board.h>
|
||||
|
||||
namespace Genode {
|
||||
class Address_space;
|
||||
struct Address_space;
|
||||
class Platform;
|
||||
};
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace Genode
|
|||
/**
|
||||
* Platform specific part of Core's protection domain
|
||||
*/
|
||||
class Core_platform_pd;
|
||||
struct Core_platform_pd;
|
||||
|
||||
using Hw::Page_flags;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
namespace Genode {
|
||||
|
||||
class Pager_object;
|
||||
class Thread_state;
|
||||
struct Thread_state;
|
||||
class Rm_client;
|
||||
class Platform_thread;
|
||||
class Platform_pd;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <base/capability.h>
|
||||
|
||||
/* only needed for base-hw */
|
||||
namespace Kernel { struct Signal_receiver; }
|
||||
namespace Kernel { class Signal_receiver; }
|
||||
|
||||
namespace Genode {
|
||||
|
||||
|
@ -97,7 +97,7 @@ class Genode::Signal
|
|||
*/
|
||||
Signal(Data data);
|
||||
|
||||
friend struct Kernel::Signal_receiver;
|
||||
friend class Kernel::Signal_receiver;
|
||||
friend class Signal_receiver;
|
||||
friend class Signal_context;
|
||||
|
||||
|
|
|
@ -29,14 +29,16 @@ namespace Genode {
|
|||
}
|
||||
|
||||
|
||||
struct Genode::Native_cpu_component
|
||||
class Genode::Native_cpu_component
|
||||
{
|
||||
Native_cpu_component(Cpu_session_component &, char const *) { }
|
||||
public:
|
||||
|
||||
Capability<Cpu_session::Native_cpu> cap()
|
||||
{
|
||||
return Capability<Cpu_session::Native_cpu>();
|
||||
}
|
||||
Native_cpu_component(Cpu_session_component &, char const *) { }
|
||||
|
||||
Capability<Cpu_session::Native_cpu> cap()
|
||||
{
|
||||
return Capability<Cpu_session::Native_cpu>();
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* _CORE__INCLUDE__NATIVE_CPU_COMPONENT_H_ */
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
|
||||
#ifndef _INCLUDE__NANO3D__SQRT_H_
|
||||
#define _INCLUDE__NANO3D__SQRT_H__
|
||||
#define _INCLUDE__NANO3D__SQRT_H_
|
||||
|
||||
namespace Nano3d {
|
||||
|
||||
|
@ -38,4 +38,4 @@ namespace Nano3d {
|
|||
}
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__NANO3D__SQRT_H__ */
|
||||
#endif /* _INCLUDE__NANO3D__SQRT_H_ */
|
||||
|
|
Loading…
Reference in New Issue