Line data Source code
1 :
2 : struct device;
3 :
4 : void *ldv_dev_get_drvdata(const struct device *dev);
5 : int ldv_dev_set_drvdata(struct device *dev, void *data);
6 :
7 : struct spi_master;
8 : struct device;
9 : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
10 :
11 : #include <linux/ldv/err.h>
12 :
13 : #include <linux/types.h>
14 : void *ldv_kzalloc(size_t size, gfp_t flags);
15 :
16 : struct clk;
17 :
18 : extern void ldv_clk_disable(struct clk *clk);
19 : extern int ldv_clk_enable(void);
20 :
21 : #include <linux/ldv/common.h>
22 : #include <linux/ldv/irq.h>
23 : #include <verifier/common.h>
24 : #include <verifier/nondet.h>
25 : #include <verifier/memory.h>
26 : #include <verifier/thread.h>
27 :
28 : #include <linux/timer.h>
29 :
30 :
31 : struct ldv_struct_insmod_3 {
32 : int signal_pending;
33 : };
34 :
35 : struct ldv_struct_timer_scenario_1 {
36 : struct timer_list *arg0;
37 : int signal_pending;
38 : };
39 :
40 : /* EMG Function declarations */
41 : extern void ldv_dispatch_instance_deregister_4_1(struct timer_list *);
42 : extern int ldv_emg_del_timer_sync(struct timer_list *);
43 :
44 : /* EMG variable declarations */
45 :
46 : /* EMG variable initialization */
47 :
48 : /* EMG function definitions */
49 :
50 : /* AUX_FUNC ERR_PTR */
51 : static inline void *ERR_PTR (long int error)
52 : {
53 0 :
54 0 : return ldv_err_ptr(error);
55 : }
56 :
57 : /* AUX_FUNC PTR_ERR */
58 : static inline long int PTR_ERR (void const *ptr)
59 : {
60 0 :
61 0 : return ldv_ptr_err(ptr);
62 : }
63 :
64 : /* AUX_FUNC IS_ERR */
65 : static inline long int IS_ERR (void const *ptr)
66 : {
67 0 :
68 0 : return ldv_is_err(ptr);
69 : }
70 :
71 : /* AUX_FUNC IS_ERR_OR_NULL */
72 : static inline long int IS_ERR_OR_NULL (void const *ptr)
73 : {
74 :
75 : return ldv_is_err_or_null(ptr);
76 : }
77 :
78 : /* AUX_FUNC ldv_del_timer_sync_5 */
79 : int ldv_del_timer_sync_5 (struct timer_list *ldv_func_arg1)
80 : {
81 :
82 : /* LDV {"type": "KERNEL_MODEL", "comment": "Perform the model code of the function 'del_timer_sync'"} */
83 : return ldv_emg_del_timer_sync(ldv_func_arg1);
84 : }
85 :
86 : /* AUX_FUNC kzalloc */
87 : static inline void *kzalloc (size_t size, gfp_t flags)
88 : {
89 0 :
90 0 : return ldv_kzalloc(size, flags);
91 : }
|