Commit 5d8a7b93 authored by David Mosberger's avatar David Mosberger Committed by David Mosberger

[PATCH] ia64: A couple of additional fixes to sync with 2.5.73+.

parent b52adf5b
...@@ -39,7 +39,7 @@ hpsim_irq_init (void) ...@@ -39,7 +39,7 @@ hpsim_irq_init (void)
int i; int i;
for (i = 0; i < NR_IRQS; ++i) { for (i = 0; i < NR_IRQS; ++i) {
idesc = irq_desc(i); idesc = irq_descp(i);
if (idesc->handler == &no_irq_type) if (idesc->handler == &no_irq_type)
idesc->handler = &irq_type_hp_sim; idesc->handler = &irq_type_hp_sim;
} }
......
...@@ -350,6 +350,7 @@ simscsi_queuecommand (Scsi_Cmnd *sc, void (*done)(Scsi_Cmnd *)) ...@@ -350,6 +350,7 @@ simscsi_queuecommand (Scsi_Cmnd *sc, void (*done)(Scsi_Cmnd *))
break; break;
case MODE_SENSE: case MODE_SENSE:
case MODE_SENSE_10:
/* sd.c uses this to determine whether disk does write-caching. */ /* sd.c uses this to determine whether disk does write-caching. */
memset(sc->request_buffer, 0, 128); memset(sc->request_buffer, 0, 128);
sc->result = GOOD; sc->result = GOOD;
......
...@@ -55,18 +55,13 @@ ...@@ -55,18 +55,13 @@
#define UNW_HASH_SIZE (1 << UNW_LOG_HASH_SIZE) #define UNW_HASH_SIZE (1 << UNW_LOG_HASH_SIZE)
#define UNW_STATS 0 /* WARNING: this disabled interrupts for long time-spans!! */ #define UNW_STATS 0 /* WARNING: this disabled interrupts for long time-spans!! */
#define UNW_DEBUG 0
#ifdef UNW_DEBUG #ifdef UNW_DEBUG
static unsigned int unw_debug_level = UNW_DEBUG; static unsigned int unw_debug_level = UNW_DEBUG;
# ifdef CONFIG_KDB
# include <linux/kdb.h>
# define UNW_DEBUG_ON(n) (unw_debug_level >= n && !KDB_IS_RUNNING())
# define UNW_DPRINT(n, ...) if (UNW_DEBUG_ON(n)) kdb_printf(__VA_ARGS__)
# else /* !CONFIG_KDB */
# define UNW_DEBUG_ON(n) unw_debug_level >= n # define UNW_DEBUG_ON(n) unw_debug_level >= n
/* Do not code a printk level, not all debug lines end in newline */ /* Do not code a printk level, not all debug lines end in newline */
# define UNW_DPRINT(n, ...) if (UNW_DEBUG_ON(n)) printk(__VA_ARGS__) # define UNW_DPRINT(n, ...) if (UNW_DEBUG_ON(n)) printk(__VA_ARGS__)
# endif /* CONFIG_KDB */
# define inline # define inline
#else /* !UNW_DEBUG */ #else /* !UNW_DEBUG */
# define UNW_DEBUG_ON(n) 0 # define UNW_DEBUG_ON(n) 0
...@@ -2124,7 +2119,7 @@ unw_remove_unwind_table (void *handle) ...@@ -2124,7 +2119,7 @@ unw_remove_unwind_table (void *handle)
kfree(table); kfree(table);
} }
static void __init static int __init
create_gate_table (void) create_gate_table (void)
{ {
const struct unw_table_entry *entry, *start, *end; const struct unw_table_entry *entry, *start, *end;
...@@ -2142,7 +2137,7 @@ create_gate_table (void) ...@@ -2142,7 +2137,7 @@ create_gate_table (void)
if (!punw) { if (!punw) {
printk("%s: failed to find gate DSO's unwind table!\n", __FUNCTION__); printk("%s: failed to find gate DSO's unwind table!\n", __FUNCTION__);
return; return 0;
} }
start = (const struct unw_table_entry *) punw->p_vaddr; start = (const struct unw_table_entry *) punw->p_vaddr;
...@@ -2159,7 +2154,7 @@ create_gate_table (void) ...@@ -2159,7 +2154,7 @@ create_gate_table (void)
if (!unw.gate_table) { if (!unw.gate_table) {
unw.gate_table_size = 0; unw.gate_table_size = 0;
printk(KERN_ERR "%s: unable to create unwind data for gate page!\n", __FUNCTION__); printk(KERN_ERR "%s: unable to create unwind data for gate page!\n", __FUNCTION__);
return; return 0;
} }
unw.gate_table_size = size; unw.gate_table_size = size;
...@@ -2176,6 +2171,7 @@ create_gate_table (void) ...@@ -2176,6 +2171,7 @@ create_gate_table (void)
lp[2] = info - (char *) unw.gate_table; /* info */ lp[2] = info - (char *) unw.gate_table; /* info */
} }
*lp = 0; /* end-of-table marker */ *lp = 0; /* end-of-table marker */
return 0;
} }
__initcall(create_gate_table); __initcall(create_gate_table);
......
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