|
@@ -149,7 +149,7 @@ static int __must_check nr_add_node(ax25_address *nr, const char *mnemonic,
|
|
|
nr_neigh->count = 0;
|
|
|
nr_neigh->number = nr_neigh_no++;
|
|
|
nr_neigh->failed = 0;
|
|
|
- atomic_set(&nr_neigh->refcount, 1);
|
|
|
+ refcount_set(&nr_neigh->refcount, 1);
|
|
|
|
|
|
if (ax25_digi != NULL && ax25_digi->ndigi > 0) {
|
|
|
nr_neigh->digipeat = kmemdup(ax25_digi,
|
|
@@ -431,7 +431,7 @@ static int __must_check nr_add_neigh(ax25_address *callsign,
|
|
|
nr_neigh->count = 0;
|
|
|
nr_neigh->number = nr_neigh_no++;
|
|
|
nr_neigh->failed = 0;
|
|
|
- atomic_set(&nr_neigh->refcount, 1);
|
|
|
+ refcount_set(&nr_neigh->refcount, 1);
|
|
|
|
|
|
if (ax25_digi != NULL && ax25_digi->ndigi > 0) {
|
|
|
nr_neigh->digipeat = kmemdup(ax25_digi, sizeof(*ax25_digi),
|