- Numerous cleanups when compiling with the unused-but-set-variable
flag enabled and warnings equal to errors. xen-warnings-unused.diff - Add a 'long' option to xen-list utility Updated xen-utils-0.1.tar.bz2 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=118
This commit is contained in:
committed by
Git OBS Bridge
parent
25836fa0a3
commit
00ecb7a22d
@@ -78,6 +78,24 @@ Index: xen-4.1.0-testing/tools/xenstore/xenstored_core.c
|
||||
|
||||
TDB_CONTEXT *tdb_context(struct connection *conn)
|
||||
{
|
||||
@@ -130,7 +130,7 @@ void trace(const char *fmt, ...)
|
||||
va_list arglist;
|
||||
char *str;
|
||||
char sbuf[1024];
|
||||
- int ret, dummy;
|
||||
+ int ret, __attribute__((__unused__)) dummy;
|
||||
|
||||
if (tracefd < 0)
|
||||
return;
|
||||
@@ -200,7 +200,7 @@ void trace_destroy(const void *data, con
|
||||
static void trigger_reopen_log(int signal __attribute__((unused)))
|
||||
{
|
||||
char c = 'A';
|
||||
- int dummy;
|
||||
+ int __attribute__((__unused__)) dummy;
|
||||
dummy = write(reopen_log_pipe[1], &c, 1);
|
||||
}
|
||||
|
||||
@@ -1786,10 +1786,10 @@ int main(int argc, char *argv[])
|
||||
remove_local = false;
|
||||
break;
|
||||
@@ -198,3 +216,20 @@ Index: xen-4.1.0-testing/tools/blktap2/include/blktaplib.h
|
||||
#define WRITE 1
|
||||
|
||||
/*Control Messages between manager and tapdev*/
|
||||
--- xen-4.1.0-testing/xen/arch/x86/io_apic.c.orig 2011-05-12 16:27:26.000000000 -0600
|
||||
+++ xen-4.1.0-testing/xen/arch/x86/io_apic.c 2011-05-12 16:31:05.000000000 -0600
|
||||
@@ -227,12 +227,13 @@ int restore_IO_APIC_setup(struct IO_APIC
|
||||
if (!ioapic_entries[apic])
|
||||
return -ENOMEM;
|
||||
|
||||
- for (pin = 0; pin < nr_ioapic_registers[apic]; pin++)
|
||||
+ for (pin = 0; pin < nr_ioapic_registers[apic]; pin++) {
|
||||
entry = ioapic_entries[apic][pin];
|
||||
spin_lock_irqsave(&ioapic_lock, flags);
|
||||
__io_apic_write(apic, 0x11+2*pin, *(((int *)&entry)+1));
|
||||
__io_apic_write(apic, 0x10+2*pin, *(((int *)&entry)+0));
|
||||
spin_unlock_irqrestore(&ioapic_lock, flags);
|
||||
+ }
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user