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); status_t Init(const char* name, uint32 allocationFlags);
protected: protected:
friend class VMAddressSpace; friend struct VMAddressSpace;
friend class VMKernelAddressSpace; friend struct VMKernelAddressSpace;
friend class VMUserAddressSpace; friend struct VMUserAddressSpace;
protected: protected:
void SetBase(addr_t base) { fBase = base; } void SetBase(addr_t base) { fBase = base; }
+1 -1
View File
@@ -20,7 +20,7 @@
struct kernel_args; struct kernel_args;
class ObjectCache; struct ObjectCache;
enum { enum {
+3 -3
View File
@@ -25,7 +25,7 @@
allocations won't fail */ allocations won't fail */
#define B_DELETE_IO_REQUEST 0x04 /* delete request when finished */ #define B_DELETE_IO_REQUEST 0x04 /* delete request when finished */
struct DMABuffer; class DMABuffer;
struct IOOperation; struct IOOperation;
typedef struct IOOperation io_operation; typedef struct IOOperation io_operation;
@@ -85,8 +85,8 @@ private:
}; };
class IORequest; struct IORequest;
class IORequestOwner; struct IORequestOwner;
class IORequestChunk { class IORequestChunk {
@@ -31,8 +31,8 @@
namespace Scheduler { namespace Scheduler {
struct CPUEntry; class CPUEntry;
struct CoreEntry; class CoreEntry;
const int kLowLoad = kMaxLoad * 20 / 100; const int kLowLoad = kMaxLoad * 20 / 100;
const int kTargetLoad = kMaxLoad * 55 / 100; const int kTargetLoad = kMaxLoad * 55 / 100;
+1 -1
View File
@@ -93,7 +93,7 @@ private:
typedef BOpenHashTable<Definition, false, false, typedef BOpenHashTable<Definition, false, false,
InternalAllocator> HashTable; InternalAllocator> HashTable;
friend class Definition; friend struct Definition;
private: private:
void _ResizeHashTableIfNeeded(uint32 flags); void _ResizeHashTableIfNeeded(uint32 flags);
+1 -1
View File
@@ -94,7 +94,7 @@ private:
Area* GetArea() const; Area* GetArea() const;
}; };
friend class MetaChunk; friend struct MetaChunk;
typedef DoublyLinkedList<MetaChunk> MetaChunkList; typedef DoublyLinkedList<MetaChunk> MetaChunkList;
struct Area : DoublyLinkedListLinkImpl<Area> { struct Area : DoublyLinkedListLinkImpl<Area> {
-1
View File
@@ -18,7 +18,6 @@
#include "slab_debug.h" #include "slab_debug.h"
class AllocationTrackingInfo;
struct ResizeRequest; struct ResizeRequest;