# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196851426 0
# Node ID 4108b5c64f86845c10d56679378d5004777dff43
# Parent ba918cb2cf7520604dee724dd80dad5ce4bee8a1
netfront accel: spinlock flags are 'unsigned long'.
Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
---
drivers/xen/netfront/accel.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff -r ba918cb2cf75 -r 4108b5c64f86 drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c Tue Dec 04 11:54:22 2007 +0000
+++ b/drivers/xen/netfront/accel.c Wed Dec 05 10:43:46 2007 +0000
@@ -66,7 +66,7 @@ void netif_exit_accel(void)
void netif_exit_accel(void)
{
struct netfront_accelerator *accelerator, *tmp;
- unsigned flags;
+ unsigned long flags;
spin_lock_irqsave(&accelerators_lock, flags);
@@ -115,7 +115,7 @@ static void add_accelerator_vif(struct n
static void add_accelerator_vif(struct netfront_accelerator *accelerator,
struct netfront_info *np)
{
- unsigned flags;
+ unsigned long flags;
/* Need lock to write list */
spin_lock_irqsave(&accelerator->vif_states_lock, flags);
@@ -232,7 +232,7 @@ int netfront_load_accelerator(struct net
{
struct netfront_accelerator *accelerator;
int rc = 0;
- unsigned flags;
+ unsigned long flags;
DPRINTK(" %s\n", frontend);
@@ -331,7 +331,7 @@ int netfront_accelerator_loaded(int vers
struct netfront_accel_hooks *hooks)
{
struct netfront_accelerator *accelerator;
- unsigned flags;
+ unsigned long flags;
if (version != NETFRONT_ACCEL_VERSION) {
if (version > NETFRONT_ACCEL_VERSION) {
@@ -394,7 +394,7 @@ void netfront_accelerator_ready(const ch
{
struct netfront_accelerator *accelerator;
struct netfront_accel_vif_state *accel_vif_state;
- unsigned flags, flags1;
+ unsigned long flags, flags1;
DPRINTK("%s %p\n", frontend, dev);
@@ -457,7 +457,7 @@ static void accelerator_remove_hooks(str
{
struct netfront_accel_hooks *hooks;
struct netfront_accel_vif_state *vif_state, *tmp;
- unsigned flags;
+ unsigned long flags;
/* Mutex is held so don't need vif_states_lock to iterate list */
list_for_each_entry_safe(vif_state, tmp,
@@ -491,7 +491,7 @@ void netfront_accelerator_stop(const cha
void netfront_accelerator_stop(const char *frontend)
{
struct netfront_accelerator *accelerator;
- unsigned flags;
+ unsigned long flags;
mutex_lock(&accelerator_mutex);
spin_lock_irqsave(&accelerators_lock, flags);
@@ -514,7 +514,7 @@ EXPORT_SYMBOL_GPL(netfront_accelerator_s
/* Helper for call_remove and do_suspend */
static int do_remove(struct netfront_info *np, struct xenbus_device *dev,
- unsigned *lock_flags)
+ unsigned long *lock_flags)
{
struct netfront_accelerator *accelerator = np->accelerator;
struct netfront_accel_hooks *hooks;
@@ -553,7 +553,7 @@ int netfront_accelerator_call_remove(str
{
struct netfront_accelerator *accelerator;
struct netfront_accel_vif_state *tmp_vif_state;
- unsigned flags;
+ unsigned long flags;
int rc = 0;
mutex_lock(&accelerator_mutex);
@@ -588,7 +588,7 @@ int netfront_accelerator_suspend(struct
int netfront_accelerator_suspend(struct netfront_info *np,
struct xenbus_device *dev)
{
- unsigned flags;
+ unsigned long flags;
int rc = 0;
mutex_lock(&accelerator_mutex);
@@ -650,7 +650,7 @@ void netfront_accelerator_resume(struct
{
struct netfront_accel_vif_state *accel_vif_state = NULL;
spinlock_t *vif_states_lock;
- unsigned flags;
+ unsigned long flags;
mutex_lock(&accelerator_mutex);
@@ -693,7 +693,7 @@ int netfront_check_accelerator_queue_rea
struct netfront_accelerator *accelerator;
struct netfront_accel_hooks *hooks;
int rc = 1;
- unsigned flags;
+ unsigned long flags;
accelerator = np->accelerator;
@@ -715,7 +715,7 @@ void netfront_accelerator_call_stop_napi
{
struct netfront_accelerator *accelerator;
struct netfront_accel_hooks *hooks;
- unsigned flags;
+ unsigned long flags;
accelerator = np->accelerator;
@@ -735,7 +735,7 @@ int netfront_accelerator_call_get_stats(
{
struct netfront_accelerator *accelerator;
struct netfront_accel_hooks *hooks;
- unsigned flags;
+ unsigned long flags;
int rc = 0;
accelerator = np->accelerator;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|