ia64/xen-unstable

changeset 7841:e1142d983179

Replace 0 with NULL when assigning pointer fields/parameters.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Nov 16 11:27:19 2005 +0100 (2005-11-16)
parents 9c7aeec94f8a
children 3d89876eb4d4
files linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c	Tue Nov 15 19:46:48 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c	Wed Nov 16 11:27:19 2005 +0100
     1.3 @@ -752,7 +752,7 @@ void __init init_IRQ(void)
     1.4  		irq_bindcount[dynirq_to_irq(i)] = 0;
     1.5  
     1.6  		irq_desc[dynirq_to_irq(i)].status  = IRQ_DISABLED;
     1.7 -		irq_desc[dynirq_to_irq(i)].action  = 0;
     1.8 +		irq_desc[dynirq_to_irq(i)].action  = NULL;
     1.9  		irq_desc[dynirq_to_irq(i)].depth   = 1;
    1.10  		irq_desc[dynirq_to_irq(i)].handler = &dynirq_type;
    1.11  	}
    1.12 @@ -770,7 +770,7 @@ void __init init_IRQ(void)
    1.13  #endif
    1.14  
    1.15  		irq_desc[pirq_to_irq(i)].status  = IRQ_DISABLED;
    1.16 -		irq_desc[pirq_to_irq(i)].action  = 0;
    1.17 +		irq_desc[pirq_to_irq(i)].action  = NULL;
    1.18  		irq_desc[pirq_to_irq(i)].depth   = 1;
    1.19  		irq_desc[pirq_to_irq(i)].handler = &pirq_type;
    1.20  	}
     2.1 --- a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c	Tue Nov 15 19:46:48 2005 +0100
     2.2 +++ b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c	Wed Nov 16 11:27:19 2005 +0100
     2.3 @@ -438,7 +438,7 @@ static struct attribute* xen_attrs[] = {
     2.4  	&dev_attr_pcrs.attr,
     2.5  	&dev_attr_caps.attr,
     2.6  	&dev_attr_cancel.attr,
     2.7 -	0,
     2.8 +	NULL,
     2.9  };
    2.10  
    2.11  static struct attribute_group xen_attr_grp = { .attrs = xen_attrs };
     3.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Tue Nov 15 19:46:48 2005 +0100
     3.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c	Wed Nov 16 11:27:19 2005 +0100
     3.3 @@ -543,7 +543,7 @@ static int __init blkif_init(void)
     3.4  	spin_lock_init(&blkio_schedule_list_lock);
     3.5  	INIT_LIST_HEAD(&blkio_schedule_list);
     3.6  
     3.7 -	ret = kernel_thread(blkio_schedule, 0, CLONE_FS | CLONE_FILES);
     3.8 +	ret = kernel_thread(blkio_schedule, NULL, CLONE_FS | CLONE_FILES);
     3.9  	BUG_ON(ret < 0);
    3.10  
    3.11  	blkif_xenbus_init();
     4.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Tue Nov 15 19:46:48 2005 +0100
     4.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Nov 16 11:27:19 2005 +0100
     4.3 @@ -884,7 +884,7 @@ void xenbus_probe(void *unused)
     4.4  	register_xenbus_watch(&be_watch);
     4.5  
     4.6  	/* Notify others that xenstore is up */
     4.7 -	notifier_call_chain(&xenstore_chain, 0, 0);
     4.8 +	notifier_call_chain(&xenstore_chain, 0, NULL);
     4.9  }
    4.10  
    4.11