[PATCH] proper flags type of spin_lock_irqsave()
Convert various spin_lock_irqsave() callers to correctly use `unsigned long'. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp> Cc: "Luck, Tony" <tony.luck@intel.com> Acked-by: Kyle McMartin <kyle@mcmartin.ca> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f5579f8c7d
commit
c53421b18f
@@ -1049,7 +1049,7 @@ void pdc_iodc_putc(unsigned char c)
|
||||
static int __attribute__((aligned(8))) iodc_retbuf[32];
|
||||
static char __attribute__((aligned(64))) iodc_dbuf[4096];
|
||||
unsigned int n;
|
||||
unsigned int flags;
|
||||
unsigned long flags;
|
||||
|
||||
switch (c) {
|
||||
case '\n':
|
||||
@@ -1088,7 +1088,8 @@ void pdc_iodc_putc(unsigned char c)
|
||||
*/
|
||||
void pdc_iodc_outc(unsigned char c)
|
||||
{
|
||||
unsigned int n, flags;
|
||||
unsigned int n;
|
||||
unsigned long flags;
|
||||
|
||||
/* fill buffer with one caracter and print it */
|
||||
static int __attribute__((aligned(8))) iodc_retbuf[32];
|
||||
@@ -1113,7 +1114,7 @@ void pdc_iodc_outc(unsigned char c)
|
||||
*/
|
||||
int pdc_iodc_getc(void)
|
||||
{
|
||||
unsigned int flags;
|
||||
unsigned long flags;
|
||||
static int __attribute__((aligned(8))) iodc_retbuf[32];
|
||||
static char __attribute__((aligned(64))) iodc_dbuf[4096];
|
||||
int ch;
|
||||
|
Reference in New Issue
Block a user