1 /* { dg-do compile } */
2 /* { dg-options "-fno-delete-null-pointer-checks" } */
3 /* { dg-require-effective-target label_values } */
5 __extension__
typedef __UINTPTR_TYPE__
uintptr_t;
7 extern struct module __this_module
;
9 trace_module_get (struct module
*mod
, uintptr_t ip
) { }
11 int module_is_live (struct module
*);
12 static inline __attribute__((no_instrument_function
))
13 int try_module_get(struct module
*module
)
18 if (module_is_live(module
))
23 trace_module_get(module
, (uintptr_t)&&__here
);
31 struct net_device_ops
{
32 int (*ndo_open
)(struct net_device
*dev
);
34 int hdlc_open (struct net_device
*);
35 int t3e3_open(struct net_device
*dev
)
37 int ret
= hdlc_open(dev
);
40 try_module_get((&__this_module
));
43 const struct net_device_ops t3e3_ops
= { .ndo_open
= t3e3_open
};