Minor code adjustments for LLVM

This commit is contained in:
Emery Hemingway 2020-02-11 13:46:54 +01:00
parent fa5b9a9002
commit da0c9da996
18 changed files with 34 additions and 32 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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

View File

@ -29,7 +29,7 @@ namespace Kernel
{
struct Thread_fault;
class Thread;
class Core_thread;
struct Core_thread;
}

View File

@ -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;

View File

@ -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()
{

View File

@ -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)

View File

@ -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()
{

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -37,7 +37,7 @@
#include <board.h>
namespace Genode {
class Address_space;
struct Address_space;
class Platform;
};

View File

@ -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;
}

View File

@ -34,7 +34,7 @@
namespace Genode {
class Pager_object;
class Thread_state;
struct Thread_state;
class Rm_client;
class Platform_thread;
class Platform_pd;

View File

@ -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;

View File

@ -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_ */

View File

@ -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_ */