Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186586
b: refs/heads/master
c: abad544
h: refs/heads/master
v: v3
  • Loading branch information
Simon Wunderlich authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 5f279c8 commit d157aa7
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 152 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9b27e4ef6313449a6b40a21e0e9a1bdd9a1d8ce
refs/heads/master: abad5446585b0b9519fad00c05156f373ea114ad
3 changes: 0 additions & 3 deletions trunk/drivers/staging/batman-adv/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
-> transtable_global (read-only) [outputs the global translation table]
-> transtable_local (read-only) [outputs the local translation table]

=> strip out all backward compatibility support to older kernels
(only found in compat.h)

=> fix checkpatch.pl errors

Please send all patches to:
Expand Down
121 changes: 0 additions & 121 deletions trunk/drivers/staging/batman-adv/compat.h

This file was deleted.

2 changes: 0 additions & 2 deletions trunk/drivers/staging/batman-adv/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "types.h"
#include "hash.h"

#include "compat.h"

static struct class *batman_class;

static int Major; /* Major number assigned to our device driver */
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "translation-table.h"
#include "routing.h"
#include "hash.h"
#include "compat.h"

#define MIN(x, y) ((x) < (y) ? (x) : (y))

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/batman-adv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "types.h"
#include "vis.h"
#include "hash.h"
#include "compat.h"

struct list_head if_list;
struct hlist_head forw_bat_list;
Expand Down
16 changes: 4 additions & 12 deletions trunk/drivers/staging/batman-adv/originator.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "hash.h"
#include "translation-table.h"
#include "routing.h"
#include "compat.h"


static DECLARE_DELAYED_WORK(purge_orig_wq, purge_orig);

Expand Down Expand Up @@ -80,11 +78,10 @@ create_neighbor(struct orig_node *orig_node, struct orig_node *orig_neigh_node,

bat_dbg(DBG_BATMAN, "Creating new last-hop neighbor of originator\n");

neigh_node = kmalloc(sizeof(struct neigh_node), GFP_ATOMIC);
neigh_node = kzalloc(sizeof(struct neigh_node), GFP_ATOMIC);
if (!neigh_node)
return NULL;

memset(neigh_node, 0, sizeof(struct neigh_node));
INIT_LIST_HEAD(&neigh_node->list);

memcpy(neigh_node->addr, neigh, ETH_ALEN);
Expand Down Expand Up @@ -131,11 +128,10 @@ struct orig_node *get_orig_node(uint8_t *addr)

bat_dbg(DBG_BATMAN, "Creating new originator: %pM \n", addr);

orig_node = kmalloc(sizeof(struct orig_node), GFP_ATOMIC);
orig_node = kzalloc(sizeof(struct orig_node), GFP_ATOMIC);
if (!orig_node)
return NULL;

memset(orig_node, 0, sizeof(struct orig_node));
INIT_LIST_HEAD(&orig_node->neigh_list);

memcpy(orig_node->orig, addr, ETH_ALEN);
Expand All @@ -145,19 +141,15 @@ struct orig_node *get_orig_node(uint8_t *addr)

size = num_ifs * sizeof(TYPE_OF_WORD) * NUM_WORDS;

orig_node->bcast_own = kmalloc(size, GFP_ATOMIC);
orig_node->bcast_own = kzalloc(size, GFP_ATOMIC);
if (!orig_node->bcast_own)
goto free_orig_node;

memset(orig_node->bcast_own, 0, size);

size = num_ifs * sizeof(uint8_t);
orig_node->bcast_own_sum = kmalloc(size, GFP_ATOMIC);
orig_node->bcast_own_sum = kzalloc(size, GFP_ATOMIC);
if (!orig_node->bcast_own_sum)
goto free_bcast_own;

memset(orig_node->bcast_own_sum, 0, size);

if (hash_add(orig_hash, orig_node) < 0)
goto free_bcast_own_sum;

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/batman-adv/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "types.h"
#include "hash.h"
#include "vis.h"
#include "compat.h"

static struct proc_dir_entry *proc_batman_dir, *proc_interface_file;
static struct proc_dir_entry *proc_orig_interval_file, *proc_originators_file;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/batman-adv/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "ring_buffer.h"
#include "vis.h"
#include "aggregation.h"
#include "compat.h"

DECLARE_WAIT_QUEUE_HEAD(thread_wait);

Expand Down Expand Up @@ -310,7 +309,6 @@ static void update_orig(struct orig_node *orig_node, struct ethhdr *ethhdr,

update_hna:
update_routes(orig_node, orig_node->router, hna_buff, tmp_hna_buff_len);
return;
}

static char count_real_packets(struct ethhdr *ethhdr,
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
#include "vis.h"
#include "aggregation.h"

#include "compat.h"

/* apply hop penalty for a normal link */
static uint8_t hop_penalty(const uint8_t tq)
{
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/staging/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "hash.h"
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include "compat.h"

static uint16_t bcast_seqno = 1; /* give own bcast messages seq numbers to avoid
* broadcast storms */
Expand Down Expand Up @@ -120,7 +119,7 @@ void interface_setup(struct net_device *dev)

/* generate random address */
random_ether_addr(dev_addr);
memcpy(dev->dev_addr, dev_addr, sizeof(dev->dev_addr));
memcpy(dev->dev_addr, dev_addr, ETH_ALEN);

SET_ETHTOOL_OPS(dev, &bat_ethtool_ops);

Expand Down Expand Up @@ -269,7 +268,7 @@ int interface_tx(struct sk_buff *skb, struct net_device *dev)
dropped:
priv->stats.tx_dropped++;
end:
return 0;
return NETDEV_TX_OK;
}

void interface_rx(struct sk_buff *skb, int hdr_size)
Expand Down Expand Up @@ -338,7 +337,6 @@ static u32 bat_get_msglevel(struct net_device *dev)

static void bat_set_msglevel(struct net_device *dev, u32 value)
{
return;
}

static u32 bat_get_link(struct net_device *dev)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "soft-interface.h"
#include "types.h"
#include "hash.h"
#include "compat.h"

struct hashtable_t *hna_local_hash;
static struct hashtable_t *hna_global_hash;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/batman-adv/vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "soft-interface.h"
#include "hard-interface.h"
#include "hash.h"
#include "compat.h"

struct hashtable_t *vis_hash;
DEFINE_SPINLOCK(vis_hash_lock);
Expand Down

0 comments on commit d157aa7

Please sign in to comment.