Release coccinelle-0.1.8
[bpt/coccinelle.git] / standard.h
CommitLineData
34e49164 1// ****************************************************************************
708f4980 2// Prelude, this file is used with -macro_file_builtins option of the C parser
34e49164
C
3// ****************************************************************************
4
5/* This file contains:
6 * - macros found in <.h>
708f4980
C
7 * - macros found in ".h"
8 * but where we cant detect that it will be a "bad macro"
9 * - hints, cf below.
10 *
11 * A "bad macro" is a macro using free variables or when expanded
12 * that influence the control-flow of the code. In those cases it
13 * is preferable to expand the macro so that the coccinelle engine
14 * has a more accurate representation of what is going on.
15 *
16 *
17 *
18 *
19 * old: this file was also containing what is below but now we
20 * try to expand on demand the macro found in the c file, so those cases
21 * are not needed any more:
34e49164
C
22 * - macros found in .c; macros that cannot be parsed.
23 * In the future should be autodetected
24 * (not so easy to do same for macros in .h cos require to access .h file)
34e49164
C
25 * - macros found in .c; macros correctly parsed
26 * but where we cant detect that it will be a "bad macro"
27 *
28 * Some of those macros could be deleted and the C code rewritten because
29 * they are "bad" macros.
30 *
31 * todo? perhaps better if could enable/disable some of those expansions
32 * as different software may use conflicting macros.
33 *
34 *
35 * can maybe have a look in sparse/lib.c to see a list of default #define
36 * handled builtin apparently by gcc.
37 */
38
b1b2de81
C
39// ****************************************************************************
40// Hints
41// ****************************************************************************
42
43/* Cooperation with parsing_hack.ml: some body of macros in this file, such
44 * as MACROSTATEMENT, are considered as magic strings.
45 * I can't just expand those macros into some 'whatever();' because I need
46 * to generate a TMacroStmt for solving some ambiguities in the grammar
47 * for the toplevel stuff I think.
48 * Right now a set of special strings are used as "hints" to the parser
49 * to help it parse code. Those hints are specified in parsing_hack.ml:
50 *
51 * - YACFE_ITERATOR
52 * - YACFE_DECLARATOR
53 * - YACFE_STRING
54 * - YACFE_STATEMENT, or MACROSTATEMENT
55 * - YACFE_ATTRIBUTE
56 * - YACFE_IDENT_BUILDER
57 */
58
34e49164
C
59// ****************************************************************************
60// Test macros
61// ****************************************************************************
62
63// #define FOO(a, OP, b) a OP b
64// #define FOO(a,b) fn(a,b)
b1b2de81 65#define FOO_METH_TEST(a) YACFE_IDENT_BUILDER
34e49164 66
708f4980 67//#define FOO YACFE_DECLARATOR
34e49164
C
68
69// ****************************************************************************
708f4980 70// Generic macros
34e49164
C
71// ****************************************************************************
72
708f4980
C
73// this is defined by windows compiler, and so can not be found via a macro
74// after a -extract_macros
75#define __stdcall /*could: YACFE_ATTRIBUTE*/
76#define __declspec(a)
34e49164 77
708f4980
C
78#define WINAPI
79#define CALLBACK
34e49164
C
80
81
82// ****************************************************************************
83// Linux macros
84// ****************************************************************************
85
86// ----------------------------------------------------------------------------
87// Attributes. could perhaps generalize via "__.*"
88// ----------------------------------------------------------------------------
89#define __init
90#define __exit
91#define __user
92#define __iomem
93#define __initdata
94#define __exitdata
95#define __devinit
96#define __devexit
97#define __devinitdata
98#define __cpuinit
99#define __cpuinitdata
100#define __init_or_module
101#define __initdata_or_module
102#define __pminit
103#define __pminitdata
104
105#define __cacheline_aligned
106#define ____cacheline_aligned
107#define __cacheline_aligned_in_smp
108#define ____cacheline_aligned_in_smp
109#define ____cacheline_internodealigned_in_smp
110
111#define __ALIGNED__
112#define __3xp_aligned
113
114#define __pmac
115#define __force
116#define __nocast
117#define __read_mostly
118
119#define __must_check
120// pb
121#define __unused
122#define __maybe_unused
123
124
125#define __attribute_used__
126#define __attribute_pure__
127#define __attribute_const__
128// #define _attribute__const __attribute__((const))
129
130#define __always_inline
131
132#define __xipram
133
134// in the other part of the kernel, in arch/, mm/, etc
135#define __sched
136#define __initmv
137#define __exception
138#define __cpuexit
139#define __kprobes
140#define __meminit
141#define __meminitdata
142#define __nosavedata
143#define __kernel
144#define __nomods_init
145#define __apicdebuginit
146#define __ipc_init
147#define __modinit
148#define __lockfunc
149#define __weak
150#define __tlb_handler_align
151#define __lock_aligned
152#define __force_data
153#define __nongprelbss
154#define __nongpreldata
155#define __noreturn
156
157#define __section_jiffies
158#define __vsyscall_fn
159#define __section_vgetcpu_mode
160#define __section_vsyscall_gtod_data
161
162// in header files
163#define __bitwise
164#define __bitwise__
165#define __deprecated
166
167
168// last found
169#define __init_refok
170
171
172// maybe only in old kernel
173#define __openfirmware
174
175
176#define __extension__
177
178#define __thread
179#define __used
180#define __pure
181
182#define __ref
183#define __refdata
184
185#define __uses_jump_to_uncached
186
708f4980
C
187
188// last last
189#define __net_init
190#define __net_exit
191#define __net_initdata
192
193#define __paginginit // in mm
194
34e49164
C
195// ----------------------------------------------------------------------------
196// String macros
197// ----------------------------------------------------------------------------
198
199/* string macro. normally handle quite well by mu lalr(k), but
200 * sometimes not enough, if have for instance the XX YY case, could
201 * be considered as a declaration with XX being a typedef, so would
202 * Have ambiguity. So at least by adding this special case, we can
203 * catch more correct string-macro, no more a XX YY but now a good
204 * "XX" YY
205 *
206 * cf include/linux/kernel.h
207 *
208 * For stringification I need to have at least a witness, a string,
209 * and sometimes have just printk(KERN_WARNING MYSTR) and it could
210 * be transformed in a typedef later, so better to at least
211 * transform in string already the string-macro we know.
212 *
213 * Perhaps better to apply also as soon as possible the
214 * correct macro-annotation tagging (__init & co) to be able to
215 * filter them as soon as possible so that they will not polluate
216 * our pattern-matching that come later.
217 */
218
219#define KERN_EMERG "KERN_EMERG"
220#define KERN_ALERT "KERN_ALERT"
221#define KERN_CRIT "KERN_CRIT"
222#define KERN_ERR "KERN_ERR"
223#define KERN_WARNING "KERN_WARNING"
224#define KERN_NOTICE "KERN_NOTICE"
225#define KERN_INFO "KERN_INFO"
226#define KERN_DEBUG "KERN_DEBUG"
227
228
229/* EX_TABLE & co.
230 *
231 * Replaced by a string. We can't put everything as comment
232 * because it can be part of an expression where we wait for
233 * something, where we wait for a string. So at least we
234 * must keep the EX_TABLE token and transform it as a string.
235 *
236 * normally not needed if have good stringification of macro
237 * but those macros are sometimes used multiple times
238 * as in EX_TABLE(0b) EX_TABLE(1b) and we don't detect
239 * it well yet.
240 */
241
242// TODO don't use x :(
243#define EX_TABLE(x) "TOTO"
244#define ASM_EXCEPTIONTABLE_ENTRY(x) "TOTO"
245#define DCACHE_CLEAR(x) "TOTO"
246#define PPC405_ERR77(x) "TOTO"
247
248
249
250
251// ----------------------------------------------------------------------------
252// Alias keywords
253// ----------------------------------------------------------------------------
254// pb, false positive, can also be a #define cst and use as 'case CONST:'
255//#define CONST const
256
257
258#define STATIC static
259#define _static static
260
261#define noinline
262
263#define __CS4231_INLINE__ inline
264#define CCIO_INLINE inline
265#define SBA_INLINE inline
266
267#define STATIC_INLINE static inline
268#define __EXTERN_INLINE extern inline
269
270#define AGPEXTERN extern
271
272#define PNMI_STATIC static
273#define RLMT_STATIC static
274#define SISINITSTATIC static
275#define SCTP_STATIC static
276
277#define BUGLVL if
278#define IFDEBUG if
279
280#define TRACE_EXIT return
281
708f4980
C
282#define notrace
283
284#define noinline_for_stack // in fs
285#define debug_noinline // in net
34e49164
C
286
287// ----------------------------------------------------------------------------
288// linkage
289// ----------------------------------------------------------------------------
290
291#define fastcall
292#define asmlinkage
293
294#define far
295#define SK_FAR
296
297// pb
298//#define near
299
300
301// ----------------------------------------------------------------------------
302// ----------------------------------------------------------------------------
303
304#define INITSECTION
305
306#define NORET_TYPE
307
308#define compat_init_data
309
310#define DIVA_EXIT_FUNCTION
311#define DIVA_INIT_FUNCTION
312#define ACPI_SYSTEM_XFACE
313
314#define ASC_INITDATA
315#define in2000__INITDATA
316#define PACKED
317
318#define WPMINFO
319#define CPMINFO
320#define PMINFO
321
322#define ACPI_INTERNAL_VAR_XFACE
323
324#define SISIOMEMTYPE
325
326#define ACPI_STATE_COMMON
327#define ACPI_PARSE_COMMON
328#define ACPI_COMMON_DEBUG_MEM_HEADER
329
330
331#define nabi_no_regargs
332
333
334#define ATTRIB_NORET
335#define ATTRIBUTE_UNUSED
336#define BTEXT
337#define BTDATA
338#define PAGE_ALIGNED
339
340#define EARLY_INIT_SECTION_ATTR
341
342// pb
343//#define INIT
344
345#define IDI_CALL_ENTITY_T
346#define IDI_CALL_LINK_T
347
348/* cf gcc-linux.h
349 * A trick to suppress uninitialized variable warning without generating any
350 * code
351 */
352#define uninitialized_var(x) x = x
353// as in u16 uninitialized_var(ioboard_type); /* GCC be quiet */
354
355// ----------------------------------------------------------------------------
356// ----------------------------------------------------------------------------
357
358#define __releases(x)
359#define __acquires(x)
360#define __declspec(x)
361#define __page_aligned(x)
362#define __vsyscall(x)
363
364// ----------------------------------------------------------------------------
365// ----------------------------------------------------------------------------
366
367
368//conflict with a macro of firefox
369//#define FASTCALL(x) x
370#define PARAMS(x) x
371
372
373
374// ----------------------------------------------------------------------------
375// ----------------------------------------------------------------------------
376
377// include/asm-arm/mach/arch.h
378// #define MACHINE_START(x) struct foo { x }
379#define MACHINE_START(_type,_name) \
380static const struct machine_desc __mach_desc_##_type \
381/* __used*/ \
382 __attribute__((__section__(".arch.info.init"))) = { \
383 .nr = MACH_TYPE_##_type, \
384 .name = _name,
385
386#define MACHINE_END \
387};
388
389// include/asm-powerpc/machdep.h
390#define define_machine(name) \
391 extern struct machdep_calls mach_##name; \
392 EXPORT_SYMBOL(mach_##name); \
393 struct machdep_calls mach_##name /*__machine_desc*/ =
394
395
396// ----------------------------------------------------------------------------
397// Declare like macros (in structure def), or tricky Declare macros
398// ----------------------------------------------------------------------------
399
400// include/asm-i386/pci.h
401// the DECLARE are detected by parsing_hack but not when they are
402// inside a struct def.
403#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
404#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
405
406// defined in drivers/infiniband/hw/mthca/mthca_doorbell.h
407#define MTHCA_DECLARE_DOORBELL_LOCK(doorbell_lock)
408
409// include/linux/types.h
410//#define BITS_TO_LONGS(bits) \
411// (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
412#define DECLARE_BITMAP(name,bits) \
413 /*unsigned*/ long name[BITS_TO_LONGS(bits)]
414
415
416// include/asm-i386/percpu.h
417// interesting macro where we see the need of __typeof__(type) with
418// for example DECLARE_PER_CPU(char[256], iucv_dbf_txt_buf);
419#define DEFINE_PER_CPU(type, name) \
420 __attribute__((__section__(".data.percpu"))) __typeof__(type) per_cpu__##name
421#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
422
423
424
425// include/linux/kobject.h
426#define decl_subsys(_name,_type,_uevent_ops) \
427struct subsystem _name##_subsys = { \
428 .kset = { \
429 .kobj = { .name = __stringify(_name) }, \
430 .ktype = _type, \
431 .uevent_ops =_uevent_ops, \
432 } \
433}
434
435// ----------------------------------------------------------------------------
436// ----------------------------------------------------------------------------
437
438// pb: if use this macro then we will not transform the argument of CS_CHECK
439// in some rules.
440//#define CS_CHECK(fn, ret) \
441// do { last_fn = (fn); if ((last_ret = (ret)) != 0) goto cs_failed; } while (0)
442
443
444// bt2/hci_bcsp.c
445#define BCSP_CRC_INIT(x) x = 0xffff
446
447
448// sound/oss/cs46xx_wrapper-24.h
449#define CS_OWNER .owner =
450#define CS_THIS_MODULE THIS_MODULE,
451
452
453// sound/sparc/dbri.c
454// "bad macro", have a ',' at the end
455#define CS4215_SINGLE(xname, entry, shift, mask, invert) \
456{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
457 .info = snd_cs4215_info_single, \
458 .get = snd_cs4215_get_single, .put = snd_cs4215_put_single, \
459 .private_value = entry | (shift << 8) | (mask << 16) | (invert << 24) },
460
461// drivers/media/video/sn9c102/sn9c102_sensor.h
462//#define sn9c102_write_const_regs(sn9c102_device, data...) \
463// ({ const static u8 _valreg[][2] = {data}; \
464// sn9c102_write_regs(sn9c102_device, _valreg, ARRAY_SIZE(_valreg)); })
465
466
467
468
469
470// drivers/s390/cio/qdio.h
471#define SYNC_MEMORY if (unlikely(q->siga_sync)) qdio_siga_sync_q(q)
472#define SYNC_MEMORY_ALL if (unlikely(q->siga_sync)) \
473 qdio_siga_sync(q,~0U,~0U)
474#define SYNC_MEMORY_ALL_OUTB if (unlikely(q->siga_sync)) \
475 qdio_siga_sync(q,~0U,0)
476
477// drivers/scsi/g_NCR5380.c
478#define ANDP ,
479
480
481// drivers/scsi/ncr53c8xx.c
482// generate lots of errors because error en cascade car dans l'initialiseur
483// il y'a des '}' dans la premiere colonne
484#define PREFETCH_FLUSH SCR_CALL, PADDRH (wait_dma),
485
486// drivers/net/e100.c
487// pbs false positive, defined in another manner in some files
488//#define X(a,b) a,b
489
490
491// net/ipv4/netfilter/ip_conntrack_helper_h323_asn1.c
492// also used in other.c that don't do any include :(
493// but locally redefined in drivers/net/bnx2.c :( with a
494// #define FNAME 0x8
495#define FNAME(name) name,
496
497
498// drivers/net/tulip/de4x5.c
499#define DESC_ALIGN
500
501
502// in .h
503#define MPI_POINTER *
504
505// mega4/soc.c mega4/socal.c
506// cause false typedef inference if let soc_printk
507#define soc_printk printk
508#define socal_printk printk
509
510
511// ----------------------------------------------------------------------------
512// Initializer array macros
513// ----------------------------------------------------------------------------
514
515// drivers/net/wireless/bcm43xx/bcm43xx_wx.c
516// defined in similar way multiple times, in the same file and in another one
517#define WX(ioctl) [(ioctl) - SIOCSIWCOMMIT]
518// #define WX(x) [(x)-SIOCIWFIRST]
519
520// drivers/net/wireless/ipw2200.c
521#define IW_IOCTL(x) [(x)-SIOCSIWCOMMIT]
522
523// drivers/net/wireless/zd1211rw/zd_netdev.c
524#define PRIV_OFFSET(x) [(x)-SIOCIWFIRSTPRIV]
525
526// drivers/net/wireless/zd1211rw/zd_rf.h
527#define RF_CHANNEL(ch) [(ch)-1]
528
529// drivers/net/wireless/zd1211rw/zd_rf_uw2453.c
530#define RF_CHANPAIR(a,b) [CHAN_TO_PAIRIDX(a)]
531
532// drivers/net/wireless/arlan-proc.c
533// incomplete macro, the real macro is quite complex and use other macros
534#define ARLAN_SYSCTL_TABLE_TOTAL(x)
535
536
537// ----------------------------------------------------------------------------
538// ----------------------------------------------------------------------------
539
540// drivers/net/cxgb3/t3_hw.c
541#define VPD_ENTRY(name, len) \
542 u8 name##_kword[2]; u8 name##_len; u8 name##_data[len]
543
544
545// #define rtrc(i) {}
546
547// ----------------------------------------------------------------------------
548// ----------------------------------------------------------------------------
549
550// drivers/video/nvidia/nv_type.h
551// use: SetBitField(h_blank_e, 5: 5, 7:7)
552//#define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b))
553//#define MASKEXPAND(mask) BITMASK(1?mask,0?mask)
554//#define SetBF(mask,value) ((value) << (0?mask))
555//#define GetBF(var,mask) (((unsigned)((var) & MASKEXPAND(mask))) >> (0?mask) )
556//#define SetBitField(value,from,to) SetBF(to, GetBF(value,from))
557//#define SetBit(n) (1<<(n))
558//#define Set8Bits(value) ((value)&0xff)
559
560
561// drivers/video/sis/init.c
562// use: GETBITSTR((SiS_Pr->CVTotal -2), 10:10, 0:0)
563//#define BITMASK(h,l) (((unsigned)(1U << ((h)-(l)+1))-1)<<(l))
564//#define GENMASK(mask) BITMASK(1?mask,0?mask)
565//#define GETBITS(var,mask) (((var) & GENMASK(mask)) >> (0?mask))
566//#define GETBITSTR(val,from,to) ((GETBITS(val,from)) << (0?to))
567
568
569// fs/afs/internal.h
570#define ASSERTCMP(X, OP, Y) \
571do { \
572 if (unlikely(!((X) OP (Y)))) { \
573 printk(KERN_ERR "\n"); \
574 printk(KERN_ERR "AFS: Assertion failed\n"); \
575 printk(KERN_ERR "%lu " /*#OP*/ " %lu is false\n", \
576 (unsigned long)(X), (unsigned long)(Y)); \
577 printk(KERN_ERR "0x%lx " /*#OP*/ " 0x%lx is false\n", \
578 (unsigned long)(X), (unsigned long)(Y)); \
579 BUG(); \
580 } \
581} while(0)
582
583#define ASSERTIFCMP(C, X, OP, Y) \
584do { \
585 if (unlikely((C) && !((X) OP (Y)))) { \
586 printk(KERN_ERR "\n"); \
587 printk(KERN_ERR "AFS: Assertion failed\n"); \
588 printk(KERN_ERR "%lu " /*#OP*/ " %lu is false\n", \
589 (unsigned long)(X), (unsigned long)(Y)); \
590 printk(KERN_ERR "0x%lx " /*#OP*/ " 0x%lx is false\n", \
591 (unsigned long)(X), (unsigned long)(Y)); \
592 BUG(); \
593 } \
594} while(0)
595
596
597#define ASSERTRANGE(L, OP1, N, OP2, H) \
598do { \
599 if (unlikely(!((L) OP1 (N)) || !((N) OP2 (H)))) { \
600 printk(KERN_ERR "\n"); \
601 printk(KERN_ERR "AFS: Assertion failed\n"); \
602 printk(KERN_ERR "%lu "/*#OP1*/" %lu "/*#OP2*/" %lu is false\n", \
603 (unsigned long)(L), (unsigned long)(N), \
604 (unsigned long)(H)); \
605 printk(KERN_ERR "0x%lx "/*#OP1*/" 0x%lx "/*#OP2*/" 0x%lx is false\n", \
606 (unsigned long)(L), (unsigned long)(N), \
607 (unsigned long)(H)); \
608 BUG(); \
609 } \
610} while(0)
611
612
613
614
615// loop, macro without ';', single macro. ex: DEBUG()
616
617// TODO should find the definition because we don't use 'x' and so
618// may lose code sites with coccinelle. If expand correctly, will
619// still don't transform correctly but at least will detect the place.
620
621
622
623
34e49164
C
624#define ASSERT(x) MACROSTATEMENT
625#define IRDA_ASSERT(x) MACROSTATEMENT
626
627#define CHECK_NULL(x) MACROSTATEMENT
628
629//#define DEBUG(x) MACROSTATEMENT
630#define DEBUG0(x) MACROSTATEMENT
631#define DEBUG1(x) MACROSTATEMENT
632#define DEBUG2(x) MACROSTATEMENT
633#define DEBUG3(x) MACROSTATEMENT
634
635
636#define DBG(x) MACROSTATEMENT
637#define DEB(x) MACROSTATEMENT
638#define PARSEDEBUG(x) MACROSTATEMENT
639#define DEBC(x) MACROSTATEMENT
640#define DBG_TRC(x) MACROSTATEMENT
641#define DBG_ERR(x) MACROSTATEMENT
642#define DBG_FTL(x) MACROSTATEMENT
643
644#define DBGINFO(x) MACROSTATEMENT
645#define DFLOW(x) MACROSTATEMENT
646#define DFLIP(x) MACROSTATEMENT
647#define DLOG_INT_TRIG(x) MACROSTATEMENT
648
649#define D3(x) MACROSTATEMENT
650#define D1(x) MACROSTATEMENT
651#define DB(x) MACROSTATEMENT
652#define DCBDEBUG(x) MACROSTATEMENT
653#define SCSI_LOG_MLQUEUE(x) MACROSTATEMENT
654
655#define PLND(x) MACROSTATEMENT
656#define FCALND(x) MACROSTATEMENT
657#define FCALD(x) MACROSTATEMENT
658
659#define DEBUGRECURSION(x) MACROSTATEMENT
660
661#define DEBUGPIO(x) MACROSTATEMENT
662#define VDEB(x) MACROSTATEMENT
663
664#define READ_UNLOCK_IRQRESTORE(x) MACROSTATEMENT
665
666#define TRACE_CATCH(x) MACROSTATEMENT
667
668#define PDBGG(x) MACROSTATEMENT
669
670#define IF_ABR(x) MACROSTATEMENT
671#define IF_EVENT(x) MACROSTATEMENT
672#define IF_ERR(x) MACROSTATEMENT
673#define IF_CBR(x) MACROSTATEMENT
674#define IF_INIT(x) MACROSTATEMENT
675#define IF_RX(x) MACROSTATEMENT
676
677#define SOD(x) MACROSTATEMENT
678
679#define KDBG(x) MACROSTATEMENT
680
681#define IRDA_ASSERT_LABEL(x) MACROSTATEMENT
682
683
684
685
686
687// ----------------------------------------------------------------------------
688// Difficult foreach
689// ----------------------------------------------------------------------------
690
691// include/linux/sched.h
692#define while_each_thread(g, t) \
693 while ((t = next_thread(t)) != g)
694
695
696
697// net/decnet/dn_fib.c
698#define for_fib_info() { struct dn_fib_info *fi;\
699 for(fi = dn_fib_info_list; fi; fi = fi->fib_next)
700#define endfor_fib_info() }
701
702#define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\
703 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
704
705#define change_nexthops(fi) { int nhsel; struct dn_fib_nh *nh;\
706 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
707
708#define endfor_nexthops(fi) }
709
710
711// ----------------------------------------------------------------------------
712// Macros around function prototype
713// ----------------------------------------------------------------------------
714
715
716// net/sched/em_meta.c
717#define META_COLLECTOR(FUNC) static void meta_##FUNC(struct sk_buff *skb, \
718 struct tcf_pkt_info *info, struct meta_value *v, \
719 struct meta_obj *dst, int *err)
720
721
722#define GDTH_INITFUNC(x,y) x y
723#define ASC_INITFUNC(x,y) x y
724
725
726// ----------------------------------------------------------------------------
727// If-like macros
728// ----------------------------------------------------------------------------
729
730// include/linux/lockd/debug.h
731// include/linux/nfs_fs.h
732// include/linux/nfsd/debug.h
733// include/linux/sunrpc/debug.h
734//#define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
735#define ifdebug(flag) if (0)
736
737
738
739// ----------------------------------------------------------------------------
740//#define __PROM_O32
741
742// ----------------------------------------------------------------------------
743// for tests-big/ macros, may be obsolete now cos fixed in latest kernel
744// ----------------------------------------------------------------------------
745
746// rule10
747//#define ACPI_MODULE_NAME(x)
748
749