summaryrefslogtreecommitdiffstats
path: root/include/net/rose.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-12-15 00:49:28 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-18 06:59:07 +0100
commitc9266b99e2def0a456766220df09713f8e765891 (patch)
tree4685070018632e00437fbb368b28d6cc1ebc467e /include/net/rose.h
parent[TG3]: replace kmalloc+memset with kzalloc (diff)
downloadlinux-c9266b99e2def0a456766220df09713f8e765891.tar.xz
linux-c9266b99e2def0a456766220df09713f8e765891.zip
[AX.25]: Mark all kmalloc users __must_check
The recent fix 0506d4068bad834aab1141b5dc5e748eb175c6b3 made obvious that error values were not being propagated through the AX.25 stack. To help with that this patch marks all kmalloc users in the AX.25, NETROM and ROSE stacks as __must_check. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rose.h')
-rw-r--r--include/net/rose.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/rose.h b/include/net/rose.h
index 012b09ed2401..0143796a3e37 100644
--- a/include/net/rose.h
+++ b/include/net/rose.h
@@ -193,8 +193,8 @@ extern struct file_operations rose_neigh_fops;
extern struct file_operations rose_nodes_fops;
extern struct file_operations rose_routes_fops;
-extern int rose_add_loopback_neigh(void);
-extern int rose_add_loopback_node(rose_address *);
+extern int __must_check rose_add_loopback_neigh(void);
+extern int __must_check rose_add_loopback_node(rose_address *);
extern void rose_del_loopback_node(rose_address *);
extern void rose_rt_device_down(struct net_device *);
extern void rose_link_device_down(struct net_device *);