Advertisement
Guest User

spatch(1) on ofed/include/linux/spinlock.h

a guest
Oct 28th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. $ spatch --recursive-includes -I ofed/include -I . --verbose-parsing -parse-h ofed/include/linux/spinlock.h
  2.  
  3. init_defs_builtins: /usr/local/share/coccinelle/standard.h
  4.  
  5. PARSING: ofed/include/linux/spinlock.h
  6. ERROR-RECOV: found sync end of #define, line 66
  7. parsing pass2: try again
  8. ERROR-RECOV: found sync end of #define, line 66
  9. parse error
  10. = File "ofed/include/linux/spinlock.h", line 67, column 0, charpos = 2505
  11. around = '', whole content =
  12. badcount: 4
  13. bad: }
  14. bad:
  15. bad: #define DEFINE_SPINLOCK(lock) \
  16. bad: spinlock_t lock; \
  17. BAD:!!!!! MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  18. -----------------------------------------------------------------------
  19. maybe 10 most problematic tokens
  20. -----------------------------------------------------------------------
  21. lock: present in 4 parsing errors
  22. example:
  23. #define DEFINE_SPINLOCK(lock) \
  24. spinlock_t lock; \
  25. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  26.  
  27. DEFINE_SPINLOCK: present in 1 parsing errors
  28. example:
  29. #define DEFINE_SPINLOCK(lock) \
  30. spinlock_t lock; \
  31. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  32.  
  33. MTX_DEF: present in 1 parsing errors
  34. example:
  35. #define DEFINE_SPINLOCK(lock) \
  36. spinlock_t lock; \
  37. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  38.  
  39. MTX_SYSINIT: present in 1 parsing errors
  40. example:
  41. #define DEFINE_SPINLOCK(lock) \
  42. spinlock_t lock; \
  43. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  44.  
  45. m: present in 1 parsing errors
  46. example:
  47. #define DEFINE_SPINLOCK(lock) \
  48. spinlock_t lock; \
  49. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  50.  
  51. spinlock_t: present in 1 parsing errors
  52. example:
  53. #define DEFINE_SPINLOCK(lock) \
  54. spinlock_t lock; \
  55. MTX_SYSINIT(lock, &(lock).m, "lnxspin", MTX_DEF)
  56.  
  57. -----------------------------------------------------------------------
  58. NB total files = 1; perfect = 0; pbs = 1; timeout = 0; =========> 0%
  59. nb good = 63, nb passed = 0 =========> 0.000000% passed
  60. nb good = 63, nb bad = 4 =========> 94.029851% good
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement