Fixed various compiler warnings by updating from ACE kernel source.

This commit is contained in:
Jon Benson 2010-10-30 23:29:38 +11:00
parent 877c98b9dc
commit 42948d8a53
7 changed files with 11 additions and 15 deletions

View File

@ -947,11 +947,11 @@ static void init_syms(void) {}
static inline unsigned int read_timestamp(void)
{
unsigned int tick;
unsigned int tick = 0;
do {
tick = readl(TIMESTAMP_ADDR);
} while (tick != (tick = readl(TIMESTAMP_ADDR)));
} while (tick != readl(TIMESTAMP_ADDR));
return tick;
}

View File

@ -1560,6 +1560,9 @@ void submit_bio(int rw, struct bio *bio)
* go through the normal accounting stuff before submission.
*/
if (bio_has_data(bio)) {
#if defined(CONFIG_MSM_RMT_STORAGE_SERVER)
char bde[BDEVNAME_SIZE];
#endif
if (rw & WRITE) {
count_vm_events(PGPGOUT, count);
} else {
@ -1576,9 +1579,8 @@ void submit_bio(int rw, struct bio *bio)
bdevname(bio->bi_bdev, b),
count);
}
#if CONFIG_MSM_RMT_STORAGE_SERVER
#if defined(CONFIG_MSM_RMT_STORAGE_SERVER)
/* Get process info for the bio of writing radio partition in eMMC boot */
char bde[BDEVNAME_SIZE];
if (!strcmp(bdevname(bio->bi_bdev, bde), "mmcblk0")) {
/* 131072 mean modem_st1 partition*/
if (bio->bi_sector < 131072) {

View File

@ -327,9 +327,9 @@ static void part_release(struct device *dev)
kfree(p);
}
static int part_uevent(struct device *dev, struct kobj_uvent_env *env)
static int part_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct gendisk *disk = dev_to_disk(dev);
/*struct gendisk *disk = dev_to_disk(dev);*/ /*Mark unused variable to remove warning message*/
struct hd_struct *part = dev_to_part(dev);
add_uevent_var(env, "PARTN=%u", part->partno);

View File

@ -454,7 +454,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
seq_printf(m, "%d (%s) %c %d %d %d %d %d %u %lu \
%lu %lu %lu %lu %lu %ld %ld %ld %ld %d 0 %llu %lu %ld %lu %lu %lu %lu %lu \
%lu %lu %lu %lu %lu %lu %lu %lu %d %d %u %u %llu %lu %ld %ld\n",
%lu %lu %lu %lu %lu %lu %lu %lu %d %d %u %u %llu %lu %ld %lld\n",
pid_nr_ns(pid, ns),
tcomm,
state,

View File

@ -267,7 +267,6 @@ static void suspend(struct work_struct *work)
{
int ret;
int entry_event_num;
unsigned long irqflags;
pr_info("[R] suspend start\n");
if (has_wake_lock(WAKE_LOCK_SUSPEND)) {
@ -352,6 +351,7 @@ void wake_lock_init(struct wake_lock *lock, int type, const char *name)
if (name)
lock->name = name;
BUG_ON(!lock->name);
BUG_ON(lock->flags & WAKE_LOCK_INITIALIZED);
if (debug_mask & DEBUG_WAKE_LOCK)
pr_info("wake_lock_init name=%s\n", lock->name);

View File

@ -7060,7 +7060,7 @@ cpumask_var_t nohz_cpu_mask;
*/
static void update_sysctl(void)
{
unsigned int cpus = min(num_online_cpus(), 8U);
unsigned int cpus = min((unsigned int)num_online_cpus(), 8U);
unsigned int factor = 1 + ilog2(cpus);
#define SET_SYSCTL(name) \

View File

@ -394,9 +394,3 @@ ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len)
}
EXPORT_SYMBOL(sysfs_format_mac);
char *print_mac(char *buf, const unsigned char *addr)
{
_format_mac_addr(buf, MAC_BUF_SIZE, addr, ETH_ALEN);
return buf;
}
EXPORT_SYMBOL(print_mac);