Skip to content

Commit 0d4a2f9

Browse files
Fabian Frederickdavem330
authored andcommitted
irda: add __init to irlan_open
irlan_open is only called by __init irlan_init in same module. Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 72d099e commit 0d4a2f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/irda/irlan/irlan_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static const struct file_operations irlan_fops = {
9898
extern struct proc_dir_entry *proc_irda;
9999
#endif /* CONFIG_PROC_FS */
100100

101-
static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr);
101+
static struct irlan_cb __init *irlan_open(__u32 saddr, __u32 daddr);
102102
static void __irlan_close(struct irlan_cb *self);
103103
static int __irlan_insert_param(struct sk_buff *skb, char *param, int type,
104104
__u8 value_byte, __u16 value_short,
@@ -196,7 +196,7 @@ static void __exit irlan_cleanup(void)
196196
* Open new instance of a client/provider, we should only register the
197197
* network device if this instance is ment for a particular client/provider
198198
*/
199-
static struct irlan_cb *irlan_open(__u32 saddr, __u32 daddr)
199+
static struct irlan_cb __init *irlan_open(__u32 saddr, __u32 daddr)
200200
{
201201
struct net_device *dev;
202202
struct irlan_cb *self;

0 commit comments

Comments
 (0)