Commit 226a6ec3 authored by Vegard Nossum's avatar Vegard Nossum Committed by Bryan Wu

Blackfin arch: sram: use 'unsigned long' for irqflags

Using just 'unsigned' will make flags an unsigned int. While this is
arguably not an error on blackfin where sizeof(int) == sizeof(long),
the patch is still justified on the grounds of principle.

The patch was generated using the Coccinelle semantic patch framework.

Cc: Julia Lawall <julia@diku.dk>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent a95ca3b2
...@@ -379,7 +379,7 @@ EXPORT_SYMBOL(sram_free); ...@@ -379,7 +379,7 @@ EXPORT_SYMBOL(sram_free);
void *l1_data_A_sram_alloc(size_t size) void *l1_data_A_sram_alloc(size_t size)
{ {
unsigned flags; unsigned long flags;
void *addr = NULL; void *addr = NULL;
/* add mutex operation */ /* add mutex operation */
...@@ -402,7 +402,7 @@ EXPORT_SYMBOL(l1_data_A_sram_alloc); ...@@ -402,7 +402,7 @@ EXPORT_SYMBOL(l1_data_A_sram_alloc);
int l1_data_A_sram_free(const void *addr) int l1_data_A_sram_free(const void *addr)
{ {
unsigned flags; unsigned long flags;
int ret; int ret;
/* add mutex operation */ /* add mutex operation */
...@@ -425,7 +425,7 @@ EXPORT_SYMBOL(l1_data_A_sram_free); ...@@ -425,7 +425,7 @@ EXPORT_SYMBOL(l1_data_A_sram_free);
void *l1_data_B_sram_alloc(size_t size) void *l1_data_B_sram_alloc(size_t size)
{ {
#if L1_DATA_B_LENGTH != 0 #if L1_DATA_B_LENGTH != 0
unsigned flags; unsigned long flags;
void *addr; void *addr;
/* add mutex operation */ /* add mutex operation */
...@@ -450,7 +450,7 @@ EXPORT_SYMBOL(l1_data_B_sram_alloc); ...@@ -450,7 +450,7 @@ EXPORT_SYMBOL(l1_data_B_sram_alloc);
int l1_data_B_sram_free(const void *addr) int l1_data_B_sram_free(const void *addr)
{ {
#if L1_DATA_B_LENGTH != 0 #if L1_DATA_B_LENGTH != 0
unsigned flags; unsigned long flags;
int ret; int ret;
/* add mutex operation */ /* add mutex operation */
...@@ -504,7 +504,7 @@ EXPORT_SYMBOL(l1_data_sram_free); ...@@ -504,7 +504,7 @@ EXPORT_SYMBOL(l1_data_sram_free);
void *l1_inst_sram_alloc(size_t size) void *l1_inst_sram_alloc(size_t size)
{ {
#if L1_CODE_LENGTH != 0 #if L1_CODE_LENGTH != 0
unsigned flags; unsigned long flags;
void *addr; void *addr;
/* add mutex operation */ /* add mutex operation */
...@@ -529,7 +529,7 @@ EXPORT_SYMBOL(l1_inst_sram_alloc); ...@@ -529,7 +529,7 @@ EXPORT_SYMBOL(l1_inst_sram_alloc);
int l1_inst_sram_free(const void *addr) int l1_inst_sram_free(const void *addr)
{ {
#if L1_CODE_LENGTH != 0 #if L1_CODE_LENGTH != 0
unsigned flags; unsigned long flags;
int ret; int ret;
/* add mutex operation */ /* add mutex operation */
...@@ -551,7 +551,7 @@ EXPORT_SYMBOL(l1_inst_sram_free); ...@@ -551,7 +551,7 @@ EXPORT_SYMBOL(l1_inst_sram_free);
/* L1 Scratchpad memory allocate function */ /* L1 Scratchpad memory allocate function */
void *l1sram_alloc(size_t size) void *l1sram_alloc(size_t size)
{ {
unsigned flags; unsigned long flags;
void *addr; void *addr;
/* add mutex operation */ /* add mutex operation */
...@@ -569,7 +569,7 @@ void *l1sram_alloc(size_t size) ...@@ -569,7 +569,7 @@ void *l1sram_alloc(size_t size)
/* L1 Scratchpad memory allocate function */ /* L1 Scratchpad memory allocate function */
void *l1sram_alloc_max(size_t *psize) void *l1sram_alloc_max(size_t *psize)
{ {
unsigned flags; unsigned long flags;
void *addr; void *addr;
/* add mutex operation */ /* add mutex operation */
...@@ -587,7 +587,7 @@ void *l1sram_alloc_max(size_t *psize) ...@@ -587,7 +587,7 @@ void *l1sram_alloc_max(size_t *psize)
/* L1 Scratchpad memory free function */ /* L1 Scratchpad memory free function */
int l1sram_free(const void *addr) int l1sram_free(const void *addr)
{ {
unsigned flags; unsigned long flags;
int ret; int ret;
/* add mutex operation */ /* add mutex operation */
...@@ -605,7 +605,7 @@ int l1sram_free(const void *addr) ...@@ -605,7 +605,7 @@ int l1sram_free(const void *addr)
void *l2_sram_alloc(size_t size) void *l2_sram_alloc(size_t size)
{ {
#if L2_LENGTH != 0 #if L2_LENGTH != 0
unsigned flags; unsigned long flags;
void *addr; void *addr;
/* add mutex operation */ /* add mutex operation */
...@@ -641,7 +641,7 @@ EXPORT_SYMBOL(l2_sram_zalloc); ...@@ -641,7 +641,7 @@ EXPORT_SYMBOL(l2_sram_zalloc);
int l2_sram_free(const void *addr) int l2_sram_free(const void *addr)
{ {
#if L2_LENGTH != 0 #if L2_LENGTH != 0
unsigned flags; unsigned long flags;
int ret; int ret;
/* add mutex operation */ /* add mutex operation */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment