Skip to content

Commit

Permalink
Fix some more build warnings
Browse files Browse the repository at this point in the history
Still plenty of build warnings to go.

Change-Id: I300fada2929d6383f6c4bcc45dee234adbb89032
Signed-off-by: Bryan Hundven <[email protected]>
  • Loading branch information
bhundven committed Dec 14, 2011
1 parent 0534e54 commit 3e46e19
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ modules.builtin
/System.map
/Module.markers
/Module.symvers
/build

#
# git files that we don't want to ignore even it they are dot-files
Expand Down
7 changes: 6 additions & 1 deletion crypto/ace.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,15 @@ static int s5p_ace_aes_engine_start(struct s5p_ace_aes_ctx *sctx,
return 0;
}

#if defined(CONFIG_ACE_SWAES_FOR_SMALLBLOCK)
static void s5p_ace_aes_engine_wait(struct s5p_ace_aes_ctx *sctx,
u8 *out, const u8 *in, u32 len)
{
while (!(s5p_ace_read_sfr(ACE_FC_INTPEND) & ACE_FC_BTDMA))
; /* wait */
s5p_ace_write_sfr(ACE_FC_INTPEND, ACE_FC_BTDMA | ACE_FC_BRDMA);
}
#endif

#if defined(CONFIG_ACE_AES_SINGLE_BLOCK) || !defined(CONFIG_ACE_BC_ASYNC)
static int s5p_ace_aes_run_engine(struct s5p_ace_aes_ctx *sctx,
Expand Down Expand Up @@ -1946,7 +1948,10 @@ static int __init s5p_ace_probe(struct platform_device *pdev)
#if defined(CONFIG_ACE_USE_ACP)
void __iomem *ace_sss_user_con;
#endif
int i, j, k;
int i, k;
#if defined(CONFIG_ACE_HASH)
int j;
#endif
int ret;

memset(s5p_adt, 0, sizeof(*s5p_adt));
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/s3c_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ int s3c_mem_ioctl(struct inode *inode, struct file *file,
if (copy_from_user(&param, (void __user *)arg, sizeof(struct s3c_mem_dma_param)))
return -EFAULT;

dmac_map_area((param.src_addr)&PAGE_MASK, param.size, DMA_FROM_DEVICE);
dmac_map_area((void *)((param.src_addr)&PAGE_MASK), param.size, DMA_FROM_DEVICE);
//invalidate_kernel_vmap_range((void *)((param.src_addr)&PAGE_MASK), param.size);
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ config ARCH_HAS_ASYNC_TX_FIND_CHANNEL
config PL330_DMA
tristate "DMA API Driver for PL330"
select DMA_ENGINE
select ARM_AMBA
depends on PL330
help
Select if your platform has one or more PL330 DMACs.
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/pvr/dbgdrvif.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,6 @@ typedef struct _DBGKM_SERVICE_TABLE_
IMG_UINT32 (IMG_CALLCONV *pfnWritePersist) (PDBG_STREAM psStream,IMG_UINT8 *pui8InBuf,IMG_UINT32 ui32InBuffSize,IMG_UINT32 ui32Level);
} DBGKM_SERVICE_TABLE, *PDBGKM_SERVICE_TABLE;

extern IMG_VOID DBGDrvGetServiceTable(IMG_VOID **fn_table);

#endif
4 changes: 4 additions & 0 deletions kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ EXPORT_SYMBOL(panic_notifier_list);
long (*panic_blink)(long time);
EXPORT_SYMBOL(panic_blink);

#ifndef CONFIG_KERNEL_DEBUG_SEC
static void panic_blink_one_second(void)
{
static long i = 0, end;
Expand All @@ -71,6 +72,7 @@ static void panic_blink_one_second(void)
mdelay(MSEC_PER_SEC);
}
}
#endif /* ! CONFIG_KERNEL_DEBUG_SEC */

/**
* panic - halt the system
Expand All @@ -84,7 +86,9 @@ NORET_TYPE void panic(const char * fmt, ...)
{
static char buf[1024];
va_list args;
#ifndef CONFIG_KERNEL_DEBUG_SEC
long i;
#endif

/*
* It's possible to come here directly from a panic-assertion and
Expand Down
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7521,7 +7521,7 @@ void __init sched_init(void)
#endif

checksum = &(GAFINFO.GAFINFOCheckSum);
memory = &GAFINFO;
memory = (unsigned char *)&GAFINFO;
for (*checksum = 0, address = 0; address < (sizeof(GAFINFO) - sizeof(GAFINFO.GAFINFOCheckSum)); address++) {
if ((*checksum) & 0x8000)
(*checksum) = (((*checksum) << 1) | 1 ) ^ memory[address];
Expand Down

0 comments on commit 3e46e19

Please sign in to comment.