summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0569380)
raw | patch | inline | side by side (parent: 0569380)
author | Angela Stegmaier <angelabaker@ti.com> | |
Mon, 27 Mar 2017 18:42:29 +0000 (13:42 -0500) | ||
committer | Angela Stegmaier <angelabaker@ti.com> | |
Fri, 31 Mar 2017 15:05:12 +0000 (10:05 -0500) |
Fix the following compiler warnings in the Linux GateHWSpinlock
module:
../../../linux/src/api/gates/GateHWSpinlock.c: In function 'GateHWSpinlock_enter':
../../../linux/src/api/gates/GateHWSpinlock.c:346:23: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
locked = !ioctl(Mod->fd, HWSPINLOCK_USER_LOCK, &data);
GateHWSpinlock.c: In function 'GateHWSpinlock_enter':
GateHWSpinlock.c:283:23: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
locked = !ioctl(Mod->fd, HWSPINLOCK_USER_LOCK, &data);
^
GateHWSpinlock_daemon.c: In function 'GateHWSpinlock_getConfig':
GateHWSpinlock_daemon.c:61:9: warning: unused variable 'i' [-Wunused-variable]
int i;
^
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
module:
../../../linux/src/api/gates/GateHWSpinlock.c: In function 'GateHWSpinlock_enter':
../../../linux/src/api/gates/GateHWSpinlock.c:346:23: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
locked = !ioctl(Mod->fd, HWSPINLOCK_USER_LOCK, &data);
GateHWSpinlock.c: In function 'GateHWSpinlock_enter':
GateHWSpinlock.c:283:23: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
locked = !ioctl(Mod->fd, HWSPINLOCK_USER_LOCK, &data);
^
GateHWSpinlock_daemon.c: In function 'GateHWSpinlock_getConfig':
GateHWSpinlock_daemon.c:61:9: warning: unused variable 'i' [-Wunused-variable]
int i;
^
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
linux/src/api/gates/GateHWSpinlock.c | patch | blob | history | |
linux/src/daemon/GateHWSpinlock.c | patch | blob | history | |
linux/src/daemon/GateHWSpinlock_daemon.c | patch | blob | history |
index 64fa93a40d2f665df5fc128d5cc9092a7a42be1b..5e4538c9a5ca799cfc9b3264be4c6d7ff20e306a 100644 (file)
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
+#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
-#include <linux/ioctl.h>
#include <linux/hwspinlock_user.h>
/* =============================================================================
index 391b6f611a9e9034a6b82d16f5ce1be423ac884b..adae4fca0451098566e9a48d0a8e6d99fede11b0 100644 (file)
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
+#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
-#include <linux/ioctl.h>
#include <linux/hwspinlock_user.h>
/* =============================================================================
index bc19c7969439511542e55da0a46176f7bb224d27..de820fb04c0b62ef13a3c4cea44b48357bc56207 100644 (file)
/* Get the default config address & sizes of the GateHWSpinlock module. */
Void GateHWSpinlock_getConfig (GateHWSpinlock_Config * cfgParams)
{
- int i;
-
assert (cfgParams != NULL);
/* Setup MultiProc config */