kernel: Fix build errors due to uninitialized variables
Newer gcc version requires all variables to be initialized. Change-Id: I2f3029d17fab36ec6612552d4d2648e317f261d8 Signed-off-by: Siddeswar Alugant <salugant@codeaurora.org> Signed-off-by: Bruce Levy <blevy@codeaurora.org>
This commit is contained in:
committed by
Bruce Levy
parent
d91ef6f6ef
commit
c1c252d038
@@ -471,7 +471,7 @@ static long qbt1000_ioctl(
|
||||
case QBT1000_SEND_TZCMD:
|
||||
{
|
||||
struct qbt1000_send_tz_cmd tzcmd;
|
||||
void *rsp_buf;
|
||||
void *rsp_buf = NULL;
|
||||
|
||||
if (copy_from_user(&tzcmd, priv_arg,
|
||||
sizeof(tzcmd))
|
||||
@@ -861,8 +861,8 @@ static irqreturn_t qbt1000_gpio_isr(int irq, void *dev_id)
|
||||
static irqreturn_t qbt1000_ipc_irq_handler(int irq, void *dev_id)
|
||||
{
|
||||
uint8_t *msg_buffer;
|
||||
struct fw_ipc_cmd *rx_cmd;
|
||||
struct fw_ipc_header *header;
|
||||
struct fw_ipc_cmd *rx_cmd = NULL;
|
||||
struct fw_ipc_header *header = NULL;
|
||||
int i, j;
|
||||
uint32_t rxipc = FP_APP_CMD_RX_IPC;
|
||||
struct qbt1000_drvdata *drvdata = (struct qbt1000_drvdata *)dev_id;
|
||||
|
||||
@@ -109,7 +109,7 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv,
|
||||
struct timezone __user *, tz)
|
||||
{
|
||||
struct timeval user_tv;
|
||||
struct timespec new_ts;
|
||||
struct timespec new_ts = {0};
|
||||
struct timezone new_tz;
|
||||
|
||||
if (tv) {
|
||||
|
||||
@@ -194,7 +194,7 @@ SYSCALL_DEFINE2(settimeofday, struct timeval __user *, tv,
|
||||
struct timezone __user *, tz)
|
||||
{
|
||||
struct timeval user_tv;
|
||||
struct timespec new_ts;
|
||||
struct timespec new_ts = {0};
|
||||
struct timezone new_tz;
|
||||
|
||||
if (tv) {
|
||||
|
||||
Reference in New Issue
Block a user