white space cleanup

This commit is contained in:
Jérôme Duval
2018-02-10 16:15:37 +01:00
parent e2e571c035
commit 718d7149b1
21 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ apm_init(kernel_args *args)
// use the BIOS data segment as data segment for APM // use the BIOS data segment as data segment for APM
if (info.data_segment_length == 0) { if (info.data_segment_length == 0) {
args->platform_args.apm.data_segment_length = B_PAGE_SIZE args->platform_args.apm.data_segment_length = B_PAGE_SIZE
- info.data_segment_base; - info.data_segment_base;
} }
+2 -2
View File
@@ -80,7 +80,7 @@ load_cpufreq_module()
} else } else
put_module(name); put_module(name);
} else } else
sCPUPerformanceModule = current; sCPUPerformanceModule = current;
} }
} }
@@ -114,7 +114,7 @@ load_cpuidle_module()
} else } else
put_module(name); put_module(name);
} else } else
sCPUIdleModule = current; sCPUIdleModule = current;
} }
} }
+1 -1
View File
@@ -394,7 +394,7 @@ remove_check_set(ParanoiaCheckSet* set)
} }
static ParanoiaCheckSet* static ParanoiaCheckSet*
lookup_check_set(const void* object) lookup_check_set(const void* object)
{ {
int slot = (addr_t)object % PARANOIA_HASH_SIZE; int slot = (addr_t)object % PARANOIA_HASH_SIZE;
@@ -92,7 +92,7 @@ DMABuffer::Dump() const
DMAResource::DMAResource() DMAResource::DMAResource()
: :
fScratchVecs(NULL) fScratchVecs(NULL)
{ {
mutex_init(&fLock, "dma resource"); mutex_init(&fLock, "dma resource");
@@ -1,4 +1,4 @@
/* /*
* Copyright 2008, Ingo Weinhold, [email protected]. * Copyright 2008, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@@ -1,7 +1,7 @@
/* /*
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the Haiku License. * Distributed under the terms of the Haiku License.
*/ */
#include <setjmp.h> #include <setjmp.h>
+1 -1
View File
@@ -2,7 +2,7 @@ SubDir HAIKU_TOP src system kernel posix ;
UsePrivateHeaders shared ; UsePrivateHeaders shared ;
KernelMergeObject kernel_posix.o : KernelMergeObject kernel_posix.o :
realtime_sem.cpp realtime_sem.cpp
xsi_message_queue.cpp xsi_message_queue.cpp
xsi_semaphore.cpp xsi_semaphore.cpp
+2 -2
View File
@@ -1011,7 +1011,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
if (!semaphoreSet->HasPermission()) { if (!semaphoreSet->HasPermission()) {
TRACE_ERROR(("xsi_semctl: calling process has not " TRACE_ERROR(("xsi_semctl: calling process has not "
"permission on semaphore %d, key %d\n", "permission on semaphore %d, key %d\n",
semaphoreSet->ID(), (int)semaphoreSet->IpcKey())); semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
result = EACCES; result = EACCES;
} else { } else {
struct semid_ds sem; struct semid_ds sem;
@@ -1034,7 +1034,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
if (!semaphoreSet->HasPermission()) { if (!semaphoreSet->HasPermission()) {
TRACE_ERROR(("xsi_semctl: calling process has not " TRACE_ERROR(("xsi_semctl: calling process has not "
"permission on semaphore %d, key %d\n", "permission on semaphore %d, key %d\n",
semaphoreSet->ID(), (int)semaphoreSet->IpcKey())); semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
return EACCES; return EACCES;
} }
key_t key = semaphoreSet->IpcKey(); key_t key = semaphoreSet->IpcKey();
+1 -1
View File
@@ -450,7 +450,7 @@ public:
private: private:
bool fPrintStackTrace; bool fPrintStackTrace;
addr_t fAddressFilter; addr_t fAddressFilter;
team_id fTeamFilter; team_id fTeamFilter;
thread_id fThreadFilter; thread_id fThreadFilter;
}; };
@@ -28,7 +28,7 @@ int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *i
int mount(const char *filesystem, const char *where, const char *device, ulong flags, int mount(const char *filesystem, const char *where, const char *device, ulong flags,
void *parms, int len); void *parms, int len);
int unmount(const char *path); int unmount(const char *path);
long get_nth_pci_info(long index, pci_info *info); long get_nth_pci_info(long index, pci_info *info);
int int
+1 -1
View File
@@ -1,4 +1,4 @@
/* /*
* Copyright 2003-2004, Axel Dörfler, [email protected]. * Copyright 2003-2004, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
+1 -1
View File
@@ -15,7 +15,7 @@ find_thread(const char *name)
// in BeOS R5 OS.h as inline function. Do not change storage of thread id. // in BeOS R5 OS.h as inline function. Do not change storage of thread id.
if (!name) { if (!name) {
thread_id thread; thread_id thread;
__asm__ __volatile__ ( __asm__ __volatile__ (
"movl %%fs:4, %%eax \n\t" "movl %%fs:4, %%eax \n\t"
: "=a" (thread)); : "=a" (thread));
return thread; return thread;
+3 -3
View File
@@ -47,7 +47,7 @@ void *
tls_get(int32 index) tls_get(int32 index)
{ {
void *ret; void *ret;
__asm__ __volatile__ ( __asm__ __volatile__ (
"movl %%fs:(, %1, 4), %0" "movl %%fs:(, %1, 4), %0"
: "=r" (ret) : "r" (index)); : "=r" (ret) : "r" (index));
return ret; return ret;
@@ -58,7 +58,7 @@ void **
tls_address(int32 index) tls_address(int32 index)
{ {
void **ret; void **ret;
__asm__ __volatile__ ( __asm__ __volatile__ (
"movl %%fs:0, %0\n\t" "movl %%fs:0, %0\n\t"
"leal (%0, %1, 4), %0\n\t" "leal (%0, %1, 4), %0\n\t"
: "=&r" (ret) : "r" (index)); : "=&r" (ret) : "r" (index));
@@ -69,7 +69,7 @@ tls_address(int32 index)
void void
tls_set(int32 index, void *value) tls_set(int32 index, void *value)
{ {
__asm__ __volatile__ ( __asm__ __volatile__ (
"movl %1, %%fs:(, %0, 4)" "movl %1, %%fs:(, %0, 4)"
: : "r" (index), "r" (value)); : : "r" (index), "r" (value));
} }
@@ -1,4 +1,4 @@
/* /*
* Copyright 2014, Paweł Dziepak, [email protected]. * Copyright 2014, Paweł Dziepak, [email protected].
* Copyright 2003-2004, Axel Dörfler, [email protected]. * Copyright 2003-2004, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
+4 -4
View File
@@ -1,7 +1,7 @@
/* /*
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#include <OS.h> #include <OS.h>
+4 -4
View File
@@ -1,7 +1,7 @@
/* /*
** Copyright 2003, Marcus Overhagen. All rights reserved. * Copyright 2003, Marcus Overhagen. All rights reserved.
** Distributed under the terms of the Haiku License. * Distributed under the terms of the Haiku License.
*/ */
#include <SupportDefs.h> #include <SupportDefs.h>
+1 -1
View File
@@ -233,7 +233,7 @@ _sPrintf(const char *fmt, ...)
va_end(ap); va_end(ap);
if (ret >= 0) if (ret >= 0)
_kern_debug_output(buffer); _kern_debug_output(buffer);
return ret; return ret;
} }
+2 -2
View File
@@ -1,5 +1,5 @@
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered // This software is part of the OpenBeOS distribution and is covered
// by the MIT License. // by the MIT License.
//--------------------------------------------------------------------- //---------------------------------------------------------------------
@@ -275,7 +275,7 @@ partition_session(int deviceFD, int32 sessionIndex, const char *identifier,
\return \c B_OK, if everything went fine, an error code otherwise. \return \c B_OK, if everything went fine, an error code otherwise.
*/ */
status_t status_t
initialize_volume(const char *where, const char *fileSystem, initialize_volume(const char *where, const char *fileSystem,
const char *volumeName, const char *parameters) const char *volumeName, const char *parameters)
{ {
// not yet implemented // not yet implemented
+4 -4
View File
@@ -1,7 +1,7 @@
/* /*
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#include <OS.h> #include <OS.h>
+1 -1
View File
@@ -1,4 +1,4 @@
/* /*
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the MIT License. ** Distributed under the terms of the MIT License.
*/ */
+1 -1
View File
@@ -165,7 +165,7 @@ unnamed_sem_timedwait(sem_t* semaphore, const struct timespec* timeout) {
if (result == 0) if (result == 0)
return 0; return 0;
return _kern_mutex_sem_acquire(sem, NULL, return _kern_mutex_sem_acquire(sem, NULL,
timeoutMicros == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT, timeoutMicros == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT,
timeoutMicros); timeoutMicros);
} }