kernel: Correct class/struct mixups.

Almost certainly harmless. Spotted by Clang.
This commit is contained in:
Augustin Cavalier
2017-12-01 20:27:15 -05:00
parent d3abf525c5
commit 30c9d3c0cc
7 changed files with 11 additions and 12 deletions
+3 -3
View File
@@ -148,9 +148,9 @@ protected:
status_t Init(const char* name, uint32 allocationFlags);
protected:
friend class VMAddressSpace;
friend class VMKernelAddressSpace;
friend class VMUserAddressSpace;
friend struct VMAddressSpace;
friend struct VMKernelAddressSpace;
friend struct VMUserAddressSpace;
protected:
void SetBase(addr_t base) { fBase = base; }
+1 -1
View File
@@ -20,7 +20,7 @@
struct kernel_args;
class ObjectCache;
struct ObjectCache;
enum {
+3 -3
View File
@@ -25,7 +25,7 @@
allocations won't fail */
#define B_DELETE_IO_REQUEST 0x04 /* delete request when finished */
struct DMABuffer;
class DMABuffer;
struct IOOperation;
typedef struct IOOperation io_operation;
@@ -85,8 +85,8 @@ private:
};
class IORequest;
class IORequestOwner;
struct IORequest;
struct IORequestOwner;
class IORequestChunk {
@@ -31,8 +31,8 @@
namespace Scheduler {
struct CPUEntry;
struct CoreEntry;
class CPUEntry;
class CoreEntry;
const int kLowLoad = kMaxLoad * 20 / 100;
const int kTargetLoad = kMaxLoad * 55 / 100;
+1 -1
View File
@@ -93,7 +93,7 @@ private:
typedef BOpenHashTable<Definition, false, false,
InternalAllocator> HashTable;
friend class Definition;
friend struct Definition;
private:
void _ResizeHashTableIfNeeded(uint32 flags);
+1 -1
View File
@@ -94,7 +94,7 @@ private:
Area* GetArea() const;
};
friend class MetaChunk;
friend struct MetaChunk;
typedef DoublyLinkedList<MetaChunk> MetaChunkList;
struct Area : DoublyLinkedListLinkImpl<Area> {
-1
View File
@@ -18,7 +18,6 @@
#include "slab_debug.h"
class AllocationTrackingInfo;
struct ResizeRequest;