Skip to content

Commit

Permalink
GCC 4.9.1: fix compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
  • Loading branch information
labodj authored and StefanescuCristian committed Jun 4, 2014
1 parent 3dfe075 commit 589c356
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions drivers/crypto/msm/qcedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,9 @@ static int qcedev_sha_update(struct qcedev_async_req *qcedev_areq,
struct scatterlist *sg_src)
{
int err = 0;
int i = 0;
int j = 0;
int k = 0;
unsigned int i = 0;
unsigned int j = 0;
unsigned int k = 0;
int num_entries = 0;
uint32_t total = 0;

Expand Down Expand Up @@ -1408,9 +1408,9 @@ static int qcedev_vbuf_ablk_cipher(struct qcedev_async_req *areq,
{
int err = 0;
int di = 0;
int i = 0;
int j = 0;
int k = 0;
unsigned int i = 0;
unsigned int j = 0;
unsigned int k = 0;
uint32_t byteoffset = 0;
int num_entries = 0;
uint32_t total = 0;
Expand Down
1 change: 1 addition & 0 deletions drivers/media/platform/msm/camera_v2/ispif/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ccflags-y := -Wno-maybe-uninitialized
ccflags-y += -Idrivers/media/platform/msm/camera_v2
ccflags-y += -Idrivers/media/platform/msm/camera_v2/sensor/io
obj-$(CONFIG_MSM_CSID) += msm_ispif.o
2 changes: 1 addition & 1 deletion drivers/slimbus/slimbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ int slim_xfer_msg(struct slim_controller *ctrl, struct slim_device *sbdev,
int ret;
u16 sl, cur;
u16 ec;
u8 tid, mlen = 6;
u8 tid = 0, mlen = 6;

ret = slim_ele_access_sanity(msg, mc, rbuf, wbuf, len);
if (ret)
Expand Down
4 changes: 2 additions & 2 deletions fs/fat/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ EXPORT_SYMBOL_GPL(fat_get_dotdot_entry);
int fat_dir_empty(struct inode *dir)
{
struct buffer_head *bh;
struct msdos_dir_entry *de;
struct msdos_dir_entry *de = NULL;
loff_t cpos;
int result = 0;

Expand All @@ -913,7 +913,7 @@ EXPORT_SYMBOL_GPL(fat_dir_empty);
int fat_subdirs(struct inode *dir)
{
struct buffer_head *bh;
struct msdos_dir_entry *de;
struct msdos_dir_entry *de = NULL;
loff_t cpos;
int count = 0;

Expand Down
2 changes: 1 addition & 1 deletion kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ static int audit_filter_rules(struct task_struct *tsk,
static enum audit_state audit_filter_task(struct task_struct *tsk, char **key)
{
struct audit_entry *e;
enum audit_state state;
enum audit_state state = 0;

rcu_read_lock();
list_for_each_entry_rcu(e, &audit_filter_list[AUDIT_FILTER_TASK], list) {
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,9 @@ static int msm_routing_set_srs_trumedia_control_(struct snd_kcontrol *kcontrol,
__func__, i, i>>1);
break;
}
pr_debug("SRS %s: param_index %d index %d val %d",
__func__, index, i,
msm_srs_trumedia_params[index].raw_params[i]);
//pr_debug("SRS %s: param_index %d index %d val %d",
// __func__, index, i,
// msm_srs_trumedia_params[index].raw_params[i]);
}
}
return 0;
Expand Down

0 comments on commit 589c356

Please sign in to comment.