1 /* { dg-do compile } */
2 /* { dg-options "-fno-delete-null-pointer-checks" } */
4 __extension__
typedef __UINTPTR_TYPE__
uintptr_t;
6 extern struct module __this_module
;
8 trace_module_get (struct module
*mod
, uintptr_t ip
) { }
10 int module_is_live (struct module
*);
11 static inline __attribute__((no_instrument_function
))
12 int try_module_get(struct module
*module
)
17 if (module_is_live(module
))
22 trace_module_get(module
, (uintptr_t)&&__here
);
30 struct net_device_ops
{
31 int (*ndo_open
)(struct net_device
*dev
);
33 int hdlc_open (struct net_device
*);
34 int t3e3_open(struct net_device
*dev
)
36 int ret
= hdlc_open(dev
);
39 try_module_get((&__this_module
));
42 const struct net_device_ops t3e3_ops
= { .ndo_open
= t3e3_open
};