SHARE
TWEET

Untitled

a guest Jun 17th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. make[1]: Entering directory '/home/himanshu/build/clang-thread-safety'
  2.   HOSTCC  scripts/basic/fixdep
  3.   GEN     Makefile
  4.   HOSTCC  scripts/kconfig/conf.o
  5.   HOSTCC  scripts/kconfig/confdata.o
  6.   HOSTCC  scripts/kconfig/expr.o
  7.   HOSTCC  scripts/kconfig/lexer.lex.o
  8.   HOSTCC  scripts/kconfig/parser.tab.o
  9.   HOSTCC  scripts/kconfig/preprocess.o
  10.   HOSTCC  scripts/kconfig/symbol.o
  11.   HOSTLD  scripts/kconfig/conf
  12. scripts/kconfig/conf  --syncconfig Kconfig
  13.   GEN     Makefile
  14.   Using /home/himanshu/clang-thread-safety-analysis as source for kernel
  15.   HOSTCC  arch/x86/tools/relocs_32.o
  16.   HOSTCC  arch/x86/tools/relocs_64.o
  17.   HOSTCC  arch/x86/tools/relocs_common.o
  18.   HOSTCC  scripts/selinux/genheaders/genheaders
  19.   HOSTCC  scripts/kallsyms
  20.   HOSTLD  arch/x86/tools/relocs
  21.   HOSTCC  scripts/pnmtologo
  22.   HOSTCC  scripts/selinux/mdp/mdp
  23.   DESCEND  objtool
  24.   HOSTCC  scripts/conmakehash
  25.   HOSTCC  scripts/sortextable
  26.   HOSTCC  scripts/asn1_compiler
  27.   HOSTCC  scripts/extract-cert
  28.   HOSTCC   /home/himanshu/build/clang-thread-safety/tools/objtool/fixdep.o
  29.   HOSTLD   /home/himanshu/build/clang-thread-safety/tools/objtool/fixdep-in.o
  30.   LINK     /home/himanshu/build/clang-thread-safety/tools/objtool/fixdep
  31.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/arch/x86/decode.o
  32.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/exec-cmd.o
  33.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/help.o
  34.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/pager.o
  35.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/builtin-check.o
  36.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/builtin-orc.o
  37.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/parse-options.o
  38.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/run-command.o
  39.   LD       /home/himanshu/build/clang-thread-safety/tools/objtool/arch/x86/objtool-in.o
  40.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/check.o
  41.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/orc_gen.o
  42.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/sigchain.o
  43.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/orc_dump.o
  44.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/subcmd-config.o
  45.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/elf.o
  46.   LD       /home/himanshu/build/clang-thread-safety/tools/objtool/libsubcmd-in.o
  47.   AR       /home/himanshu/build/clang-thread-safety/tools/objtool/libsubcmd.a
  48.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/special.o
  49.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/objtool.o
  50.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/libstring.o
  51.   CC       /home/himanshu/build/clang-thread-safety/tools/objtool/str_error_r.o
  52.   LD       /home/himanshu/build/clang-thread-safety/tools/objtool/objtool-in.o
  53.   HOSTCC  scripts/mod/mk_elfconfig
  54.   LINK     /home/himanshu/build/clang-thread-safety/tools/objtool/objtool
  55.   CC      scripts/mod/empty.o
  56.   CC      scripts/mod/devicetable-offsets.s
  57.   MKELF   scripts/mod/elfconfig.h
  58.   HOSTCC  scripts/mod/modpost.o
  59.   HOSTCC  scripts/mod/sumversion.o
  60.   HOSTCC  scripts/mod/file2alias.o
  61.   HOSTLD  scripts/mod/modpost
  62.   CC      kernel/bounds.s
  63.   CALL    /home/himanshu/clang-thread-safety-analysis/scripts/atomic/check-atomics.sh
  64.   UPD     include/generated/timeconst.h
  65.   UPD     include/generated/bounds.h
  66.   CC      arch/x86/kernel/asm-offsets.s
  67.   UPD     include/generated/asm-offsets.h
  68.   CALL    /home/himanshu/clang-thread-safety-analysis/scripts/checksyscalls.sh
  69.   CHK     include/generated/compile.h
  70.   CC      init/main.o
  71.   HOSTCC  usr/gen_init_cpio
  72.   AR      arch/x86/crypto/built-in.a
  73.   UPD     include/generated/compile.h
  74.   CC      arch/x86/entry/vsyscall/vsyscall_gtod.o
  75.   CC      arch/x86/entry/vdso/vma.o
  76.   GEN     usr/initramfs_data.cpio
  77.   AS      usr/initramfs_data.o
  78.   AR      usr/built-in.a
  79.   CC      arch/x86/entry/vsyscall/vsyscall_64.o
  80.   CC      kernel/bpf/core.o
  81.   CC      arch/x86/entry/vdso/vdso32-setup.o
  82.   LDS     arch/x86/entry/vdso/vdso.lds
  83.   AS      arch/x86/entry/vdso/vdso-note.o
  84.   AS      arch/x86/entry/vsyscall/vsyscall_emu_64.o
  85.   CC      arch/x86/entry/vdso/vclock_gettime.o
  86.   AR      arch/x86/entry/vsyscall/built-in.a
  87.   CC      arch/x86/entry/vdso/vgetcpu.o
  88.   CC      certs/system_keyring.o
  89.   HOSTCC  arch/x86/entry/vdso/vdso2c
  90.   EXTRACT_CERTS  
  91.   AS      certs/system_certificates.o
  92.   AR      certs/built-in.a
  93.   CC      mm/filemap.o
  94.   LDS     arch/x86/entry/vdso/vdso32/vdso32.lds
  95.   CC      init/do_mounts.o
  96.   CC      arch/x86/entry/vdso/vdso32/vclock_gettime.o
  97.   AR      kernel/bpf/built-in.a
  98.   CC      kernel/cgroup/cgroup.o
  99.   AS      arch/x86/entry/vdso/vdso32/note.o
  100.   AS      arch/x86/entry/vdso/vdso32/system_call.o
  101.   AS      arch/x86/entry/vdso/vdso32/sigreturn.o
  102.   VDSO    arch/x86/entry/vdso/vdso64.so.dbg
  103.   VDSO    arch/x86/entry/vdso/vdso32.so.dbg
  104.   OBJCOPY arch/x86/entry/vdso/vdso64.so
  105.   OBJCOPY arch/x86/entry/vdso/vdso32.so
  106.   VDSO2C  arch/x86/entry/vdso/vdso-image-64.c
  107.   VDSO2C  arch/x86/entry/vdso/vdso-image-32.c
  108.   CC      arch/x86/entry/vdso/vdso-image-64.o
  109.   CC      arch/x86/entry/vdso/vdso-image-32.o
  110.   AR      arch/x86/entry/vdso/built-in.a
  111.   AS      arch/x86/entry/entry_64.o
  112.   AS      arch/x86/entry/thunk_64.o
  113.   CC      arch/x86/entry/syscall_64.o
  114.   CC      mm/mempool.o
  115.   CC      arch/x86/entry/common.o
  116.   CC      init/do_mounts_initrd.o
  117.   CC      mm/oom_kill.o
  118.   CC      init/do_mounts_md.o
  119.   AS      arch/x86/entry/entry_64_compat.o
  120.   CC      arch/x86/entry/syscall_32.o
  121.   AR      arch/x86/entry/built-in.a
  122.   CC      arch/x86/events/amd/core.o
  123. /home/himanshu/clang-thread-safety-analysis/mm/oom_kill.c:427:3: warning: releasing mutex 'task->alloc_lock' that was not held [-Wthread-safety-analysis]
  124.                 task_unlock(task);
  125.                 ^
  126.   CC      kernel/cgroup/rstat.o
  127. /home/himanshu/clang-thread-safety-analysis/mm/oom_kill.c:885:2: warning: releasing mutex 'victim->alloc_lock' that was not held [-Wthread-safety-analysis]
  128.         task_unlock(victim);
  129.         ^
  130.   CC      init/initramfs.o
  131. 2 warnings generated.
  132.   CC      mm/fadvise.o
  133.   CC      kernel/cgroup/namespace.o
  134.   CC      arch/x86/events/amd/uncore.o
  135.   CC      init/calibrate.o
  136.   CC      kernel/cgroup/cgroup-v1.o
  137.   CC      mm/maccess.o
  138.   CC      arch/x86/events/amd/ibs.o
  139.   CC      init/init_task.o
  140.   CC      mm/page-writeback.o
  141.   CC      init/version.o
  142.   CC      arch/x86/events/amd/iommu.o
  143.   CC      kernel/cgroup/freezer.o
  144.   AR      init/built-in.a
  145.   CC      fs/autofs/init.o
  146.   CC      fs/autofs/inode.o
  147.   AR      arch/x86/events/amd/built-in.a
  148.   CC      arch/x86/events/intel/core.o
  149.   CC      kernel/cgroup/legacy_freezer.o
  150.   CC      mm/readahead.o
  151.   CC      fs/autofs/root.o
  152.   CC      kernel/cgroup/cpuset.o
  153.   CC      mm/swap.o
  154.   CC      fs/autofs/symlink.o
  155.   CC      fs/autofs/waitq.o
  156.   CC      arch/x86/events/intel/bts.o
  157.   AR      kernel/cgroup/built-in.a
  158.   CC      kernel/dma/mapping.o
  159.   CC      fs/autofs/expire.o
  160.   CC      mm/truncate.o
  161.   CC      arch/x86/events/intel/ds.o
  162. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:106:3: warning: releasing mutex 'q->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  163.                 spin_unlock(&q->d_lock);
  164.                 ^
  165. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:111:2: warning: releasing mutex 'q->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  166.         spin_unlock(&q->d_lock);
  167.         ^
  168. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:138:9: warning: expecting mutex 'p->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  169.         next = p->d_subdirs.next;
  170.                ^
  171. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:136:2: note: mutex acquired here
  172.         spin_lock(&p->d_lock);
  173.         ^
  174. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:140:10: warning: expecting mutex 'p->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  175.                 while (1) {
  176.                        ^
  177. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:136:2: note: mutex acquired here
  178.         spin_lock(&p->d_lock);
  179.         ^
  180. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:160:5: warning: mutex 'p->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  181.                                 break;
  182.                                 ^
  183. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:136:2: note: mutex acquired here
  184.         spin_lock(&p->d_lock);
  185.         ^
  186. /home/himanshu/clang-thread-safety-analysis/fs/autofs/expire.c:174:2: warning: releasing mutex 'ret->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  187.         spin_unlock(&ret->d_lock);
  188.         ^
  189.   CC      kernel/dma/direct.o
  190. 6 warnings generated.
  191.   CC      fs/autofs/dev-ioctl.o
  192.   CC      mm/vmscan.o
  193.   CC      kernel/dma/dummy.o
  194.   AR      fs/autofs/built-in.a
  195.   CC      fs/debugfs/inode.o
  196.   CC      arch/x86/events/intel/knc.o
  197.   CC      kernel/dma/swiotlb.o
  198.   CC      fs/debugfs/file.o
  199.   CC      arch/x86/events/intel/lbr.o
  200.   AR      kernel/dma/built-in.a
  201.   CC      kernel/events/core.o
  202. fs/debugfs/file.o: warning: objtool: full_proxy_llseek() falls through to next function full_proxy_read()
  203. fs/debugfs/file.o: warning: objtool: full_proxy_read() falls through to next function full_proxy_write()
  204. fs/debugfs/file.o: warning: objtool: full_proxy_write() falls through to next function full_proxy_poll()
  205. fs/debugfs/file.o: warning: objtool: full_proxy_poll() falls through to next function full_proxy_unlocked_ioctl()
  206. fs/debugfs/file.o: warning: objtool: full_proxy_unlocked_ioctl() falls through to next function fops_u8_open()
  207.   AR      fs/debugfs/built-in.a
  208.   CC      fs/devpts/inode.o
  209.   CC      arch/x86/events/intel/p4.o
  210.   CC      mm/shmem.o
  211.   AR      fs/devpts/built-in.a
  212.   CC [M]  fs/efivarfs/inode.o
  213.   CC [M]  fs/efivarfs/file.o
  214.   CC      arch/x86/events/intel/p6.o
  215. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2396:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  216.         pte_unmap_unlock(dst_pte, ptl);
  217.         ^
  218. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  219.         spin_unlock(ptl);                               \
  220.         ^
  221. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2400:9: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  222.         return ret;
  223.                ^
  224. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2371:12: note: mutex acquired here
  225.         dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl);
  226.                   ^
  227. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  228.         spin_lock(__ptl);                               \
  229.         ^
  230. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2402:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  231.         pte_unmap_unlock(dst_pte, ptl);
  232.         ^
  233. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  234.         spin_unlock(ptl);                               \
  235.         ^
  236. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2406:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  237.         mem_cgroup_cancel_charge(page, memcg, false);
  238.         ^
  239. /home/himanshu/clang-thread-safety-analysis/mm/shmem.c:2371:12: note: mutex acquired here
  240.         dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl);
  241.                   ^
  242. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  243.         spin_lock(__ptl);                               \
  244.         ^
  245.   CC [M]  fs/efivarfs/super.o
  246.   CC      arch/x86/events/intel/pt.o
  247.   LD [M]  fs/efivarfs/efivarfs.o
  248.   CC      fs/exportfs/expfs.o
  249. 4 warnings generated.
  250.   CC      mm/util.o
  251.   AR      fs/exportfs/built-in.a
  252.   CC      fs/ext4/balloc.o
  253.   CC      arch/x86/events/intel/rapl.o
  254.   CC      mm/mmzone.o
  255. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/balloc.c:20:
  256. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  257. }
  258. ^
  259. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  260.                 spin_lock(lock);
  261.                 ^
  262. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  263.         spin_unlock(ext4_group_lock_ptr(sb, group));
  264.         ^
  265.   CC      arch/x86/events/intel/uncore.o
  266.   CC      mm/vmstat.o
  267.   CC      kernel/events/ring_buffer.o
  268. 2 warnings generated.
  269.   CC      fs/ext4/bitmap.o
  270.   CC      arch/x86/events/intel/uncore_nhmex.o
  271.   CC      mm/backing-dev.o
  272.   CC      kernel/events/callchain.o
  273. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/bitmap.c:12:
  274. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  275. }
  276. ^
  277. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  278.                 spin_lock(lock);
  279.                 ^
  280. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  281.         spin_unlock(ext4_group_lock_ptr(sb, group));
  282.         ^
  283. 2 warnings generated.
  284.   CC      fs/ext4/block_validity.o
  285.   CC      arch/x86/events/intel/uncore_snb.o
  286.   CC      kernel/events/hw_breakpoint.o
  287. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/block_validity.c:21:
  288. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  289. }
  290. ^
  291. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  292.                 spin_lock(lock);
  293.                 ^
  294. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  295.         spin_unlock(ext4_group_lock_ptr(sb, group));
  296.         ^
  297.   CC      mm/mm_init.o
  298. 2 warnings generated.
  299.   CC      fs/ext4/dir.o
  300.   CC      arch/x86/events/intel/uncore_snbep.o
  301.   CC      kernel/events/uprobes.o
  302.   CC      mm/mmu_context.o
  303. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/dir.c:30:
  304. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  305. }
  306. ^
  307. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  308.                 spin_lock(lock);
  309.                 ^
  310. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  311.         spin_unlock(ext4_group_lock_ptr(sb, group));
  312.         ^
  313. 2 warnings generated.
  314.   CC      fs/ext4/ext4_jbd2.o
  315.   CC      mm/percpu.o
  316. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.c:6:
  317. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  318. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  319. }
  320. ^
  321. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  322.                 spin_lock(lock);
  323.                 ^
  324. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  325.         spin_unlock(ext4_group_lock_ptr(sb, group));
  326.         ^
  327.   AR      kernel/events/built-in.a
  328.   CC      kernel/irq/irqdesc.o
  329.   CC      arch/x86/events/intel/cstate.o
  330. 2 warnings generated.
  331.   CC      fs/ext4/extents.o
  332.   CC      kernel/irq/handle.o
  333.   AR      arch/x86/events/intel/built-in.a
  334.   CC      arch/x86/events/core.o
  335.   CC      mm/slab_common.o
  336. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/extents.c:31:
  337. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  338. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  339. }
  340. ^
  341. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  342.                 spin_lock(lock);
  343.                 ^
  344. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  345.         spin_unlock(ext4_group_lock_ptr(sb, group));
  346.         ^
  347.   CC      kernel/irq/manage.o
  348.   CC      mm/compaction.o
  349.   CC      arch/x86/events/msr.o
  350.   CC      kernel/irq/spurious.o
  351.   CC      kernel/irq/resend.o
  352.   AR      arch/x86/events/built-in.a
  353.   CC      arch/x86/ia32/sys_ia32.o
  354.   CC      kernel/irq/chip.o
  355. 2 warnings generated.
  356.   CC      fs/ext4/extents_status.o
  357.   CC      arch/x86/ia32/ia32_signal.o
  358.   CC      mm/vmacache.o
  359.   CC      kernel/irq/dummychip.o
  360. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/extents_status.c:16:
  361. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  362. }
  363. ^
  364. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  365.                 spin_lock(lock);
  366.                 ^
  367. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  368.         spin_unlock(ext4_group_lock_ptr(sb, group));
  369.         ^
  370.   CC      arch/x86/ia32/audit.o
  371.   CC      kernel/irq/devres.o
  372.   CC      mm/interval_tree.o
  373.   AR      arch/x86/ia32/built-in.a
  374.   CC      arch/x86/kernel/acpi/boot.o
  375.   CC      kernel/irq/autoprobe.o
  376.   CC      mm/list_lru.o
  377. 2 warnings generated.
  378.   CC      kernel/irq/irqdomain.o
  379.   CC      fs/ext4/file.o
  380.   CC      arch/x86/kernel/acpi/sleep.o
  381.   CC      mm/workingset.o
  382. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/file.c:32:
  383. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  384. }
  385. ^
  386. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  387.                 spin_lock(lock);
  388.                 ^
  389. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  390.         spin_unlock(ext4_group_lock_ptr(sb, group));
  391.         ^
  392. 2 warnings generated.
  393.   CC      fs/ext4/fsmap.o
  394.   CC      kernel/irq/proc.o
  395.   AS      arch/x86/kernel/acpi/wakeup_64.o
  396.   CC      arch/x86/kernel/acpi/cppc_msr.o
  397. /home/himanshu/clang-thread-safety-analysis/mm/workingset.c:512:2: warning: mutex 'lru_lock' is not held on every path through here [-Wthread-safety-analysis]
  398.         cond_resched();
  399.         ^
  400. /home/himanshu/clang-thread-safety-analysis/include/linux/sched.h:1707:2: note: expanded from macro 'cond_resched'
  401.         ___might_sleep(__FILE__, __LINE__, 0);  \
  402.         ^
  403. /home/himanshu/clang-thread-safety-analysis/mm/workingset.c:454:41: note: mutex acquired here
  404.                                           void *arg) __must_hold(lru_lock) __requires_spinlock(*lru_lock)
  405.                                                                            ^
  406. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler_attributes.h:270:50: note: expanded from macro '__requires_spinlock'
  407. # define __requires_spinlock(x)                 __attribute__((requires_capability(x)))
  408.                                                                ^
  409. /home/himanshu/clang-thread-safety-analysis/mm/workingset.c:515:1: warning: expecting mutex 'lru_lock' to be held at the end of function [-Wthread-safety-analysis]
  410. }
  411. ^
  412. /home/himanshu/clang-thread-safety-analysis/mm/workingset.c:454:41: note: mutex acquired here
  413.                                           void *arg) __must_hold(lru_lock) __requires_spinlock(*lru_lock)
  414.                                                                            ^
  415. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler_attributes.h:270:50: note: expanded from macro '__requires_spinlock'
  416. # define __requires_spinlock(x)                 __attribute__((requires_capability(x)))
  417.                                                                ^
  418. 2 warnings generated.
  419.   CC      mm/debug.o
  420.   CC      kernel/irq/migration.o
  421. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/fsmap.c:7:
  422. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  423. }
  424. ^
  425. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  426.                 spin_lock(lock);
  427.                 ^
  428. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  429.         spin_unlock(ext4_group_lock_ptr(sb, group));
  430.         ^
  431.   CC      arch/x86/kernel/acpi/cstate.o
  432.   CC      mm/gup.o
  433.   CC      kernel/irq/cpuhotplug.o
  434.   AR      arch/x86/kernel/acpi/built-in.a
  435.   CC      arch/x86/kernel/apic/apic.o
  436.   CC      kernel/irq/pm.o
  437. 2 warnings generated.
  438.   CC      fs/ext4/fsync.o
  439. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:197:6: warning: expecting mutex '__ptl' to be held at start of each loop [-Wthread-safety-analysis]
  440.         if (unlikely(pmd_bad(*pmd)))
  441.             ^
  442. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  443. # define unlikely(x)    __builtin_expect(!!(x), 0)
  444.                         ^
  445. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:200:9: note: mutex acquired here
  446.         ptep = pte_offset_map_lock(mm, pmd, address, &ptl);
  447.                ^
  448. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  449.         spin_lock(__ptl);                               \
  450.         ^
  451. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:197:6: warning: expecting mutex '__ptl' to be held at start of each loop [-Wthread-safety-analysis]
  452.         if (unlikely(pmd_bad(*pmd)))
  453.             ^
  454. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  455. # define unlikely(x)    __builtin_expect(!!(x), 0)
  456.                         ^
  457. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:200:9: note: mutex acquired here
  458.         ptep = pte_offset_map_lock(mm, pmd, address, &ptl);
  459.                ^
  460. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  461.         spin_lock(__ptl);                               \
  462.         ^
  463. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:216:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  464.                 pte_unmap_unlock(ptep, ptl);
  465.                 ^
  466. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  467.         spin_unlock(ptl);                               \
  468.         ^
  469. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:223:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  470.                 pte_unmap_unlock(ptep, ptl);
  471.                 ^
  472. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  473.         spin_unlock(ptl);                               \
  474.         ^
  475. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:259:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  476.                 pte_unmap_unlock(ptep, ptl);
  477.                 ^
  478. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  479.         spin_unlock(ptl);                               \
  480.         ^
  481. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:313:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  482.         pte_unmap_unlock(ptep, ptl);
  483.         ^
  484. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  485.         spin_unlock(ptl);                               \
  486.         ^
  487. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:316:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  488.         pte_unmap_unlock(ptep, ptl);
  489.         ^
  490. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  491.         spin_unlock(ptl);                               \
  492.         ^
  493. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:320:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  494. }
  495. ^
  496. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:200:9: note: mutex acquired here
  497.         ptep = pte_offset_map_lock(mm, pmd, address, &ptl);
  498.                ^
  499. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  500.         spin_lock(__ptl);                               \
  501.         ^
  502. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:374:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  503.                 spin_unlock(ptl);
  504.                 ^
  505. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:387:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  506.                 spin_unlock(ptl);
  507.                 ^
  508. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:391:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  509.                 spin_unlock(ptl);
  510.                 ^
  511. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:398:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  512.                 spin_unlock(ptl);
  513.                 ^
  514. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:405:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  515.                         spin_unlock(ptl);
  516.                         ^
  517. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:412:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  518.                                 spin_unlock(ptl);
  519.                                 ^
  520. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:415:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  521.                         spin_unlock(ptl);
  522.                         ^
  523. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:428:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  524.         spin_unlock(ptl);
  525.         ^
  526. /home/himanshu/clang-thread-safety-analysis/mm/gup.c:463:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  527.                 spin_unlock(ptl);
  528.                 ^
  529.   CC      kernel/irq/msi.o
  530. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/fsync.c:32:
  531. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  532. }
  533. ^
  534. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  535.                 spin_lock(lock);
  536.                 ^
  537. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  538.         spin_unlock(ext4_group_lock_ptr(sb, group));
  539.         ^
  540. 17 warnings generated.
  541.   CC      mm/highmem.o
  542.   CC      kernel/irq/affinity.o
  543.   CC      arch/x86/kernel/apic/apic_common.o
  544.   CC      mm/memory.o
  545. 2 warnings generated.
  546.   CC      fs/ext4/hash.o
  547.   CC      kernel/irq/matrix.o
  548.   CC      arch/x86/kernel/apic/apic_noop.o
  549.   CC      arch/x86/kernel/apic/ipi.o
  550. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/hash.c:12:
  551. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  552. }
  553. ^
  554. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  555.                 spin_lock(lock);
  556.                 ^
  557. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  558.         spin_unlock(ext4_group_lock_ptr(sb, group));
  559.         ^
  560. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:832:12: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  561.         dst_pte = pte_alloc_map_lock(dst_mm, dst_pmd, addr, &dst_ptl);
  562.                   ^
  563. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2028:3: note: expanded from macro 'pte_alloc_map_lock'
  564.         (pte_alloc(mm, pmd) ?                   \
  565.          ^
  566. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2022:28: note: expanded from macro 'pte_alloc'
  567. #define pte_alloc(mm, pmd) (unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, pmd))
  568.                            ^
  569. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:832:12: note: mutex acquired here
  570. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2029:11: note: expanded from macro 'pte_alloc_map_lock'
  571.                  NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
  572.                         ^
  573. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  574.         spin_lock(__ptl);                               \
  575.         ^
  576. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:865:2: warning: releasing mutex 'src_ptl' that was not held [-Wthread-safety-analysis]
  577.         spin_unlock(src_ptl);
  578.         ^
  579. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:868:2: warning: releasing mutex 'dst_ptl' that was not held [-Wthread-safety-analysis]
  580.         pte_unmap_unlock(orig_dst_pte, dst_ptl);
  581.         ^
  582. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  583.         spin_unlock(ptl);                               \
  584.         ^
  585. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1053:2: warning: expecting mutex '__ptl' to be held at start of each loop [-Wthread-safety-analysis]
  586.         init_rss_vec(rss);
  587.         ^
  588. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1054:14: note: mutex acquired here
  589.         start_pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
  590.                     ^
  591. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  592.         spin_lock(__ptl);                               \
  593.         ^
  594. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1150:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  595.         pte_unmap_unlock(start_pte, ptl);
  596.         ^
  597. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  598.         spin_unlock(ptl);                               \
  599.         ^
  600. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1166:1: warning: mutex '__ptl' is still held at the end of function [-Wthread-safety-analysis]
  601. }
  602. ^
  603. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1054:14: note: mutex acquired here
  604.         start_pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
  605.                     ^
  606. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  607.         spin_lock(__ptl);                               \
  608.         ^
  609. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1441:9: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  610.         return pte_alloc_map_lock(mm, pmd, addr, ptl);
  611.                ^
  612. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2028:3: note: expanded from macro 'pte_alloc_map_lock'
  613.         (pte_alloc(mm, pmd) ?                   \
  614.          ^
  615. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2022:28: note: expanded from macro 'pte_alloc'
  616. #define pte_alloc(mm, pmd) (unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, pmd))
  617.                            ^
  618. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1441:9: note: mutex acquired here
  619. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2029:11: note: expanded from macro 'pte_alloc_map_lock'
  620.                  NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
  621.                         ^
  622. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  623.         spin_lock(__ptl);                               \
  624.         ^
  625. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1478:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  626.         pte_unmap_unlock(pte, ptl);
  627.         ^
  628. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  629.         spin_unlock(ptl);                               \
  630.         ^
  631. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1481:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  632.         pte_unmap_unlock(pte, ptl);
  633.         ^
  634. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  635.         spin_unlock(ptl);                               \
  636.         ^
  637. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1661:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  638.         pte_unmap_unlock(pte, ptl);
  639.         ^
  640. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  641.         spin_unlock(ptl);                               \
  642.         ^
  643. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1830:8: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  644.         pte = pte_alloc_map_lock(mm, pmd, addr, &ptl);
  645.               ^
  646. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2028:3: note: expanded from macro 'pte_alloc_map_lock'
  647.         (pte_alloc(mm, pmd) ?                   \
  648.          ^
  649. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2022:28: note: expanded from macro 'pte_alloc'
  650. #define pte_alloc(mm, pmd) (unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, pmd))
  651.                            ^
  652. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1830:8: note: mutex acquired here
  653. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2029:11: note: expanded from macro 'pte_alloc_map_lock'
  654.                  NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
  655.                         ^
  656. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  657.         spin_lock(__ptl);                               \
  658.         ^
  659. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:1844:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  660.         pte_unmap_unlock(pte - 1, ptl);
  661.         ^
  662. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  663.         spin_unlock(ptl);                               \
  664.         ^
  665. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2046:3: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  666.                 pte_alloc_map_lock(mm, pmd, addr, &ptl);
  667.                 ^
  668. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2028:3: note: expanded from macro 'pte_alloc_map_lock'
  669.         (pte_alloc(mm, pmd) ?                   \
  670.          ^
  671. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2022:28: note: expanded from macro 'pte_alloc'
  672. #define pte_alloc(mm, pmd) (unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, pmd))
  673.                            ^
  674. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2046:3: note: mutex acquired here
  675. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2029:11: note: expanded from macro 'pte_alloc_map_lock'
  676.                  NULL : pte_offset_map_lock(mm, pmd, address, ptlp))
  677.                         ^
  678. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  679.         spin_lock(__ptl);                               \
  680.         ^
  681. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2065:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  682.                 pte_unmap_unlock(pte-1, ptl);
  683.                 ^
  684. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  685.         spin_unlock(ptl);                               \
  686.         ^
  687. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2317:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  688.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  689.         ^
  690. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  691.         spin_unlock(ptl);                               \
  692.         ^
  693. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2443:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  694.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  695.         ^
  696. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  697.         spin_unlock(ptl);                               \
  698.         ^
  699. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2469:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  700. }
  701. ^
  702. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2376:13: note: mutex acquired here
  703.         vmf->pte = pte_offset_map_lock(mm, vmf->pmd, vmf->address, &vmf->ptl);
  704.                    ^
  705. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  706.         spin_lock(__ptl);                               \
  707.         ^
  708. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2497:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  709.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  710.                 ^
  711. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  712.         spin_unlock(ptl);                               \
  713.         ^
  714. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2502:1: warning: mutex '__ptl' is still held at the end of function [-Wthread-safety-analysis]
  715. }
  716. ^
  717. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2490:13: note: mutex acquired here
  718.         vmf->pte = pte_offset_map_lock(vmf->vma->vm_mm, vmf->pmd, vmf->address,
  719.                    ^
  720. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  721.         spin_lock(__ptl);                               \
  722.         ^
  723. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2515:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  724.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  725.                 ^
  726. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  727.         spin_unlock(ptl);                               \
  728.         ^
  729. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2536:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  730.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  731.                 ^
  732. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  733.         spin_unlock(ptl);                               \
  734.         ^
  735. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2595:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  736.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  737.                 ^
  738. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  739.         spin_unlock(ptl);                               \
  740.         ^
  741. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2610:4: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  742.                         pte_unmap_unlock(vmf->pte, vmf->ptl);
  743.                         ^
  744. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  745.         spin_unlock(ptl);                               \
  746.         ^
  747. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2616:5: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  748.                                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  749.                                 ^
  750. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  751.         spin_unlock(ptl);                               \
  752.         ^
  753. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2622:7: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  754.                 if (PageKsm(vmf->page)) {
  755.                     ^
  756. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2612:15: note: mutex acquired here
  757.                         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  758.                                    ^
  759. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  760.         spin_lock(__ptl);                               \
  761.         ^
  762. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2657:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  763.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  764.         ^
  765. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  766.         spin_unlock(ptl);                               \
  767.         ^
  768. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2659:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  769. }
  770. ^
  771. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2612:15: note: mutex acquired here
  772.                         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  773.                                    ^
  774. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  775.         spin_lock(__ptl);                               \
  776.         ^
  777. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2963:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  778.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  779.         ^
  780. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  781.         spin_unlock(ptl);                               \
  782.         ^
  783. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2965:9: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  784.         return ret;
  785.                ^
  786. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2888:13: note: mutex acquired here
  787.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  788.                    ^
  789. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  790.         spin_lock(__ptl);                               \
  791.         ^
  792. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2968:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  793.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  794.         ^
  795. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  796.         spin_unlock(ptl);                               \
  797.         ^
  798. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2970:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  799.         unlock_page(page);
  800.         ^
  801. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2888:13: note: mutex acquired here
  802.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  803.                    ^
  804. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  805.         spin_lock(__ptl);                               \
  806.         ^
  807. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2978:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  808. }
  809. ^
  810. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2832:15: note: mutex acquired here
  811.                         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  812.                                    ^
  813. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  814.         spin_lock(__ptl);                               \
  815.         ^
  816. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2978:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  817. }
  818. ^
  819. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:2888:13: note: mutex acquired here
  820.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  821.                    ^
  822. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  823.         spin_lock(__ptl);                               \
  824.         ^
  825. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3028:4: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  826.                         pte_unmap_unlock(vmf->pte, vmf->ptl);
  827.                         ^
  828. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  829.         spin_unlock(ptl);                               \
  830.         ^
  831. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3067:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  832.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  833.                 ^
  834. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  835.         spin_unlock(ptl);                               \
  836.         ^
  837. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3078:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  838.         set_pte_at(vma->vm_mm, vmf->address, vmf->pte, entry);
  839.         ^
  840. /home/himanshu/clang-thread-safety-analysis/arch/x86/include/asm/pgtable.h:64:41: note: expanded from macro 'set_pte_at'
  841. #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte)
  842.                                         ^
  843. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3019:14: note: mutex acquired here
  844.                 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  845.                            ^
  846. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  847.         spin_lock(__ptl);                               \
  848.         ^
  849. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3078:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  850.         set_pte_at(vma->vm_mm, vmf->address, vmf->pte, entry);
  851.         ^
  852. /home/himanshu/clang-thread-safety-analysis/arch/x86/include/asm/pgtable.h:64:41: note: expanded from macro 'set_pte_at'
  853. #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte)
  854.                                         ^
  855. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3056:13: note: mutex acquired here
  856.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  857.                    ^
  858. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  859.         spin_lock(__ptl);                               \
  860.         ^
  861. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3083:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  862.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  863.         ^
  864. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  865.         spin_unlock(ptl);                               \
  866.         ^
  867. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3093:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  868. }
  869. ^
  870. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3019:14: note: mutex acquired here
  871.                 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  872.                            ^
  873. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  874.         spin_lock(__ptl);                               \
  875.         ^
  876. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3093:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  877. }
  878. ^
  879. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3019:14: note: mutex acquired here
  880.                 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  881.                            ^
  882. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  883.         spin_lock(__ptl);                               \
  884.         ^
  885. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3093:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  886. }
  887. ^
  888. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3056:13: note: mutex acquired here
  889.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  890.                    ^
  891. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  892.         spin_lock(__ptl);                               \
  893.         ^
  894. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3093:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  895. }
  896. ^
  897. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3056:13: note: mutex acquired here
  898.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  899.                    ^
  900. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  901.         spin_lock(__ptl);                               \
  902.         ^
  903. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3093:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  904. }
  905. ^
  906. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3019:14: note: mutex acquired here
  907.                 vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd,
  908.                            ^
  909. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  910.         spin_lock(__ptl);                               \
  911.         ^
  912. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3168:4: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  913.                         spin_unlock(vmf->ptl);
  914.                         ^
  915. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3174:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  916.                 spin_unlock(vmf->ptl);
  917.                 ^
  918. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3206:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  919. }
  920. ^
  921. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3203:13: note: mutex acquired here
  922.         vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
  923.                    ^
  924. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  925.         spin_lock(__ptl);                               \
  926.         ^
  927. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3402:3: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  928.                 pte_unmap_unlock(vmf->pte, vmf->ptl);
  929.                 ^
  930. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  931.         spin_unlock(ptl);                               \
  932.         ^
  933. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3514:2: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  934.         pte_unmap_unlock(vmf->pte, vmf->ptl);
  935.         ^
  936. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  937.         spin_unlock(ptl);                               \
  938.         ^
  939. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3663:4: warning: releasing mutex 'vmf->ptl' that was not held [-Wthread-safety-analysis]
  940.                         pte_unmap_unlock(vmf->pte, vmf->ptl);
  941.                         ^
  942. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  943.         spin_unlock(ptl);                               \
  944.         ^
  945. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3673:6: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  946.         if (vmf->prealloc_pte) {
  947.             ^
  948. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3647:15: note: mutex acquired here
  949.                         vmf->pte = pte_offset_map_lock(vmf->vma->vm_mm,
  950.                                    ^
  951. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  952.         spin_lock(__ptl);                               \
  953.         ^
  954. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3933:1: warning: mutex 'vmf->ptl' is not held on every path through here [-Wthread-safety-analysis]
  955. }
  956. ^
  957. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:3907:2: note: mutex acquired here
  958.         spin_lock(vmf->ptl);
  959.         ^
  960. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4159:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  961.         spin_unlock(ptl);
  962.         ^
  963. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4204:3: warning: releasing mutex 'ptlp' that was not held [-Wthread-safety-analysis]
  964.                 spin_unlock(*ptlp);
  965.                 ^
  966. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4224:2: warning: releasing mutex 'ptlp' that was not held [-Wthread-safety-analysis]
  967.         pte_unmap_unlock(ptep, *ptlp);
  968.         ^
  969. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  970.         spin_unlock(ptl);                               \
  971.         ^
  972. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4228:10: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  973.         return -EINVAL;
  974.                 ^
  975. /home/himanshu/clang-thread-safety-analysis/include/uapi/asm-generic/errno-base.h:26:17: note: expanded from macro 'EINVAL'
  976. #define EINVAL          22      /* Invalid argument */
  977.                         ^
  978. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4218:9: note: mutex acquired here
  979.         ptep = pte_offset_map_lock(mm, pmd, address, ptlp);
  980.                ^
  981. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  982.         spin_lock(__ptl);                               \
  983.         ^
  984. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4229:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  985. }
  986. ^
  987. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4218:9: note: mutex acquired here
  988.         ptep = pte_offset_map_lock(mm, pmd, address, ptlp);
  989.                ^
  990. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  991.         spin_lock(__ptl);                               \
  992.         ^
  993. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4281:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  994.         pte_unmap_unlock(ptep, ptl);
  995.         ^
  996. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  997.         spin_unlock(ptl);                               \
  998.         ^
  999. /home/himanshu/clang-thread-safety-analysis/mm/memory.c:4310:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1000.         pte_unmap_unlock(ptep, ptl);
  1001.         ^
  1002. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1003.         spin_unlock(ptl);                               \
  1004.         ^
  1005. 2 warnings generated.
  1006.   CC      fs/ext4/ialloc.o
  1007.   AR      kernel/irq/built-in.a
  1008.   AR      kernel/livepatch/built-in.a
  1009.   CC      kernel/locking/mutex.o
  1010.   CC      arch/x86/kernel/apic/vector.o
  1011. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ialloc.c:29:
  1012. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1013. }
  1014. ^
  1015. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1016.                 spin_lock(lock);
  1017.                 ^
  1018. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1019.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1020.         ^
  1021.   CC      kernel/locking/semaphore.o
  1022. 58 warnings generated.
  1023.   CC      mm/mincore.o
  1024.   CC      arch/x86/kernel/apic/hw_nmi.o
  1025.   CC      kernel/locking/rwsem.o
  1026. 2 warnings generated.
  1027.   CC      fs/ext4/indirect.o
  1028. /home/himanshu/clang-thread-safety-analysis/mm/mincore.c:126:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1029.                 spin_unlock(ptl);
  1030.                 ^
  1031. /home/himanshu/clang-thread-safety-analysis/mm/mincore.c:165:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1032.         pte_unmap_unlock(ptep - 1, ptl);
  1033.         ^
  1034. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1035.         spin_unlock(ptl);                               \
  1036.         ^
  1037. /home/himanshu/clang-thread-safety-analysis/mm/mincore.c:167:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1038.         walk->private += nr;
  1039.         ^
  1040. /home/himanshu/clang-thread-safety-analysis/mm/mincore.c:135:9: note: mutex acquired here
  1041.         ptep = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
  1042.                ^
  1043. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1044.         spin_lock(__ptl);                               \
  1045.         ^
  1046.   CC      arch/x86/kernel/apic/io_apic.o
  1047.   CC      kernel/locking/percpu-rwsem.o
  1048. 3 warnings generated.
  1049.   CC      mm/mlock.o
  1050. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/indirect.c:24:
  1051. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1052. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1053. }
  1054. ^
  1055. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1056.                 spin_lock(lock);
  1057.                 ^
  1058. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1059.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1060.         ^
  1061.   CC      kernel/locking/rwsem-xadd.o
  1062. /home/himanshu/clang-thread-safety-analysis/mm/mlock.c:423:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1063.         pte_unmap_unlock(pte, ptl);
  1064.         ^
  1065. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1066.         spin_unlock(ptl);                               \
  1067.         ^
  1068.   CC      kernel/locking/spinlock.o
  1069. 1 warning generated.
  1070.   CC      mm/mmap.o
  1071.   CC      kernel/locking/osq_lock.o
  1072.   CC      arch/x86/kernel/apic/msi.o
  1073. 2 warnings generated.
  1074.   CC      fs/ext4/inline.o
  1075.   CC      kernel/locking/qspinlock.o
  1076.   CC      kernel/locking/rtmutex.o
  1077.   CC      arch/x86/kernel/apic/apic_flat_64.o
  1078. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/inline.c:11:
  1079. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1080. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1081. }
  1082. ^
  1083. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1084.                 spin_lock(lock);
  1085.                 ^
  1086. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1087.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1088.         ^
  1089.   CC      kernel/locking/qrwlock.o
  1090.   CC      arch/x86/kernel/apic/probe_64.o
  1091.   CC      mm/mmu_gather.o
  1092. 2 warnings generated.
  1093.   CC      fs/ext4/inode.o
  1094.   AR      kernel/locking/built-in.a
  1095.   CC      kernel/power/qos.o
  1096.   AR      arch/x86/kernel/apic/built-in.a
  1097.   CC      arch/x86/kernel/cpu/mce/core.o
  1098.   CC      mm/mprotect.o
  1099. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/inode.c:44:
  1100. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1101. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1102. }
  1103. ^
  1104. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1105.                 spin_lock(lock);
  1106.                 ^
  1107. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1108.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1109.         ^
  1110.   CC      kernel/power/main.o
  1111. /home/himanshu/clang-thread-safety-analysis/mm/mprotect.c:159:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1112.         pte_unmap_unlock(pte - 1, ptl);
  1113.         ^
  1114. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1115.         spin_unlock(ptl);                               \
  1116.         ^
  1117. /home/himanshu/clang-thread-safety-analysis/mm/mprotect.c:162:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1118. }
  1119. ^
  1120. /home/himanshu/clang-thread-safety-analysis/mm/mprotect.c:61:8: note: mutex acquired here
  1121.         pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
  1122.               ^
  1123. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1124.         spin_lock(__ptl);                               \
  1125.         ^
  1126. /home/himanshu/clang-thread-safety-analysis/fs/ext4/inode.c:374:2: warning: releasing mutex '#undefined.i_block_reservation_lock' that was not held [-Wthread-safety-analysis]
  1127.         spin_unlock(&EXT4_I(inode)->i_block_reservation_lock);
  1128.         ^
  1129. /home/himanshu/clang-thread-safety-analysis/fs/ext4/inode.c:396:1: warning: mutex 'ei->i_block_reservation_lock' is still held at the end of function [-Wthread-safety-analysis]
  1130. }
  1131. ^
  1132. /home/himanshu/clang-thread-safety-analysis/fs/ext4/inode.c:359:2: note: mutex acquired here
  1133.         spin_lock(&ei->i_block_reservation_lock);
  1134.         ^
  1135. 2 warnings generated.
  1136.   CC      mm/mremap.o
  1137.   CC      arch/x86/kernel/cpu/mce/severity.o
  1138.   CC      kernel/power/console.o
  1139. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:187:3: warning: releasing mutex 'new_ptl' that was not held [-Wthread-safety-analysis]
  1140.                 spin_unlock(new_ptl);
  1141.                 ^
  1142. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:189:2: warning: releasing mutex 'old_ptl' that was not held [-Wthread-safety-analysis]
  1143.         pte_unmap_unlock(old_pte - 1, old_ptl);
  1144.         ^
  1145. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1146.         spin_unlock(ptl);                               \
  1147.         ^
  1148. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:192:1: warning: mutex '__ptl' is still held at the end of function [-Wthread-safety-analysis]
  1149. }
  1150. ^
  1151. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:151:12: note: mutex acquired here
  1152.         old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl);
  1153.                   ^
  1154. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1155.         spin_lock(__ptl);                               \
  1156.         ^
  1157. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:233:3: warning: releasing mutex 'new_ptl' that was not held [-Wthread-safety-analysis]
  1158.                 spin_unlock(new_ptl);
  1159.                 ^
  1160. /home/himanshu/clang-thread-safety-analysis/mm/mremap.c:234:2: warning: releasing mutex 'old_ptl' that was not held [-Wthread-safety-analysis]
  1161.         spin_unlock(old_ptl);
  1162.         ^
  1163.   CC      arch/x86/kernel/cpu/mce/genpool.o
  1164. 5 warnings generated.
  1165.   CC      kernel/power/process.o
  1166.   CC      mm/msync.o
  1167.   CC      arch/x86/kernel/cpu/mce/intel.o
  1168.   CC      mm/page_vma_mapped.o
  1169. 4 warnings generated.
  1170.   CC      fs/ext4/ioctl.o
  1171.   CC      kernel/power/suspend.o
  1172.   CC      arch/x86/kernel/cpu/mce/amd.o
  1173. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:53:1: warning: mutex 'pvmw->ptl' is not held on every path through here [-Wthread-safety-analysis]
  1174. }
  1175. ^
  1176. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:51:2: note: mutex acquired here
  1177.         spin_lock(pvmw->ptl);
  1178.         ^
  1179. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:207:4: warning: releasing mutex 'pvmw->ptl' that was not held [-Wthread-safety-analysis]
  1180.                         spin_unlock(pvmw->ptl);
  1181.                         ^
  1182. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:233:6: warning: releasing mutex 'pvmw->ptl' that was not held [-Wthread-safety-analysis]
  1183.                                         spin_unlock(pvmw->ptl);
  1184.                                         ^
  1185. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:247:1: warning: mutex 'pvmw->ptl' is not held on every path through here [-Wthread-safety-analysis]
  1186. }
  1187. ^
  1188. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:244:4: note: mutex acquired here
  1189.                         spin_lock(pvmw->ptl);
  1190.                         ^
  1191. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:247:1: warning: mutex 'pvmw->ptl' is not held on every path through here [-Wthread-safety-analysis]
  1192. }
  1193. ^
  1194. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:162:3: note: mutex acquired here
  1195.                 spin_lock(pvmw->ptl);
  1196.                 ^
  1197. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:247:1: warning: mutex 'pvmw->ptl' is not held on every path through here [-Wthread-safety-analysis]
  1198. }
  1199. ^
  1200. /home/himanshu/clang-thread-safety-analysis/mm/page_vma_mapped.c:162:3: note: mutex acquired here
  1201.                 spin_lock(pvmw->ptl);
  1202.                 ^
  1203. 6 warnings generated.
  1204.   CC      mm/pagewalk.o
  1205. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ioctl.c:23:
  1206. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1207. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1208. }
  1209. ^
  1210. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1211.                 spin_lock(lock);
  1212.                 ^
  1213. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1214.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1215.         ^
  1216.   CC      kernel/power/hibernate.o
  1217. /home/himanshu/clang-thread-safety-analysis/mm/pagewalk.c:97:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1218.                                 spin_unlock(ptl);
  1219.                                 ^
  1220. 1 warning generated.
  1221.   CC      mm/pgtable-generic.o
  1222.   CC      arch/x86/kernel/cpu/mce/threshold.o
  1223. 2 warnings generated.
  1224.   CC      fs/ext4/mballoc.o
  1225.   CC      mm/rmap.o
  1226.   CC      arch/x86/kernel/cpu/mce/therm_throt.o
  1227.   CC      kernel/power/snapshot.o
  1228. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/mballoc.c:12:
  1229. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1230. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1231. }
  1232. ^
  1233. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1234.                 spin_lock(lock);
  1235.                 ^
  1236. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1237.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1238.         ^
  1239.   AR      arch/x86/kernel/cpu/mce/built-in.a
  1240.   CC      arch/x86/kernel/cpu/microcode/core.o
  1241.   CC      mm/vmalloc.o
  1242. /home/himanshu/clang-thread-safety-analysis/mm/vmalloc.c:3358:1: warning: mutex 'vmap_area_lock' is still held at the end of function [-Wthread-safety-analysis]
  1243. }
  1244. ^
  1245. /home/himanshu/clang-thread-safety-analysis/mm/vmalloc.c:3356:2: note: mutex acquired here
  1246.         spin_lock(&vmap_area_lock);
  1247.         ^
  1248. /home/himanshu/clang-thread-safety-analysis/mm/vmalloc.c:3368:2: warning: releasing mutex 'vmap_area_lock' that was not held [-Wthread-safety-analysis]
  1249.         spin_unlock(&vmap_area_lock);
  1250.         ^
  1251.   CC      arch/x86/kernel/cpu/microcode/intel.o
  1252.   CC      kernel/power/swap.o
  1253. 2 warnings generated.
  1254.   CC      arch/x86/kernel/cpu/microcode/amd.o
  1255.   CC      mm/process_vm_access.o
  1256. 2 warnings generated.
  1257.   CC      fs/ext4/migrate.o
  1258.   CC      kernel/power/user.o
  1259.   AR      arch/x86/kernel/cpu/microcode/built-in.a
  1260.   CC      mm/page_alloc.o
  1261.   CC      arch/x86/kernel/cpu/mtrr/mtrr.o
  1262. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/migrate.c:9:
  1263. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1264. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1265. }
  1266. ^
  1267. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1268.                 spin_lock(lock);
  1269.                 ^
  1270. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1271.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1272.         ^
  1273. 2 warnings generated.
  1274.   CC      fs/ext4/mmp.o
  1275.   CC      kernel/power/poweroff.o
  1276.   AR      kernel/power/built-in.a
  1277.   CC      kernel/printk/printk.o
  1278.   CC      arch/x86/kernel/cpu/mtrr/if.o
  1279. /home/himanshu/clang-thread-safety-analysis/mm/page_alloc.c:3220:2: warning: releasing mutex 'zone->lock' that was not held [-Wthread-safety-analysis]
  1280.         spin_unlock(&zone->lock);
  1281.         ^
  1282. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/mmp.c:8:
  1283. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1284. }
  1285. ^
  1286. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1287.                 spin_lock(lock);
  1288.                 ^
  1289. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1290.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1291.         ^
  1292. 2 warnings generated.
  1293.   CC      fs/ext4/move_extent.o
  1294.   CC      arch/x86/kernel/cpu/mtrr/generic.o
  1295. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/move_extent.c:11:
  1296. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1297. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1298. }
  1299. ^
  1300. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1301.                 spin_lock(lock);
  1302.                 ^
  1303. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1304.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1305.         ^
  1306.   CC      arch/x86/kernel/cpu/mtrr/cleanup.o
  1307. 2 warnings generated.
  1308.   CC      fs/ext4/namei.o
  1309.   CC      kernel/printk/printk_safe.o
  1310.   AR      kernel/printk/built-in.a
  1311.   CC      kernel/rcu/update.o
  1312.   AR      arch/x86/kernel/cpu/mtrr/built-in.a
  1313.   CC      arch/x86/kernel/cpu/cacheinfo.o
  1314. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/namei.c:39:
  1315. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1316. }
  1317. ^
  1318. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1319.                 spin_lock(lock);
  1320.                 ^
  1321. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1322.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1323.         ^
  1324. 1 warning generated.
  1325.   CC      mm/init-mm.o
  1326.   CC      arch/x86/kernel/cpu/scattered.o
  1327.   CC      mm/memblock.o
  1328.   CC      kernel/rcu/sync.o
  1329.   CC      arch/x86/kernel/cpu/topology.o
  1330.   CC      kernel/rcu/srcutree.o
  1331.   CC      arch/x86/kernel/cpu/common.o
  1332.   CC      mm/madvise.o
  1333. /home/himanshu/clang-thread-safety-analysis/kernel/rcu/srcutree.c:875:1: warning: mutex 'sdp->lock' is not held on every path through here [-Wthread-safety-analysis]
  1334. }
  1335. ^
  1336. /home/himanshu/clang-thread-safety-analysis/kernel/rcu/srcutree.c:855:2: note: mutex acquired here
  1337.         spin_lock_rcu_node(sdp);
  1338.         ^
  1339. /home/himanshu/clang-thread-safety-analysis/kernel/rcu/srcutree.c:53:2: note: expanded from macro 'spin_lock_rcu_node'
  1340.         spin_lock(&ACCESS_PRIVATE(p, lock));                    \
  1341.         ^
  1342. 2 warnings generated.
  1343.   CC      fs/ext4/page-io.o
  1344. 1 warning generated.
  1345.   CC      kernel/rcu/tree.o
  1346. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:203:22: warning: expecting mutex '__ptl' to be held at start of each loop [-Wthread-safety-analysis]
  1347.         for (index = start; index != end; index += PAGE_SIZE) {
  1348.                             ^
  1349. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:209:14: note: mutex acquired here
  1350.                 orig_pte = pte_offset_map_lock(vma->vm_mm, pmd, start, &ptl);
  1351.                            ^
  1352. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1353.         spin_lock(__ptl);                               \
  1354.         ^
  1355. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:211:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1356.                 pte_unmap_unlock(orig_pte, ptl);
  1357.                 ^
  1358. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1359.         spin_unlock(ptl);                               \
  1360.         ^
  1361. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:374:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1362.                         pte_unmap_unlock(orig_pte, ptl);
  1363.                         ^
  1364. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1365.         spin_unlock(ptl);                               \
  1366.         ^
  1367. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:386:4: warning: expecting mutex '__ptl' to be held at start of each loop [-Wthread-safety-analysis]
  1368.                         continue;
  1369.                         ^
  1370. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:383:10: note: mutex acquired here
  1371.                         pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
  1372.                               ^
  1373. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1374.         spin_lock(__ptl);                               \
  1375.         ^
  1376. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:430:6: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1377.         if (nr_swap) {
  1378.             ^
  1379. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:378:5: note: mutex acquired here
  1380.                                 pte_offset_map_lock(mm, pmd, addr, &ptl);
  1381.                                 ^
  1382. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1383.         spin_lock(__ptl);                               \
  1384.         ^
  1385. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:437:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1386.         pte_unmap_unlock(orig_pte, ptl);
  1387.         ^
  1388. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1389.         spin_unlock(ptl);                               \
  1390.         ^
  1391. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:440:9: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1392.         return 0;
  1393.                ^
  1394. /home/himanshu/clang-thread-safety-analysis/mm/madvise.c:332:19: note: mutex acquired here
  1395.         orig_pte = pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
  1396.                          ^
  1397. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1398.         spin_lock(__ptl);                               \
  1399.         ^
  1400. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/page-io.c:29:
  1401. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1402. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1403. }
  1404. ^
  1405. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1406.                 spin_lock(lock);
  1407.                 ^
  1408. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1409.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1410.         ^
  1411. 7 warnings generated.
  1412.   CC      mm/page_io.o
  1413. 2 warnings generated.
  1414.   CC      fs/ext4/readpage.o
  1415.   CC      arch/x86/kernel/cpu/rdrand.o
  1416.   CC      arch/x86/kernel/cpu/match.o
  1417.   CC      arch/x86/kernel/cpu/bugs.o
  1418. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/readpage.c:48:
  1419. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1420. }
  1421. ^
  1422. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1423.                 spin_lock(lock);
  1424.                 ^
  1425. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1426.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1427.         ^
  1428.   CC      mm/swap_state.o
  1429. 2 warnings generated.
  1430.   CC      fs/ext4/resize.o
  1431. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/resize.c:18:
  1432. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1433. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1434. }
  1435. ^
  1436. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1437.                 spin_lock(lock);
  1438.                 ^
  1439. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1440.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1441.         ^
  1442.   CC      kernel/rcu/rcu_segcblist.o
  1443.   CC      mm/swapfile.o
  1444.   CC      arch/x86/kernel/cpu/aperfmperf.o
  1445.   AR      kernel/rcu/built-in.a
  1446.   CC      kernel/sched/core.o
  1447. 2 warnings generated.
  1448.   CC      fs/ext4/super.o
  1449.   CC      arch/x86/kernel/cpu/cpuid-deps.o
  1450. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:323:9: warning: mutex 'ci->lock' is not held on every path through here [-Wthread-safety-analysis]
  1451.         return ci;
  1452.                ^
  1453. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:321:3: note: mutex acquired here
  1454.                 spin_lock(&ci->lock);
  1455.                 ^
  1456. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:329:3: warning: releasing mutex 'ci->lock' that was not held [-Wthread-safety-analysis]
  1457.                 spin_unlock(&ci->lock);
  1458.                 ^
  1459. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:347:9: warning: mutex 'si->lock' is not held on every path through here [-Wthread-safety-analysis]
  1460.         return ci;
  1461.                ^
  1462. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:345:3: note: mutex acquired here
  1463.                 spin_lock(&si->lock);
  1464.                 ^
  1465. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:356:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1466.                 spin_unlock(&si->lock);
  1467.                 ^
  1468. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:393:3: warning: releasing mutex 'ci_tail->lock' that was not held [-Wthread-safety-analysis]
  1469.                 spin_unlock(&ci_tail->lock);
  1470.                 ^
  1471. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:451:10: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1472.         while (!cluster_list_empty(&si->discard_clusters)) {
  1473.                 ^
  1474. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:458:3: note: mutex acquired here
  1475.                 spin_lock(&si->lock);
  1476.                 ^
  1477. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:453:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1478.                 spin_unlock(&si->lock);
  1479.                 ^
  1480. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:749:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1481.                 spin_unlock(&si->lock);
  1482.                 ^
  1483. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: mutex 'si->lock' is not held on every path through here [-Wthread-safety-analysis]
  1484.         if (si->cluster_info) {
  1485.             ^
  1486. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:778:3: note: mutex acquired here
  1487.                 spin_lock(&si->lock);
  1488.                 ^
  1489. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1490.         if (si->cluster_info) {
  1491.             ^
  1492. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:807:3: note: mutex acquired here
  1493.                 spin_lock(&si->lock);
  1494.                 ^
  1495. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1496.         if (si->cluster_info) {
  1497.             ^
  1498. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:888:4: note: mutex acquired here
  1499.                         spin_lock(&si->lock);
  1500.                         ^
  1501. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1502.         if (si->cluster_info) {
  1503.             ^
  1504. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:884:4: note: mutex acquired here
  1505.                         spin_lock(&si->lock);
  1506.                         ^
  1507. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1508.         if (si->cluster_info) {
  1509.             ^
  1510. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:873:4: note: mutex acquired here
  1511.                         spin_lock(&si->lock);
  1512.                         ^
  1513. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:783:6: warning: expecting mutex 'si->lock' to be held at start of each loop [-Wthread-safety-analysis]
  1514.         if (si->cluster_info) {
  1515.             ^
  1516. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:869:4: note: mutex acquired here
  1517.                         spin_lock(&si->lock);
  1518.                         ^
  1519. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:805:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1520.                 spin_unlock(&si->lock);
  1521.                 ^
  1522. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:839:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1523.                 spin_unlock(&si->lock);
  1524.                 ^
  1525. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:846:6: warning: mutex 'si->lock' is not held on every path through here [-Wthread-safety-analysis]
  1526.         if (si->cluster_info) {
  1527.             ^
  1528. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:841:3: note: mutex acquired here
  1529.                 spin_lock(&si->lock);
  1530.                 ^
  1531. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:866:2: warning: mutex 'si->lock' is not held on every path through here [-Wthread-safety-analysis]
  1532.         spin_unlock(&si->lock);
  1533.         ^
  1534. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:807:3: note: mutex acquired here
  1535.                 spin_lock(&si->lock);
  1536.                 ^
  1537. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:866:2: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1538.         spin_unlock(&si->lock);
  1539.         ^
  1540. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:900:2: warning: mutex 'si->lock' is not held on every path through here [-Wthread-safety-analysis]
  1541.         si->flags -= SWP_SCANNING;
  1542.         ^
  1543. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:897:2: note: mutex acquired here
  1544.         spin_lock(&si->lock);
  1545.         ^
  1546. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1134:9: warning: mutex 'p->lock' is not held on every path through here [-Wthread-safety-analysis]
  1547.         return p;
  1548.                ^
  1549. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1133:3: note: mutex acquired here
  1550.                 spin_lock(&p->lock);
  1551.                 ^
  1552. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1146:4: warning: releasing mutex 'q->lock' that was not held [-Wthread-safety-analysis]
  1553.                         spin_unlock(&q->lock);
  1554.                         ^
  1555. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1150:9: warning: mutex 'p->lock' is not held on every path through here [-Wthread-safety-analysis]
  1556.         return p;
  1557.                ^
  1558. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1148:4: note: mutex acquired here
  1559.                         spin_lock(&p->lock);
  1560.                         ^
  1561.   CC      arch/x86/kernel/cpu/proc.o
  1562. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1334:3: warning: releasing mutex 'p->lock' that was not held [-Wthread-safety-analysis]
  1563.                 spin_unlock(&p->lock);
  1564.                 ^
  1565. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1583:5: warning: releasing mutex 'p->lock' that was not held [-Wthread-safety-analysis]
  1566.                                 spin_unlock(&p->lock);
  1567.                                 ^
  1568. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1586:4: warning: releasing mutex 'p->lock' that was not held [-Wthread-safety-analysis]
  1569.                         spin_unlock(&p->lock);
  1570.                         ^
  1571. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1804:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1572.         pte_unmap_unlock(pte, ptl);
  1573.         ^
  1574. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1575.         spin_unlock(ptl);                               \
  1576.         ^
  1577. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1806:6: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1578.         if (page != swapcache) {
  1579.             ^
  1580. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:1777:8: note: mutex acquired here
  1581.         pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
  1582.               ^
  1583. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1584.         spin_lock(__ptl);                               \
  1585.         ^
  1586. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:3454:3: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1587.                 spin_unlock(&si->lock);
  1588.                 ^
  1589. /home/himanshu/clang-thread-safety-analysis/mm/swapfile.c:3506:2: warning: releasing mutex 'si->lock' that was not held [-Wthread-safety-analysis]
  1590.         spin_unlock(&si->lock);
  1591.         ^
  1592. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/super.c:50:
  1593. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1594. }
  1595. ^
  1596. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1597.                 spin_lock(lock);
  1598.                 ^
  1599. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1600.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1601.         ^
  1602.   MKCAP   arch/x86/kernel/cpu/capflags.c
  1603. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/core.c:9:
  1604. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1605. }
  1606. ^
  1607. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1608.         spin_lock(l1);
  1609.         ^
  1610. /home/himanshu/clang-thread-safety-analysis/kernel/sched/core.c:4979:3: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  1611.                 spin_unlock(lock);
  1612.                 ^
  1613. /home/himanshu/clang-thread-safety-analysis/kernel/sched/core.c:4987:9: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1614.         return ret;
  1615.                ^
  1616. /home/himanshu/clang-thread-safety-analysis/kernel/sched/core.c:4985:3: note: mutex acquired here
  1617.                 spin_lock(lock);
  1618.                 ^
  1619. 30 warnings generated.
  1620.   CC      mm/swap_slots.o
  1621.   CC      mm/dmapool.o
  1622.   CC      mm/hugetlb.o
  1623. 3 warnings generated.
  1624.   CC      kernel/sched/loadavg.o
  1625.   CC      arch/x86/kernel/cpu/powerflags.o
  1626. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:80:2: warning: releasing mutex 'spool->lock' that was not held [-Wthread-safety-analysis]
  1627.         spin_unlock(&spool->lock);
  1628.         ^
  1629. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:123:1: warning: mutex 'spool->lock' is still held at the end of function [-Wthread-safety-analysis]
  1630. }
  1631. ^
  1632. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:119:2: note: mutex acquired here
  1633.         spin_lock(&spool->lock);
  1634.         ^
  1635. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:210:1: warning: mutex 'spool->lock' is not held on every path through here [-Wthread-safety-analysis]
  1636. }
  1637. ^
  1638. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:186:2: note: mutex acquired here
  1639.         spin_lock(&spool->lock);
  1640.         ^
  1641. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:1744:2: warning: releasing mutex 'hugetlb_lock' that was not held [-Wthread-safety-analysis]
  1642.         spin_unlock(&hugetlb_lock);
  1643.         ^
  1644. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:1744:2: warning: expecting mutex 'hugetlb_lock' to be held at start of each loop [-Wthread-safety-analysis]
  1645. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:1761:2: note: mutex acquired here
  1646.         spin_lock(&hugetlb_lock);
  1647.         ^
  1648. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:1807:1: warning: mutex 'hugetlb_lock' is not held on every path through here [-Wthread-safety-analysis]
  1649. }
  1650. ^
  1651. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:1804:2: note: mutex acquired here
  1652.         spin_lock(&hugetlb_lock);
  1653.         ^
  1654. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3381:3: warning: releasing mutex 'src_ptl' that was not held [-Wthread-safety-analysis]
  1655.                 spin_unlock(src_ptl);
  1656.                 ^
  1657. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3382:3: warning: releasing mutex 'dst_ptl' that was not held [-Wthread-safety-analysis]
  1658.                 spin_unlock(dst_ptl);
  1659.                 ^
  1660. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3431:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1661.                         spin_unlock(ptl);
  1662.                         ^
  1663. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3441:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1664.                         spin_unlock(ptl);
  1665.                         ^
  1666. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3451:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1667.                         spin_unlock(ptl);
  1668.                         ^
  1669. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3463:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1670.                                 spin_unlock(ptl);
  1671.                                 ^
  1672. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3482:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1673.                 spin_unlock(ptl);
  1674.                 ^
  1675. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3617:6: warning: expecting mutex 'ptl' to be held at start of each loop [-Wthread-safety-analysis]
  1676.         if (page_mapcount(old_page) == 1 && PageAnon(old_page)) {
  1677.             ^
  1678. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3658:4: note: mutex acquired here
  1679.                         spin_lock(ptl);
  1680.                         ^
  1681. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3642:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1682.         spin_unlock(ptl);
  1683.         ^
  1684. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3721:1: warning: mutex 'ptl' is not held on every path through here [-Wthread-safety-analysis]
  1685. }
  1686. ^
  1687. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3719:2: note: mutex acquired here
  1688.         spin_lock(ptl); /* Caller expects lock to be held */
  1689.         ^
  1690. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3923:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1691.         spin_unlock(ptl);
  1692.         ^
  1693. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:3938:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1694.         spin_unlock(ptl);
  1695.         ^
  1696. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4089:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1697.         spin_unlock(ptl);
  1698.         ^
  1699. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4289:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1700.                                 spin_unlock(ptl);
  1701.                                 ^
  1702. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4311:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1703.                                 spin_unlock(ptl);
  1704.                                 ^
  1705. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4358:5: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1706.                                 spin_unlock(ptl);
  1707.                                 ^
  1708. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4385:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1709.                 spin_unlock(ptl);
  1710.                 ^
  1711. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4440:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1712.                         spin_unlock(ptl);
  1713.                         ^
  1714. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4446:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1715.                         spin_unlock(ptl);
  1716.                         ^
  1717. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4461:4: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1718.                         spin_unlock(ptl);
  1719.                         ^
  1720. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4473:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1721.                 spin_unlock(ptl);
  1722.                 ^
  1723. /home/himanshu/clang-thread-safety-analysis/mm/hugetlb.c:4774:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1724.         spin_unlock(ptl);
  1725.         ^
  1726.   CC      arch/x86/kernel/cpu/intel.o
  1727. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/loadavg.c:9:
  1728. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1729. }
  1730. ^
  1731. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1732.         spin_lock(l1);
  1733.         ^
  1734. 1 warning generated.
  1735.   CC      kernel/sched/clock.o
  1736.   CC      arch/x86/kernel/cpu/intel_pconfig.o
  1737.   CC      arch/x86/kernel/cpu/intel_epb.o
  1738. 28 warnings generated.
  1739.   CC      arch/x86/kernel/cpu/amd.o
  1740.   CC      mm/mempolicy.o
  1741. 2 warnings generated.
  1742. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/clock.c:56:
  1743. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1744. }
  1745. ^
  1746. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1747.         spin_lock(l1);
  1748.         ^
  1749.   CC      fs/ext4/symlink.o
  1750. 1 warning generated.
  1751.   CC      kernel/sched/cputime.o
  1752. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:452:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1753.                 spin_unlock(ptl);
  1754.                 ^
  1755. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:474:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1756.         spin_unlock(ptl);
  1757.         ^
  1758. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:528:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1759.         pte_unmap_unlock(pte - 1, ptl);
  1760.         ^
  1761. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  1762.         spin_unlock(ptl);                               \
  1763.         ^
  1764. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:531:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  1765. }
  1766. ^
  1767. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:506:8: note: mutex acquired here
  1768.         pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
  1769.               ^
  1770. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  1771.         spin_lock(__ptl);                               \
  1772.         ^
  1773. /home/himanshu/clang-thread-safety-analysis/mm/mempolicy.c:556:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  1774.         spin_unlock(ptl);
  1775.         ^
  1776.   CC      arch/x86/kernel/cpu/hygon.o
  1777. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/symlink.c:23:
  1778. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1779. }
  1780. ^
  1781. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1782.                 spin_lock(lock);
  1783.                 ^
  1784. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1785.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1786.         ^
  1787. 2 warnings generated.
  1788.   CC      fs/ext4/sysfs.o
  1789. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/cputime.c:5:
  1790. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1791. }
  1792. ^
  1793. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1794.         spin_lock(l1);
  1795.         ^
  1796.   CC      arch/x86/kernel/cpu/centaur.o
  1797. 1 warning generated.
  1798.   CC      kernel/sched/idle.o
  1799. 5 warnings generated.
  1800.   CC      mm/sparse.o
  1801. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/sysfs.c:17:
  1802. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1803. }
  1804. ^
  1805. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1806.                 spin_lock(lock);
  1807.                 ^
  1808. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1809.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1810.         ^
  1811. 2 warnings generated.
  1812.   CC      fs/ext4/xattr.o
  1813.   CC      arch/x86/kernel/cpu/perfctr-watchdog.o
  1814.   CC      mm/sparse-vmemmap.o
  1815. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/idle.c:9:
  1816. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1817. }
  1818. ^
  1819. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1820.         spin_lock(l1);
  1821.         ^
  1822. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/xattr.c:60:
  1823. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1824. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1825. }
  1826. ^
  1827. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1828.                 spin_lock(lock);
  1829.                 ^
  1830. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1831.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1832.         ^
  1833.   CC      arch/x86/kernel/cpu/capflags.o
  1834.   AR      arch/x86/kernel/cpu/built-in.a
  1835.   CC      arch/x86/kernel/fpu/init.o
  1836. 1 warning generated.
  1837.   CC      kernel/sched/fair.o
  1838.   CC      mm/mmu_notifier.o
  1839.   CC      arch/x86/kernel/fpu/bugs.o
  1840.   CC      mm/slub.o
  1841. 2 warnings generated.
  1842.   CC      fs/ext4/xattr_trusted.o
  1843. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/fair.c:23:
  1844. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1845. }
  1846. ^
  1847. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1848.         spin_lock(l1);
  1849.         ^
  1850. /home/himanshu/clang-thread-safety-analysis/kernel/sched/fair.c:9500:4: warning: releasing mutex 'balancing' that was not held [-Wthread-safety-analysis]
  1851.                         spin_unlock(&balancing);
  1852.                         ^
  1853.   CC      arch/x86/kernel/fpu/core.o
  1854. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2143:6: warning: mutex 'n->list_lock' is not held on every path through here [-Wthread-safety-analysis]
  1855.         if (l != m) {
  1856.             ^
  1857. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2139:4: note: mutex acquired here
  1858.                         spin_lock(&n->list_lock);
  1859.                         ^
  1860. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2143:6: warning: mutex 'n->list_lock' is not held on every path through here [-Wthread-safety-analysis]
  1861.         if (l != m) {
  1862.             ^
  1863. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2128:4: note: mutex acquired here
  1864.                         spin_lock(&n->list_lock);
  1865.                         ^
  1866. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2163:3: warning: releasing mutex 'n->list_lock' that was not held [-Wthread-safety-analysis]
  1867.                 spin_unlock(&n->list_lock);
  1868.                 ^
  1869. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2202:5: warning: releasing mutex 'n->list_lock' that was not held [-Wthread-safety-analysis]
  1870.                                 spin_unlock(&n->list_lock);
  1871.                                 ^
  1872. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2210:19: warning: mutex 'n->list_lock' is not held on every path through here [-Wthread-safety-analysis]
  1873.                         old.freelist = page->freelist;
  1874.                                        ^
  1875. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2205:4: note: mutex acquired here
  1876.                         spin_lock(&n->list_lock);
  1877.                         ^
  1878. /home/himanshu/clang-thread-safety-analysis/mm/slub.c:2234:3: warning: releasing mutex 'n->list_lock' that was not held [-Wthread-safety-analysis]
  1879.                 spin_unlock(&n->list_lock);
  1880.                 ^
  1881. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/xattr_trusted.c:12:
  1882. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1883. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1884. }
  1885. ^
  1886. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1887.                 spin_lock(lock);
  1888.                 ^
  1889. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1890.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1891.         ^
  1892. 2 warnings generated.
  1893.   CC      fs/ext4/xattr_user.o
  1894. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/xattr_user.c:11:
  1895. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1896. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1897. }
  1898. ^
  1899. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1900.                 spin_lock(lock);
  1901.                 ^
  1902. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1903.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1904.         ^
  1905. 2 warnings generated.
  1906.   CC      fs/ext4/acl.o
  1907.   CC      arch/x86/kernel/fpu/regset.o
  1908. 2 warnings generated.
  1909.   CC      kernel/sched/rt.o
  1910. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/acl.c:9:
  1911. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1912. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1913. }
  1914. ^
  1915. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1916.                 spin_lock(lock);
  1917.                 ^
  1918. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1919.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1920.         ^
  1921. 6 warnings generated.
  1922.   CC      mm/migrate.o
  1923. 2 warnings generated.
  1924.   CC      fs/ext4/xattr_security.o
  1925.   CC      arch/x86/kernel/fpu/signal.o
  1926. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/xattr_security.c:11:
  1927. In file included from /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4_jbd2.h:17:
  1928. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2997:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  1929. }
  1930. ^
  1931. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:2995:3: note: mutex acquired here
  1932.                 spin_lock(lock);
  1933.                 ^
  1934. /home/himanshu/clang-thread-safety-analysis/fs/ext4/ext4.h:3002:2: warning: releasing mutex 'ext4_group_lock_ptr(sb, group)' that was not held [-Wthread-safety-analysis]
  1935.         spin_unlock(ext4_group_lock_ptr(sb, group));
  1936.         ^
  1937. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/rt.c:6:
  1938. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1939. }
  1940. ^
  1941. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1942.         spin_lock(l1);
  1943.         ^
  1944. 2 warnings generated.
  1945.   AR      fs/ext4/built-in.a
  1946.   CC      fs/fat/cache.o
  1947. /home/himanshu/clang-thread-safety-analysis/mm/migrate.c:477:2: warning: releasing mutex 'xas.xa->xa_lock' that was not held [-Wthread-safety-analysis]
  1948.         xas_unlock(&xas);
  1949.         ^
  1950. /home/himanshu/clang-thread-safety-analysis/include/linux/xarray.h:1333:26: note: expanded from macro 'xas_unlock'
  1951. #define xas_unlock(xas)         xa_unlock((xas)->xa)
  1952.                                 ^
  1953. /home/himanshu/clang-thread-safety-analysis/include/linux/xarray.h:501:24: note: expanded from macro 'xa_unlock'
  1954. #define xa_unlock(xa)           spin_unlock(&(xa)->xa_lock)
  1955.                                 ^
  1956.   CC      arch/x86/kernel/fpu/xstate.o
  1957. 1 warning generated.
  1958.   CC      kernel/sched/deadline.o
  1959. 1 warning generated.
  1960.   CC      fs/fat/dir.o
  1961.   CC      mm/early_ioremap.o
  1962.   AR      arch/x86/kernel/fpu/built-in.a
  1963.   CC      arch/x86/kernel/kprobes/core.o
  1964.   CC      mm/memfd.o
  1965. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/deadline.c:18:
  1966. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1967. }
  1968. ^
  1969. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1970.         spin_lock(l1);
  1971.         ^
  1972.   CC      fs/fat/fatent.o
  1973.   CC      arch/x86/kernel/kprobes/opt.o
  1974. 1 warning generated.
  1975.   CC      kernel/sched/wait.o
  1976.   AR      mm/built-in.a
  1977.   CC      ipc/compat.o
  1978.   AR      arch/x86/kernel/kprobes/built-in.a
  1979.   CC      arch/x86/kernel/process_64.o
  1980.   CC      fs/fat/file.o
  1981. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/compat.c:36:
  1982. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  1983. }
  1984. ^
  1985. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  1986.         spin_lock(&perm->lock);
  1987.         ^
  1988. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  1989.         spin_unlock(&perm->lock);
  1990.         ^
  1991. 2 warnings generated.
  1992. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/wait.c:7:
  1993. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  1994. }
  1995. ^
  1996. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  1997.         spin_lock(l1);
  1998.         ^
  1999.   CC      ipc/util.o
  2000. /home/himanshu/clang-thread-safety-analysis/kernel/sched/wait.c:314:2: warning: releasing mutex '->lock' that was not held [-Wthread-safety-analysis]
  2001.         spin_unlock(&wq->lock);
  2002.         ^
  2003. /home/himanshu/clang-thread-safety-analysis/kernel/sched/wait.c:319:1: warning: mutex '->lock' is not held on every path through here [-Wthread-safety-analysis]
  2004. }
  2005. ^
  2006. /home/himanshu/clang-thread-safety-analysis/kernel/sched/wait.c:316:2: note: mutex acquired here
  2007.         spin_lock(&wq->lock);
  2008.         ^
  2009. 3 warnings generated.
  2010.   CC      kernel/sched/wait_bit.o
  2011.   CC      fs/fat/inode.o
  2012. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/util.c:70:
  2013. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2014. }
  2015. ^
  2016. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2017.         spin_lock(&perm->lock);
  2018.         ^
  2019. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2020.         spin_unlock(&perm->lock);
  2021.         ^
  2022. /home/himanshu/clang-thread-safety-analysis/ipc/util.c:326:1: warning: mutex '->lock' is not held on every path through here [-Wthread-safety-analysis]
  2023. }
  2024. ^
  2025. /home/himanshu/clang-thread-safety-analysis/ipc/util.c:296:2: note: mutex acquired here
  2026.         spin_lock(&new->lock);
  2027.         ^
  2028.   CC      arch/x86/kernel/signal.o
  2029. 3 warnings generated.
  2030.   CC      ipc/msgutil.o
  2031. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/wait_bit.c:5:
  2032. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2033. }
  2034. ^
  2035. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2036.         spin_lock(l1);
  2037.         ^
  2038. 1 warning generated.
  2039.   CC      kernel/sched/swait.o
  2040. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/msgutil.c:19:
  2041. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2042. }
  2043. ^
  2044. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2045.         spin_lock(&perm->lock);
  2046.         ^
  2047. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2048.         spin_unlock(&perm->lock);
  2049.         ^
  2050. 2 warnings generated.
  2051.   CC      ipc/msg.o
  2052.   CC      fs/fat/misc.o
  2053.   CC      arch/x86/kernel/signal_compat.o
  2054. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/msg.c:45:
  2055. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2056. }
  2057. ^
  2058. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2059.         spin_lock(&perm->lock);
  2060.         ^
  2061. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2062.         spin_unlock(&perm->lock);
  2063.         ^
  2064.   CC      fs/fat/nfs.o
  2065.   CC      arch/x86/kernel/traps.o
  2066. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/swait.c:5:
  2067. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2068. }
  2069. ^
  2070. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2071.         spin_lock(l1);
  2072.         ^
  2073. 1 warning generated.
  2074.   CC      kernel/sched/completion.o
  2075. 2 warnings generated.
  2076.   CC      ipc/sem.o
  2077.   CC      fs/fat/namei_vfat.o
  2078. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:92:
  2079. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2080. }
  2081. ^
  2082. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2083.         spin_lock(&perm->lock);
  2084.         ^
  2085. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2086.         spin_unlock(&perm->lock);
  2087.         ^
  2088. /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:436:1: warning: mutex 'sem->lock' is not held on every path through here [-Wthread-safety-analysis]
  2089. }
  2090. ^
  2091. /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:424:3: note: mutex acquired here
  2092.                 spin_lock(&sem->lock);
  2093.                 ^
  2094. /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:436:1: warning: mutex 'sem->lock' is not held on every path through here [-Wthread-safety-analysis]
  2095. }
  2096. ^
  2097. /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:401:3: note: mutex acquired here
  2098.                 spin_lock(&sem->lock);
  2099.                 ^
  2100. /home/himanshu/clang-thread-safety-analysis/ipc/sem.c:446:3: warning: releasing mutex 'sem->lock' that was not held [-Wthread-safety-analysis]
  2101.                 spin_unlock(&sem->lock);
  2102.                 ^
  2103.   CC      arch/x86/kernel/idt.o
  2104. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/completion.c:14:
  2105. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2106. }
  2107. ^
  2108. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2109.         spin_lock(l1);
  2110.         ^
  2111. 1 warning generated.
  2112.   CC      kernel/sched/cpupri.o
  2113.   CC      fs/fat/namei_msdos.o
  2114.   CC      arch/x86/kernel/irq.o
  2115. 5 warnings generated.
  2116.   CC      ipc/shm.o
  2117.   AR      fs/fat/built-in.a
  2118.   CC      fs/hugetlbfs/inode.o
  2119. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/cpupri.c:29:
  2120. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2121. }
  2122. ^
  2123. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2124.         spin_lock(l1);
  2125.         ^
  2126. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/shm.c:50:
  2127. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2128. }
  2129. ^
  2130. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2131.         spin_lock(&perm->lock);
  2132.         ^
  2133. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2134.         spin_unlock(&perm->lock);
  2135.         ^
  2136. 1 warning generated.
  2137.   CC      kernel/sched/cpudeadline.o
  2138. 2 warnings generated.
  2139.   CC      ipc/syscall.o
  2140.   CC      arch/x86/kernel/irq_64.o
  2141.   CC      arch/x86/kernel/dumpstack_64.o
  2142.   AR      fs/hugetlbfs/built-in.a
  2143.   CC      fs/isofs/namei.o
  2144. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/syscall.c:12:
  2145. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2146. }
  2147. ^
  2148. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2149.         spin_lock(&perm->lock);
  2150.         ^
  2151. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2152.         spin_unlock(&perm->lock);
  2153.         ^
  2154. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/cpudeadline.c:13:
  2155. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2156. }
  2157. ^
  2158. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2159.         spin_lock(l1);
  2160.         ^
  2161. 2 warnings generated.
  2162.   CC      ipc/ipc_sysctl.o
  2163. 1 warning generated.
  2164.   CC      kernel/sched/topology.o
  2165. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/ipc_sysctl.c:19:
  2166. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2167. }
  2168. ^
  2169. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2170.         spin_lock(&perm->lock);
  2171.         ^
  2172. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2173.         spin_unlock(&perm->lock);
  2174.         ^
  2175. 2 warnings generated.
  2176.   CC      ipc/mqueue.o
  2177.   CC      arch/x86/kernel/time.o
  2178.   CC      fs/isofs/inode.o
  2179.   CC      arch/x86/kernel/ioport.o
  2180. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/topology.c:5:
  2181. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2182. }
  2183. ^
  2184. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2185.         spin_lock(l1);
  2186.         ^
  2187. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:44:
  2188. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2189. }
  2190. ^
  2191. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2192.         spin_lock(&perm->lock);
  2193.         ^
  2194. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2195.         spin_unlock(&perm->lock);
  2196.         ^
  2197. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:647:2: warning: expecting mutex 'info->lock' to be held at start of each loop [-Wthread-safety-analysis]
  2198.         for (;;) {
  2199.         ^
  2200. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:658:3: note: mutex acquired here
  2201.                 spin_lock(&info->lock);
  2202.                 ^
  2203. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:650:3: warning: releasing mutex 'info->lock' that was not held [-Wthread-safety-analysis]
  2204.                 spin_unlock(&info->lock);
  2205.                 ^
  2206. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:1072:6: warning: mutex 'info->lock' is not held on every path through here [-Wthread-safety-analysis]
  2207.         if (ret)
  2208.             ^
  2209. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:1029:2: note: mutex acquired here
  2210.         spin_lock(&info->lock);
  2211.         ^
  2212. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:1167:6: warning: mutex 'info->lock' is not held on every path through here [-Wthread-safety-analysis]
  2213.         if (ret == 0) {
  2214.             ^
  2215. /home/himanshu/clang-thread-safety-analysis/ipc/mqueue.c:1133:2: note: mutex acquired here
  2216.         spin_lock(&info->lock);
  2217.         ^
  2218. 1 warning generated.
  2219.   CC      arch/x86/kernel/dumpstack.o
  2220.   CC      kernel/sched/stop_task.o
  2221.   CC      fs/isofs/dir.o
  2222. 6 warnings generated.
  2223.   CC      ipc/namespace.o
  2224.   CC      fs/isofs/util.o
  2225.   CC      arch/x86/kernel/nmi.o
  2226. In file included from /home/himanshu/clang-thread-safety-analysis/ipc/namespace.c:20:
  2227. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:209:1: warning: mutex 'perm->lock' is still held at the end of function [-Wthread-safety-analysis]
  2228. }
  2229. ^
  2230. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:208:2: note: mutex acquired here
  2231.         spin_lock(&perm->lock);
  2232.         ^
  2233. /home/himanshu/clang-thread-safety-analysis/ipc/util.h:213:2: warning: releasing mutex 'perm->lock' that was not held [-Wthread-safety-analysis]
  2234.         spin_unlock(&perm->lock);
  2235.         ^
  2236. /home/himanshu/clang-thread-safety-analysis/ipc/namespace.c:150:3: warning: releasing mutex 'mq_lock' that was not held [-Wthread-safety-analysis]
  2237.                 spin_unlock(&mq_lock);
  2238.                 ^
  2239. 3 warnings generated.
  2240.   CC      ipc/mq_sysctl.o
  2241. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/stop_task.c:10:
  2242. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2243. }
  2244. ^
  2245. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2246.         spin_lock(l1);
  2247.         ^
  2248. 1 warning generated.
  2249.   CC      kernel/sched/pelt.o
  2250.   CC      fs/isofs/rock.o
  2251.   AR      ipc/built-in.a
  2252.   CC      security/integrity/iint.o
  2253.   CC      arch/x86/kernel/ldt.o
  2254.   CC      security/integrity/integrity_audit.o
  2255.   CC      fs/isofs/export.o
  2256. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/pelt.c:28:
  2257. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2258. }
  2259. ^
  2260. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2261.         spin_lock(l1);
  2262.         ^
  2263. 1 warning generated.
  2264.   CC      kernel/sched/stats.o
  2265. /home/himanshu/clang-thread-safety-analysis/arch/x86/kernel/ldt.c:255:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  2266.                 pte_unmap_unlock(ptep, ptl);
  2267.                 ^
  2268. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  2269.         spin_unlock(ptl);                               \
  2270.         ^
  2271. /home/himanshu/clang-thread-safety-analysis/arch/x86/kernel/ldt.c:287:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  2272.                 pte_unmap_unlock(ptep, ptl);
  2273.                 ^
  2274. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  2275.         spin_unlock(ptl);                               \
  2276.         ^
  2277.   AR      security/integrity/built-in.a
  2278.   CC      security/keys/gc.o
  2279. 2 warnings generated.
  2280.   CC      fs/isofs/joliet.o
  2281.   CC      arch/x86/kernel/setup.o
  2282.   CC      fs/isofs/compress.o
  2283.   CC      security/keys/key.o
  2284. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/stats.c:5:
  2285. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2286. }
  2287. ^
  2288. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2289.         spin_lock(l1);
  2290.         ^
  2291. 1 warning generated.
  2292.   CC      kernel/sched/cpuacct.o
  2293. /home/himanshu/clang-thread-safety-analysis/security/keys/key.c:127:3: warning: releasing mutex 'key_user_lock' that was not held [-Wthread-safety-analysis]
  2294.                 spin_unlock(&key_user_lock);
  2295.                 ^
  2296.   CC      arch/x86/kernel/x86_init.o
  2297.   AR      fs/isofs/built-in.a
  2298.   CC      fs/jbd2/transaction.o
  2299. 1 warning generated.
  2300.   CC      security/keys/keyring.o
  2301.   CC      arch/x86/kernel/i8259.o
  2302. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/cpuacct.c:8:
  2303. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2304. }
  2305. ^
  2306. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2307.         spin_lock(l1);
  2308.         ^
  2309. 1 warning generated.
  2310.   CC      kernel/sched/cpufreq.o
  2311.   CC      security/keys/keyctl.o
  2312.   CC      arch/x86/kernel/irqinit.o
  2313.   CC      fs/jbd2/commit.o
  2314. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/cpufreq.c:8:
  2315. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2316. }
  2317. ^
  2318. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2319.         spin_lock(l1);
  2320.         ^
  2321. 1 warning generated.
  2322.   CC      kernel/sched/membarrier.o
  2323.   CC      security/keys/permission.o
  2324.   CC      arch/x86/kernel/irq_work.o
  2325.   CC      arch/x86/kernel/probe_roms.o
  2326.   CC      security/keys/process_keys.o
  2327.   CC      fs/jbd2/recovery.o
  2328. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/membarrier.c:16:
  2329. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2330. }
  2331. ^
  2332. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2333.         spin_lock(l1);
  2334.         ^
  2335. 1 warning generated.
  2336.   CC      kernel/sched/isolation.o
  2337.   CC      security/keys/request_key.o
  2338.   CC      arch/x86/kernel/sys_x86_64.o
  2339.   CC      fs/jbd2/checkpoint.o
  2340. In file included from /home/himanshu/clang-thread-safety-analysis/kernel/sched/isolation.c:10:
  2341. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1985:1: warning: mutex 'l1' is still held at the end of function [-Wthread-safety-analysis]
  2342. }
  2343. ^
  2344. /home/himanshu/clang-thread-safety-analysis/kernel/sched/sched.h:1983:2: note: mutex acquired here
  2345.         spin_lock(l1);
  2346.         ^
  2347.   CC      security/keys/request_key_auth.o
  2348. 1 warning generated.
  2349.   AR      kernel/sched/built-in.a
  2350.   CC      kernel/time/time.o
  2351.   CC      arch/x86/kernel/espfix_64.o
  2352.   CC      security/keys/user_defined.o
  2353.   CC      fs/jbd2/revoke.o
  2354.   CC      kernel/time/timer.o
  2355.   CC      arch/x86/kernel/ksysfs.o
  2356.   CC      security/keys/compat.o
  2357.   CC      fs/jbd2/journal.o
  2358.   CC      arch/x86/kernel/bootflag.o
  2359.   CC      security/keys/proc.o
  2360. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:131:1: warning: mutex 'key_serial_lock' is still held at the end of function [-Wthread-safety-analysis]
  2361. }
  2362. ^
  2363. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:122:2: note: mutex acquired here
  2364.         spin_lock(&key_serial_lock);
  2365.         ^
  2366. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:152:2: warning: releasing mutex 'key_serial_lock' that was not held [-Wthread-safety-analysis]
  2367.         spin_unlock(&key_serial_lock);
  2368.         ^
  2369. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:288:1: warning: mutex 'key_user_lock' is still held at the end of function [-Wthread-safety-analysis]
  2370. }
  2371. ^
  2372. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:279:2: note: mutex acquired here
  2373.         spin_lock(&key_user_lock);
  2374.         ^
  2375. /home/himanshu/clang-thread-safety-analysis/security/keys/proc.c:299:2: warning: releasing mutex 'key_user_lock' that was not held [-Wthread-safety-analysis]
  2376.         spin_unlock(&key_user_lock);
  2377.         ^
  2378.   CC      arch/x86/kernel/e820.o
  2379. 4 warnings generated.
  2380.   CC      security/keys/sysctl.o
  2381.   CC      kernel/time/hrtimer.o
  2382.   CC      security/keys/keyctl_pkey.o
  2383.   CC      arch/x86/kernel/pci-dma.o
  2384.   AR      fs/jbd2/built-in.a
  2385.   CC      fs/kernfs/mount.o
  2386.   AR      security/keys/built-in.a
  2387.   GEN     security/selinux/flask.h security/selinux/av_permissions.h
  2388.   CC      security/selinux/avc.o
  2389.   CC      kernel/time/timekeeping.o
  2390.   CC      arch/x86/kernel/quirks.o
  2391.   CC      fs/kernfs/inode.o
  2392.   CC      arch/x86/kernel/topology.o
  2393.   CC      fs/kernfs/dir.o
  2394.   CC      security/selinux/hooks.o
  2395.   CC      kernel/time/ntp.o
  2396.   CC      arch/x86/kernel/kdebugfs.o
  2397.   CC      arch/x86/kernel/alternative.o
  2398.   CC      kernel/time/clocksource.o
  2399.   CC      fs/kernfs/file.o
  2400. /home/himanshu/clang-thread-safety-analysis/arch/x86/kernel/alternative.c:799:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  2401.         pte_unmap_unlock(ptep, ptl);
  2402.         ^
  2403. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  2404.         spin_unlock(ptl);                               \
  2405.         ^
  2406.   CC      kernel/time/jiffies.o
  2407. 1 warning generated.
  2408.   CC      fs/kernfs/symlink.o
  2409.   CC      arch/x86/kernel/i8253.o
  2410.   CC      kernel/time/timer_list.o
  2411.   CC      arch/x86/kernel/hw_breakpoint.o
  2412.   AR      fs/kernfs/built-in.a
  2413.   CC      fs/lockd/clntlock.o
  2414.   CC      kernel/time/timeconv.o
  2415.   CC      arch/x86/kernel/tsc.o
  2416.   CC      kernel/time/timecounter.o
  2417.   CC      security/selinux/selinuxfs.o
  2418.   CC      kernel/time/alarmtimer.o
  2419.   CC      fs/lockd/clntproc.o
  2420.   CC      arch/x86/kernel/tsc_msr.o
  2421.   CC      arch/x86/kernel/io_delay.o
  2422.   CC      kernel/time/posix-timers.o
  2423. /home/himanshu/clang-thread-safety-analysis/fs/lockd/clntproc.c:61:2: warning: releasing mutex 'lockowner->host->h_lock' that was not held [-Wthread-safety-analysis]
  2424.         spin_unlock(&lockowner->host->h_lock);
  2425.         ^
  2426.   CC      arch/x86/kernel/rtc.o
  2427. 1 warning generated.
  2428.   CC      fs/lockd/clntxdr.o
  2429.   CC      security/selinux/netlink.o
  2430.   CC      arch/x86/kernel/pci-iommu_table.o
  2431.   CC      kernel/time/posix-cpu-timers.o
  2432.   CC      security/selinux/nlmsgtab.o
  2433.   CC      fs/lockd/host.o
  2434.   CC      arch/x86/kernel/resource.o
  2435.   AS      arch/x86/kernel/irqflags.o
  2436.   CC      arch/x86/kernel/process.o
  2437.   CC      kernel/time/posix-clock.o
  2438.   CC      security/selinux/netif.o
  2439.   CC      kernel/time/itimer.o
  2440.   CC      fs/lockd/svc.o
  2441.   CC      arch/x86/kernel/ptrace.o
  2442.   CC      security/selinux/netnode.o
  2443.   CC      kernel/time/clockevents.o
  2444.   CC      fs/lockd/svclock.o
  2445.   CC      arch/x86/kernel/tls.o
  2446.   CC      kernel/time/tick-common.o
  2447.   CC      security/selinux/netport.o
  2448.   CC      arch/x86/kernel/step.o
  2449.   CC      kernel/time/tick-broadcast.o
  2450.   CC      security/selinux/ibpkey.o
  2451.   CC      fs/lockd/svcshare.o
  2452.   CC      kernel/time/tick-broadcast-hrtimer.o
  2453.   CC      arch/x86/kernel/i8237.o
  2454.   CC      arch/x86/kernel/stacktrace.o
  2455.   CC      kernel/time/tick-oneshot.o
  2456.   CC      security/selinux/ss/ebitmap.o
  2457.   CC      fs/lockd/svcproc.o
  2458.   CC      kernel/time/tick-sched.o
  2459.   CC      arch/x86/kernel/reboot.o
  2460.   CC      security/selinux/ss/hashtab.o
  2461.   CC      fs/lockd/svcsubs.o
  2462.   CC      kernel/time/timekeeping_debug.o
  2463.   CC      arch/x86/kernel/msr.o
  2464.   CC      security/selinux/ss/symtab.o
  2465.   CC      security/selinux/ss/sidtab.o
  2466.   AR      kernel/time/built-in.a
  2467.   CC      kernel/trace/trace_clock.o
  2468.   CC      arch/x86/kernel/cpuid.o
  2469.   CC      fs/lockd/mon.o
  2470.   CC      kernel/trace/ring_buffer.o
  2471.   CC      arch/x86/kernel/early-quirks.o
  2472.   CC      security/selinux/ss/avtab.o
  2473. /home/himanshu/clang-thread-safety-analysis/fs/lockd/mon.c:410:3: warning: releasing mutex 'nsm_lock' that was not held [-Wthread-safety-analysis]
  2474.                 spin_unlock(&nsm_lock);
  2475.                 ^
  2476.   CC      arch/x86/kernel/smp.o
  2477. 1 warning generated.
  2478.   CC      fs/lockd/xdr.o
  2479.   CC      kernel/trace/trace.o
  2480.   CC      security/selinux/ss/policydb.o
  2481.   CC      arch/x86/kernel/smpboot.o
  2482.   CC      fs/lockd/clnt4xdr.o
  2483.   CC      fs/lockd/xdr4.o
  2484.   CC      arch/x86/kernel/tsc_sync.o
  2485.   CC      security/selinux/ss/services.o
  2486.   CC      arch/x86/kernel/setup_percpu.o
  2487.   CC      kernel/trace/trace_output.o
  2488.   CC      fs/lockd/svc4proc.o
  2489.   CC      arch/x86/kernel/mpparse.o
  2490.   CC      kernel/trace/trace_seq.o
  2491.   CC      arch/x86/kernel/trace_clock.o
  2492.   CC      security/selinux/ss/conditional.o
  2493.   CC      arch/x86/kernel/machine_kexec_64.o
  2494.   CC      fs/lockd/procfs.o
  2495.   CC      kernel/trace/trace_stat.o
  2496.   AR      fs/lockd/built-in.a
  2497.   CC      fs/nfs/client.o
  2498.   AS      arch/x86/kernel/relocate_kernel_64.o
  2499.   CC      arch/x86/kernel/crash.o
  2500.   CC      kernel/trace/trace_printk.o
  2501.   CC      security/selinux/ss/mls.o
  2502.   CC      arch/x86/kernel/crash_dump_64.o
  2503.   CC      kernel/trace/trace_sched_switch.o
  2504. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:269:3: warning: releasing mutex 'nn->nfs_client_lock' that was not held [-Wthread-safety-analysis]
  2505.                 spin_unlock(&nn->nfs_client_lock);
  2506.                 ^
  2507. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:290:28: warning: expecting mutex 'nn->nfs_client_lock' to be held at start of each loop [-Wthread-safety-analysis]
  2508.         list_for_each_entry(clp, &nn->nfs_client_list, cl_share_link) {
  2509.                                   ^
  2510. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:302:4: note: mutex acquired here
  2511.                         spin_lock(&nn->nfs_client_lock);
  2512.                         ^
  2513. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:299:4: warning: releasing mutex 'nn->nfs_client_lock' that was not held [-Wthread-safety-analysis]
  2514.                         spin_unlock(&nn->nfs_client_lock);
  2515.                         ^
  2516. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:329:1: warning: mutex 'nn->nfs_client_lock' is not held on every path through here [-Wthread-safety-analysis]
  2517. }
  2518. ^
  2519. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:302:4: note: mutex acquired here
  2520.                         spin_lock(&nn->nfs_client_lock);
  2521.                         ^
  2522. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1117:1: warning: mutex 'nn->nfs_client_lock' is still held at the end of function [-Wthread-safety-analysis]
  2523. }
  2524. ^
  2525. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1115:2: note: mutex acquired here
  2526.         spin_lock(&nn->nfs_client_lock);
  2527.         ^
  2528. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1137:2: warning: releasing mutex 'nn->nfs_client_lock' that was not held [-Wthread-safety-analysis]
  2529.         spin_unlock(&nn->nfs_client_lock);
  2530.         ^
  2531. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1184:1: warning: mutex 'nn->nfs_client_lock' is still held at the end of function [-Wthread-safety-analysis]
  2532. }
  2533. ^
  2534. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1182:2: note: mutex acquired here
  2535.         spin_lock(&nn->nfs_client_lock);
  2536.         ^
  2537. /home/himanshu/clang-thread-safety-analysis/fs/nfs/client.c:1204:2: warning: releasing mutex 'nn->nfs_client_lock' that was not held [-Wthread-safety-analysis]
  2538.         spin_unlock(&nn->nfs_client_lock);
  2539.         ^
  2540.   CC      security/selinux/ss/status.o
  2541.   CC      arch/x86/kernel/module.o
  2542. 8 warnings generated.
  2543.   CC      fs/nfs/dir.o
  2544.   CC      kernel/trace/trace_nop.o
  2545.   CC      arch/x86/kernel/doublefault.o
  2546.   CC      security/selinux/netlabel.o
  2547.   CC      kernel/trace/blktrace.o
  2548.   CC      arch/x86/kernel/early_printk.o
  2549.   AR      security/selinux/built-in.a
  2550.   CC      security/commoncap.o
  2551.   CC      arch/x86/kernel/hpet.o
  2552.   CC      fs/nfs/file.o
  2553.   CC      kernel/trace/trace_events.o
  2554.   CC      security/min_addr.o
  2555.   CC      arch/x86/kernel/amd_nb.o
  2556.   CC      security/security.o
  2557.   CC      arch/x86/kernel/pcspeaker.o
  2558.   CC      kernel/trace/trace_export.o
  2559.   CC      fs/nfs/getroot.o
  2560.   CC      arch/x86/kernel/check.o
  2561.   CC      kernel/trace/trace_event_perf.o
  2562.   CC      arch/x86/kernel/pci-swiotlb.o
  2563.   CC      fs/nfs/inode.o
  2564.   CC      kernel/trace/trace_events_filter.o
  2565.   CC      arch/x86/kernel/uprobes.o
  2566.   CC      security/lsm_audit.o
  2567.   CC      arch/x86/kernel/sysfb.o
  2568. /home/himanshu/clang-thread-safety-analysis/fs/nfs/inode.c:658:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  2569.         spin_unlock(&inode->i_lock);
  2570.         ^
  2571. /home/himanshu/clang-thread-safety-analysis/fs/nfs/inode.c:662:9: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  2572.         return err;
  2573.                ^
  2574. /home/himanshu/clang-thread-safety-analysis/fs/nfs/inode.c:660:2: note: mutex acquired here
  2575.         spin_lock(&inode->i_lock);
  2576.         ^
  2577. /home/himanshu/clang-thread-safety-analysis/fs/nfs/inode.c:913:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  2578.         spin_unlock(&inode->i_lock);
  2579.         ^
  2580.   CC      kernel/trace/trace_events_trigger.o
  2581.   AR      security/built-in.a
  2582.   CC      arch/x86/kernel/sysfb_efi.o
  2583.   CC      arch/x86/kernel/perf_regs.o
  2584. 3 warnings generated.
  2585.   CC      fs/nfs/super.o
  2586.   CC      arch/x86/kernel/tracepoint.o
  2587.   CC      kernel/fork.o
  2588.   CC      kernel/trace/trace_kprobe.o
  2589.   CC      arch/x86/kernel/itmt.o
  2590.   CC      arch/x86/kernel/umip.o
  2591.   CC      fs/nfs/io.o
  2592.   CC      kernel/trace/power-traces.o
  2593.   CC      arch/x86/kernel/unwind_orc.o
  2594.   CC      kernel/exec_domain.o
  2595.   CC      fs/nfs/direct.o
  2596.   CC      arch/x86/kernel/audit_64.o
  2597.   CC      kernel/trace/rpm-traces.o
  2598.   CC      kernel/panic.o
  2599.   CC      arch/x86/kernel/pci-calgary_64.o
  2600.   CC      kernel/trace/trace_dynevent.o
  2601. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:463:5: warning: releasing mutex 'pause_on_oops_lock' that was not held [-Wthread-safety-analysis]
  2602.                                 spin_unlock(&pause_on_oops_lock);
  2603.                                 ^
  2604. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:463:5: warning: expecting mutex 'pause_on_oops_lock' to be held at start of each loop [-Wthread-safety-analysis]
  2605. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:465:5: note: mutex acquired here
  2606.                                 spin_lock(&pause_on_oops_lock);
  2607.                                 ^
  2608. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:470:11: warning: expecting mutex 'pause_on_oops_lock' to be held at start of each loop [-Wthread-safety-analysis]
  2609.                         while (spin_counter) {
  2610.                                ^
  2611. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:473:5: note: mutex acquired here
  2612.                                 spin_lock(&pause_on_oops_lock);
  2613.                                 ^
  2614. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:471:5: warning: releasing mutex 'pause_on_oops_lock' that was not held [-Wthread-safety-analysis]
  2615.                                 spin_unlock(&pause_on_oops_lock);
  2616.                                 ^
  2617. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:477:2: warning: mutex 'pause_on_oops_lock' is not held on every path through here [-Wthread-safety-analysis]
  2618.         spin_unlock_irqrestore(&pause_on_oops_lock, flags);
  2619.         ^
  2620. /home/himanshu/clang-thread-safety-analysis/kernel/panic.c:465:5: note: mutex acquired here
  2621.                                 spin_lock(&pause_on_oops_lock);
  2622.                                 ^
  2623. 5 warnings generated.
  2624.   CC      kernel/trace/trace_probe.o
  2625.   CC      fs/nfs/pagelist.o
  2626.   CC      arch/x86/kernel/tce_64.o
  2627.   CC      kernel/trace/trace_uprobe.o
  2628.   CC      arch/x86/kernel/mmconf-fam10h_64.o
  2629.   CC      arch/x86/kernel/vsmp_64.o
  2630.   AS      arch/x86/kernel/head_64.o
  2631.   CC      fs/nfs/read.o
  2632.   AR      kernel/trace/built-in.a
  2633.   CC      kernel/cpu.o
  2634.   CC      arch/x86/kernel/head64.o
  2635.   CC      arch/x86/kernel/ebda.o
  2636.   CC      arch/x86/kernel/platform-quirks.o
  2637.   LDS     arch/x86/kernel/vmlinux.lds
  2638. arch/x86/kernel/platform-quirks.o: warning: objtool: x86_early_init_platform_quirks()+0x8e: unreachable instruction
  2639.   CC      kernel/exit.o
  2640.   AR      arch/x86/kernel/built-in.a
  2641.   CC      arch/x86/mm/init.o
  2642. /home/himanshu/clang-thread-safety-analysis/kernel/cpu.c:829:3: warning: releasing mutex 't->alloc_lock' that was not held [-Wthread-safety-analysis]
  2643.                 task_unlock(t);
  2644.                 ^
  2645. 1 warning generated.
  2646.   CC      kernel/softirq.o
  2647.   CC      fs/nfs/symlink.o
  2648.   CC      arch/x86/mm/init_64.o
  2649.   CC      kernel/resource.o
  2650.   CC      kernel/sysctl.o
  2651.   CC      fs/nfs/unlink.o
  2652.   CC      arch/x86/mm/fault.o
  2653.   CC      kernel/sysctl_binary.o
  2654.   CC      kernel/capability.o
  2655.   CC      fs/nfs/write.o
  2656.   CC      arch/x86/mm/ioremap.o
  2657.   CC      kernel/ptrace.o
  2658.   CC      kernel/user.o
  2659.   CC      arch/x86/mm/extable.o
  2660.   CC      kernel/signal.o
  2661.   CC      kernel/sys.o
  2662.   CC      arch/x86/mm/pageattr.o
  2663. /home/himanshu/clang-thread-safety-analysis/kernel/signal.c:684:3: warning: releasing mutex 'task->sighand->siglock' that was not held [-Wthread-safety-analysis]
  2664.                 spin_unlock(&tsk->sighand->siglock);
  2665.                 ^
  2666. /home/himanshu/clang-thread-safety-analysis/kernel/signal.c:692:9: warning: mutex 'task->sighand->siglock' is not held on every path through here [-Wthread-safety-analysis]
  2667.         return signr;
  2668.                ^
  2669. /home/himanshu/clang-thread-safety-analysis/kernel/signal.c:686:3: note: mutex acquired here
  2670.                 spin_lock(&tsk->sighand->siglock);
  2671.                 ^
  2672.   CC      fs/nfs/namespace.o
  2673.   CC      kernel/umh.o
  2674.   CC      arch/x86/mm/mmap.o
  2675. 2 warnings generated.
  2676.   CC      kernel/workqueue.o
  2677.   CC      fs/nfs/mount_clnt.o
  2678.   CC      kernel/pid.o
  2679.   CC      arch/x86/mm/pat.o
  2680. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1460:6: warning: mutex 'last_pool->lock' is not held on every path through here [-Wthread-safety-analysis]
  2681.         if (unlikely(!pwq->refcnt)) {
  2682.             ^
  2683. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  2684. # define unlikely(x)    __builtin_expect(!!(x), 0)
  2685.                         ^
  2686. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1437:3: note: mutex acquired here
  2687.                 spin_lock(&last_pool->lock);
  2688.                 ^
  2689. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1460:6: warning: mutex 'pwq->pool->lock' is not held on every path through here [-Wthread-safety-analysis]
  2690.         if (unlikely(!pwq->refcnt)) {
  2691.             ^
  2692. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  2693. # define unlikely(x)    __builtin_expect(!!(x), 0)
  2694.                         ^
  2695. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1449:3: note: mutex acquired here
  2696.                 spin_lock(&pwq->pool->lock);
  2697.                 ^
  2698. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1462:4: warning: releasing mutex 'pwq->pool->lock' that was not held [-Wthread-safety-analysis]
  2699.                         spin_unlock(&pwq->pool->lock);
  2700.                         ^
  2701. /home/himanshu/clang-thread-safety-analysis/kernel/workqueue.c:1494:2: warning: releasing mutex 'pwq->pool->lock' that was not held [-Wthread-safety-analysis]
  2702.         spin_unlock(&pwq->pool->lock);
  2703.         ^
  2704.   CC      kernel/task_work.o
  2705.   CC      fs/nfs/nfstrace.o
  2706.   CC      arch/x86/mm/pgtable.o
  2707.   CC      kernel/extable.o
  2708. 4 warnings generated.
  2709.   CC      arch/x86/mm/physaddr.o
  2710.   CC      arch/x86/mm/setup_nx.o
  2711.   CC      arch/x86/mm/tlb.o
  2712.   CC      arch/x86/mm/cpu_entry_area.o
  2713.   CC      kernel/params.o
  2714.   CC      arch/x86/mm/pat_rbtree.o
  2715.   CC      fs/nfs/export.o
  2716.   CC      arch/x86/mm/hugetlbpage.o
  2717.   CC      kernel/kthread.o
  2718.   CC      arch/x86/mm/numa.o
  2719.   CC      arch/x86/mm/numa_64.o
  2720.   CC      kernel/sys_ni.o
  2721.   CC      kernel/nsproxy.o
  2722.   CC      fs/nfs/nfsroot.o
  2723.   CC      arch/x86/mm/amdtopology.o
  2724.   CC      arch/x86/mm/srat.o
  2725.   CC      arch/x86/mm/pkeys.o
  2726.   CC      arch/x86/mm/kaslr.o
  2727.   CC      kernel/notifier.o
  2728.   CC      fs/nfs/sysctl.o
  2729.   CC      arch/x86/mm/pti.o
  2730.   CC      kernel/ksysfs.o
  2731.   CC      kernel/cred.o
  2732.   CC      kernel/reboot.o
  2733.   AR      arch/x86/mm/built-in.a
  2734.   AR      arch/x86/net/built-in.a
  2735.   CC      fs/nfs/nfs2super.o
  2736.   AR      arch/x86/platform/atom/built-in.a
  2737.   AR      arch/x86/platform/ce4100/built-in.a
  2738.   CC      arch/x86/platform/efi/quirks.o
  2739.   CC      kernel/async.o
  2740.   CC      kernel/range.o
  2741.   CC      kernel/smpboot.o
  2742.   CC      arch/x86/platform/efi/efi.o
  2743.   CC      kernel/ucount.o
  2744.   CC      fs/nfs/proc.o
  2745.   CC      kernel/kmod.o
  2746.   CC      kernel/groups.o
  2747.   CC      arch/x86/platform/efi/efi_64.o
  2748.   CC      kernel/freezer.o
  2749.   CC      fs/nfs_common/nfsacl.o
  2750.   CC      fs/nfs/nfs2xdr.o
  2751.   CC      fs/nfs_common/grace.o
  2752.   CC      kernel/profile.o
  2753.   AS      arch/x86/platform/efi/efi_stub_64.o
  2754.   AS      arch/x86/platform/efi/efi_thunk_64.o
  2755.   AR      arch/x86/platform/efi/built-in.a
  2756.   AR      arch/x86/platform/geode/built-in.a
  2757.   AR      arch/x86/platform/goldfish/built-in.a
  2758.   CC      arch/x86/platform/intel/iosf_mbi.o
  2759.   AR      fs/nfs_common/built-in.a
  2760.   CC      fs/nls/nls_base.o
  2761.   CC      kernel/stacktrace.o
  2762.   AR      arch/x86/platform/intel/built-in.a
  2763.   AR      arch/x86/platform/intel-mid/built-in.a
  2764.   AR      arch/x86/platform/intel-quark/built-in.a
  2765.   AR      arch/x86/platform/iris/built-in.a
  2766.   AR      arch/x86/platform/olpc/built-in.a
  2767.   AR      arch/x86/platform/scx200/built-in.a
  2768.   AR      arch/x86/platform/sfi/built-in.a
  2769.   CC      fs/nfs/nfs3super.o
  2770.   AR      arch/x86/platform/ts5500/built-in.a
  2771.   AR      arch/x86/platform/uv/built-in.a
  2772.   AR      arch/x86/platform/built-in.a
  2773.   CC      arch/x86/realmode/init.o
  2774.   CC      fs/nls/nls_cp437.o
  2775.   CC      kernel/futex.o
  2776.   CC      fs/nls/nls_ascii.o
  2777.   AS      arch/x86/realmode/rm/header.o
  2778.   AS      arch/x86/realmode/rm/trampoline_64.o
  2779.   CC      fs/nls/nls_iso8859-1.o
  2780.   AS      arch/x86/realmode/rm/stack.o
  2781.   AS      arch/x86/realmode/rm/reboot.o
  2782.   AS      arch/x86/realmode/rm/wakeup_asm.o
  2783.   CC      arch/x86/realmode/rm/wakemain.o
  2784. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1565:1: warning: mutex 'hb1->lock' is not held on every path through here [-Wthread-safety-analysis]
  2785. }
  2786. ^
  2787. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1558:3: note: mutex acquired here
  2788.                 spin_lock(&hb1->lock);
  2789.                 ^
  2790. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1565:1: warning: mutex 'hb2->lock' is not held on every path through here [-Wthread-safety-analysis]
  2791. }
  2792. ^
  2793. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1562:3: note: mutex acquired here
  2794.                 spin_lock(&hb2->lock);
  2795.                 ^
  2796. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1565:1: warning: mutex 'hb1->lock' is not held on every path through here [-Wthread-safety-analysis]
  2797. }
  2798. ^
  2799. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1558:3: note: mutex acquired here
  2800.                 spin_lock(&hb1->lock);
  2801.                 ^
  2802. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1570:2: warning: releasing mutex 'hb1->lock' that was not held [-Wthread-safety-analysis]
  2803.         spin_unlock(&hb1->lock);
  2804.         ^
  2805. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:1572:3: warning: releasing mutex 'hb2->lock' that was not held [-Wthread-safety-analysis]
  2806.                 spin_unlock(&hb2->lock);
  2807.                 ^
  2808. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2226:1: warning: mutex 'hb->lock' is still held at the end of function [-Wthread-safety-analysis]
  2809. }
  2810. ^
  2811. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2224:2: note: mutex acquired here
  2812.         spin_lock(&hb->lock);
  2813.         ^
  2814. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2232:2: warning: releasing mutex 'hb->lock' that was not held [-Wthread-safety-analysis]
  2815.         spin_unlock(&hb->lock);
  2816.         ^
  2817. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2271:2: warning: releasing mutex 'hb->lock' that was not held [-Wthread-safety-analysis]
  2818.         spin_unlock(&hb->lock);
  2819.         ^
  2820. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2343:2: warning: releasing mutex 'q->lock_ptr' that was not held [-Wthread-safety-analysis]
  2821.         spin_unlock(q->lock_ptr);
  2822.         ^
  2823. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2385:7: warning: expecting mutex 'q->lock_ptr' to be held at start of each loop [-Wthread-safety-analysis]
  2824.         if (!argowner) {
  2825.              ^
  2826. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2494:2: note: mutex acquired here
  2827.         spin_lock(q->lock_ptr);
  2828.         ^
  2829. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2476:2: warning: releasing mutex 'q->lock_ptr' that was not held [-Wthread-safety-analysis]
  2830.         spin_unlock(q->lock_ptr);
  2831.         ^
  2832. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2511:2: warning: mutex 'q->lock_ptr' is not held on every path through here [-Wthread-safety-analysis]
  2833.         raw_spin_unlock_irq(&pi_state->pi_mutex.wait_lock);
  2834.         ^
  2835. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:283:35: note: expanded from macro 'raw_spin_unlock_irq'
  2836. #define raw_spin_unlock_irq(lock)       _raw_spin_unlock_irq(lock)
  2837.                                         ^
  2838. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock_api_smp.h:79:36: note: expanded from macro '_raw_spin_unlock_irq'
  2839. #define _raw_spin_unlock_irq(lock) __raw_spin_unlock_irq(lock)
  2840.                                    ^
  2841. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2494:2: note: mutex acquired here
  2842.         spin_lock(q->lock_ptr);
  2843.         ^
  2844. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2883:2: warning: releasing mutex 'q.lock_ptr' that was not held [-Wthread-safety-analysis]
  2845.         spin_unlock(q.lock_ptr);
  2846.         ^
  2847. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2922:8: warning: mutex 'q.lock_ptr' is not held on every path through here [-Wthread-safety-analysis]
  2848.         res = fixup_owner(uaddr, &q, !ret);
  2849.               ^
  2850. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:2904:2: note: mutex acquired here
  2851.         spin_lock(q.lock_ptr);
  2852.         ^
  2853. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:3351:6: warning: mutex 'q.lock_ptr' is not held on every path through here [-Wthread-safety-analysis]
  2854.         if (pi_state) {
  2855.             ^
  2856. /home/himanshu/clang-thread-safety-analysis/kernel/futex.c:3320:3: note: mutex acquired here
  2857.                 spin_lock(q.lock_ptr);
  2858.                 ^
  2859.   CC      arch/x86/realmode/rm/video-mode.o
  2860.   CC      fs/nfs/nfs3client.o
  2861.   CC      fs/nls/nls_utf8.o
  2862.   AS      arch/x86/realmode/rm/copy.o
  2863.   AS      arch/x86/realmode/rm/bioscall.o
  2864.   CC      arch/x86/realmode/rm/regs.o
  2865.   CC      arch/x86/realmode/rm/video-vga.o
  2866.   AR      fs/nls/built-in.a
  2867.   CC      arch/x86/realmode/rm/video-vesa.o
  2868.   CC      fs/notify/dnotify/dnotify.o
  2869.   CC      arch/x86/realmode/rm/video-bios.o
  2870.   PASYMS  arch/x86/realmode/rm/pasyms.h
  2871.   LDS     arch/x86/realmode/rm/realmode.lds
  2872.   LD      arch/x86/realmode/rm/realmode.elf
  2873.   RELOCS  arch/x86/realmode/rm/realmode.relocs
  2874.   OBJCOPY arch/x86/realmode/rm/realmode.bin
  2875.   AS      arch/x86/realmode/rmpiggy.o
  2876.   AR      arch/x86/realmode/built-in.a
  2877.   AR      arch/x86/built-in.a
  2878.   CC      crypto/asymmetric_keys/asymmetric_type.o
  2879. /home/himanshu/clang-thread-safety-analysis/fs/notify/dnotify/dnotify.c:326:2: warning: mutex 'fsn_mark->lock' is not held on every path through here [-Wthread-safety-analysis]
  2880.         rcu_read_lock();
  2881.         ^
  2882. /home/himanshu/clang-thread-safety-analysis/fs/notify/dnotify/dnotify.c:312:3: note: mutex acquired here
  2883.                 spin_lock(&fsn_mark->lock);
  2884.                 ^
  2885. /home/himanshu/clang-thread-safety-analysis/fs/notify/dnotify/dnotify.c:326:2: warning: mutex 'new_fsn_mark->lock' is not held on every path through here [-Wthread-safety-analysis]
  2886.         rcu_read_lock();
  2887.         ^
  2888. /home/himanshu/clang-thread-safety-analysis/fs/notify/dnotify/dnotify.c:319:3: note: mutex acquired here
  2889.                 spin_lock(&new_fsn_mark->lock);
  2890.                 ^
  2891. /home/himanshu/clang-thread-safety-analysis/fs/notify/dnotify/dnotify.c:361:2: warning: releasing mutex 'fsn_mark->lock' that was not held [-Wthread-safety-analysis]
  2892.         spin_unlock(&fsn_mark->lock);
  2893.         ^
  2894. 3 warnings generated.
  2895.   AR      fs/notify/dnotify/built-in.a
  2896.   AR      fs/notify/fanotify/built-in.a
  2897.   CC      fs/notify/inotify/inotify_fsnotify.o
  2898. 15 warnings generated.
  2899.   CC      kernel/dma.o
  2900.   CC      fs/nfs/nfs3proc.o
  2901.   CC      crypto/asymmetric_keys/restrict.o
  2902.   CC      fs/notify/inotify/inotify_user.o
  2903.   CC      kernel/smp.o
  2904.   CC      crypto/asymmetric_keys/signature.o
  2905.   CC      kernel/uid16.o
  2906.   CC      crypto/asymmetric_keys/public_key.o
  2907.   AR      fs/notify/inotify/built-in.a
  2908.   CC      fs/notify/fsnotify.o
  2909.   CC      fs/nfs/nfs3xdr.o
  2910. /home/himanshu/clang-thread-safety-analysis/fs/notify/fsnotify.c:175:4: warning: releasing mutex 'child->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  2911.                         spin_unlock(&child->d_lock);
  2912.                         ^
  2913.   CC      kernel/module.o
  2914.   ASN.1   crypto/asymmetric_keys/x509.asn1.c
  2915.   ASN.1   crypto/asymmetric_keys/x509_akid.asn1.c
  2916.   CC      crypto/asymmetric_keys/x509_public_key.o
  2917. 1 warning generated.
  2918.   CC      fs/notify/notification.o
  2919.   ASN.1   crypto/asymmetric_keys/pkcs7.asn1.c
  2920.   CC      crypto/asymmetric_keys/pkcs7_trust.o
  2921.   CC      fs/notify/group.o
  2922.   CC      crypto/asymmetric_keys/pkcs7_verify.o
  2923.   CC      fs/nfs/nfs3acl.o
  2924.   CC      fs/notify/mark.o
  2925.   CC      crypto/asymmetric_keys/x509.asn1.o
  2926.   CC      crypto/asymmetric_keys/x509_akid.asn1.o
  2927.   CC      crypto/asymmetric_keys/x509_cert_parser.o
  2928. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:256:2: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2929.         spin_unlock(&conn->lock);
  2930.         ^
  2931. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:528:2: warning: mutex 'conn->lock' is not held on every path through here [-Wthread-safety-analysis]
  2932.         srcu_read_unlock(&fsnotify_mark_srcu, idx);
  2933.         ^
  2934. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:521:2: note: mutex acquired here
  2935.         spin_lock(&conn->lock);
  2936.         ^
  2937. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:616:2: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2938.         spin_unlock(&conn->lock);
  2939.         ^
  2940. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:699:4: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2941.                         spin_unlock(&conn->lock);
  2942.                         ^
  2943. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:703:2: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2944.         spin_unlock(&conn->lock);
  2945.         ^
  2946. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:770:23: warning: expecting mutex 'conn->lock' to be held at start of each loop [-Wthread-safety-analysis]
  2947.         hlist_for_each_entry(mark, &conn->list, obj_list) {
  2948.                              ^
  2949. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:777:3: note: mutex acquired here
  2950.                 spin_lock(&conn->lock);
  2951.                 ^
  2952. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:772:3: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2953.                 spin_unlock(&conn->lock);
  2954.                 ^
  2955. /home/himanshu/clang-thread-safety-analysis/fs/notify/mark.c:785:2: warning: releasing mutex 'conn->lock' that was not held [-Wthread-safety-analysis]
  2956.         spin_unlock(&conn->lock);
  2957.         ^
  2958.   CC      crypto/asymmetric_keys/pkcs7.asn1.o
  2959.   CC      crypto/asymmetric_keys/pkcs7_parser.o
  2960. 8 warnings generated.
  2961.   CC      fs/notify/fdinfo.o
  2962.   AR      crypto/asymmetric_keys/built-in.a
  2963.   CC      crypto/api.o
  2964.   CC      fs/nfs/nfs4proc.o
  2965.   CC      kernel/kallsyms.o
  2966.   AR      fs/notify/built-in.a
  2967.   CC      kernel/acct.o
  2968.   CC      crypto/cipher.o
  2969.   CC      block/partitions/check.o
  2970.   CC      kernel/crash_core.o
  2971.   CC      crypto/compress.o
  2972. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1582:2: warning: expecting mutex 'state->owner->so_lock' to be held at start of each loop [-Wthread-safety-analysis]
  2973.         for (;;) {
  2974.         ^
  2975. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1613:3: note: mutex acquired here
  2976.                 spin_lock(&state->owner->so_lock);
  2977.                 ^
  2978. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1582:2: warning: expecting mutex 'state->seqlock.lock' to be held at start of each loop [-Wthread-safety-analysis]
  2979.         for (;;) {
  2980.         ^
  2981. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1614:3: note: mutex acquired here
  2982.                 write_seqlock(&state->seqlock);
  2983.                 ^
  2984. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1600:3: warning: releasing mutex 'state->seqlock.lock' that was not held [-Wthread-safety-analysis]
  2985.                 write_sequnlock(&state->seqlock);
  2986.                 ^
  2987. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4proc.c:1601:3: warning: releasing mutex 'state->owner->so_lock' that was not held [-Wthread-safety-analysis]
  2988.                 spin_unlock(&state->owner->so_lock);
  2989.                 ^
  2990.   CC      block/partitions/msdos.o
  2991.   CC      kernel/kexec_core.o
  2992.   CC      crypto/memneq.o
  2993.   CC      block/partitions/efi.o
  2994.   CC      crypto/crypto_wq.o
  2995.   CC      kernel/kexec.o
  2996.   AR      block/partitions/built-in.a
  2997.   CC      block/bio.o
  2998. 4 warnings generated.
  2999.   CC      crypto/algapi.o
  3000.   CC      fs/nfs/nfs4xdr.o
  3001.   CC      kernel/compat.o
  3002.   CC      kernel/utsname.o
  3003.   CC      crypto/scatterwalk.o
  3004.   CC      block/elevator.o
  3005.   CC      kernel/pid_namespace.o
  3006.   CC      crypto/proc.o
  3007.   CC      kernel/stop_machine.o
  3008.   CC      crypto/aead.o
  3009.   CC      block/blk-core.o
  3010.   CC      kernel/audit.o
  3011.   CC      fs/nfs/nfs4state.o
  3012.   CC      crypto/ablkcipher.o
  3013. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4state.c:621:2: warning: releasing mutex 'clp->cl_lock' that was not held [-Wthread-safety-analysis]
  3014.         spin_unlock(&clp->cl_lock);
  3015.         ^
  3016. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4state.c:752:2: warning: releasing mutex 'owner->so_lock' that was not held [-Wthread-safety-analysis]
  3017.         spin_unlock(&owner->so_lock);
  3018.         ^
  3019. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4state.c:930:2: warning: releasing mutex 'state->state_lock' that was not held [-Wthread-safety-analysis]
  3020.         spin_unlock(&state->state_lock);
  3021.         ^
  3022.   CC      crypto/blkcipher.o
  3023.   CC      block/blk-sysfs.o
  3024.   CC      kernel/auditfilter.o
  3025. 3 warnings generated.
  3026.   CC      fs/nfs/nfs4renewd.o
  3027.   CC      crypto/skcipher.o
  3028.   CC      block/blk-flush.o
  3029.   CC      kernel/auditsc.o
  3030.   CC      block/blk-settings.o
  3031.   CC      fs/nfs/nfs4super.o
  3032.   CC      crypto/seqiv.o
  3033.   CC      block/blk-ioc.o
  3034.   CC      crypto/echainiv.o
  3035.   CC      fs/nfs/nfs4file.o
  3036. /home/himanshu/clang-thread-safety-analysis/block/blk-ioc.c:115:4: warning: releasing mutex 'q->queue_lock' that was not held [-Wthread-safety-analysis]
  3037.                         spin_unlock(&q->queue_lock);
  3038.                         ^
  3039. 1 warning generated.
  3040.   CC      block/blk-map.o
  3041.   CC      kernel/audit_watch.o
  3042.   CC      crypto/ahash.o
  3043.   CC      block/blk-exec.o
  3044.   CC      kernel/audit_fsnotify.o
  3045.   CC      crypto/shash.o
  3046.   CC      fs/nfs/delegation.o
  3047.   CC      block/blk-merge.o
  3048.   CC      kernel/audit_tree.o
  3049.   CC      crypto/akcipher.o
  3050.   CC      block/blk-softirq.o
  3051.   CC      kernel/kprobes.o
  3052.   CC      crypto/kpp.o
  3053.   CC      fs/nfs/nfs4idmap.o
  3054.   CC      block/blk-timeout.o
  3055.   ASN.1   crypto/rsapubkey.asn1.c
  3056.   ASN.1   crypto/rsaprivkey.asn1.c
  3057.   CC      crypto/rsa.o
  3058.   CC      kernel/seccomp.o
  3059.   CC      block/blk-lib.o
  3060.   CC      crypto/rsa_helper.o
  3061.   CC      crypto/rsa-pkcs1pad.o
  3062.   CC      fs/nfs/callback.o
  3063.   CC      block/blk-mq.o
  3064.   CC      crypto/acompress.o
  3065.   CC      kernel/relay.o
  3066.   CC      fs/nfs/callback_xdr.o
  3067.   CC      crypto/scompress.o
  3068.   CC      kernel/utsname_sysctl.o
  3069.   CC      kernel/delayacct.o
  3070.   CC      crypto/algboss.o
  3071.   CC      block/blk-mq-tag.o
  3072.   CC      kernel/taskstats.o
  3073.   CC      fs/nfs/callback_proc.o
  3074.   CC      block/blk-stat.o
  3075.   CC      crypto/testmgr.o
  3076.   CC      kernel/tsacct.o
  3077.   CC      block/blk-mq-sysfs.o
  3078.   CC      crypto/cmac.o
  3079.   CC      fs/nfs/nfs4namespace.o
  3080.   CC      kernel/tracepoint.o
  3081.   CC      crypto/hmac.o
  3082.   CC      block/blk-mq-cpumap.o
  3083.   CC      kernel/elfcore.o
  3084.   CC      kernel/irq_work.o
  3085.   CC      block/blk-mq-sched.o
  3086.   CC      fs/nfs/nfs4getroot.o
  3087.   CC      crypto/crypto_null.o
  3088.   CC      kernel/crash_dump.o
  3089.   CC      crypto/md5.o
  3090.   CC      block/ioctl.o
  3091.   CC      kernel/iomem.o
  3092.   CC      fs/nfs/nfs4client.o
  3093.   CC      crypto/sha1_generic.o
  3094.   CC      kernel/rseq.o
  3095.   CC      block/genhd.o
  3096. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4client.c:510:3: warning: releasing mutex 'nn->nfs_client_lock' that was not held [-Wthread-safety-analysis]
  3097.                 spin_unlock(&nn->nfs_client_lock);
  3098.                 ^
  3099. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4client.c:522:6: warning: mutex 'nn->nfs_client_lock' is not held on every path through here [-Wthread-safety-analysis]
  3100.         if (pos->cl_cons_state != NFS_CS_READY)
  3101.             ^
  3102. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4client.c:516:3: note: mutex acquired here
  3103.                 spin_lock(&nn->nfs_client_lock);
  3104.                 ^
  3105. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4client.c:535:1: warning: mutex 'nn->nfs_client_lock' is not held on every path through here [-Wthread-safety-analysis]
  3106. }
  3107. ^
  3108. /home/himanshu/clang-thread-safety-analysis/fs/nfs/nfs4client.c:516:3: note: mutex acquired here
  3109.                 spin_lock(&nn->nfs_client_lock);
  3110.                 ^
  3111.   CC      crypto/sha256_generic.o
  3112.   AR      kernel/built-in.a
  3113. 3 warnings generated.
  3114.   CC      drivers/acpi/acpica/dsargs.o
  3115.   CC      fs/nfs/nfs4session.o
  3116.   CC      drivers/acpi/acpica/dscontrol.o
  3117.   CC      block/partition-generic.o
  3118.   CC      drivers/acpi/acpica/dsdebug.o
  3119.   CC      fs/nfs/dns_resolve.o
  3120.   CC      drivers/acpi/acpica/dsfield.o
  3121.   CC      crypto/gf128mul.o
  3122.   CC      block/ioprio.o
  3123.   CC      drivers/acpi/acpica/dsinit.o
  3124.   CC      crypto/cbc.o
  3125.   CC      drivers/acpi/acpica/dsmethod.o
  3126.   CC      fs/nfs/nfs4trace.o
  3127.   CC      block/badblocks.o
  3128.   CC      drivers/acpi/acpica/dsmthdat.o
  3129.   CC      crypto/ctr.o
  3130.   CC      drivers/acpi/acpica/dsobject.o
  3131.   CC      block/blk-rq-qos.o
  3132.   CC      crypto/gcm.o
  3133.   CC      drivers/acpi/acpica/dsopcode.o
  3134.   CC      block/bounce.o
  3135.   CC      drivers/acpi/acpica/dspkginit.o
  3136.   CC      drivers/acpi/acpica/dsutils.o
  3137.   CC      fs/nfs/nfs4sysctl.o
  3138.   CC      crypto/ccm.o
  3139.   CC      block/scsi_ioctl.o
  3140.   CC      drivers/acpi/acpica/dswexec.o
  3141.   CC      drivers/acpi/acpica/dswload.o
  3142.   AR      fs/nfs/built-in.a
  3143.   CC      crypto/des_generic.o
  3144.   CC      fs/proc/task_mmu.o
  3145.   CC      block/bsg.o
  3146.   CC      drivers/acpi/acpica/dswload2.o
  3147.   CC      drivers/acpi/acpica/dswscope.o
  3148.   CC      crypto/aes_generic.o
  3149. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:587:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3150.                 spin_unlock(ptl);
  3151.                 ^
  3152. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:601:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3153.         pte_unmap_unlock(pte - 1, ptl);
  3154.         ^
  3155. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  3156.         spin_unlock(ptl);                               \
  3157.         ^
  3158. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:603:2: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  3159.         cond_resched();
  3160.         ^
  3161. /home/himanshu/clang-thread-safety-analysis/include/linux/sched.h:1707:2: note: expanded from macro 'cond_resched'
  3162.         ___might_sleep(__FILE__, __LINE__, 0);  \
  3163.         ^
  3164. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:598:8: note: mutex acquired here
  3165.         pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
  3166.               ^
  3167. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  3168.         spin_lock(__ptl);                               \
  3169.         ^
  3170. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1025:3: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3171.                 spin_unlock(ptl);
  3172.                 ^
  3173. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1053:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3174.         pte_unmap_unlock(pte - 1, ptl);
  3175.         ^
  3176. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  3177.         spin_unlock(ptl);                               \
  3178.         ^
  3179. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1056:1: warning: mutex '__ptl' is not held on every path through here [-Wthread-safety-analysis]
  3180. }
  3181. ^
  3182. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1032:8: note: mutex acquired here
  3183.         pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
  3184.               ^
  3185. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  3186.         spin_lock(__ptl);                               \
  3187.         ^
  3188. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1396:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3189.         pte_unmap_unlock(orig_pte, ptl);
  3190.         ^
  3191. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  3192.         spin_unlock(ptl);                               \
  3193.         ^
  3194. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1401:1: warning: mutex '__ptl' is still held at the end of function [-Wthread-safety-analysis]
  3195. }
  3196. ^
  3197. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1387:19: note: mutex acquired here
  3198.         orig_pte = pte = pte_offset_map_lock(walk->mm, pmdp, addr, &ptl);
  3199.                          ^
  3200. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  3201.         spin_lock(__ptl);                               \
  3202.         ^
  3203. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1723:2: warning: releasing mutex 'ptl' that was not held [-Wthread-safety-analysis]
  3204.         pte_unmap_unlock(orig_pte, ptl);
  3205.         ^
  3206. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2018:2: note: expanded from macro 'pte_unmap_unlock'
  3207.         spin_unlock(ptl);                               \
  3208.         ^
  3209. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1726:1: warning: mutex '__ptl' is still held at the end of function [-Wthread-safety-analysis]
  3210. }
  3211. ^
  3212. /home/himanshu/clang-thread-safety-analysis/fs/proc/task_mmu.c:1715:19: note: mutex acquired here
  3213.         orig_pte = pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
  3214.                          ^
  3215. /home/himanshu/clang-thread-safety-analysis/include/linux/mm.h:2013:2: note: expanded from macro 'pte_offset_map_lock'
  3216.         spin_lock(__ptl);                               \
  3217.         ^
  3218.   CC      block/mq-deadline.o
  3219.   CC      drivers/acpi/acpica/dswstate.o
  3220. 10 warnings generated.
  3221.   CC      fs/proc/inode.o
  3222.   CC      drivers/acpi/acpica/evevent.o
  3223.   CC      crypto/arc4.o
  3224. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:704:1: warning: mutex 'dd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3225. DEADLINE_DEBUGFS_DDIR_ATTRS(READ, read)
  3226. ^
  3227. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:665:54: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3228.         return seq_list_start(&dd->fifo_list[ddir], *pos);              \
  3229.                                                                         ^
  3230. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:704:1: note: mutex acquired here
  3231. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:664:2: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3232.         spin_lock(&dd->lock);                                           \
  3233.         ^
  3234. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:704:1: warning: releasing mutex 'dd->lock' that was not held [-Wthread-safety-analysis]
  3235. DEADLINE_DEBUGFS_DDIR_ATTRS(READ, read)
  3236. ^
  3237. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:683:2: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3238.         spin_unlock(&dd->lock);                                         \
  3239.         ^
  3240. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:705:1: warning: mutex 'dd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3241. DEADLINE_DEBUGFS_DDIR_ATTRS(WRITE, write)
  3242. ^
  3243. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:665:54: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3244.         return seq_list_start(&dd->fifo_list[ddir], *pos);              \
  3245.                                                                         ^
  3246. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:705:1: note: mutex acquired here
  3247. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:664:2: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3248.         spin_lock(&dd->lock);                                           \
  3249.         ^
  3250. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:705:1: warning: releasing mutex 'dd->lock' that was not held [-Wthread-safety-analysis]
  3251. DEADLINE_DEBUGFS_DDIR_ATTRS(WRITE, write)
  3252. ^
  3253. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:683:2: note: expanded from macro 'DEADLINE_DEBUGFS_DDIR_ATTRS'
  3254.         spin_unlock(&dd->lock);                                         \
  3255.         ^
  3256. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:734:1: warning: mutex 'dd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3257. }
  3258. ^
  3259. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:732:2: note: mutex acquired here
  3260.         spin_lock(&dd->lock);
  3261.         ^
  3262. /home/himanshu/clang-thread-safety-analysis/block/mq-deadline.c:750:2: warning: releasing mutex 'dd->lock' that was not held [-Wthread-safety-analysis]
  3263.         spin_unlock(&dd->lock);
  3264.         ^
  3265. 6 warnings generated.
  3266.   CC      block/kyber-iosched.o
  3267.   CC      drivers/acpi/acpica/evgpe.o
  3268. /home/himanshu/clang-thread-safety-analysis/fs/proc/inode.c:157:3: warning: releasing mutex 'pde->pde_unload_lock' that was not held [-Wthread-safety-analysis]
  3269.                 spin_unlock(&pde->pde_unload_lock);
  3270.                 ^
  3271. /home/himanshu/clang-thread-safety-analysis/fs/proc/inode.c:164:3: warning: releasing mutex 'pde->pde_unload_lock' that was not held [-Wthread-safety-analysis]
  3272.                 spin_unlock(&pde->pde_unload_lock);
  3273.                 ^
  3274. /home/himanshu/clang-thread-safety-analysis/fs/proc/inode.c:193:3: warning: acquiring mutex '->pde_unload_lock' that is already held [-Wthread-safety-analysis]
  3275.                 spin_lock(&de->pde_unload_lock);
  3276.                 ^
  3277. /home/himanshu/clang-thread-safety-analysis/fs/proc/inode.c:391:1: warning: mutex 'pde->pde_unload_lock' is not held on every path through here [-Wthread-safety-analysis]
  3278. }
  3279. ^
  3280. /home/himanshu/clang-thread-safety-analysis/fs/proc/inode.c:382:2: note: mutex acquired here
  3281.         spin_lock(&pde->pde_unload_lock);
  3282.         ^
  3283. 4 warnings generated.
  3284.   CC      fs/proc/root.o
  3285.   CC      crypto/crc32c_generic.o
  3286.   CC      drivers/acpi/acpica/evgpeblk.o
  3287. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:950:1: warning: mutex 'khd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3288. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_READ, read)
  3289. ^
  3290. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:913:52: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3291.         return seq_list_start(&khd->rqs[domain], *pos);                 \
  3292.                                                                         ^
  3293. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:950:1: note: mutex acquired here
  3294. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:912:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3295.         spin_lock(&khd->lock);                                          \
  3296.         ^
  3297. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:950:1: warning: releasing mutex 'khd->lock' that was not held [-Wthread-safety-analysis]
  3298. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_READ, read)
  3299. ^
  3300. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:931:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3301.         spin_unlock(&khd->lock);                                        \
  3302.         ^
  3303. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:951:1: warning: mutex 'khd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3304. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_WRITE, write)
  3305. ^
  3306. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:913:52: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3307.         return seq_list_start(&khd->rqs[domain], *pos);                 \
  3308.                                                                         ^
  3309. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:951:1: note: mutex acquired here
  3310. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:912:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3311.         spin_lock(&khd->lock);                                          \
  3312.         ^
  3313. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:951:1: warning: releasing mutex 'khd->lock' that was not held [-Wthread-safety-analysis]
  3314. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_WRITE, write)
  3315. ^
  3316. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:931:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3317.         spin_unlock(&khd->lock);                                        \
  3318.         ^
  3319. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:952:1: warning: mutex 'khd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3320. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_DISCARD, discard)
  3321. ^
  3322. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:913:52: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3323.         return seq_list_start(&khd->rqs[domain], *pos);                 \
  3324.                                                                         ^
  3325. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:952:1: note: mutex acquired here
  3326. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:912:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3327.         spin_lock(&khd->lock);                                          \
  3328.         ^
  3329. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:952:1: warning: releasing mutex 'khd->lock' that was not held [-Wthread-safety-analysis]
  3330. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_DISCARD, discard)
  3331. ^
  3332. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:931:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3333.         spin_unlock(&khd->lock);                                        \
  3334.         ^
  3335. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:953:1: warning: mutex 'khd->lock' is still held at the end of function [-Wthread-safety-analysis]
  3336. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_OTHER, other)
  3337. ^
  3338. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:913:52: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3339.         return seq_list_start(&khd->rqs[domain], *pos);                 \
  3340.                                                                         ^
  3341. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:953:1: note: mutex acquired here
  3342. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:912:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3343.         spin_lock(&khd->lock);                                          \
  3344.         ^
  3345. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:953:1: warning: releasing mutex 'khd->lock' that was not held [-Wthread-safety-analysis]
  3346. KYBER_DEBUGFS_DOMAIN_ATTRS(KYBER_OTHER, other)
  3347. ^
  3348. /home/himanshu/clang-thread-safety-analysis/block/kyber-iosched.c:931:2: note: expanded from macro 'KYBER_DEBUGFS_DOMAIN_ATTRS'
  3349.         spin_unlock(&khd->lock);                                        \
  3350.         ^
  3351.   CC      fs/proc/base.o
  3352.   CC      drivers/acpi/acpica/evgpeinit.o
  3353.   CC      crypto/authenc.o
  3354. 8 warnings generated.
  3355.   CC      block/compat_ioctl.o
  3356.   CC      drivers/acpi/acpica/evgpeutil.o
  3357. /home/himanshu/clang-thread-safety-analysis/fs/proc/base.c:1066:4: warning: releasing mutex 'p->alloc_lock' that was not held [-Wthread-safety-analysis]
  3358.                         task_unlock(p);
  3359.                         ^
  3360.   CC      drivers/acpi/acpica/evglock.o
  3361.   CC      block/blk-mq-pci.o
  3362.   CC      crypto/authencesn.o
  3363.   CC      drivers/acpi/acpica/evhandler.o
  3364. 1 warning generated.
  3365.   CC      fs/proc/generic.o
  3366.   CC      drivers/acpi/acpica/evmisc.o
  3367.   CC      block/blk-mq-debugfs.o
  3368.   CC      drivers/acpi/acpica/evregion.o
  3369.   CC      crypto/rng.o
  3370.   CC      fs/proc/array.o
  3371. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:380:1: warning: mutex 'hctx->.lock' is still held at the end of function [-Wthread-safety-analysis]
  3372. }
  3373. ^
  3374. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:378:2: note: mutex acquired here
  3375.         spin_lock(&hctx->lock);
  3376.         ^
  3377. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:394:2: warning: releasing mutex 'hctx->.lock' that was not held [-Wthread-safety-analysis]
  3378.         spin_unlock(&hctx->lock);
  3379.         ^
  3380. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:674:1: warning: mutex 'ctx->.lock' is still held at the end of function [-Wthread-safety-analysis]
  3381. CTX_RQ_SEQ_OPS(default, HCTX_TYPE_DEFAULT);
  3382. ^
  3383. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:648:54: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3384.         return seq_list_start(&ctx->rq_lists[type], *pos);              \
  3385.                                                                         ^
  3386. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:674:1: note: mutex acquired here
  3387. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:647:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3388.         spin_lock(&ctx->lock);                                          \
  3389.         ^
  3390. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:674:1: warning: releasing mutex 'ctx->.lock' that was not held [-Wthread-safety-analysis]
  3391. CTX_RQ_SEQ_OPS(default, HCTX_TYPE_DEFAULT);
  3392. ^
  3393. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:664:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3394.         spin_unlock(&ctx->lock);                                        \
  3395.         ^
  3396. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:675:1: warning: mutex 'ctx->.lock' is still held at the end of function [-Wthread-safety-analysis]
  3397. CTX_RQ_SEQ_OPS(read, HCTX_TYPE_READ);
  3398. ^
  3399. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:648:54: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3400.         return seq_list_start(&ctx->rq_lists[type], *pos);              \
  3401.                                                                         ^
  3402. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:675:1: note: mutex acquired here
  3403. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:647:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3404.         spin_lock(&ctx->lock);                                          \
  3405.         ^
  3406. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:675:1: warning: releasing mutex 'ctx->.lock' that was not held [-Wthread-safety-analysis]
  3407. CTX_RQ_SEQ_OPS(read, HCTX_TYPE_READ);
  3408. ^
  3409. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:664:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3410.         spin_unlock(&ctx->lock);                                        \
  3411.         ^
  3412. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:676:1: warning: mutex 'ctx->.lock' is still held at the end of function [-Wthread-safety-analysis]
  3413. CTX_RQ_SEQ_OPS(poll, HCTX_TYPE_POLL);
  3414. ^
  3415. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:648:54: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3416.         return seq_list_start(&ctx->rq_lists[type], *pos);              \
  3417.                                                                         ^
  3418. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:676:1: note: mutex acquired here
  3419. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:647:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3420.         spin_lock(&ctx->lock);                                          \
  3421.         ^
  3422. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:676:1: warning: releasing mutex 'ctx->.lock' that was not held [-Wthread-safety-analysis]
  3423. CTX_RQ_SEQ_OPS(poll, HCTX_TYPE_POLL);
  3424. ^
  3425. /home/himanshu/clang-thread-safety-analysis/block/blk-mq-debugfs.c:664:2: note: expanded from macro 'CTX_RQ_SEQ_OPS'
  3426.         spin_unlock(&ctx->lock);                                        \
  3427.         ^
  3428.   CC      drivers/acpi/acpica/evrgnini.o
  3429. 8 warnings generated.
  3430.   CC      block/blk-pm.o
  3431.   CC      crypto/drbg.o
  3432.   CC      drivers/acpi/acpica/evsci.o
  3433.   CC      fs/proc/fd.o
  3434.   CC      drivers/acpi/acpica/evxface.o
  3435.   AR      block/built-in.a
  3436.   AR      sound/arm/built-in.a
  3437.   AR      sound/atmel/built-in.a
  3438.   CC      sound/core/seq/seq.o
  3439.   CC      crypto/jitterentropy.o
  3440.   CC      drivers/acpi/acpica/evxfevnt.o
  3441.   CC      fs/proc/proc_tty.o
  3442.   CC      crypto/jitterentropy-kcapi.o
  3443.   CC      sound/core/seq/seq_lock.o
  3444.   CC      drivers/acpi/acpica/evxfgpe.o
  3445.   CC      fs/proc/cmdline.o
  3446.   CC      crypto/ghash-generic.o
  3447.   CC      sound/core/seq/seq_clientmgr.o
  3448.   CC      drivers/acpi/acpica/evxfregn.o
  3449.   CC      fs/proc/consoles.o
  3450.   CC      drivers/acpi/acpica/exconcat.o
  3451.   CC      fs/proc/cpuinfo.o
  3452.   CC      crypto/hash_info.o
  3453.   CC      crypto/rsapubkey.asn1.o
  3454.   CC      crypto/rsaprivkey.asn1.o
  3455.   AR      crypto/built-in.a
  3456.   CC      arch/x86/pci/i386.o
  3457.   CC      drivers/acpi/acpica/exconfig.o
  3458.   CC      sound/core/seq/seq_memory.o
  3459.   CC      fs/proc/devices.o
  3460.   CC      drivers/acpi/acpica/exconvrt.o
  3461.   CC      fs/proc/interrupts.o
  3462.   CC      arch/x86/pci/init.o
  3463.   CC      drivers/acpi/acpica/excreate.o
  3464.   CC      sound/core/seq/seq_queue.o
  3465.   CC      fs/proc/loadavg.o
  3466.   CC      arch/x86/pci/mmconfig_64.o
  3467.   CC      drivers/acpi/acpica/exdebug.o
  3468.   CC      sound/core/seq/seq_fifo.o
  3469.   CC      fs/proc/meminfo.o
  3470.   CC      drivers/acpi/acpica/exdump.o
  3471.   CC      arch/x86/pci/direct.o
  3472.   CC      drivers/acpi/acpica/exfield.o
  3473.   CC      sound/core/seq/seq_prioq.o
  3474.   CC      fs/proc/stat.o
  3475.   CC      drivers/acpi/acpica/exfldio.o
  3476.   CC      arch/x86/pci/mmconfig-shared.o
  3477.   CC      sound/core/seq/seq_timer.o
  3478.   CC      fs/proc/uptime.o
  3479.   CC      drivers/acpi/acpica/exmisc.o
  3480.   CC      fs/proc/util.o
  3481.   CC      arch/x86/pci/fixup.o
  3482.   CC      sound/core/seq/seq_system.o
  3483.   CC      drivers/acpi/acpica/exmutex.o
  3484.   CC      fs/proc/version.o
  3485.   CC      drivers/acpi/acpica/exnames.o
  3486.   CC      sound/core/seq/seq_ports.o
  3487.   CC      arch/x86/pci/acpi.o
  3488.   CC      fs/proc/softirqs.o
  3489.   CC      drivers/acpi/acpica/exoparg1.o
  3490.   CC      sound/core/seq/seq_info.o
  3491.   CC      fs/proc/namespaces.o
  3492.   CC      drivers/acpi/acpica/exoparg2.o
  3493.   CC      arch/x86/pci/legacy.o
  3494.   CC      sound/core/seq/seq_dummy.o
  3495.   CC      drivers/acpi/acpica/exoparg3.o
  3496.   CC      arch/x86/pci/irq.o
  3497.   CC      fs/proc/self.o
  3498.   CC      drivers/acpi/acpica/exoparg6.o
  3499.   AR      sound/core/seq/built-in.a
  3500.   CC      sound/core/sound.o
  3501.   CC      drivers/acpi/acpica/exprep.o
  3502.   CC      fs/proc/thread_self.o
  3503.   CC      sound/core/init.o
  3504.   CC      arch/x86/pci/common.o
  3505.   CC      drivers/acpi/acpica/exregion.o
  3506.   CC      fs/proc/proc_sysctl.o
  3507.   CC      drivers/acpi/acpica/exresnte.o
  3508.   CC      sound/core/memory.o
  3509. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:315:3: warning: releasing mutex 'sysctl_lock' that was not held [-Wthread-safety-analysis]
  3510.                 spin_unlock(&sysctl_lock);
  3511.                 ^
  3512. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:320:3: warning: releasing mutex 'sysctl_lock' that was not held [-Wthread-safety-analysis]
  3513.                 spin_unlock(&sysctl_lock);
  3514.                 ^
  3515. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:333:1: warning: mutex 'sysctl_lock' is still held at the end of function [-Wthread-safety-analysis]
  3516. }
  3517. ^
  3518. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:331:2: note: mutex acquired here
  3519.         spin_lock(&sysctl_lock);
  3520.         ^
  3521. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:1243:2: warning: releasing mutex 'sysctl_lock' that was not held [-Wthread-safety-analysis]
  3522.         spin_unlock(&sysctl_lock);
  3523.         ^
  3524. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:1264:1: warning: mutex 'sysctl_lock' is not held on every path through here [-Wthread-safety-analysis]
  3525. }
  3526. ^
  3527. /home/himanshu/clang-thread-safety-analysis/fs/proc/proc_sysctl.c:1247:2: note: mutex acquired here
  3528.         spin_lock(&sysctl_lock);
  3529.         ^
  3530.   CC      arch/x86/pci/early.o
  3531.   CC      drivers/acpi/acpica/exresolv.o
  3532.   CC      sound/core/control.o
  3533. 5 warnings generated.
  3534.   CC      fs/proc/proc_net.o
  3535.   CC      drivers/acpi/acpica/exresop.o
  3536.   CC      arch/x86/pci/bus_numa.o
  3537.   CC      drivers/acpi/acpica/exserial.o
  3538.   CC      fs/proc/kcore.o
  3539.   CC      arch/x86/pci/amd_bus.o
  3540.   CC      drivers/acpi/acpica/exstore.o
  3541.   CC      sound/core/misc.o
  3542.   CC      drivers/acpi/acpica/exstoren.o
  3543.   AR      arch/x86/pci/built-in.a
  3544.   CC      arch/x86/power/cpu.o
  3545.   CC      sound/core/device.o
  3546.   CC      fs/proc/vmcore.o
  3547.   CC      drivers/acpi/acpica/exstorob.o
  3548.   CC      drivers/acpi/acpica/exsystem.o
  3549.   CC      sound/core/info.o
  3550.   CC      drivers/acpi/acpica/extrace.o
  3551.   CC      fs/proc/kmsg.o
  3552.   CC      arch/x86/power/hibernate_64.o
  3553.   CC      sound/core/isadma.o
  3554.   CC      drivers/acpi/acpica/exutils.o
  3555.   CC      fs/proc/page.o
  3556.   CC      drivers/acpi/acpica/hwacpi.o
  3557.   CC      sound/core/vmaster.o
  3558.   AS      arch/x86/power/hibernate_asm_64.o
  3559.   CC      arch/x86/power/hibernate.o
  3560.   CC      drivers/acpi/acpica/hwesleep.o
  3561.   AR      fs/proc/built-in.a
  3562.   CC      fs/quota/dquot.o
  3563.   CC      sound/core/ctljack.o
  3564.   CC      drivers/acpi/acpica/hwgpe.o
  3565.   AR      arch/x86/power/built-in.a
  3566.   CC      fs/quota/quota_v2.o
  3567.   CC      sound/core/jack.o
  3568.   CC      drivers/acpi/acpica/hwregs.o
  3569.   CC      fs/quota/quota_tree.o
  3570.   CC      sound/core/hwdep.o
  3571.   CC      drivers/acpi/acpica/hwsleep.o
  3572.   CC      fs/quota/quota.o
  3573.   AR      drivers/amba/built-in.a
  3574.   CC      fs/quota/kqid.o
  3575.   CC      drivers/acpi/acpica/hwvalid.o
  3576.   CC      sound/core/timer.o
  3577.   CC      fs/quota/compat.o
  3578.   CC      drivers/acpi/acpica/hwxface.o
  3579. /home/himanshu/clang-thread-safety-analysis/sound/core/timer.c:760:4: warning: releasing mutex 'timer->lock' that was not held [-Wthread-safety-analysis]
  3580.                         spin_unlock(&timer->lock);
  3581.                         ^
  3582. /home/himanshu/clang-thread-safety-analysis/sound/core/timer.c:767:1: warning: mutex 'timer->lock' is not held on every path through here [-Wthread-safety-analysis]
  3583. }
  3584. ^
  3585. /home/himanshu/clang-thread-safety-analysis/sound/core/timer.c:763:4: note: mutex acquired here
  3586.                         spin_lock(&timer->lock);
  3587.                         ^
  3588.   CC      drivers/acpi/acpica/hwxfsleep.o
  3589.   CC      drivers/acpi/dptf/int340x_thermal.o
  3590.   CC      fs/quota/netlink.o
  3591.   CC      drivers/acpi/acpica/hwpci.o
  3592.   AR      drivers/acpi/dptf/built-in.a
  3593.   CC      drivers/acpi/tables.o
  3594. 2 warnings generated.
  3595.   CC      sound/core/hrtimer.o
  3596.   CC      drivers/acpi/acpica/nsaccess.o
  3597.   AR      fs/quota/built-in.a
  3598.   CC      fs/ramfs/inode.o
  3599.   CC      sound/core/pcm.o
  3600.   CC      drivers/acpi/acpica/nsalloc.o
  3601.   CC      drivers/acpi/blacklist.o
  3602.   CC      drivers/acpi/acpica/nsarguments.o
  3603.   CC      drivers/acpi/osi.o
  3604.   CC      fs/ramfs/file-mmu.o
  3605.   CC      sound/core/pcm_native.o
  3606.   CC      drivers/acpi/acpica/nsconvert.o
  3607.   CC      drivers/ata/libata-core.o
  3608.   AR      fs/ramfs/built-in.a
  3609.   CC      fs/sysfs/file.o
  3610.   CC      drivers/acpi/acpica/nsdump.o
  3611. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:108:1: warning: mutex 'group->lock' is not held on every path through here [-Wthread-safety-analysis]
  3612. DEFINE_PCM_GROUP_LOCK(lock, lock);
  3613. ^
  3614. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:105:34: note: expanded from macro 'DEFINE_PCM_GROUP_LOCK'
  3615.                 spin_ ## action(&group->lock); \
  3616.                                                ^
  3617. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:108:1: note: mutex acquired here
  3618. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:105:3: note: expanded from macro 'DEFINE_PCM_GROUP_LOCK'
  3619.                 spin_ ## action(&group->lock); \
  3620.                 ^
  3621. <scratch space>:114:1: note: expanded from here
  3622. spin_lock
  3623. ^
  3624. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:109:1: warning: releasing mutex 'group->lock' that was not held [-Wthread-safety-analysis]
  3625. DEFINE_PCM_GROUP_LOCK(unlock, unlock);
  3626. ^
  3627. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:105:3: note: expanded from macro 'DEFINE_PCM_GROUP_LOCK'
  3628.                 spin_ ## action(&group->lock); \
  3629.                 ^
  3630. <scratch space>:117:1: note: expanded from here
  3631. spin_unlock
  3632. ^
  3633. /home/himanshu/clang-thread-safety-analysis/sound/core/pcm_native.c:1067:6: warning: releasing mutex 's1->self_group.lock' that was not held [-Wthread-safety-analysis]
  3634.                                         spin_unlock(&s1->self_group.lock);
  3635.                                         ^
  3636.   CC      fs/sysfs/dir.o
  3637.   CC      drivers/acpi/acpica/nseval.o
  3638.   CC      fs/sysfs/symlink.o
  3639.   CC      drivers/acpi/acpica/nsinit.o
  3640.   CC      drivers/acpi/acpica/nsload.o
  3641. 3 warnings generated.
  3642.   CC      fs/sysfs/mount.o
  3643.   CC      sound/core/pcm_lib.o
  3644.   CC      drivers/acpi/acpica/nsnames.o
  3645.   CC      drivers/acpi/acpica/nsobject.o
  3646.   CC      fs/sysfs/group.o
  3647.   CC      drivers/acpi/acpica/nsparse.o
  3648.   CC      drivers/ata/libata-scsi.o
  3649.   AR      fs/sysfs/built-in.a
  3650.   CC      fs/tracefs/inode.o
  3651.   CC      sound/core/pcm_misc.o
  3652.   CC      drivers/acpi/acpica/nspredef.o
  3653.   CC      sound/core/pcm_memory.o
  3654.   AR      fs/tracefs/built-in.a
  3655.   CC      fs/open.o
  3656.   CC      drivers/acpi/acpica/nsprepkg.o
  3657.   CC      drivers/acpi/acpica/nsrepair.o
  3658.   CC      sound/core/memalloc.o
  3659.   CC      drivers/ata/libata-eh.o
  3660.   CC      drivers/acpi/acpica/nsrepair2.o
  3661.   CC      sound/core/pcm_timer.o
  3662.   CC      fs/read_write.o
  3663.   CC      drivers/acpi/acpica/nssearch.o
  3664.   CC      drivers/acpi/acpica/nsutils.o
  3665.   CC      sound/core/sgbuf.o
  3666.   CC      drivers/acpi/acpica/nswalk.o
  3667.   CC      sound/core/seq_device.o
  3668.   CC      drivers/acpi/acpica/nsxfeval.o
  3669.   CC      fs/file_table.o
  3670.   AR      sound/core/built-in.a
  3671.   CC      drivers/ata/libata-transport.o
  3672.   AR      sound/drivers/mpu401/built-in.a
  3673.   AR      sound/drivers/opl3/built-in.a
  3674.   AR      sound/drivers/opl4/built-in.a
  3675.   AR      sound/drivers/pcsp/built-in.a
  3676.   AR      sound/drivers/vx/built-in.a
  3677.   AR      sound/drivers/built-in.a
  3678.   AR      sound/firewire/built-in.a
  3679.   CC      sound/hda/hda_bus_type.o
  3680.   CC      drivers/acpi/acpica/nsxfname.o
  3681.   CC      drivers/acpi/acpica/nsxfobj.o
  3682.   CC      fs/super.o
  3683.   CC      sound/hda/hdac_bus.o
  3684.   CC      drivers/ata/libata-trace.o
  3685.   CC      drivers/acpi/acpica/psargs.o
  3686.   CC      drivers/acpi/acpica/psloop.o
  3687.   CC      sound/hda/hdac_device.o
  3688.   CC      drivers/ata/libata-sff.o
  3689.   CC      fs/char_dev.o
  3690.   CC      drivers/acpi/acpica/psobject.o
  3691.   CC      drivers/acpi/acpica/psopcode.o
  3692.   CC      fs/stat.o
  3693.   CC      sound/hda/hdac_sysfs.o
  3694.   CC      drivers/ata/libata-pmp.o
  3695.   CC      drivers/acpi/acpica/psopinfo.o
  3696.   CC      drivers/acpi/acpica/psparse.o
  3697.   CC      sound/hda/hdac_regmap.o
  3698.   CC      fs/exec.o
  3699.   CC      drivers/acpi/acpica/psscope.o
  3700.   CC      drivers/ata/libata-acpi.o
  3701.   CC      sound/hda/hdac_controller.o
  3702.   CC      drivers/acpi/acpica/pstree.o
  3703.   CC      drivers/acpi/acpica/psutils.o
  3704.   CC      sound/hda/hdac_stream.o
  3705.   CC      drivers/ata/ahci.o
  3706.   CC      drivers/acpi/acpica/pswalk.o
  3707.   CC      fs/pipe.o
  3708.   CC      drivers/acpi/acpica/psxface.o
  3709.   CC      sound/hda/array.o
  3710.   CC      drivers/acpi/acpica/rsaddr.o
  3711.   CC      drivers/ata/libahci.o
  3712.   CC      drivers/acpi/acpica/rscalc.o
  3713.   CC      sound/hda/hdmi_chmap.o
  3714.   CC      fs/namei.o
  3715.   CC      drivers/acpi/acpica/rscreate.o
  3716.   CC      sound/hda/trace.o
  3717.   CC      drivers/acpi/acpica/rsdumpinfo.o
  3718.   CC      drivers/ata/ata_piix.o
  3719.   CC      drivers/acpi/acpica/rsinfo.o
  3720.   CC      sound/hda/hdac_component.o
  3721.   CC      drivers/acpi/acpica/rsio.o
  3722.   CC      drivers/ata/pata_amd.o
  3723.   CC      drivers/acpi/acpica/rsirq.o
  3724.   CC      fs/fcntl.o
  3725.   CC      drivers/acpi/acpica/rslist.o
  3726.   CC      sound/hda/hdac_i915.o
  3727.   CC      drivers/ata/pata_oldpiix.o
  3728.   CC      drivers/acpi/acpica/rsmemory.o
  3729.   AR      sound/hda/built-in.a
  3730.   AR      sound/i2c/other/built-in.a
  3731.   CC      drivers/acpi/acpica/rsmisc.o
  3732.   AR      sound/i2c/built-in.a
  3733.   AR      sound/isa/ad1816a/built-in.a
  3734.   AR      sound/isa/ad1848/built-in.a
  3735.   CC      fs/ioctl.o
  3736.   AR      sound/isa/cs423x/built-in.a
  3737.   AR      sound/isa/es1688/built-in.a
  3738.   AR      sound/isa/galaxy/built-in.a
  3739.   AR      sound/isa/gus/built-in.a
  3740.   AR      sound/isa/msnd/built-in.a
  3741.   AR      sound/isa/opti9xx/built-in.a
  3742.   AR      sound/isa/sb/built-in.a
  3743.   AR      sound/isa/wavefront/built-in.a
  3744.   AR      sound/isa/wss/built-in.a
  3745.   AR      sound/isa/built-in.a
  3746.   AR      sound/mips/built-in.a
  3747.   AR      sound/parisc/built-in.a
  3748.   AR      sound/pci/ac97/built-in.a
  3749.   AR      sound/pci/ali5451/built-in.a
  3750.   AR      sound/pci/asihpi/built-in.a
  3751.   AR      sound/pci/au88x0/built-in.a
  3752.   AR      sound/pci/aw2/built-in.a
  3753.   AR      sound/pci/ca0106/built-in.a
  3754.   AR      sound/pci/cs46xx/built-in.a
  3755.   AR      sound/pci/cs5535audio/built-in.a
  3756.   AR      sound/pci/ctxfi/built-in.a
  3757.   AR      sound/pci/echoaudio/built-in.a
  3758.   AR      sound/pci/emu10k1/built-in.a
  3759.   CC      sound/pci/hda/hda_bind.o
  3760.   CC      drivers/ata/pata_sch.o
  3761.   CC      drivers/acpi/acpica/rsserial.o
  3762.   CC      drivers/acpi/acpica/rsutils.o
  3763.   CC      fs/readdir.o
  3764.   CC      sound/pci/hda/hda_codec.o
  3765.   AR      drivers/ata/built-in.a
  3766.   AR      drivers/auxdisplay/built-in.a
  3767.   CC      arch/x86/video/fbdev.o
  3768.   CC      drivers/acpi/acpica/rsxface.o
  3769.   CC      drivers/acpi/acpica/tbdata.o
  3770.   CC      fs/select.o
  3771.   AR      arch/x86/video/built-in.a
  3772.   CC      net/802/fddi.o
  3773.   CC      drivers/acpi/acpica/tbfadt.o
  3774.   CC      drivers/acpi/acpica/tbfind.o
  3775.   CC      sound/pci/hda/hda_jack.o
  3776.   AR      net/802/built-in.a
  3777.   AR      net/bpf/built-in.a
  3778.   CC      net/core/sock.o
  3779.   CC      drivers/acpi/acpica/tbinstal.o
  3780.   CC      fs/dcache.o
  3781.   CC      drivers/acpi/acpica/tbprint.o
  3782.   CC      sound/pci/hda/hda_auto_parser.o
  3783.   CC      drivers/acpi/acpica/tbutils.o
  3784. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:369:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  3785.         spin_unlock(&inode->i_lock);
  3786.         ^
  3787. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:578:3: warning: releasing mutex 'parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3788.                 spin_unlock(&parent->d_lock);
  3789.                 ^
  3790. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:580:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3791.                 dentry_unlink_inode(dentry);
  3792.                 ^
  3793. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:582:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3794.                 spin_unlock(&dentry->d_lock);
  3795.                 ^
  3796. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:602:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3797.         spin_unlock(&dentry->d_lock);
  3798.         ^
  3799. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:624:1: warning: mutex 'parent->d_lockref...lock' is still held at the end of function [-Wthread-safety-analysis]
  3800. }
  3801. ^
  3802. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:605:2: note: mutex acquired here
  3803.         spin_lock(&parent->d_lock);
  3804.         ^
  3805. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:682:5: warning: releasing mutex 'parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3806.                                 spin_unlock(&parent->d_lock);
  3807.                                 ^
  3808. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:691:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3809.         spin_unlock(&dentry->d_lock);
  3810.         ^
  3811. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:696:6: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3812.         if (unlikely(dentry->d_lockref.count != 1)) {
  3813.             ^
  3814. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  3815. # define unlikely(x)    __builtin_expect(!!(x), 0)
  3816.                         ^
  3817. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:692:2: note: mutex acquired here
  3818.         spin_lock(&inode->i_lock);
  3819.         ^
  3820. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:696:6: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3821.         if (unlikely(dentry->d_lockref.count != 1)) {
  3822.             ^
  3823. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  3824. # define unlikely(x)    __builtin_expect(!!(x), 0)
  3825.                         ^
  3826. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:693:2: note: mutex acquired here
  3827.         spin_lock(&dentry->d_lock);
  3828.         ^
  3829. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:704:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  3830.                 spin_unlock(&inode->i_lock);
  3831.                 ^
  3832. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:706:3: warning: releasing mutex 'parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3833.                 spin_unlock(&parent->d_lock);
  3834.                 ^
  3835. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:707:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3836.         spin_unlock(&dentry->d_lock);
  3837.         ^
  3838. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:812:1: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3839. }
  3840. ^
  3841. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:792:2: note: mutex acquired here
  3842.         spin_lock(&dentry->d_lock);
  3843.         ^
  3844. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:812:1: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3845. }
  3846. ^
  3847. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:743:3: note: mutex acquired here
  3848.                 spin_lock(&dentry->d_lock);
  3849.                 ^
  3850. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:856:4: warning: releasing mutex '->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3851.                         spin_unlock(&dentry->d_lock);
  3852.                         ^
  3853. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1000:2: warning: expecting mutex '->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  3854.         spin_lock(&inode->i_lock);
  3855.         ^
  3856. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1000:2: note: mutex acquired here
  3857. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1000:2: warning: expecting mutex 'dentry->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  3858.         spin_lock(&inode->i_lock);
  3859.         ^
  3860. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1002:3: note: mutex acquired here
  3861.                 spin_lock(&dentry->d_lock);
  3862.                 ^
  3863. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1011:5: warning: releasing mutex 'parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3864.                                 spin_unlock(&parent->d_lock);
  3865.                                 ^
  3866. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1040:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3867.                 spin_unlock(&dentry->d_lock);
  3868.                 ^
  3869. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1050:11: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3870.         parent = dentry->d_parent;
  3871.                  ^
  3872. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1041:3: note: mutex acquired here
  3873.                 spin_lock(&inode->i_lock);
  3874.                 ^
  3875. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1050:11: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3876.         parent = dentry->d_parent;
  3877.                  ^
  3878. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1042:3: note: mutex acquired here
  3879.                 spin_lock(&dentry->d_lock);
  3880.                 ^
  3881. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1054:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3882.         spin_unlock(&dentry->d_lock);
  3883.         ^
  3884. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1066:6: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3885.         if (inode)
  3886.             ^
  3887. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1058:3: note: mutex acquired here
  3888.                 spin_lock(&dentry->d_lock);
  3889.                 ^
  3890. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1066:6: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3891.         if (inode)
  3892.             ^
  3893. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1041:3: note: mutex acquired here
  3894.                 spin_lock(&inode->i_lock);
  3895.                 ^
  3896. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1066:6: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3897.         if (inode)
  3898.             ^
  3899. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1042:3: note: mutex acquired here
  3900.                 spin_lock(&dentry->d_lock);
  3901.                 ^
  3902. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1066:6: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3903.         if (inode)
  3904.             ^
  3905. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1041:3: note: mutex acquired here
  3906.                 spin_lock(&inode->i_lock);
  3907.                 ^
  3908. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1066:6: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3909.         if (inode)
  3910.             ^
  3911. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1042:3: note: mutex acquired here
  3912.                 spin_lock(&dentry->d_lock);
  3913.                 ^
  3914. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1067:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  3915.                 spin_unlock(&inode->i_lock);
  3916.                 ^
  3917. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1069:1: warning: mutex 'parent->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3918. }
  3919. ^
  3920. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1055:2: note: mutex acquired here
  3921.         spin_lock(&parent->d_lock);
  3922.         ^
  3923. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1073:10: warning: expecting mutex 'dentry->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  3924.         while (!list_empty(list)) {
  3925.                 ^
  3926. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1077:3: note: mutex acquired here
  3927.                 spin_lock(&dentry->d_lock);
  3928.                 ^
  3929. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1088:4: warning: expecting mutex 'dentry->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  3930.                         continue;
  3931.                         ^
  3932. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1077:3: note: mutex acquired here
  3933.                 spin_lock(&dentry->d_lock);
  3934.                 ^
  3935. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1130:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3936.                 spin_unlock(&dentry->d_lock);
  3937.                 ^
  3938. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1136:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3939.                 spin_unlock(&dentry->d_lock);
  3940.                 ^
  3941. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1161:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3942.         spin_unlock(&dentry->d_lock);
  3943.         ^
  3944. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1204:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3945.         spin_unlock(&dentry->d_lock);
  3946.         ^
  3947. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1277:9: warning: expecting mutex 'this_parent->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  3948.         next = this_parent->d_subdirs.next;
  3949.                ^
  3950. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1263:2: note: mutex acquired here
  3951.         spin_lock(&this_parent->d_lock);
  3952.         ^
  3953. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1294:4: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3954.                         spin_unlock(&dentry->d_lock);
  3955.                         ^
  3956. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1300:4: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3957.                         spin_unlock(&dentry->d_lock);
  3958.                         ^
  3959. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1311:3: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3960.                 spin_unlock(&dentry->d_lock);
  3961.                 ^
  3962. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1322:3: warning: releasing mutex 'child->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3963.                 spin_unlock(&child->d_lock);
  3964.                 ^
  3965. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:1323:3: warning: acquiring mutex 'this_parent->d_lockref...lock' that is already held [-Wthread-safety-analysis]
  3966.                 spin_lock(&this_parent->d_lock);
  3967.                 ^
  3968. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2391:2: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3969.         fsnotify_nameremove(dentry, isdir);
  3970.         ^
  3971. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2378:2: note: mutex acquired here
  3972.         spin_lock(&inode->i_lock);
  3973.         ^
  3974. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2441:4: warning: expecting mutex 'dentry->d_lockref...lock' to be held at start of each loop [-Wthread-safety-analysis]
  3975.                         set_current_state(TASK_UNINTERRUPTIBLE);
  3976.                         ^
  3977. /home/himanshu/clang-thread-safety-analysis/include/linux/sched.h:190:15: note: expanded from macro 'set_current_state'
  3978.         smp_store_mb(current->state, (state_value))
  3979.                      ^
  3980. /home/himanshu/clang-thread-safety-analysis/arch/x86/include/asm/current.h:18:17: note: expanded from macro 'current'
  3981. #define current get_current()
  3982.                 ^
  3983. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2444:4: note: mutex acquired here
  3984.                         spin_lock(&dentry->d_lock);
  3985.                         ^
  3986. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2442:4: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  3987.                         spin_unlock(&dentry->d_lock);
  3988.                         ^
  3989. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2447:1: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  3990. }
  3991. ^
  3992. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2444:4: note: mutex acquired here
  3993.                         spin_lock(&dentry->d_lock);
  3994.                         ^
  3995. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2599:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  3996.                 spin_unlock(&inode->i_lock);
  3997.                 ^
  3998. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2617:2: warning: mutex '->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  3999.         __d_add(entry, inode);
  4000.         ^
  4001. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2615:3: note: mutex acquired here
  4002.                 spin_lock(&inode->i_lock);
  4003.                 ^
  4004. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2767:2: warning: mutex 'target->d_parent->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  4005.         spin_lock_nested(&dentry->d_lock, 2);
  4006.         ^
  4007. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:353:2: note: expanded from macro 'spin_lock_nested'
  4008.         raw_spin_lock_nested(spinlock_check(lock), subclass);   \
  4009.         ^
  4010. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:241:2: note: expanded from macro 'raw_spin_lock_nested'
  4011.         _raw_spin_lock(((void)(subclass), (lock)))
  4012.         ^
  4013. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2758:3: note: mutex acquired here
  4014.                 spin_lock(&target->d_parent->d_lock);
  4015.                 ^
  4016. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2767:2: warning: mutex 'old_parent->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  4017.         spin_lock_nested(&dentry->d_lock, 2);
  4018.         ^
  4019. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:353:2: note: expanded from macro 'spin_lock_nested'
  4020.         raw_spin_lock_nested(spinlock_check(lock), subclass);   \
  4021.         ^
  4022. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:241:2: note: expanded from macro 'raw_spin_lock_nested'
  4023.         _raw_spin_lock(((void)(subclass), (lock)))
  4024.         ^
  4025. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2762:3: note: mutex acquired here
  4026.                 spin_lock(&old_parent->d_lock);
  4027.                 ^
  4028. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2767:2: warning: mutex 'target->d_parent->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  4029.         spin_lock_nested(&dentry->d_lock, 2);
  4030.         ^
  4031. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:353:2: note: expanded from macro 'spin_lock_nested'
  4032.         raw_spin_lock_nested(spinlock_check(lock), subclass);   \
  4033.         ^
  4034. /home/himanshu/clang-thread-safety-analysis/include/linux/spinlock.h:241:2: note: expanded from macro 'raw_spin_lock_nested'
  4035.         _raw_spin_lock(((void)(subclass), (lock)))
  4036.         ^
  4037. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2755:3: note: mutex acquired here
  4038.                 spin_lock(&target->d_parent->d_lock);
  4039.                 ^
  4040. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2812:3: warning: releasing mutex 'dentry->d_parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4041.                 spin_unlock(&dentry->d_parent->d_lock);
  4042.                 ^
  4043. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2814:3: warning: releasing mutex 'old_parent->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4044.                 spin_unlock(&old_parent->d_lock);
  4045.                 ^
  4046. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2815:2: warning: releasing mutex 'target->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4047.         spin_unlock(&target->d_lock);
  4048.         ^
  4049. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2816:2: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4050.         spin_unlock(&dentry->d_lock);
  4051.         ^
  4052. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2981:2: warning: mutex '->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  4053.         __d_add(dentry, inode);
  4054.         ^
  4055. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:2946:2: note: mutex acquired here
  4056.         spin_lock(&inode->i_lock);
  4057.         ^
  4058. /home/himanshu/clang-thread-safety-analysis/fs/dcache.c:3061:2: warning: releasing mutex '->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4059.         spin_unlock(&dentry->d_lock);
  4060.         ^
  4061. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:522:7: warning: mutex 'sk->sk_lock.slock' is not held on every path through here [-Wthread-safety-analysis]
  4062.         if (!sock_owned_by_user(sk)) {
  4063.              ^
  4064. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:521:3: note: mutex acquired here
  4065.                 bh_lock_sock(sk);
  4066.                 ^
  4067. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1532:28: note: expanded from macro 'bh_lock_sock'
  4068. #define bh_lock_sock(__sk)      spin_lock(&((__sk)->sk_lock.slock))
  4069.                                 ^
  4070. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:532:3: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  4071.                 bh_unlock_sock(sk);
  4072.                 ^
  4073. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  4074. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  4075.                                 ^
  4076. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:537:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  4077.         bh_unlock_sock(sk);
  4078.         ^
  4079. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  4080. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  4081.                                 ^
  4082. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:1897:9: warning: mutex 'newsk->sk_lock.slock' is not held on every path through here [-Wthread-safety-analysis]
  4083.         return newsk;
  4084.                ^
  4085. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:1811:3: note: mutex acquired here
  4086.                 bh_lock_sock(newsk);
  4087.                 ^
  4088. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1532:28: note: expanded from macro 'bh_lock_sock'
  4089. #define bh_lock_sock(__sk)      spin_lock(&((__sk)->sk_lock.slock))
  4090.                                 ^
  4091. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:1906:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  4092.         bh_unlock_sock(sk);
  4093.         ^
  4094. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  4095. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  4096.                                 ^
  4097.   CC      drivers/acpi/acpica/tbxface.o
  4098. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:2921:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  4099.         spin_unlock(&sk->sk_lock.slock);
  4100.         ^
  4101. /home/himanshu/clang-thread-safety-analysis/net/core/sock.c:2975:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  4102.         spin_unlock(&sk->sk_lock.slock);
  4103.         ^
  4104.   CC      sound/pci/hda/hda_sysfs.o
  4105. 57 warnings generated.
  4106.   CC      drivers/acpi/acpica/tbxfload.o
  4107.   CC      fs/inode.o
  4108. 7 warnings generated.
  4109.   CC      drivers/acpi/acpica/tbxfroot.o
  4110.   CC      net/core/request_sock.o
  4111.   CC      sound/pci/hda/hda_controller.o
  4112.   CC      drivers/acpi/acpica/utaddress.o
  4113. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:741:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4114.                 spin_unlock(&inode->i_lock);
  4115.                 ^
  4116. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:749:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4117.                 spin_unlock(&inode->i_lock);
  4118.                 ^
  4119. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:755:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4120.                 spin_unlock(&inode->i_lock);
  4121.                 ^
  4122. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:756:3: warning: releasing mutex 'lru_lock' that was not held [-Wthread-safety-analysis]
  4123.                 spin_unlock(lru_lock);
  4124.                 ^
  4125. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:775:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4126.         spin_unlock(&inode->i_lock);
  4127.         ^
  4128. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:779:1: warning: mutex 'lru_lock' is not held on every path through here [-Wthread-safety-analysis]
  4129. }
  4130. ^
  4131. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:768:3: note: mutex acquired here
  4132.                 spin_lock(lru_lock);
  4133.                 ^
  4134. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:810:30: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4135.         hlist_for_each_entry(inode, head, i_hash) {
  4136.                                     ^
  4137. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:815:3: note: mutex acquired here
  4138.                 spin_lock(&inode->i_lock);
  4139.                 ^
  4140. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:841:30: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4141.         hlist_for_each_entry(inode, head, i_hash) {
  4142.                                     ^
  4143. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:846:3: note: mutex acquired here
  4144.                 spin_lock(&inode->i_lock);
  4145.                 ^
  4146. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1466:4: warning: mutex 'old->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  4147.                         break;
  4148.                         ^
  4149. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1461:4: note: mutex acquired here
  4150.                         spin_lock(&old->i_lock);
  4151.                         ^
  4152. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1477:4: warning: releasing mutex 'old->i_lock' that was not held [-Wthread-safety-analysis]
  4153.                         spin_unlock(&old->i_lock);
  4154.                         ^
  4155. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1482:3: warning: releasing mutex 'old->i_lock' that was not held [-Wthread-safety-analysis]
  4156.                 spin_unlock(&old->i_lock);
  4157.                 ^
  4158. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1542:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4159.                 spin_unlock(&inode->i_lock);
  4160.                 ^
  4161. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1548:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4162.                 spin_unlock(&inode->i_lock);
  4163.                 ^
  4164. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1555:2: warning: mutex 'inode->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  4165.         inode->i_state |= I_FREEING;
  4166.         ^
  4167. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1550:3: note: mutex acquired here
  4168.                 spin_lock(&inode->i_lock);
  4169.                 ^
  4170. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1558:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4171.         spin_unlock(&inode->i_lock);
  4172.         ^
  4173. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1581:4: warning: releasing mutex '->i_lock' that was not held [-Wthread-safety-analysis]
  4174.                         spin_unlock(&inode->i_lock);
  4175.                         ^
  4176. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1929:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4177.         spin_unlock(&inode->i_lock);
  4178.         ^
  4179. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1930:2: warning: releasing mutex 'inode_hash_lock' that was not held [-Wthread-safety-analysis]
  4180.         spin_unlock(&inode_hash_lock);
  4181.         ^
  4182. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1934:1: warning: mutex 'inode_hash_lock' is still held at the end of function [-Wthread-safety-analysis]
  4183. }
  4184. ^
  4185. /home/himanshu/clang-thread-safety-analysis/fs/inode.c:1933:2: note: mutex acquired here
  4186.         spin_lock(&inode_hash_lock);
  4187.         ^
  4188.   CC      drivers/acpi/acpica/utalloc.o
  4189. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_controller.c:1121:3: warning: releasing mutex 'bus->reg_lock' that was not held [-Wthread-safety-analysis]
  4190.                 spin_unlock(&bus->reg_lock);
  4191.                 ^
  4192. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_controller.c:1125:1: warning: mutex 'bus->reg_lock' is not held on every path through here [-Wthread-safety-analysis]
  4193. }
  4194. ^
  4195. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_controller.c:1123:3: note: mutex acquired here
  4196.                 spin_lock(&bus->reg_lock);
  4197.                 ^
  4198.   CC      net/core/skbuff.o
  4199.   CC      drivers/acpi/acpica/utascii.o
  4200. 19 warnings generated.
  4201. 2 warnings generated.
  4202.   CC      sound/pci/hda/hda_proc.o
  4203.   CC      fs/attr.o
  4204.   CC      drivers/acpi/acpica/utbuffer.o
  4205.   CC      fs/bad_inode.o
  4206.   CC      drivers/acpi/acpica/utcopy.o
  4207.   CC      sound/pci/hda/hda_hwdep.o
  4208.   CC      drivers/acpi/acpica/utexcep.o
  4209.   CC      fs/file.o
  4210.   CC      sound/pci/hda/hda_intel.o
  4211.   CC      drivers/acpi/acpica/utdebug.o
  4212. /home/himanshu/clang-thread-safety-analysis/fs/file.c:201:8: warning: expecting mutex 'files->file_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4213.         fdt = files_fdtable(files);
  4214.               ^
  4215. /home/himanshu/clang-thread-safety-analysis/include/linux/fdtable.h:77:2: note: expanded from macro 'files_fdtable'
  4216.         rcu_dereference_check_fdtable((files), (files)->fdt)
  4217.         ^
  4218. /home/himanshu/clang-thread-safety-analysis/include/linux/fdtable.h:74:2: note: expanded from macro 'rcu_dereference_check_fdtable'
  4219.         rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
  4220.         ^
  4221. /home/himanshu/clang-thread-safety-analysis/include/linux/rcupdate.h:452:2: note: expanded from macro 'rcu_dereference_check'
  4222.         __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
  4223.         ^
  4224. /home/himanshu/clang-thread-safety-analysis/include/linux/rcupdate.h:314:48: note: expanded from macro '__rcu_dereference_check'
  4225.         typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
  4226.                                                       ^
  4227. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:264:22: note: expanded from macro 'READ_ONCE'
  4228. #define READ_ONCE(x) __READ_ONCE(x, 1)
  4229.                      ^
  4230. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:256:42: note: expanded from macro '__READ_ONCE'
  4231.         union { typeof(x) __val; char __c[1]; } __u;                    \
  4232.                                                 ^
  4233. /home/himanshu/clang-thread-safety-analysis/fs/file.c:215:3: note: mutex acquired here
  4234.                 spin_lock(&files->file_lock);
  4235.                 ^
  4236. /home/himanshu/clang-thread-safety-analysis/fs/file.c:212:3: warning: releasing mutex 'files->file_lock' that was not held [-Wthread-safety-analysis]
  4237.                 spin_unlock(&files->file_lock);
  4238.                 ^
  4239. /home/himanshu/clang-thread-safety-analysis/fs/file.c:221:13: warning: calling function 'expand_fdtable' requires holding mutex 'files->file_lock' exclusively [-Wthread-safety-analysis]
  4240.         expanded = expand_fdtable(files, nr);
  4241.                    ^
  4242. /home/himanshu/clang-thread-safety-analysis/fs/file.c:875:2: warning: releasing mutex 'files->file_lock' that was not held [-Wthread-safety-analysis]
  4243.         spin_unlock(&files->file_lock);
  4244.         ^
  4245. /home/himanshu/clang-thread-safety-analysis/fs/file.c:883:2: warning: releasing mutex 'files->file_lock' that was not held [-Wthread-safety-analysis]
  4246.         spin_unlock(&files->file_lock);
  4247.         ^
  4248. /home/himanshu/clang-thread-safety-analysis/fs/file.c:907:1: warning: mutex 'files->file_lock' is not held on every path through here [-Wthread-safety-analysis]
  4249. }
  4250. ^
  4251. /home/himanshu/clang-thread-safety-analysis/fs/file.c:898:2: note: mutex acquired here
  4252.         spin_lock(&files->file_lock);
  4253.         ^
  4254. /home/himanshu/clang-thread-safety-analysis/fs/file.c:941:1: warning: mutex 'files->file_lock' is not held on every path through here [-Wthread-safety-analysis]
  4255. }
  4256. ^
  4257. /home/himanshu/clang-thread-safety-analysis/fs/file.c:924:2: note: mutex acquired here
  4258.         spin_lock(&files->file_lock);
  4259.         ^
  4260.   CC      drivers/acpi/acpica/utdecode.o
  4261. 7 warnings generated.
  4262.   CC      fs/filesystems.o
  4263. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_intel.c:744:23: warning: mutex 'bus->reg_lock' is not held on every path through here [-Wthread-safety-analysis]
  4264.                 list_for_each_entry(s, &bus->stream_list, list) {
  4265.                                     ^
  4266. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_intel.c:755:5: note: mutex acquired here
  4267.                                 spin_lock(&bus->reg_lock);
  4268.                                 ^
  4269. /home/himanshu/clang-thread-safety-analysis/sound/pci/hda/hda_intel.c:753:5: warning: releasing mutex 'bus->reg_lock' that was not held [-Wthread-safety-analysis]
  4270.                                 spin_unlock(&bus->reg_lock);
  4271.                                 ^
  4272.   CC      drivers/acpi/acpica/utdelete.o
  4273. 2 warnings generated.
  4274.   AR      sound/pci/hda/built-in.a
  4275.   CC      drivers/acpi/acpica/uterror.o
  4276.   AR      sound/pci/ice1712/built-in.a
  4277.   AR      sound/pci/korg1212/built-in.a
  4278.   AR      sound/pci/lola/built-in.a
  4279.   AR      sound/pci/lx6464es/built-in.a
  4280.   AR      sound/pci/mixart/built-in.a
  4281.   CC      net/core/datagram.o
  4282.   AR      sound/pci/nm256/built-in.a
  4283.   AR      sound/pci/oxygen/built-in.a
  4284.   AR      sound/pci/pcxhr/built-in.a
  4285.   AR      sound/pci/riptide/built-in.a
  4286.   AR      sound/pci/rme9652/built-in.a
  4287.   CC      fs/namespace.o
  4288.   AR      sound/pci/trident/built-in.a
  4289.   AR      sound/pci/vx222/built-in.a
  4290.   AR      sound/pci/ymfpci/built-in.a
  4291.   AR      sound/pci/built-in.a
  4292.   AR      sound/pcmcia/pdaudiocf/built-in.a
  4293.   AR      sound/pcmcia/vx/built-in.a
  4294.   AR      sound/pcmcia/built-in.a
  4295.   AR      sound/ppc/built-in.a
  4296.   AR      sound/sh/built-in.a
  4297.   AR      sound/soc/built-in.a
  4298.   AR      sound/sparc/built-in.a
  4299.   AR      sound/spi/built-in.a
  4300.   AR      sound/synth/emux/built-in.a
  4301.   AR      sound/synth/built-in.a
  4302.   AR      sound/usb/6fire/built-in.a
  4303.   AR      sound/usb/bcd2000/built-in.a
  4304.   AR      sound/usb/caiaq/built-in.a
  4305.   AR      sound/usb/hiface/built-in.a
  4306.   AR      sound/usb/misc/built-in.a
  4307.   AR      sound/usb/usx2y/built-in.a
  4308.   AR      sound/usb/built-in.a
  4309.   AR      sound/x86/built-in.a
  4310.   AR      sound/xen/built-in.a
  4311.   CC      drivers/acpi/acpica/uteval.o
  4312.   CC      sound/sound_core.o
  4313.   CC      drivers/acpi/acpica/utglobal.o
  4314.   CC      sound/last.o
  4315.   CC      drivers/acpi/acpica/uthex.o
  4316.   CC      net/core/stream.o
  4317.   AR      sound/built-in.a
  4318.   CC      lib/fonts/fonts.o
  4319.   CC      drivers/acpi/acpica/utids.o
  4320.   CC      lib/fonts/font_8x8.o
  4321.   CC      lib/fonts/font_8x16.o
  4322.   CC      fs/seq_file.o
  4323.   CC      drivers/acpi/acpica/utinit.o
  4324.   AR      lib/fonts/built-in.a
  4325.   CC      lib/lz4/lz4_decompress.o
  4326.   CC      net/core/scm.o
  4327.   CC      drivers/acpi/acpica/utlock.o
  4328.   CC      fs/xattr.o
  4329.   CC      drivers/acpi/acpica/utmath.o
  4330.   AR      lib/lz4/built-in.a
  4331.   CC      lib/lzo/lzo1x_compress.o
  4332.   CC      drivers/acpi/acpica/utmisc.o
  4333.   CC      lib/lzo/lzo1x_decompress_safe.o
  4334.   CC      net/core/gen_stats.o
  4335.   CC      drivers/acpi/acpica/utmutex.o
  4336.   CC      fs/libfs.o
  4337.   AR      lib/lzo/built-in.a
  4338.   CC      lib/math/div64.o
  4339.   CC      lib/math/gcd.o
  4340.   CC      lib/math/lcm.o
  4341.   CC      drivers/acpi/acpica/utnonansi.o
  4342.   CC      lib/math/int_pow.o
  4343.   CC      lib/math/int_sqrt.o
  4344.   CC      lib/math/reciprocal_div.o
  4345. /home/himanshu/clang-thread-safety-analysis/fs/libfs.c:322:4: warning: releasing mutex 'child->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4346.                         spin_unlock(&child->d_lock);
  4347.                         ^
  4348. /home/himanshu/clang-thread-safety-analysis/fs/libfs.c:325:3: warning: releasing mutex 'child->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4349.                 spin_unlock(&child->d_lock);
  4350.                 ^
  4351.   CC      net/core/gen_estimator.o
  4352.   CC      lib/math/rational.o
  4353.   CC      drivers/acpi/acpica/utobject.o
  4354.   AR      lib/math/built-in.a
  4355.   CC      lib/mpi/generic_mpih-lshift.o
  4356. 2 warnings generated.
  4357.   CC      fs/fs-writeback.o
  4358.   CC      drivers/acpi/acpica/utosi.o
  4359.   CC      lib/mpi/generic_mpih-mul1.o
  4360. /home/himanshu/clang-thread-safety-analysis/net/core/gen_estimator.c:73:2: warning: mutex 'e->stats_lock' is not held on every path through here [-Wthread-safety-analysis]
  4361.         __gnet_stats_copy_basic(e->running, b, e->cpu_bstats, e->bstats);
  4362.         ^
  4363. /home/himanshu/clang-thread-safety-analysis/net/core/gen_estimator.c:71:3: note: mutex acquired here
  4364.                 spin_lock(e->stats_lock);
  4365.                 ^
  4366. /home/himanshu/clang-thread-safety-analysis/net/core/gen_estimator.c:76:3: warning: releasing mutex 'e->stats_lock' that was not held [-Wthread-safety-analysis]
  4367.                 spin_unlock(e->stats_lock);
  4368.                 ^
  4369.   CC      drivers/acpi/acpica/utownerid.o
  4370. 2 warnings generated.
  4371.   CC      net/core/net_namespace.o
  4372.   CC      lib/mpi/generic_mpih-mul2.o
  4373.   CC      drivers/acpi/acpica/utpredef.o
  4374. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:936:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4375.         spin_unlock(&inode->i_lock);
  4376.         ^
  4377. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:939:1: warning: mutex 'wb->list_lock' is still held at the end of function [-Wthread-safety-analysis]
  4378. }
  4379. ^
  4380. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:937:2: note: mutex acquired here
  4381.         spin_lock(&wb->list_lock);
  4382.         ^
  4383. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:948:1: warning: mutex 'wb->list_lock' is still held at the end of function [-Wthread-safety-analysis]
  4384. }
  4385. ^
  4386. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:946:2: note: mutex acquired here
  4387.         spin_lock(&wb->list_lock);
  4388.         ^
  4389. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1030:2: warning: releasing mutex 'wb->list_lock' that was not held [-Wthread-safety-analysis]
  4390.         spin_unlock(&wb->list_lock);
  4391.         ^
  4392. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1234:9: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4393.         while (inode->i_state & I_SYNC) {
  4394.                ^
  4395. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1238:3: note: mutex acquired here
  4396.                 spin_lock(&inode->i_lock);
  4397.                 ^
  4398. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1235:3: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4399.                 spin_unlock(&inode->i_lock);
  4400.                 ^
  4401. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1266:2: warning: releasing mutex 'inode->i_lock' that was not held [-Wthread-safety-analysis]
  4402.         spin_unlock(&inode->i_lock);
  4403.         ^
  4404. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1480:2: warning: releasing mutex 'wb->list_lock' that was not held [-Wthread-safety-analysis]
  4405.         spin_unlock(&wb->list_lock);
  4406.         ^
  4407. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1594:3: warning: releasing mutex 'wb->list_lock' that was not held [-Wthread-safety-analysis]
  4408.                 spin_unlock(&wb->list_lock);
  4409.                 ^
  4410. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1606:4: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4411.                         continue;
  4412.                         ^
  4413. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1573:3: note: mutex acquired here
  4414.                 spin_lock(&inode->i_lock);
  4415.                 ^
  4416. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1606:4: warning: expecting mutex 'wb->list_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4417.                         continue;
  4418.                         ^
  4419. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1605:4: note: mutex acquired here
  4420.                         spin_lock(&wb->list_lock);
  4421.                         ^
  4422. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1651:4: warning: releasing mutex 'tmp_wb->list_lock' that was not held [-Wthread-safety-analysis]
  4423.                         spin_unlock(&tmp_wb->list_lock);
  4424.                         ^
  4425. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1659:7: warning: mutex 'wb->list_lock' is not held on every path through here [-Wthread-safety-analysis]
  4426.                 if (wrote) {
  4427.                     ^
  4428. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1652:4: note: mutex acquired here
  4429.                         spin_lock(&wb->list_lock);
  4430.                         ^
  4431. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1755:2: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4432.         for (;;) {
  4433.         ^
  4434. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1824:3: note: mutex acquired here
  4435.                 spin_lock(&inode->i_lock);
  4436.                 ^
  4437. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1811:4: warning: expecting mutex 'inode->i_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4438.                         continue;
  4439.                         ^
  4440. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:1824:3: note: mutex acquired here
  4441.                 spin_lock(&inode->i_lock);
  4442.                 ^
  4443. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2109:3: warning: mutex 'dentry->d_lockref...lock' is not held on every path through here [-Wthread-safety-analysis]
  4444.                 printk(KERN_DEBUG
  4445.                 ^
  4446. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2106:4: note: mutex acquired here
  4447.                         spin_lock(&dentry->d_lock);
  4448.                         ^
  4449. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2114:4: warning: releasing mutex 'dentry->d_lockref...lock' that was not held [-Wthread-safety-analysis]
  4450.                         spin_unlock(&dentry->d_lock);
  4451.                         ^
  4452. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2240:4: warning: releasing mutex 'wb->list_lock' that was not held [-Wthread-safety-analysis]
  4453.                         spin_unlock(&wb->list_lock);
  4454.                         ^
  4455. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2256:1: warning: mutex '->i_lock' is not held on every path through here [-Wthread-safety-analysis]
  4456. }
  4457. ^
  4458. /home/himanshu/clang-thread-safety-analysis/fs/fs-writeback.c:2182:2: note: mutex acquired here
  4459.         spin_lock(&inode->i_lock);
  4460.         ^
  4461.   CC      drivers/acpi/acpica/utresdecode.o
  4462.   CC      lib/mpi/generic_mpih-mul3.o
  4463.   CC      drivers/acpi/acpica/utresrc.o
  4464. 19 warnings generated.
  4465.   CC      lib/mpi/generic_mpih-rshift.o
  4466.   CC      fs/pnode.o
  4467.   CC      net/core/secure_seq.o
  4468.   CC      drivers/acpi/acpica/utstate.o
  4469.   CC      lib/mpi/generic_mpih-sub1.o
  4470.   CC      drivers/acpi/acpica/utstring.o
  4471.   CC      fs/splice.o
  4472.   CC      drivers/acpi/acpica/utstrsuppt.o
  4473.   CC      lib/mpi/generic_mpih-add1.o
  4474.   CC      net/core/flow_dissector.o
  4475.   CC      drivers/acpi/acpica/utstrtoul64.o
  4476.   CC      lib/mpi/mpicoder.o
  4477.   CC      drivers/acpi/acpica/utxface.o
  4478.   CC      fs/sync.o
  4479.   CC      drivers/acpi/acpica/utxfinit.o
  4480.   CC      lib/mpi/mpi-bit.o
  4481.   CC      drivers/acpi/acpica/utxferror.o
  4482.   CC      fs/utimes.o
  4483.   CC      lib/mpi/mpi-cmp.o
  4484.   CC      drivers/acpi/acpica/utxfmutex.o
  4485.   CC      net/core/sysctl_net_core.o
  4486.   AR      drivers/acpi/acpica/built-in.a
  4487.   CC      drivers/acpi/osl.o
  4488.   CC      fs/d_path.o
  4489.   CC      lib/mpi/mpih-cmp.o
  4490.   CC      lib/mpi/mpih-div.o
  4491.   CC      net/core/dev.o
  4492.   CC      fs/stack.o
  4493.   CC      drivers/acpi/utils.o
  4494.   CC      lib/mpi/mpih-mul.o
  4495.   CC      fs/fs_struct.o
  4496.   CC      drivers/acpi/reboot.o
  4497.   CC      fs/statfs.o
  4498.   CC      lib/mpi/mpi-pow.o
  4499. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:226:1: warning: mutex 'sd->input_pkt_queue.lock' is still held at the end of function [-Wthread-safety-analysis]
  4500. }
  4501. ^
  4502. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:224:2: note: mutex acquired here
  4503.         spin_lock(&sd->input_pkt_queue.lock);
  4504.         ^
  4505. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:231:2: warning: releasing mutex 'sd->input_pkt_queue.lock' that was not held [-Wthread-safety-analysis]
  4506.         spin_unlock(&sd->input_pkt_queue.lock);
  4507.         ^
  4508.   CC      drivers/acpi/nvs.o
  4509. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3514:2: warning: mutex 'q->busylock' is not held on every path through here [-Wthread-safety-analysis]
  4510.         spin_lock(root_lock);
  4511.         ^
  4512. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3512:3: note: mutex acquired here
  4513.                 spin_lock(&q->busylock);
  4514.                 ^
  4515. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3530:5: warning: releasing mutex 'q->busylock' that was not held [-Wthread-safety-analysis]
  4516.                                 spin_unlock(&q->busylock);
  4517.                                 ^
  4518. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3542:5: warning: releasing mutex 'q->busylock' that was not held [-Wthread-safety-analysis]
  4519.                                 spin_unlock(&q->busylock);
  4520.                                 ^
  4521. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3553:3: warning: releasing mutex 'q->busylock' that was not held [-Wthread-safety-analysis]
  4522.                 spin_unlock(&q->busylock);
  4523.                 ^
  4524. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3879:9: warning: mutex 'txq->_xmit_lock' is not held on every path through here [-Wthread-safety-analysis]
  4525.                         if (!netif_xmit_stopped(txq)) {
  4526.                              ^
  4527. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3877:4: note: mutex acquired here
  4528.                         HARD_TX_LOCK(dev, txq, cpu);
  4529.                         ^
  4530. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4009:3: note: expanded from macro 'HARD_TX_LOCK'
  4531.                 __netif_tx_lock(txq, cpu);              \
  4532.                 ^
  4533. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3884:6: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4534.                                         HARD_TX_UNLOCK(dev, txq);
  4535.                                         ^
  4536. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4537.                 __netif_tx_unlock(txq);                 \
  4538.                 ^
  4539. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3888:4: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4540.                         HARD_TX_UNLOCK(dev, txq);
  4541.                         ^
  4542. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4543.                 __netif_tx_unlock(txq);                 \
  4544.                 ^
  4545. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3946:7: warning: mutex 'txq->_xmit_lock' is not held on every path through here [-Wthread-safety-analysis]
  4546.         if (!netif_xmit_frozen_or_drv_stopped(txq))
  4547.              ^
  4548. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3945:2: note: mutex acquired here
  4549.         HARD_TX_LOCK(dev, txq, smp_processor_id());
  4550.         ^
  4551. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4009:3: note: expanded from macro 'HARD_TX_LOCK'
  4552.                 __netif_tx_lock(txq, cpu);              \
  4553.                 ^
  4554. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:3948:2: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4555.         HARD_TX_UNLOCK(dev, txq);
  4556.         ^
  4557. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4558.                 __netif_tx_unlock(txq);                 \
  4559.                 ^
  4560. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4452:7: warning: mutex 'txq->_xmit_lock' is not held on every path through here [-Wthread-safety-analysis]
  4561.         if (!netif_xmit_stopped(txq)) {
  4562.              ^
  4563. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4451:2: note: mutex acquired here
  4564.         HARD_TX_LOCK(dev, txq, cpu);
  4565.         ^
  4566. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4009:3: note: expanded from macro 'HARD_TX_LOCK'
  4567.                 __netif_tx_lock(txq, cpu);              \
  4568.                 ^
  4569. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4457:2: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4570.         HARD_TX_UNLOCK(dev, txq);
  4571.         ^
  4572. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4573.                 __netif_tx_unlock(txq);                 \
  4574.                 ^
  4575. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4648:4: warning: mutex 'root_lock' is not held on every path through here [-Wthread-safety-analysis]
  4576.                         smp_mb__before_atomic();
  4577.                         ^
  4578. /home/himanshu/clang-thread-safety-analysis/include/asm-generic/barrier.h:145:33: note: expanded from macro 'smp_mb__before_atomic'
  4579. #define smp_mb__before_atomic() __smp_mb__before_atomic()
  4580.                                 ^
  4581. /home/himanshu/clang-thread-safety-analysis/arch/x86/include/asm/barrier.h:83:35: note: expanded from macro '__smp_mb__before_atomic'
  4582. #define __smp_mb__before_atomic()       barrier()
  4583.                                         ^
  4584. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler-clang.h:44:19: note: expanded from macro 'barrier'
  4585. #define barrier() __asm__ __volatile__("" : : : "memory")
  4586.                   ^
  4587. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4643:5: note: mutex acquired here
  4588.                                 spin_lock(root_lock);
  4589.                                 ^
  4590. /home/himanshu/clang-thread-safety-analysis/net/core/dev.c:4652:5: warning: releasing mutex 'root_lock' that was not held [-Wthread-safety-analysis]
  4591.                                 spin_unlock(root_lock);
  4592.                                 ^
  4593.   CC      lib/mpi/mpiutil.o
  4594.   CC      fs/fs_pin.o
  4595.   CC      drivers/acpi/wakeup.o
  4596.   AR      lib/mpi/built-in.a
  4597.   CC      lib/xz/xz_dec_syms.o
  4598.   CC      fs/nsfs.o
  4599.   CC      drivers/acpi/sleep.o
  4600.   CC      lib/xz/xz_dec_stream.o
  4601.   CC      fs/fs_types.o
  4602.   CC      lib/xz/xz_dec_lzma2.o
  4603.   CC      fs/fs_context.o
  4604.   CC      drivers/acpi/device_sysfs.o
  4605.   CC      lib/xz/xz_dec_bcj.o
  4606.   AR      lib/xz/built-in.a
  4607.   CC      lib/zlib_deflate/deflate.o
  4608. 15 warnings generated.
  4609.   CC      fs/fs_parser.o
  4610.   CC      drivers/acpi/device_pm.o
  4611.   CC      net/core/ethtool.o
  4612.   CC      lib/zlib_deflate/deftree.o
  4613.   CC      fs/fsopen.o
  4614.   CC      drivers/acpi/proc.o
  4615.   CC      lib/zlib_deflate/deflate_syms.o
  4616.   CC      fs/buffer.o
  4617.   AR      lib/zlib_deflate/built-in.a
  4618.   CC      lib/zlib_inflate/inffast.o
  4619.   CC      lib/zlib_inflate/inflate.o
  4620.   CC      drivers/acpi/bus.o
  4621.   CC      net/core/dev_addr_lists.o
  4622.   CC      lib/zlib_inflate/infutil.o
  4623. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:648:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4624.         netif_addr_unlock(to);
  4625.         ^
  4626. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:678:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4627.         netif_addr_unlock(to);
  4628.         ^
  4629. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:701:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4630.         netif_addr_unlock(to);
  4631.         ^
  4632. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:869:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4633.         netif_addr_unlock(to);
  4634.         ^
  4635. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:899:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4636.         netif_addr_unlock(to);
  4637.         ^
  4638. /home/himanshu/clang-thread-safety-analysis/net/core/dev_addr_lists.c:922:2: warning: releasing mutex 'to->addr_list_lock' that was not held [-Wthread-safety-analysis]
  4639.         netif_addr_unlock(to);
  4640.         ^
  4641.   CC      lib/zlib_inflate/inftrees.o
  4642. 6 warnings generated.
  4643.   CC      drivers/acpi/glue.o
  4644.   CC      lib/zlib_inflate/inflate_syms.o
  4645.   CC      net/core/dst.o
  4646.   AR      lib/zlib_inflate/built-in.a
  4647.   CC      lib/lockref.o
  4648. /home/himanshu/clang-thread-safety-analysis/lib/lockref.c:133:1: warning: mutex '->..lock' is not held on every path through here [-Wthread-safety-analysis]
  4649. }
  4650. ^
  4651. /home/himanshu/clang-thread-safety-analysis/lib/lockref.c:127:2: note: mutex acquired here
  4652.         spin_lock(&lockref->lock);
  4653.         ^
  4654. /home/himanshu/clang-thread-safety-analysis/lib/lockref.c:177:1: warning: mutex '->..lock' is not held on every path through here [-Wthread-safety-analysis]
  4655. }
  4656. ^
  4657. /home/himanshu/clang-thread-safety-analysis/lib/lockref.c:171:2: note: mutex acquired here
  4658.         spin_lock(&lockref->lock);
  4659.         ^
  4660.   CC      fs/block_dev.o
  4661. 2 warnings generated.
  4662.   CC      lib/bcd.o
  4663.   CC      drivers/acpi/scan.o
  4664.   CC      lib/sort.o
  4665.   CC      lib/parser.o
  4666.   CC      net/core/netevent.o
  4667.   CC      lib/debug_locks.o
  4668. /home/himanshu/clang-thread-safety-analysis/fs/block_dev.c:1090:7: warning: expecting mutex 'bdev_lock' to be held at start of each loop [-Wthread-safety-analysis]
  4669.         if (!bd_may_claim(bdev, whole, holder))
  4670.              ^
  4671. /home/himanshu/clang-thread-safety-analysis/fs/block_dev.c:1102:3: note: mutex acquired here
  4672.                 spin_lock(&bdev_lock);
  4673.                 ^
  4674. /home/himanshu/clang-thread-safety-analysis/fs/block_dev.c:1099:3: warning: releasing mutex 'bdev_lock' that was not held [-Wthread-safety-analysis]
  4675.                 spin_unlock(&bdev_lock);
  4676.                 ^
  4677.   CC      lib/random32.o
  4678. 2 warnings generated.
  4679.   CC      fs/direct-io.o
  4680.   CC      drivers/acpi/resource.o
  4681.   CC      lib/bust_spinlocks.o
  4682.   CC      net/core/neighbour.o
  4683.   CC      drivers/acpi/acpi_processor.o
  4684.   CC      lib/kasprintf.o
  4685.   CC      fs/mpage.o
  4686.   CC      lib/bitmap.o
  4687.   CC      drivers/acpi/processor_core.o
  4688.   CC      lib/scatterlist.o
  4689.   CC      fs/proc_namespace.o
  4690.   CC      drivers/acpi/processor_pdc.o
  4691.   CC      drivers/acpi/ec.o
  4692.   CC      net/core/rtnetlink.o
  4693.   CC      fs/eventpoll.o
  4694.   CC      lib/list_sort.o
  4695.   CC      lib/uuid.o
  4696.   CC      lib/iov_iter.o
  4697.   CC      drivers/acpi/dock.o
  4698.   CC      drivers/acpi/pci_root.o
  4699.   CC      fs/anon_inodes.o
  4700.   CC      fs/signalfd.o
  4701.   CC      lib/clz_ctz.o
  4702.   CC      lib/bsearch.o
  4703.   CC      net/core/utils.o
  4704.   CC      drivers/acpi/pci_link.o
  4705.   CC      fs/timerfd.o
  4706.   CC      lib/find_bit.o
  4707.   CC      lib/llist.o
  4708.   CC      drivers/acpi/pci_irq.o
  4709.   CC      lib/memweight.o
  4710.   CC      lib/kfifo.o
  4711.   CC      net/core/link_watch.o
  4712.   CC      fs/eventfd.o
  4713.   CC      drivers/acpi/acpi_lpss.o
  4714.   CC      lib/percpu-refcount.o
  4715.   CC      net/core/filter.o
  4716.   CC      fs/aio.o
  4717.   CC      drivers/acpi/acpi_apd.o
  4718.   CC      lib/rhashtable.o
  4719.   CC      drivers/acpi/acpi_platform.o
  4720.   CC      lib/once.o
  4721.   CC      drivers/acpi/acpi_pnp.o
  4722.   CC      fs/io_uring.o
  4723.   CC      lib/refcount.o
  4724. /home/himanshu/clang-thread-safety-analysis/lib/refcount.c:357:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  4725. }
  4726. ^
  4727. /home/himanshu/clang-thread-safety-analysis/lib/refcount.c:350:2: note: mutex acquired here
  4728.         spin_lock(lock);
  4729.         ^
  4730. 1 warning generated.
  4731.   CC      lib/usercopy.o
  4732.   CC      drivers/acpi/power.o
  4733.   CC      lib/errseq.o
  4734.   CC      lib/bucket_locks.o
  4735.   CC      drivers/acpi/event.o
  4736.   CC      lib/generic-radix-tree.o
  4737.   CC      net/core/sock_diag.o
  4738.   CC      drivers/acpi/sysfs.o
  4739.   CC      fs/locks.o
  4740.   CC      drivers/acpi/property.o
  4741.   CC      lib/string_helpers.o
  4742.   CC      net/core/dev_ioctl.o
  4743. /home/himanshu/clang-thread-safety-analysis/fs/locks.c:2859:1: warning: mutex 'blocked_lock_lock' is still held at the end of function [-Wthread-safety-analysis]
  4744. }
  4745. ^
  4746. /home/himanshu/clang-thread-safety-analysis/fs/locks.c:2857:2: note: mutex acquired here
  4747.         spin_lock(&blocked_lock_lock);
  4748.         ^
  4749. /home/himanshu/clang-thread-safety-analysis/fs/locks.c:2872:2: warning: releasing mutex 'blocked_lock_lock' that was not held [-Wthread-safety-analysis]
  4750.         spin_unlock(&blocked_lock_lock);
  4751.         ^
  4752.   CC      drivers/acpi/acpi_cmos_rtc.o
  4753.   CC      lib/hexdump.o
  4754.   CC      lib/kstrtox.o
  4755.   CC      net/core/tso.o
  4756. 2 warnings generated.
  4757.   CC      drivers/acpi/x86/apple.o
  4758.   CC      fs/compat.o
  4759.   CC      lib/iomap.o
  4760.   CC      drivers/acpi/x86/utils.o
  4761.   CC      fs/compat_ioctl.o
  4762.   CC      net/core/sock_reuseport.o
  4763.   CC      lib/pci_iomap.o
  4764.   CC      drivers/acpi/debugfs.o
  4765.   CC      lib/iomap_copy.o
  4766.   CC      drivers/acpi/numa.o
  4767.   CC      lib/devres.o
  4768.   CC      net/core/fib_notifier.o
  4769.   CC      drivers/acpi/acpi_lpat.o
  4770.   CC      lib/check_signature.o
  4771.   CC      fs/binfmt_misc.o
  4772.   CC      lib/logic_pio.o
  4773.   CC      net/core/xdp.o
  4774.   CC      drivers/acpi/acpi_lpit.o
  4775.   CC      lib/interval_tree.o
  4776.   CC      drivers/acpi/ac.o
  4777.   CC      fs/binfmt_script.o
  4778.   CC      lib/assoc_array.o
  4779.   CC      net/core/flow_offload.o
  4780.   CC      fs/binfmt_elf.o
  4781.   CC      drivers/acpi/button.o
  4782.   CC      lib/bitrev.o
  4783.   CC      net/core/net-sysfs.o
  4784.   CC      lib/crc-ccitt.o
  4785.   CC      drivers/acpi/fan.o
  4786.   CC      lib/crc16.o
  4787.   CC      fs/compat_binfmt_elf.o
  4788.   HOSTCC  lib/gen_crc32table
  4789.   CC      drivers/acpi/acpi_video.o
  4790.   CC      lib/genalloc.o
  4791.   CC      net/core/net-procfs.o
  4792.   CC      lib/percpu_counter.o
  4793.   CC      fs/mbcache.o
  4794.   CC      drivers/acpi/video_detect.o
  4795.   CC      net/core/netpoll.o
  4796.   CC      lib/iommu-helper.o
  4797.   CC      lib/error-inject.o
  4798.   CC      fs/posix_acl.o
  4799.   CC      drivers/acpi/processor_driver.o
  4800.   CC      lib/syscall.o
  4801. /home/himanshu/clang-thread-safety-analysis/net/core/netpoll.c:124:7: warning: mutex 'txq->_xmit_lock' is not held on every path through here [-Wthread-safety-analysis]
  4802.                 if (netif_xmit_frozen_or_stopped(txq) ||
  4803.                     ^
  4804. /home/himanshu/clang-thread-safety-analysis/net/core/netpoll.c:123:3: note: mutex acquired here
  4805.                 HARD_TX_LOCK(dev, txq, smp_processor_id());
  4806.                 ^
  4807. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4009:3: note: expanded from macro 'HARD_TX_LOCK'
  4808.                 __netif_tx_lock(txq, cpu);              \
  4809.                 ^
  4810. /home/himanshu/clang-thread-safety-analysis/net/core/netpoll.c:127:4: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4811.                         HARD_TX_UNLOCK(dev, txq);
  4812.                         ^
  4813. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4814.                 __netif_tx_unlock(txq);                 \
  4815.                 ^
  4816. /home/himanshu/clang-thread-safety-analysis/net/core/netpoll.c:133:3: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4817.                 HARD_TX_UNLOCK(dev, txq);
  4818.                 ^
  4819. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4820.                 __netif_tx_unlock(txq);                 \
  4821.                 ^
  4822. /home/himanshu/clang-thread-safety-analysis/net/core/netpoll.c:336:5: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  4823.                                 HARD_TX_UNLOCK(dev, txq);
  4824.                                 ^
  4825. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  4826.                 __netif_tx_unlock(txq);                 \
  4827.                 ^
  4828.   CC      fs/coredump.o
  4829.   CC      drivers/acpi/processor_idle.o
  4830.   CC      lib/nlattr.o
  4831. 4 warnings generated.
  4832.   CC      net/core/fib_rules.o
  4833.   CC      drivers/acpi/processor_throttling.o
  4834.   CC      lib/cpu_rmap.o
  4835.   CC      fs/drop_caches.o
  4836.   CC      lib/dynamic_queue_limits.o
  4837.   CC      drivers/acpi/processor_thermal.o
  4838.   CC      net/core/net-traces.o
  4839.   CC      fs/fhandle.o
  4840.   CC      lib/glob.o
  4841.   CC      lib/strncpy_from_user.o
  4842.   CC      drivers/acpi/processor_perflib.o
  4843.   CC      lib/strnlen_user.o
  4844.   CC      fs/iomap.o
  4845.   CC      lib/net_utils.o
  4846.   CC      drivers/acpi/container.o
  4847.   CC      drivers/acpi/thermal.o
  4848.   CC      lib/sg_pool.o
  4849.   CC      fs/dcookies.o
  4850.   CC      net/core/ptp_classifier.o
  4851.   CC      lib/asn1_decoder.o
  4852.   CC      drivers/acpi/acpi_memhotplug.o
  4853.   GEN     lib/oid_registry_data.c
  4854.   AR      fs/built-in.a
  4855.   CC      lib/ucs2_string.o
  4856.   CC      drivers/acpi/ioapic.o
  4857.   CC      net/core/dst_cache.o
  4858.   CC      net/core/gro_cells.o
  4859.   CC      lib/sbitmap.o
  4860.   CC      drivers/acpi/battery.o
  4861.   CC      lib/argv_split.o
  4862.   CC      lib/bug.o
  4863.   AR      net/core/built-in.a
  4864.   CC      net/dns_resolver/dns_key.o
  4865.   CC      lib/chacha.o
  4866.   CC      drivers/acpi/bgrt.o
  4867.   CC      drivers/acpi/cppc_acpi.o
  4868.   CC      net/dns_resolver/dns_query.o
  4869.   CC      lib/clz_tab.o
  4870.   CC      drivers/acpi/spcr.o
  4871.   CC      lib/cmdline.o
  4872.   CC      lib/cpumask.o
  4873.   AR      net/dns_resolver/built-in.a
  4874.   CC      net/ethernet/eth.o
  4875.   CC      arch/x86/lib/msr-smp.o
  4876.   AR      drivers/acpi/built-in.a
  4877.   AR      drivers/base/firmware_loader/builtin/built-in.a
  4878.   CC      drivers/base/firmware_loader/main.o
  4879.   CC      arch/x86/lib/cache-smp.o
  4880.   CC      lib/ctype.o
  4881.   CC      lib/dec_and_lock.o
  4882.   CC      arch/x86/lib/msr.o
  4883. /home/himanshu/clang-thread-safety-analysis/lib/dec_and_lock.c:33:1: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  4884. }
  4885. ^
  4886. /home/himanshu/clang-thread-safety-analysis/lib/dec_and_lock.c:28:2: note: mutex acquired here
  4887.         spin_lock(lock);
  4888.         ^
  4889. 1 warning generated.
  4890.   CC      lib/decompress.o
  4891.   CC      lib/decompress_bunzip2.o
  4892. /home/himanshu/clang-thread-safety-analysis/drivers/base/firmware_loader/main.c:252:2: warning: releasing mutex 'fwc->lock' that was not held [-Wthread-safety-analysis]
  4893.         spin_unlock(&fwc->lock);
  4894.         ^
  4895. /home/himanshu/clang-thread-safety-analysis/drivers/base/firmware_loader/main.c:275:1: warning: mutex 'fwc->lock' is not held on every path through here [-Wthread-safety-analysis]
  4896. }
  4897. ^
  4898. /home/himanshu/clang-thread-safety-analysis/drivers/base/firmware_loader/main.c:272:2: note: mutex acquired here
  4899.         spin_lock(&fwc->lock);
  4900.         ^
  4901. 2 warnings generated.
  4902.   AR      net/ethernet/built-in.a
  4903.   CC      net/ipv4/netfilter/nf_defrag_ipv4.o
  4904.   AR      drivers/base/firmware_loader/built-in.a
  4905.   CC      drivers/base/power/sysfs.o
  4906.   AS      arch/x86/lib/msr-reg.o
  4907.   CC      lib/decompress_inflate.o
  4908.   CC      arch/x86/lib/msr-reg-export.o
  4909.   AS      arch/x86/lib/hweight.o
  4910.   CC      drivers/base/power/generic_ops.o
  4911.   CC      arch/x86/lib/iomem.o
  4912.   CC      lib/decompress_unlz4.o
  4913.   AS      arch/x86/lib/iomap_copy_64.o
  4914.   AS      arch/x86/lib/clear_page_64.o
  4915.   CC      arch/x86/lib/cmdline.o
  4916.   CC      drivers/base/power/common.o
  4917.   AS      arch/x86/lib/cmpxchg16b_emu.o
  4918.   AS      arch/x86/lib/copy_page_64.o
  4919.   CC      net/ipv4/netfilter/nf_reject_ipv4.o
  4920.   CC      lib/decompress_unlzma.o
  4921.   AS      arch/x86/lib/copy_user_64.o
  4922.   CC      arch/x86/lib/cpu.o
  4923.   AS      arch/x86/lib/csum-copy_64.o
  4924.   CC      arch/x86/lib/csum-partial_64.o
  4925.   CC      drivers/base/power/qos.o
  4926.   CC      arch/x86/lib/csum-wrappers_64.o
  4927.   CC      lib/decompress_unlzo.o
  4928.   CC      arch/x86/lib/delay.o
  4929.   CC      lib/decompress_unxz.o
  4930.   CC      net/ipv4/netfilter/ip_tables.o
  4931.   CC      drivers/base/power/runtime.o
  4932.   CC      arch/x86/lib/error-inject.o
  4933.   CC      lib/dump_stack.o
  4934. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:333:3: warning: releasing mutex 'dev->power.lock' that was not held [-Wthread-safety-analysis]
  4935.                 spin_unlock(&dev->power.lock);
  4936.                 ^
  4937. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:381:9: warning: mutex 'dev->power.lock' is not held on every path through here [-Wthread-safety-analysis]
  4938.         return retval;
  4939.                ^
  4940. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:358:3: note: mutex acquired here
  4941.                 spin_lock(&dev->power.lock);
  4942.                 ^
  4943. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:523:11: warning: expecting mutex 'dev->power.lock' to be held at start of each loop [-Wthread-safety-analysis]
  4944.         retval = rpm_check_suspend_allowed(dev);
  4945.                  ^
  4946. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:587:4: note: mutex acquired here
  4947.                         spin_lock(&dev->power.lock);
  4948.                         ^
  4949. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:583:4: warning: releasing mutex 'dev->power.lock' that was not held [-Wthread-safety-analysis]
  4950.                         spin_unlock(&dev->power.lock);
  4951.                         ^
  4952. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:650:3: warning: releasing mutex 'dev->power.lock' that was not held [-Wthread-safety-analysis]
  4953.                 spin_unlock(&dev->power.lock);
  4954.                 ^
  4955. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:660:2: warning: mutex 'dev->power.lock' is not held on every path through here [-Wthread-safety-analysis]
  4956.         trace_rpm_return_int_rcuidle(dev, _THIS_IP_, retval);
  4957.         ^
  4958. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:656:3: note: mutex acquired here
  4959.                 spin_lock(&dev->power.lock);
  4960.                 ^
  4961. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:715:6: warning: expecting mutex 'dev->power.lock' to be held at start of each loop [-Wthread-safety-analysis]
  4962.         if (dev->power.runtime_error)
  4963.             ^
  4964. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:834:3: note: mutex acquired here
  4965.                 spin_lock(&dev->power.lock);
  4966.                 ^
  4967. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:715:6: warning: expecting mutex 'dev->power.lock' to be held at start of each loop [-Wthread-safety-analysis]
  4968.         if (dev->power.runtime_error)
  4969.             ^
  4970. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:757:4: note: mutex acquired here
  4971.                         spin_lock(&dev->power.lock);
  4972.                         ^
  4973. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:753:4: warning: releasing mutex 'dev->power.lock' that was not held [-Wthread-safety-analysis]
  4974.                         spin_unlock(&dev->power.lock);
  4975.                         ^
  4976. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:790:4: warning: releasing mutex 'dev->parent->power.lock' that was not held [-Wthread-safety-analysis]
  4977.                         spin_unlock(&dev->parent->power.lock);
  4978.                         ^
  4979. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:794:3: warning: releasing mutex 'dev->parent->power.lock' that was not held [-Wthread-safety-analysis]
  4980.                 spin_unlock(&dev->parent->power.lock);
  4981.                 ^
  4982. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:817:3: warning: releasing mutex 'dev->power.lock' that was not held [-Wthread-safety-analysis]
  4983.                 spin_unlock(&dev->power.lock);
  4984.                 ^
  4985. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:867:6: warning: mutex 'dev->power.lock' is not held on every path through here [-Wthread-safety-analysis]
  4986.         if (parent && !dev->power.irq_safe) {
  4987.             ^
  4988. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:834:3: note: mutex acquired here
  4989.                 spin_lock(&dev->power.lock);
  4990.                 ^
  4991. /home/himanshu/clang-thread-safety-analysis/drivers/base/power/runtime.c:1199:3: warning: releasing mutex 'parent->power.lock' that was not held [-Wthread-safety-analysis]
  4992.                 spin_unlock(&parent->power.lock);
  4993.                 ^
  4994.   AS      arch/x86/lib/getuser.o
  4995.   GEN     arch/x86/lib/inat-tables.c
  4996.   CC      arch/x86/lib/insn-eval.o
  4997.   CC      lib/earlycpio.o
  4998. 14 warnings generated.
  4999.   CC      drivers/base/power/wakeirq.o
  5000.   CC      lib/extable.o
  5001.   CC      drivers/base/power/main.o
  5002.   CC      arch/x86/lib/insn.o
  5003.   CC      lib/flex_proportions.o
  5004.   CC      net/ipv4/netfilter/iptable_filter.o
  5005.   CC      arch/x86/lib/kaslr.o
  5006.   CC      lib/idr.o
  5007.   AS      arch/x86/lib/memcpy_64.o
  5008.   AS      arch/x86/lib/memmove_64.o
  5009.   AS      arch/x86/lib/memset_64.o
  5010.   CC      arch/x86/lib/misc.o
  5011.   AS      arch/x86/lib/putuser.o
  5012.   AS      arch/x86/lib/retpoline.o
  5013.   CC      lib/ioremap.o
  5014.   CC      arch/x86/lib/usercopy.o
  5015.   CC      net/ipv4/netfilter/iptable_mangle.o
  5016.   CC      arch/x86/lib/usercopy_64.o
  5017.   CC      lib/irq_regs.o
  5018.   CC      drivers/base/power/wakeup.o
  5019.   CC      lib/is_single_threaded.o
  5020.   CC      arch/x86/lib/inat.o
  5021.   CC      lib/klist.o
  5022.   CC      net/ipv4/netfilter/ipt_REJECT.o
  5023.   AR      arch/x86/lib/lib.a
  5024.   EXPORTS arch/x86/lib/lib-ksyms.o
  5025.   AR      arch/x86/lib/built-in.a
  5026.   AR      virt/lib/built-in.a
  5027.   AR      virt/built-in.a
  5028.   CC      net/ipv4/route.o
  5029.   CC      lib/kobject.o
  5030.   CC      drivers/base/power/trace.o
  5031.   CC      lib/kobject_uevent.o
  5032.   CC [M]  net/ipv4/netfilter/nf_log_arp.o
  5033.   CC      drivers/base/power/clock_ops.o
  5034.   AR      drivers/base/power/built-in.a
  5035.   CC      drivers/base/regmap/regmap.o
  5036.   CC [M]  net/ipv4/netfilter/nf_log_ipv4.o
  5037.   CC      lib/memcat_p.o
  5038.   CC      lib/nmi_backtrace.o
  5039.   CC      lib/nodemask.o
  5040.   CC      lib/plist.o
  5041.   CC      lib/radix-tree.o
  5042.   CC [M]  net/ipv4/netfilter/iptable_nat.o
  5043.   CC      lib/ratelimit.o
  5044.   CC      lib/rbtree.o
  5045.   CC      drivers/base/regmap/regcache.o
  5046.   CC      lib/seq_buf.o
  5047.   CC      lib/sha1.o
  5048.   AR      net/ipv4/netfilter/built-in.a
  5049.   CC      net/ipv4/inetpeer.o
  5050.   CC      lib/show_mem.o
  5051.   CC      lib/siphash.o
  5052.   CC      drivers/base/regmap/regcache-rbtree.o
  5053.   CC      lib/string.o
  5054.   CC      lib/timerqueue.o
  5055.   CC      drivers/base/regmap/regcache-flat.o
  5056.   CC      net/ipv4/protocol.o
  5057.   CC      lib/vsprintf.o
  5058.   CC      lib/win_minmax.o
  5059.   CC      drivers/base/regmap/regmap-debugfs.o
  5060.   CC      lib/xarray.o
  5061. /home/himanshu/clang-thread-safety-analysis/lib/xarray.c:52:3: warning: releasing mutex 'xas->xa->xa_lock' that was not held [-Wthread-safety-analysis]
  5062.                 xas_unlock(xas);
  5063.                 ^
  5064. /home/himanshu/clang-thread-safety-analysis/include/linux/xarray.h:1333:26: note: expanded from macro 'xas_unlock'
  5065. #define xas_unlock(xas)         xa_unlock((xas)->xa)
  5066.                                 ^
  5067. /home/himanshu/clang-thread-safety-analysis/include/linux/xarray.h:501:24: note: expanded from macro 'xa_unlock'
  5068. #define xa_unlock(xa)           spin_unlock(&(xa)->xa_lock)
  5069.                                 ^
  5070.   CC      net/ipv4/ip_input.o
  5071.   CC      drivers/base/regmap/regmap-i2c.o
  5072. 1 warning generated.
  5073.   GEN     lib/crc32table.h
  5074.   CC      lib/oid_registry.o
  5075.   AR      drivers/base/regmap/built-in.a
  5076.   AR      drivers/base/test/built-in.a
  5077.   CC      drivers/base/component.o
  5078.   CC      lib/crc32.o
  5079.   AR      lib/lib.a
  5080.   EXPORTS lib/lib-ksyms.o
  5081.   CC      net/ipv4/ip_fragment.o
  5082.   CC      drivers/base/core.o
  5083.   CC      net/ipv4/ip_forward.o
  5084.   AR      lib/built-in.a
  5085.   CC      net/ipv4/ip_options.o
  5086.   CC      net/ipv4/ip_output.o
  5087.   CC      net/ipv4/ip_sockglue.o
  5088.   CC      net/ipv4/inet_hashtables.o
  5089.   CC      drivers/base/bus.o
  5090.   CC      drivers/base/dd.o
  5091. /home/himanshu/clang-thread-safety-analysis/net/ipv4/inet_hashtables.c:650:3: warning: releasing mutex 'head->lock' that was not held [-Wthread-safety-analysis]
  5092.                 spin_unlock(&head->lock);
  5093.                 ^
  5094. /home/himanshu/clang-thread-safety-analysis/net/ipv4/inet_hashtables.c:729:2: warning: releasing mutex 'head->lock' that was not held [-Wthread-safety-analysis]
  5095.         spin_unlock(&head->lock);
  5096.         ^
  5097.   CC      net/ipv4/inet_timewait_sock.o
  5098. 2 warnings generated.
  5099.   CC      net/ipv4/inet_connection_sock.o
  5100.   CC      net/ipv4/tcp.o
  5101.   CC      drivers/base/syscore.o
  5102.   CC      net/ipv4/tcp_input.o
  5103. /home/himanshu/clang-thread-safety-analysis/net/ipv4/inet_connection_sock.c:866:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5104.         bh_unlock_sock(sk);
  5105.         ^
  5106. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5107. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5108.                                 ^
  5109. /home/himanshu/clang-thread-safety-analysis/net/ipv4/inet_connection_sock.c:967:2: warning: releasing mutex 'child->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5110.         bh_unlock_sock(child);
  5111.         ^
  5112. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5113. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5114.                                 ^
  5115.   CC      drivers/base/driver.o
  5116. 2 warnings generated.
  5117.   CC      net/ipv4/tcp_output.o
  5118.   CC      drivers/base/class.o
  5119.   CC      drivers/base/platform.o
  5120. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_input.c:6562:4: warning: releasing mutex 'fastopen_sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5121.                         bh_unlock_sock(fastopen_sk);
  5122.                         ^
  5123. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5124. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5125.                                 ^
  5126. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_input.c:6567:3: warning: releasing mutex 'fastopen_sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5127.                 bh_unlock_sock(fastopen_sk);
  5128.                 ^
  5129. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5130. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5131.                                 ^
  5132.   CC      net/ipv4/tcp_timer.o
  5133.   CC      drivers/base/cpu.o
  5134.   CC      net/ipv4/tcp_ipv4.o
  5135.   CC      net/ipv4/tcp_minisocks.o
  5136.   CC      drivers/base/firmware.o
  5137. 2 warnings generated.
  5138.   CC      net/ipv4/tcp_cong.o
  5139.   CC      drivers/base/init.o
  5140.   CC      drivers/base/map.o
  5141. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:1648:3: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5142.                 bh_unlock_sock(sk);
  5143.                 ^
  5144. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5145. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5146.                                 ^
  5147. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:1737:3: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5148.                 bh_unlock_sock(sk);
  5149.                 ^
  5150. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5151. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5152.                                 ^
  5153. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:1928:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5154.         bh_unlock_sock(sk);
  5155.         ^
  5156. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5157. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5158.                                 ^
  5159. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:2151:2: warning: releasing mutex 'ilb->lock' that was not held [-Wthread-safety-analysis]
  5160.         spin_unlock(&ilb->lock);
  5161.         ^
  5162. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:2156:1: warning: mutex 'ilb->lock' is not held on every path through here [-Wthread-safety-analysis]
  5163. }
  5164. ^
  5165. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:2134:3: note: mutex acquired here
  5166.                 spin_lock(&ilb->lock);
  5167.                 ^
  5168. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_ipv4.c:2364:4: warning: releasing mutex 'tcp_hashinfo.listening_hash[st->bucket].lock' that was not held [-Wthread-safety-analysis]
  5169.                         spin_unlock(&tcp_hashinfo.listening_hash[st->bucket].lock);
  5170.                         ^
  5171. /home/himanshu/clang-thread-safety-analysis/net/ipv4/tcp_minisocks.c:834:2: warning: releasing mutex 'child->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5172.         bh_unlock_sock(child);
  5173.         ^
  5174. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5175. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5176.                                 ^
  5177.   CC      drivers/base/devres.o
  5178. 1 warning generated.
  5179.   CC      net/ipv4/tcp_metrics.o
  5180.   CC      net/ipv4/tcp_fastopen.o
  5181. 6 warnings generated.
  5182.   CC      net/ipv4/tcp_rate.o
  5183.   CC      drivers/base/attribute_container.o
  5184.   CC      drivers/base/transport_class.o
  5185.   CC      net/ipv4/tcp_recovery.o
  5186.   CC      drivers/base/topology.o
  5187.   CC      net/ipv4/tcp_ulp.o
  5188.   CC      net/ipv4/tcp_offload.o
  5189.   CC      drivers/base/container.o
  5190.   CC      drivers/base/property.o
  5191.   CC      net/ipv4/datagram.o
  5192.   CC      net/ipv4/raw.o
  5193.   CC      net/ipv4/udp.o
  5194.   CC      net/ipv4/udplite.o
  5195.   CC      drivers/base/cacheinfo.o
  5196. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1365:2: warning: mutex 'sk_queue->lock' is not held on every path through here [-Wthread-safety-analysis]
  5197.         sk->sk_forward_alloc += size;
  5198.         ^
  5199. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1362:3: note: mutex acquired here
  5200.                 spin_lock(&sk_queue->lock);
  5201.                 ^
  5202. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1378:3: warning: releasing mutex 'sk_queue->lock' that was not held [-Wthread-safety-analysis]
  5203.                 spin_unlock(&sk_queue->lock);
  5204.                 ^
  5205. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1417:1: warning: mutex 'busy' is still held at the end of function [-Wthread-safety-analysis]
  5206. }
  5207. ^
  5208. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1415:2: note: mutex acquired here
  5209.         spin_lock(busy);
  5210.         ^
  5211. /home/himanshu/clang-thread-safety-analysis/net/ipv4/udp.c:1422:3: warning: releasing mutex 'busy' that was not held [-Wthread-safety-analysis]
  5212.                 spin_unlock(busy);
  5213.                 ^
  5214.   CC      net/ipv4/udp_offload.o
  5215.   CC      drivers/base/devcon.o
  5216.   CC      net/ipv4/arp.o
  5217.   CC      drivers/base/swnode.o
  5218. 4 warnings generated.
  5219.   CC      net/ipv4/icmp.o
  5220.   CC      net/ipv4/devinet.o
  5221.   CC      drivers/base/devtmpfs.o
  5222.   CC      net/ipv4/af_inet.o
  5223. /home/himanshu/clang-thread-safety-analysis/net/ipv4/icmp.c:230:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5224.         spin_unlock(&sk->sk_lock.slock);
  5225.         ^
  5226.   CC      drivers/base/node.o
  5227. 1 warning generated.
  5228.   CC      net/ipv4/igmp.o
  5229.   CC      net/ipv4/fib_frontend.o
  5230.   CC      drivers/base/module.o
  5231.   CC      drivers/base/platform-msi.o
  5232.   CC      net/ipv4/fib_semantics.o
  5233.   AR      drivers/base/built-in.a
  5234.   CC      drivers/block/loop.o
  5235.   CC      net/ipv4/fib_trie.o
  5236.   CC      net/ipv6/netfilter/ip6_tables.o
  5237.   CC      net/ipv4/fib_notifier.o
  5238.   AR      drivers/block/built-in.a
  5239.   AR      drivers/bus/built-in.a
  5240.   CC      drivers/cdrom/cdrom.o
  5241.   CC      net/ipv6/netfilter/ip6table_filter.o
  5242.   CC      net/ipv4/inet_fragment.o
  5243.   CC      net/ipv4/ping.o
  5244.   AR      drivers/cdrom/built-in.a
  5245.   CC      drivers/char/agp/backend.o
  5246.   CC      net/ipv6/netfilter/ip6table_mangle.o
  5247.   CC      net/ipv6/netfilter/nf_defrag_ipv6_hooks.o
  5248.   CC      net/ipv4/ip_tunnel_core.o
  5249.   CC      drivers/char/agp/frontend.o
  5250.   CC      net/ipv6/netfilter/nf_conntrack_reasm.o
  5251.   CC      drivers/char/agp/generic.o
  5252.   CC      net/ipv6/netfilter/nf_reject_ipv6.o
  5253.   CC      net/ipv4/gre_offload.o
  5254.   CC      net/ipv6/netfilter/ip6t_ipv6header.o
  5255.   CC      drivers/char/agp/isoch.o
  5256.   CC      net/ipv6/netfilter/ip6t_REJECT.o
  5257.   CC      net/ipv4/metrics.o
  5258.   CC      drivers/char/agp/compat_ioctl.o
  5259.   CC [M]  net/ipv6/netfilter/nf_log_ipv6.o
  5260.   CC      drivers/char/agp/amd64-agp.o
  5261.   CC      net/ipv4/netlink.o
  5262.   CC      drivers/char/agp/intel-agp.o
  5263.   CC      drivers/char/agp/intel-gtt.o
  5264.   AR      net/ipv6/netfilter/built-in.a
  5265.   CC      net/ipv6/af_inet6.o
  5266.   CC      drivers/char/hw_random/core.o
  5267.   CC      net/ipv4/ip_tunnel.o
  5268.   AR      drivers/char/agp/built-in.a
  5269.   AR      drivers/char/pcmcia/built-in.a
  5270.   CC      drivers/char/mem.o
  5271.   CC      drivers/char/hw_random/via-rng.o
  5272.   CC      net/ipv6/anycast.o
  5273.   AR      drivers/char/hw_random/built-in.a
  5274.   CC      drivers/char/random.o
  5275.   CC      drivers/char/misc.o
  5276.   CC      net/ipv4/sysctl_net_ipv4.o
  5277.   CC      drivers/char/hpet.o
  5278. /home/himanshu/clang-thread-safety-analysis/drivers/char/random.c:1365:2: warning: releasing mutex 'r->lock' that was not held [-Wthread-safety-analysis]
  5279.         spin_unlock(&r->lock);
  5280.         ^
  5281. /home/himanshu/clang-thread-safety-analysis/drivers/char/random.c:2376:2: warning: expecting mutex 'batched_entropy->batch_lock' to be held at start of each loop [-Wthread-safety-analysis]
  5282.         for_each_possible_cpu (cpu) {
  5283.         ^
  5284. /home/himanshu/clang-thread-safety-analysis/include/linux/cpumask.h:776:36: note: expanded from macro 'for_each_possible_cpu'
  5285. #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
  5286.                                    ^
  5287. /home/himanshu/clang-thread-safety-analysis/include/linux/cpumask.h:242:11: note: expanded from macro 'for_each_cpu'
  5288.                 (cpu) = cpumask_next((cpu), (mask)),    \
  5289.                         ^
  5290. /home/himanshu/clang-thread-safety-analysis/drivers/char/random.c:2385:3: note: mutex acquired here
  5291.                 spin_lock(&batched_entropy->batch_lock);
  5292.                 ^
  5293. /home/himanshu/clang-thread-safety-analysis/drivers/char/random.c:2382:3: warning: releasing mutex 'batched_entropy->batch_lock' that was not held [-Wthread-safety-analysis]
  5294.                 spin_unlock(&batched_entropy->batch_lock);
  5295.                 ^
  5296.   CC      net/ipv6/ip6_output.o
  5297.   CC      net/ipv4/proc.o
  5298. 3 warnings generated.
  5299.   CC      drivers/char/nvram.o
  5300.   CC      net/ipv4/fib_rules.o
  5301.   AR      drivers/char/built-in.a
  5302.   AR      drivers/char/ipmi/built-in.a
  5303.   AR      drivers/clk/actions/built-in.a
  5304.   AR      drivers/clk/analogbits/built-in.a
  5305.   AR      drivers/clk/bcm/built-in.a
  5306.   AR      drivers/clk/imgtec/built-in.a
  5307.   AR      drivers/clk/imx/built-in.a
  5308.   AR      drivers/clk/ingenic/built-in.a
  5309.   AR      drivers/clk/mediatek/built-in.a
  5310.   AR      drivers/clk/mvebu/built-in.a
  5311.   AR      drivers/clk/renesas/built-in.a
  5312.   AR      drivers/clk/ti/built-in.a
  5313.   CC      drivers/clk/x86/clk-pmc-atom.o
  5314.   CC      net/mac80211/main.o
  5315.   CC      net/ipv4/ipmr.o
  5316.   CC      net/ipv6/ip6_input.o
  5317.   AR      drivers/clk/x86/built-in.a
  5318.   CC      drivers/clk/clk-devres.o
  5319.   CC      drivers/clk/clk-bulk.o
  5320. /home/himanshu/clang-thread-safety-analysis/net/ipv4/ipmr.c:810:2: warning: releasing mutex 'mfc_unres_lock' that was not held [-Wthread-safety-analysis]
  5321.         spin_unlock(&mfc_unres_lock);
  5322.         ^
  5323.   CC      drivers/clk/clkdev.o
  5324.   CC      net/ipv6/addrconf.o
  5325. 1 warning generated.
  5326.   CC      net/ipv4/ipmr_base.o
  5327.   CC      drivers/clk/clk.o
  5328.   CC      net/mac80211/status.o
  5329.   CC      net/ipv4/syncookies.o
  5330. /home/himanshu/clang-thread-safety-analysis/net/ipv4/syncookies.c:222:3: warning: releasing mutex 'child->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5331.                 bh_unlock_sock(child);
  5332.                 ^
  5333. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5334. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5335.                                 ^
  5336.   CC      drivers/clk/clk-divider.o
  5337. 1 warning generated.
  5338.   CC      net/ipv4/tunnel4.o
  5339.   CC      net/ipv6/addrlabel.o
  5340.   CC      net/mac80211/driver-ops.o
  5341.   CC      drivers/clk/clk-fixed-factor.o
  5342.   CC      drivers/clk/clk-fixed-rate.o
  5343.   CC      net/ipv4/ipconfig.o
  5344.   CC      net/ipv6/route.o
  5345.   CC      drivers/clk/clk-gate.o
  5346.   CC      drivers/clk/clk-multiplier.o
  5347.   CC      drivers/clk/clk-mux.o
  5348.   CC      net/mac80211/sta_info.o
  5349.   CC      net/ipv4/netfilter.o
  5350.   CC      drivers/clk/clk-composite.o
  5351.   CC      drivers/clk/clk-fractional-divider.o
  5352.   CC      net/ipv4/tcp_cubic.o
  5353.   CC      drivers/clk/clk-gpio.o
  5354.   CC      net/ipv6/ip6_fib.o
  5355.   AR      drivers/clk/built-in.a
  5356.   CC      drivers/clocksource/acpi_pm.o
  5357.   CC      net/ipv4/cipso_ipv4.o
  5358.   CC      drivers/clocksource/i8253.o
  5359.   CC      net/mac80211/wep.o
  5360.   AR      drivers/clocksource/built-in.a
  5361.   CC      drivers/connector/cn_queue.o
  5362.   CC      net/ipv6/ipv6_sockglue.o
  5363.   CC      net/ipv4/xfrm4_policy.o
  5364.   CC      drivers/connector/connector.o
  5365.   CC      net/mac80211/aead_api.o
  5366.   CC      net/mac80211/wpa.o
  5367.   CC      net/ipv6/ndisc.o
  5368.   CC      net/ipv4/xfrm4_state.o
  5369.   CC      drivers/connector/cn_proc.o
  5370.   CC      net/ipv4/xfrm4_input.o
  5371.   AR      drivers/connector/built-in.a
  5372.   CC      drivers/cpufreq/cpufreq.o
  5373.   CC      net/mac80211/scan.o
  5374.   CC      net/ipv6/udp.o
  5375.   CC      net/ipv4/xfrm4_output.o
  5376.   CC      drivers/cpufreq/freq_table.o
  5377.   CC      drivers/cpufreq/cpufreq_performance.o
  5378.   CC      net/ipv4/xfrm4_protocol.o
  5379.   CC      net/ipv6/udplite.o
  5380.   CC      drivers/cpufreq/cpufreq_userspace.o
  5381.   CC      net/mac80211/offchannel.o
  5382.   CC      drivers/cpufreq/cpufreq_ondemand.o
  5383.   AR      net/ipv4/built-in.a
  5384.   CC      drivers/cpufreq/cpufreq_governor.o
  5385.   CC      net/ipv6/raw.o
  5386.   CC      drivers/cpufreq/cpufreq_governor_attr_set.o
  5387.   CC      drivers/cpufreq/acpi-cpufreq.o
  5388.   CC      drivers/cpufreq/intel_pstate.o
  5389.   CC      net/ipv6/icmp.o
  5390.   CC      net/mac80211/ht.o
  5391.   CC      net/ipv6/mcast.o
  5392.   AR      drivers/cpufreq/built-in.a
  5393.   CC      drivers/cpuidle/governors/menu.o
  5394. /home/himanshu/clang-thread-safety-analysis/net/ipv6/icmp.c:133:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5395.         spin_unlock(&sk->sk_lock.slock);
  5396.         ^
  5397. 1 warning generated.
  5398.   AR      drivers/cpuidle/governors/built-in.a
  5399.   CC      drivers/cpuidle/cpuidle.o
  5400.   CC      net/ipv6/reassembly.o
  5401.   CC      net/ipv6/tcp_ipv6.o
  5402.   CC      net/mac80211/agg-tx.o
  5403.   CC      drivers/cpuidle/driver.o
  5404.   CC      net/ipv6/ping.o
  5405.   CC      drivers/cpuidle/governor.o
  5406.   CC      drivers/cpuidle/sysfs.o
  5407. /home/himanshu/clang-thread-safety-analysis/net/ipv6/tcp_ipv6.c:1576:2: warning: releasing mutex 'sk->sk_lock.slock' that was not held [-Wthread-safety-analysis]
  5408.         bh_unlock_sock(sk);
  5409.         ^
  5410. /home/himanshu/clang-thread-safety-analysis/include/net/sock.h:1536:30: note: expanded from macro 'bh_unlock_sock'
  5411. #define bh_unlock_sock(__sk)    spin_unlock(&((__sk)->sk_lock.slock))
  5412.                                 ^
  5413.   CC      drivers/cpuidle/poll_state.o
  5414.   CC      net/ipv6/exthdrs.o
  5415. 1 warning generated.
  5416.   CC      net/ipv6/datagram.o
  5417.   AR      drivers/cpuidle/built-in.a
  5418.   AR      drivers/crypto/hisilicon/built-in.a
  5419.   AR      drivers/crypto/built-in.a
  5420.   CC      drivers/dma/dw/core.o
  5421.   CC      net/mac80211/agg-rx.o
  5422.   CC      net/ipv6/ip6_flowlabel.o
  5423.   CC      drivers/dma/dw/dw.o
  5424.   CC      net/ipv6/inet6_connection_sock.o
  5425.   CC      drivers/dma/dw/idma32.o
  5426.   CC      net/mac80211/vht.o
  5427.   CC      net/ipv6/udp_offload.o
  5428.   CC      drivers/dma-buf/dma-buf.o
  5429.   AR      drivers/dma/dw/built-in.a
  5430.   CC      drivers/dma/hsu/hsu.o
  5431.   AR      drivers/dma/hsu/built-in.a
  5432.   AR      drivers/dma/mediatek/built-in.a
  5433.   AR      drivers/dma/qcom/built-in.a
  5434.   AR      drivers/dma/ti/built-in.a
  5435.   AR      drivers/dma/xilinx/built-in.a
  5436.   CC      drivers/dma/dmaengine.o
  5437.   CC      drivers/dma-buf/dma-fence.o
  5438.   CC      net/ipv6/seg6.o
  5439.   CC      net/mac80211/he.o
  5440.   CC      drivers/dma-buf/dma-fence-array.o
  5441.   CC      drivers/dma/virt-dma.o
  5442.   CC      net/ipv6/fib6_notifier.o
  5443.   CC      drivers/dma-buf/dma-fence-chain.o
  5444.   CC      drivers/dma/acpi-dma.o
  5445.   CC      drivers/dma-buf/reservation.o
  5446.   CC      net/ipv6/sysctl_net_ipv6.o
  5447.   CC      net/mac80211/ibss.o
  5448.   AR      drivers/dma/built-in.a
  5449.   CC      drivers/edac/edac_mc.o
  5450.   CC      drivers/dma-buf/seqno-fence.o
  5451.   CC      drivers/dma-buf/sync_file.o
  5452.   CC      net/ipv6/xfrm6_policy.o
  5453.   CC      drivers/edac/edac_device.o
  5454.   AR      drivers/dma-buf/built-in.a
  5455.   CC      drivers/firewire/init_ohci1394_dma.o
  5456.   CC      drivers/edac/edac_mc_sysfs.o
  5457.   CC      net/ipv6/xfrm6_state.o
  5458.   AR      drivers/firewire/built-in.a
  5459.   AR      drivers/firmware/broadcom/built-in.a
  5460.   CC      net/mac80211/iface.o
  5461.   CC      drivers/firmware/efi/libstub/efi-stub-helper.o
  5462.   CC      drivers/edac/edac_module.o
  5463.   CC      net/ipv6/xfrm6_input.o
  5464.   CC      drivers/firmware/efi/libstub/gop.o
  5465.   CC      drivers/edac/edac_device_sysfs.o
  5466.   CC      drivers/edac/wq.o
  5467.   CC      drivers/firmware/efi/libstub/secureboot.o
  5468.   CC      net/ipv6/xfrm6_output.o
  5469.   CC      drivers/edac/edac_pci.o
  5470.   CC      drivers/firmware/efi/libstub/tpm.o
  5471.   CC      net/mac80211/rate.o
  5472.   CC      net/ipv6/xfrm6_protocol.o
  5473.   CC      drivers/edac/edac_pci_sysfs.o
  5474.   AR      drivers/firmware/efi/libstub/lib.a
  5475.   EXPORTS drivers/firmware/efi/libstub/lib-ksyms.o
  5476.   AR      drivers/firmware/efi/libstub/built-in.a
  5477.   CC      drivers/firmware/efi/efi-bgrt.o
  5478.   CC      drivers/firmware/efi/efi.o
  5479.   CC      net/ipv6/netfilter.o
  5480.   CC      drivers/edac/mce_amd.o
  5481.   AR      drivers/edac/built-in.a
  5482.   AR      drivers/gpu/drm/arm/built-in.a
  5483.   AR      drivers/gpu/drm/bridge/synopsys/built-in.a
  5484.   AR      drivers/gpu/drm/bridge/built-in.a
  5485.   AR      drivers/gpu/drm/hisilicon/built-in.a
  5486.   AR      drivers/gpu/drm/i2c/built-in.a
  5487.   CC      net/mac80211/michael.o
  5488.   CC      drivers/firmware/efi/vars.o
  5489.   CC      drivers/gpu/drm/i915/i915_drv.o
  5490.   CC      net/ipv6/proc.o
  5491.   CC      drivers/firmware/efi/reboot.o
  5492.   CC      net/mac80211/tkip.o
  5493.   CC      drivers/firmware/efi/memattr.o
  5494.   CC      net/ipv6/syncookies.o
  5495.   CC      drivers/firmware/efi/tpm.o
  5496.   CC      drivers/firmware/efi/capsule.o
  5497.   CC      net/ipv6/calipso.o
  5498.   CC      net/mac80211/aes_cmac.o
  5499.   CC      drivers/gpu/drm/i915/i915_irq.o
  5500.   CC      drivers/firmware/efi/memmap.o
  5501.   CC      drivers/firmware/efi/efivars.o
  5502.   CC      net/mac80211/aes_gmac.o
  5503.   CC      net/ipv6/ah6.o
  5504.   CC      drivers/firmware/efi/esrt.o
  5505.   CC      net/mac80211/fils_aead.o
  5506.   CC      drivers/firmware/efi/runtime-map.o
  5507.   CC      net/ipv6/esp6.o
  5508.   CC      drivers/gpu/drm/i915/i915_memcpy.o
  5509.   CC      drivers/firmware/efi/runtime-wrappers.o
  5510.   CC      net/mac80211/cfg.o
  5511.   CC      drivers/firmware/efi/earlycon.o
  5512.   CC      drivers/gpu/drm/i915/i915_mm.o
  5513.   CC      net/ipv6/sit.o
  5514.   AR      drivers/firmware/efi/built-in.a
  5515.   AR      drivers/firmware/imx/built-in.a
  5516.   AR      drivers/firmware/meson/built-in.a
  5517.   AR      drivers/firmware/psci/built-in.a
  5518.   AR      drivers/firmware/tegra/built-in.a
  5519.   AR      drivers/firmware/xilinx/built-in.a
  5520.   CC      drivers/firmware/dmi_scan.o
  5521.   CC      drivers/firmware/dmi-id.o
  5522.   CC      drivers/gpu/drm/i915/i915_params.o
  5523.   CC      net/ipv6/addrconf_core.o
  5524.   CC      drivers/firmware/memmap.o
  5525.   CC      net/mac80211/ethtool.o
  5526.   AR      drivers/firmware/built-in.a
  5527.   CC      drivers/hid/usbhid/hid-core.o
  5528.   CC      net/ipv6/exthdrs_core.o
  5529.   CC      drivers/gpu/drm/i915/i915_pci.o
  5530. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:569:4: warning: releasing mutex 'usbhid->lock' that was not held [-Wthread-safety-analysis]
  5531.                         spin_unlock(&usbhid->lock);
  5532.                         ^
  5533. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:582:3: warning: mutex 'usbhid->lock' is not held on every path through here [-Wthread-safety-analysis]
  5534.                 return;
  5535.                 ^
  5536. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:572:4: note: mutex acquired here
  5537.                         spin_lock(&usbhid->lock);
  5538.                         ^
  5539. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:620:3: warning: releasing mutex 'usbhid->lock' that was not held [-Wthread-safety-analysis]
  5540.                 spin_unlock(&usbhid->lock);
  5541.                 ^
  5542. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:633:1: warning: mutex 'usbhid->lock' is not held on every path through here [-Wthread-safety-analysis]
  5543. }
  5544. ^
  5545. /home/himanshu/clang-thread-safety-analysis/drivers/hid/usbhid/hid-core.c:623:3: note: mutex acquired here
  5546.                 spin_lock(&usbhid->lock);
  5547.                 ^
  5548. 4 warnings generated.
  5549.   CC      drivers/hid/usbhid/hiddev.o
  5550.   CC      net/ipv6/ip6_checksum.o
  5551.   CC      drivers/gpu/drm/i915/i915_reset.o
  5552.   CC      net/mac80211/rx.o
  5553.   CC      drivers/hid/usbhid/hid-pidff.o
  5554.   CC      net/ipv6/ip6_icmp.o
  5555.   AR      drivers/hid/usbhid/built-in.a
  5556.   CC      drivers/hid/hid-core.o
  5557.   CC      net/ipv6/output_core.o
  5558.   CC      drivers/gpu/drm/i915/i915_suspend.o
  5559.   CC      net/ipv6/protocol.o
  5560.   CC      drivers/hid/hid-input.o
  5561.   CC      drivers/gpu/drm/i915/i915_sw_fence.o
  5562.   CC      drivers/gpu/drm/i915/i915_syncmap.o
  5563.   CC      net/ipv6/ip6_offload.o
  5564.   CC      net/mac80211/spectmgmt.o
  5565.   CC      drivers/gpu/drm/i915/i915_sysfs.o
  5566.   CC      drivers/hid/hid-quirks.o
  5567.   CC      drivers/hid/hid-debug.o
  5568.   CC      net/ipv6/tcpv6_offload.o
  5569.   CC      net/mac80211/tx.o
  5570.   CC      drivers/gpu/drm/i915/i915_user_extensions.o
  5571.   CC      drivers/hid/hidraw.o
  5572.   CC      net/ipv6/exthdrs_offload.o
  5573.   CC      drivers/gpu/drm/i915/intel_csr.o
  5574.   CC      drivers/hid/hid-generic.o
  5575.   CC      drivers/hid/hid-a4tech.o
  5576.   CC      net/ipv6/inet6_hashtables.o
  5577.   CC      drivers/hid/hid-apple.o
  5578.   CC      drivers/gpu/drm/i915/intel_device_info.o
  5579.   CC      drivers/hid/hid-belkin.o
  5580.   CC      net/ipv6/mcast_snoop.o
  5581.   CC      drivers/hid/hid-cherry.o
  5582.   CC      net/mac80211/key.o
  5583.   CC      drivers/hid/hid-chicony.o
  5584.   CC      drivers/gpu/drm/i915/intel_pm.o
  5585.   AR      net/ipv6/built-in.a
  5586.   CC      net/netfilter/core.o
  5587.   CC      drivers/hid/hid-cypress.o
  5588.   CC      drivers/hid/hid-ezkey.o
  5589.   CC      drivers/hid/hid-gyration.o
  5590.   CC      net/netfilter/nf_log.o
  5591.   CC      net/mac80211/util.o
  5592.   CC      drivers/hid/hid-ite.o
  5593.   CC      drivers/hid/hid-kensington.o
  5594.   CC      net/netfilter/nf_queue.o
  5595.   CC      drivers/hid/hid-lg.o
  5596.   CC      drivers/hid/hid-lgff.o
  5597.   CC      net/netfilter/nf_sockopt.o
  5598.   CC      drivers/hid/hid-lg4ff.o
  5599.   CC      net/netfilter/utils.o
  5600.   CC      drivers/gpu/drm/i915/intel_runtime_pm.o
  5601.   CC      drivers/hid/hid-microsoft.o
  5602.   CC      net/mac80211/wme.o
  5603.   CC      drivers/hid/hid-monterey.o
  5604.   CC      net/netfilter/nfnetlink.o
  5605.   CC      drivers/hid/hid-ntrig.o
  5606.   CC      net/mac80211/chan.o
  5607.   CC      drivers/hid/hid-pl.o
  5608.   CC      drivers/gpu/drm/i915/intel_workarounds.o
  5609.   CC      drivers/hid/hid-petalynx.o
  5610.   CC      net/netfilter/nfnetlink_log.o
  5611.   CC      drivers/hid/hid-redragon.o
  5612.   CC      drivers/hid/hid-samsung.o
  5613.   CC      drivers/gpu/drm/i915/i915_ioc32.o
  5614.   CC      net/netfilter/nf_conntrack_core.o
  5615.   CC      drivers/hid/hid-sony.o
  5616.   CC      net/mac80211/trace.o
  5617. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:114:1: warning: mutex 'lock' is still held at the end of function [-Wthread-safety-analysis]
  5618. }
  5619. ^
  5620. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:110:2: note: mutex acquired here
  5621.         spin_lock(lock);
  5622.         ^
  5623. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:121:2: warning: releasing mutex 'nf_conntrack_locks[h1]' that was not held [-Wthread-safety-analysis]
  5624.         spin_unlock(&nf_conntrack_locks[h1]);
  5625.         ^
  5626. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:123:3: warning: releasing mutex 'nf_conntrack_locks[h2]' that was not held [-Wthread-safety-analysis]
  5627.                 spin_unlock(&nf_conntrack_locks[h2]);
  5628.                 ^
  5629. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:166:1: warning: mutex 'nf_conntrack_locks_all_lock' is still held at the end of function [-Wthread-safety-analysis]
  5630. }
  5631. ^
  5632. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:153:2: note: mutex acquired here
  5633.         spin_lock(&nf_conntrack_locks_all_lock);
  5634.         ^
  5635. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:177:2: warning: releasing mutex 'nf_conntrack_locks_all_lock' that was not held [-Wthread-safety-analysis]
  5636.         spin_unlock(&nf_conntrack_locks_all_lock);
  5637.         ^
  5638. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:2017:3: warning: releasing mutex 'lockp' that was not held [-Wthread-safety-analysis]
  5639.                 spin_unlock(lockp);
  5640.                 ^
  5641. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_core.c:2025:2: warning: releasing mutex 'lockp' that was not held [-Wthread-safety-analysis]
  5642.         spin_unlock(lockp);
  5643.         ^
  5644.   CC      drivers/gpu/drm/i915/i915_debugfs.o
  5645.   CC      drivers/hid/hid-sunplus.o
  5646.   CC      drivers/hid/hid-topseed.o
  5647. 7 warnings generated.
  5648.   CC      net/netfilter/nf_conntrack_standalone.o
  5649.   AR      drivers/hid/built-in.a
  5650.   CC      drivers/hwmon/hwmon.o
  5651.   CC      net/netfilter/nf_conntrack_expect.o
  5652.   AR      drivers/hwmon/built-in.a
  5653.   CC      net/netfilter/nf_conntrack_helper.o
  5654.   CC      drivers/gpu/drm/i915/intel_pipe_crc.o
  5655.   CC      net/netfilter/nf_conntrack_proto.o
  5656.   CC      net/netfilter/nf_conntrack_proto_generic.o
  5657.   CC      net/mac80211/mlme.o
  5658.   CC      drivers/gpu/drm/i915/i915_pmu.o
  5659.   CC      net/netfilter/nf_conntrack_proto_tcp.o
  5660.   CC      net/mac80211/tdls.o
  5661.   CC      net/netfilter/nf_conntrack_proto_udp.o
  5662.   CC      drivers/gpu/drm/i915/i915_active.o
  5663.   CC      net/netfilter/nf_conntrack_proto_icmp.o
  5664.   CC      net/mac80211/ocb.o
  5665.   CC      drivers/gpu/drm/i915/i915_cmd_parser.o
  5666.   CC      net/mac80211/led.o
  5667.   CC      net/netfilter/nf_conntrack_extend.o
  5668.   CC      net/mac80211/pm.o
  5669.   CC      drivers/gpu/drm/i915/i915_gem_batch_pool.o
  5670.   CC      net/netfilter/nf_conntrack_acct.o
  5671.   CC      net/mac80211/rc80211_minstrel.o
  5672.   CC      net/netfilter/nf_conntrack_seqadj.o
  5673.   CC      drivers/gpu/drm/i915/i915_gem_clflush.o
  5674.   CC      net/mac80211/rc80211_minstrel_ht.o
  5675.   CC      drivers/gpu/drm/i915/i915_gem_context.o
  5676.   CC      net/netfilter/nf_conntrack_proto_icmpv6.o
  5677.   CC      drivers/gpu/drm/i915/i915_gem_dmabuf.o
  5678.   CC      net/netfilter/nf_conntrack_netlink.o
  5679.   CC      drivers/gpu/drm/i915/i915_gem_evict.o
  5680.   CC      drivers/gpu/drm/i915/i915_gem_execbuffer.o
  5681.   AR      net/mac80211/built-in.a
  5682.   CC      net/netlabel/netlabel_user.o
  5683. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_netlink.c:927:4: warning: releasing mutex 'lockp' that was not held [-Wthread-safety-analysis]
  5684.                         spin_unlock(lockp);
  5685.                         ^
  5686. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_netlink.c:963:5: warning: releasing mutex 'lockp' that was not held [-Wthread-safety-analysis]
  5687.                                 spin_unlock(lockp);
  5688.                                 ^
  5689. /home/himanshu/clang-thread-safety-analysis/net/netfilter/nf_conntrack_netlink.c:967:3: warning: releasing mutex 'lockp' that was not held [-Wthread-safety-analysis]
  5690.                 spin_unlock(lockp);
  5691.                 ^
  5692.   CC      net/netlabel/netlabel_kapi.o
  5693.   CC      drivers/gpu/drm/i915/i915_gem_fence_reg.o
  5694. 3 warnings generated.
  5695.   CC      net/netfilter/nf_conntrack_ftp.o
  5696. drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x76: redundant UACCESS disable
  5697.   CC      drivers/gpu/drm/i915/i915_gem_gtt.o
  5698.   CC      net/netlabel/netlabel_domainhash.o
  5699.   CC      drivers/gpu/drm/i915/i915_gem_internal.o
  5700.   CC      net/netfilter/nf_conntrack_irc.o
  5701. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_gem_gtt.c:354:2: warning: releasing mutex 'stash->lock' that was not held [-Wthread-safety-analysis]
  5702.         spin_unlock(&stash->lock);
  5703.         ^
  5704. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_gem_gtt.c:450:3: warning: releasing mutex 'vm->free_pages.lock' that was not held [-Wthread-safety-analysis]
  5705.                 spin_unlock(&vm->free_pages.lock);
  5706.                 ^
  5707. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_gem_gtt.c:458:2: warning: mutex 'vm->free_pages.lock' is not held on every path through here [-Wthread-safety-analysis]
  5708.         __pagevec_release(pvec);
  5709.         ^
  5710. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_gem_gtt.c:455:3: note: mutex acquired here
  5711.                 spin_lock(&vm->free_pages.lock);
  5712.                 ^
  5713.   CC      net/netlabel/netlabel_addrlist.o
  5714.   CC      net/netfilter/nf_conntrack_sip.o
  5715.   CC      drivers/gpu/drm/i915/i915_gem.o
  5716. 3 warnings generated.
  5717.   AR      drivers/hwtracing/intel_th/built-in.a
  5718.   CC      net/netfilter/nf_nat_core.o
  5719.   CC      net/netlabel/netlabel_mgmt.o
  5720.   CC      net/netfilter/nf_nat_proto.o
  5721.   CC      net/netfilter/nf_nat_helper.o
  5722.   CC      net/netlabel/netlabel_unlabeled.o
  5723.   CC      net/netfilter/nf_nat_masquerade.o
  5724.   CC      drivers/gpu/drm/i915/i915_gem_object.o
  5725.   CC      net/netfilter/nf_nat_ftp.o
  5726.   CC      net/netlabel/netlabel_cipso_v4.o
  5727.   CC      net/netlabel/netlabel_calipso.o
  5728.   CC      net/netfilter/nf_nat_irc.o
  5729.   CC      drivers/gpu/drm/i915/i915_gem_render_state.o
  5730.   CC      drivers/gpu/vga/vgaarb.o
  5731.   CC      net/netfilter/nf_nat_sip.o
  5732.   AR      net/netlabel/built-in.a
  5733.   CC      net/netlink/af_netlink.o
  5734.   AR      drivers/gpu/vga/built-in.a
  5735.   CC      net/netlink/genetlink.o
  5736.   CC      drivers/gpu/drm/i915/i915_gem_shrinker.o
  5737.   CC      net/netfilter/x_tables.o
  5738.   CC      net/packet/af_packet.o
  5739.   CC      drivers/gpu/drm/i915/i915_gem_stolen.o
  5740.   AR      net/netlink/built-in.a
  5741.   CC      drivers/gpu/drm/i915/i915_gem_tiling.o
  5742. /home/himanshu/clang-thread-safety-analysis/net/packet/af_packet.c:346:3: warning: releasing mutex 'po->bind_lock' that was not held [-Wthread-safety-analysis]
  5743.                 spin_unlock(&po->bind_lock);
  5744.                 ^
  5745. /home/himanshu/clang-thread-safety-analysis/net/packet/af_packet.c:350:1: warning: mutex 'po->bind_lock' is not held on every path through here [-Wthread-safety-analysis]
  5746. }
  5747. ^
  5748. /home/himanshu/clang-thread-safety-analysis/net/packet/af_packet.c:348:3: note: mutex acquired here
  5749.                 spin_lock(&po->bind_lock);
  5750.                 ^
  5751.   CC      net/netfilter/xt_tcpudp.o
  5752.   CC      drivers/gpu/drm/i915/i915_gem_userptr.o
  5753.   CC      net/rfkill/core.o
  5754. 2 warnings generated.
  5755.   AR      net/packet/built-in.a
  5756.   CC      net/netfilter/xt_CONNSECMARK.o
  5757.   CC      net/sched/sch_generic.o
  5758.   CC      net/rfkill/input.o
  5759.   AR      net/rfkill/built-in.a
  5760.   CC      net/sched/sch_mq.o
  5761.   CC      drivers/gpu/drm/i915/i915_gemfs.o
  5762.   CC      net/netfilter/xt_NFLOG.o
  5763. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:64:8: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  5764.         skb = skb_peek(&q->skb_bad_txq);
  5765.               ^
  5766. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:61:3: note: mutex acquired here
  5767.                 spin_lock(lock);
  5768.                 ^
  5769. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:83:3: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  5770.                 spin_unlock(lock);
  5771.                 ^
  5772. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:108:2: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  5773.         __skb_queue_tail(&q->skb_bad_txq, skb);
  5774.         ^
  5775. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:105:3: note: mutex acquired here
  5776.                 spin_lock(lock);
  5777.                 ^
  5778. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:119:3: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  5779.                 spin_unlock(lock);
  5780.                 ^
  5781. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:131:9: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  5782.         while (skb) {
  5783.                ^
  5784. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:128:3: note: mutex acquired here
  5785.                 spin_lock(lock);
  5786.                 ^
  5787. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:150:3: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  5788.                 spin_unlock(lock);
  5789.                 ^
  5790. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:219:9: warning: mutex 'lock' is not held on every path through here [-Wthread-safety-analysis]
  5791.                 skb = skb_peek(&q->gso_skb);
  5792.                       ^
  5793. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:216:4: note: mutex acquired here
  5794.                         spin_lock(lock);
  5795.                         ^
  5796. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:226:5: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  5797.                                 spin_unlock(lock);
  5798.                                 ^
  5799. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:249:4: warning: releasing mutex 'lock' that was not held [-Wthread-safety-analysis]
  5800.                         spin_unlock(lock);
  5801.                         ^
  5802. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:293:3: warning: releasing mutex 'root_lock' that was not held [-Wthread-safety-analysis]
  5803.                 spin_unlock(root_lock);
  5804.                 ^
  5805. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:311:8: warning: mutex 'txq->_xmit_lock' is not held on every path through here [-Wthread-safety-analysis]
  5806.                 if (!netif_xmit_frozen_or_stopped(txq))
  5807.                      ^
  5808. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:310:3: note: mutex acquired here
  5809.                 HARD_TX_LOCK(dev, txq, smp_processor_id());
  5810.                 ^
  5811. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4009:3: note: expanded from macro 'HARD_TX_LOCK'
  5812.                 __netif_tx_lock(txq, cpu);              \
  5813.                 ^
  5814. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:314:3: warning: releasing mutex 'txq->_xmit_lock' that was not held [-Wthread-safety-analysis]
  5815.                 HARD_TX_UNLOCK(dev, txq);
  5816.                 ^
  5817. /home/himanshu/clang-thread-safety-analysis/include/linux/netdevice.h:4022:3: note: expanded from macro 'HARD_TX_UNLOCK'
  5818.                 __netif_tx_unlock(txq);                 \
  5819.                 ^
  5820. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:318:10: warning: mutex 'root_lock' is not held on every path through here [-Wthread-safety-analysis]
  5821.                 return true;
  5822.                        ^
  5823. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:317:4: note: mutex acquired here
  5824.                         spin_lock(root_lock);
  5825.                         ^
  5826. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:324:7: warning: mutex 'root_lock' is not held on every path through here [-Wthread-safety-analysis]
  5827.         if (!dev_xmit_complete(ret)) {
  5828.              ^
  5829. /home/himanshu/clang-thread-safety-analysis/net/sched/sch_generic.c:322:3: note: mutex acquired here
  5830.                 spin_lock(root_lock);
  5831.                 ^
  5832.   CC      net/sched/sch_api.o
  5833. 14 warnings generated.
  5834.   CC      net/sched/sch_blackhole.o
  5835.   CC      net/netfilter/xt_SECMARK.o
  5836.   CC      drivers/gpu/drm/i915/i915_globals.o
  5837.   CC      net/sched/cls_api.o
  5838.   CC      net/netfilter/xt_TCPMSS.o
  5839.   CC      drivers/gpu/drm/i915/i915_query.o
  5840.   CC      net/sched/act_api.o
  5841.   CC      net/netfilter/xt_conntrack.o
  5842.   CC      drivers/gpu/drm/i915/i915_request.o
  5843.   CC      net/sched/sch_fifo.o
  5844.   CC      net/sched/ematch.o
  5845.   CC      net/netfilter/xt_policy.o
  5846. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_request.c:461:2: warning: releasing mutex 'request->lock' that was not held [-Wthread-safety-analysis]
  5847.         spin_unlock(&request->lock);
  5848.         ^
  5849. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_request.c:511:2: warning: releasing mutex 'request->lock' that was not held [-Wthread-safety-analysis]
  5850.         spin_unlock(&request->lock);
  5851.         ^
  5852.   AR      net/sched/built-in.a
  5853. 2 warnings generated.
  5854.   CC      net/unix/af_unix.o
  5855.   CC      net/sunrpc/auth_gss/auth_gss.o
  5856.   CC      drivers/gpu/drm/i915/i915_scheduler.o
  5857.   CC      net/netfilter/xt_state.o
  5858. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1092:1: warning: mutex 'unix_sk(sk1).lock' is not held on every path through here [-Wthread-safety-analysis]
  5859. }
  5860. ^
  5861. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1086:3: note: mutex acquired here
  5862.                 unix_state_lock(sk1);
  5863.                 ^
  5864. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5865. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5866.                                 ^
  5867. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1092:1: warning: mutex 'unix_sk(sk2).lock' is not held on every path through here [-Wthread-safety-analysis]
  5868. }
  5869. ^
  5870. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1089:3: note: mutex acquired here
  5871.                 unix_state_lock(sk2);
  5872.                 ^
  5873. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5874. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5875.                                 ^
  5876. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1092:1: warning: mutex 'unix_sk(sk1).lock' is not held on every path through here [-Wthread-safety-analysis]
  5877. }
  5878. ^
  5879. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1082:3: note: mutex acquired here
  5880.                 unix_state_lock(sk1);
  5881.                 ^
  5882. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5883. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5884.                                 ^
  5885. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1097:3: warning: releasing mutex 'unix_sk(sk1).lock' that was not held [-Wthread-safety-analysis]
  5886.                 unix_state_unlock(sk1);
  5887.                 ^
  5888. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5889. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5890.                                 ^
  5891. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1100:2: warning: releasing mutex 'unix_sk(sk1).lock' that was not held [-Wthread-safety-analysis]
  5892.         unix_state_unlock(sk1);
  5893.         ^
  5894. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5895. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5896.                                 ^
  5897. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1101:2: warning: releasing mutex 'unix_sk(sk2).lock' that was not held [-Wthread-safety-analysis]
  5898.         unix_state_unlock(sk2);
  5899.         ^
  5900. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5901. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5902.                                 ^
  5903. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1196:2: warning: releasing mutex 'unix_sk(other).lock' that was not held [-Wthread-safety-analysis]
  5904.         unix_state_unlock(other);
  5905.         ^
  5906. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5907. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5908.                                 ^
  5909. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1250:10: warning: expecting mutex 'unix_sk(other).lock' to be held at start of each loop [-Wthread-safety-analysis]
  5910.         other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err);
  5911.                 ^
  5912. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1255:2: note: mutex acquired here
  5913.         unix_state_lock(other);
  5914.         ^
  5915. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5916. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5917.                                 ^
  5918. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1313:3: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  5919.                 unix_state_unlock(sk);
  5920.                 ^
  5921. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5922. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5923.                                 ^
  5924. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1321:3: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  5925.                 unix_state_unlock(sk);
  5926.                 ^
  5927. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5928. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5929.                                 ^
  5930. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1370:2: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  5931.         unix_state_unlock(sk);
  5932.         ^
  5933. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5934. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5935.                                 ^
  5936. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1386:2: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  5937.         kfree_skb(skb);
  5938.         ^
  5939. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1255:2: note: mutex acquired here
  5940.         unix_state_lock(other);
  5941.         ^
  5942. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5943. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5944.                                 ^
  5945. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1386:2: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  5946.         kfree_skb(skb);
  5947.         ^
  5948. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1255:2: note: mutex acquired here
  5949.         unix_state_lock(other);
  5950.         ^
  5951. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5952. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5953.                                 ^
  5954. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1650:7: warning: expecting mutex 'unix_sk(other).lock' to be held at start of each loop [-Wthread-safety-analysis]
  5955.         if (!other) {
  5956.              ^
  5957. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  5958.         unix_state_lock(other);
  5959.         ^
  5960. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5961. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5962.                                 ^
  5963. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1670:9: warning: expecting mutex 'unix_sk(other).lock' to be held at start of each loop [-Wthread-safety-analysis]
  5964.         err = -EPERM;
  5965.                ^
  5966. /home/himanshu/clang-thread-safety-analysis/include/uapi/asm-generic/errno-base.h:5:17: note: expanded from macro 'EPERM'
  5967. #define EPERM            1      /* Operation not permitted */
  5968.                          ^
  5969. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  5970.         unix_state_lock(other);
  5971.         ^
  5972. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5973. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5974.                                 ^
  5975. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1685:9: warning: mutex 'unix_sk(sk).lock' is not held on every path through here [-Wthread-safety-analysis]
  5976.                 err = 0;
  5977.                       ^
  5978. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1683:4: note: mutex acquired here
  5979.                         unix_state_lock(sk);
  5980.                         ^
  5981. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  5982. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  5983.                                 ^
  5984. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1690:4: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  5985.                         unix_state_unlock(sk);
  5986.                         ^
  5987. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5988. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5989.                                 ^
  5990. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1696:4: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  5991.                         unix_state_unlock(sk);
  5992.                         ^
  5993. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  5994. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  5995.                                 ^
  5996. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1736:7: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  5997.                 if (unix_peer(sk) != other ||
  5998.                     ^
  5999. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:185:24: note: expanded from macro 'unix_peer'
  6000. #define unix_peer(sk) (unix_sk(sk)->peer)
  6001.                        ^
  6002. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6003.         unix_state_lock(other);
  6004.         ^
  6005. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6006. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6007.                                 ^
  6008. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1749:6: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6009.         if (unlikely(sk_locked))
  6010.             ^
  6011. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  6012. # define unlikely(x)    __builtin_expect(!!(x), 0)
  6013.                         ^
  6014. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6015.         unix_state_lock(other);
  6016.         ^
  6017. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6018. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6019.                                 ^
  6020. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1749:6: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6021.         if (unlikely(sk_locked))
  6022.             ^
  6023. /home/himanshu/clang-thread-safety-analysis/include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
  6024. # define unlikely(x)    __builtin_expect(!!(x), 0)
  6025.                         ^
  6026. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6027.         unix_state_lock(other);
  6028.         ^
  6029. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6030. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6031.                                 ^
  6032. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1750:3: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  6033.                 unix_state_unlock(sk);
  6034.                 ^
  6035. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  6036. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  6037.                                 ^
  6038. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1756:2: warning: releasing mutex 'unix_sk(other).lock' that was not held [-Wthread-safety-analysis]
  6039.         unix_state_unlock(other);
  6040.         ^
  6041. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  6042. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  6043.                                 ^
  6044. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1763:6: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6045.         if (sk_locked)
  6046.             ^
  6047. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6048.         unix_state_lock(other);
  6049.         ^
  6050. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6051. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6052.                                 ^
  6053. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1763:6: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6054.         if (sk_locked)
  6055.             ^
  6056. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6057.         unix_state_lock(other);
  6058.         ^
  6059. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6060. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6061.                                 ^
  6062. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1763:6: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6063.         if (sk_locked)
  6064.             ^
  6065. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6066.         unix_state_lock(other);
  6067.         ^
  6068. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6069. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6070.                                 ^
  6071. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1764:3: warning: releasing mutex 'unix_sk(sk).lock' that was not held [-Wthread-safety-analysis]
  6072.                 unix_state_unlock(sk);
  6073.                 ^
  6074. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  6075. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  6076.                                 ^
  6077. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1765:2: warning: releasing mutex 'unix_sk(other).lock' that was not held [-Wthread-safety-analysis]
  6078.         unix_state_unlock(other);
  6079.         ^
  6080. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:47:30: note: expanded from macro 'unix_state_unlock'
  6081. #define unix_state_unlock(s)    spin_unlock(&unix_sk(s)->lock)
  6082.                                 ^
  6083. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1767:2: warning: mutex 'unix_sk(other).lock' is not held on every path through here [-Wthread-safety-analysis]
  6084.         kfree_skb(skb);
  6085.         ^
  6086. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:1668:2: note: mutex acquired here
  6087.         unix_state_lock(other);
  6088.         ^
  6089. /home/himanshu/clang-thread-safety-analysis/include/net/af_unix.h:46:28: note: expanded from macro 'unix_state_lock'
  6090. #define unix_state_lock(s)      spin_lock(&unix_sk(s)->lock)
  6091.                                 ^
  6092. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/auth_gss/auth_gss.c:304:3: warning: releasing mutex 'pipe_version_lock' that was not held [-Wthread-safety-analysis]
  6093.                 spin_unlock(&pipe_version_lock);
  6094.                 ^
  6095.   CC [M]  net/netfilter/nf_log_common.o
  6096. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:2747:1: warning: mutex 'unix_table_lock' is still held at the end of function [-Wthread-safety-analysis]
  6097. }
  6098. ^
  6099. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:2738:2: note: mutex acquired here
  6100.         spin_lock(&unix_table_lock);
  6101.         ^
  6102. /home/himanshu/clang-thread-safety-analysis/net/unix/af_unix.c:2758:2: warning: releasing mutex 'unix_table_lock' that was not held [-Wthread-safety-analysis]
  6103.         spin_unlock(&unix_table_lock);
  6104.         ^
  6105. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_scheduler.c:158:3: warning: releasing mutex 'locked->timeline.lock' that was not held [-Wthread-safety-analysis]
  6106.                 spin_unlock(&locked->timeline.lock);
  6107.                 ^
  6108. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_scheduler.c:163:9: warning: mutex 'engine->timeline.lock' is not held on every path through here [-Wthread-safety-analysis]
  6109.         return engine;
  6110.                ^
  6111. /home/himanshu/clang-thread-safety-analysis/drivers/gpu/drm/i915/i915_scheduler.c:160:3: note: mutex acquired here
  6112.                 spin_lock(&engine->timeline.lock);
  6113.                 ^
  6114. 2 warnings generated.
  6115.   CC      drivers/gpu/drm/i915/i915_timeline.o
  6116. 1 warning generated.
  6117.   CC      net/sunrpc/auth_gss/gss_generic_token.o
  6118. 31 warnings generated.
  6119.   CC      net/unix/garbage.o
  6120.   CC [M]  net/netfilter/xt_mark.o
  6121.   CC      net/sunrpc/auth_gss/gss_mech_switch.o
  6122.   CC      drivers/gpu/drm/i915/i915_trace_points.o
  6123.   CC      net/unix/sysctl_net_unix.o
  6124.   CC [M]  net/netfilter/xt_nat.o
  6125. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/auth_gss/gss_mech_switch.c:239:5: warning: releasing mutex 'registered_mechs_lock' that was not held [-Wthread-safety-analysis]
  6126.                                 spin_unlock(&registered_mechs_lock);
  6127.                                 ^
  6128. 1 warning generated.
  6129.   CC      net/sunrpc/auth_gss/svcauth_gss.o
  6130.   CC      net/unix/scm.o
  6131.   CC [M]  net/netfilter/xt_LOG.o
  6132.   AR      net/unix/built-in.a
  6133.   CC      net/wireless/core.o
  6134.   CC      drivers/gpu/drm/i915/i915_vma.o
  6135.   CC      net/sunrpc/auth_gss/gss_rpc_upcall.o
  6136.   CC [M]  net/netfilter/xt_MASQUERADE.o
  6137.   CC      net/sunrpc/auth_gss/gss_rpc_xdr.o
  6138.   CC [M]  net/netfilter/xt_addrtype.o
  6139.   CC      drivers/gpu/drm/i915/intel_breadcrumbs.o
  6140.   AR      net/netfilter/built-in.a
  6141.   CC      net/xfrm/xfrm_policy.o
  6142.   CC      net/sunrpc/auth_gss/trace.o
  6143.   CC      net/wireless/sysfs.o
  6144.   CC      drivers/gpu/drm/i915/intel_context.o
  6145.   AR      net/sunrpc/auth_gss/built-in.a
  6146.   CC      net/sunrpc/clnt.o
  6147.   CC      drivers/gpu/drm/i915/intel_engine_cs.o
  6148.   CC      net/wireless/radiotap.o
  6149.   CC      net/wireless/util.o
  6150.   CC      net/xfrm/xfrm_state.o
  6151.   CC      net/sunrpc/xprt.o
  6152.   CC      drivers/gpu/drm/i915/intel_hangcheck.o
  6153. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/xprt.c:1506:2: warning: releasing mutex 'xprt->reserve_lock' that was not held [-Wthread-safety-analysis]
  6154.         spin_unlock(&xprt->reserve_lock);
  6155.         ^
  6156. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/xprt.c:1514:9: warning: mutex 'xprt->reserve_lock' is not held on every path through here [-Wthread-safety-analysis]
  6157.         return req;
  6158.                ^
  6159. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/xprt.c:1508:2: note: mutex acquired here
  6160.         spin_lock(&xprt->reserve_lock);
  6161.         ^
  6162.   CC      drivers/gpu/drm/i915/intel_lrc.o
  6163.   CC      net/xfrm/xfrm_hash.o
  6164. 2 warnings generated.
  6165.   CC      net/sunrpc/socklib.o
  6166.   CC      net/wireless/reg.o
  6167.   CC      net/xfrm/xfrm_input.o
  6168.   CC      net/sunrpc/xprtsock.o
  6169.   CC      drivers/gpu/drm/i915/intel_mocs.o
  6170.   CC      net/xfrm/xfrm_output.o
  6171.   CC      drivers/gpu/drm/i915/intel_ringbuffer.o
  6172.   CC      net/xfrm/xfrm_sysctl.o
  6173.   CC      net/sunrpc/sched.o
  6174.   CC      net/wireless/scan.o
  6175.   CC      net/xfrm/xfrm_replay.o
  6176.   CC      drivers/gpu/drm/i915/intel_uncore.o
  6177.   CC      net/xfrm/xfrm_device.o
  6178.   CC      net/sunrpc/auth.o
  6179.   CC      net/wireless/nl80211.o
  6180.   CC      net/xfrm/xfrm_algo.o
  6181.   CC      drivers/gpu/drm/i915/intel_wopcm.o
  6182.   CC      net/sunrpc/auth_null.o
  6183.   CC      net/xfrm/xfrm_user.o
  6184.   CC      drivers/gpu/drm/i915/intel_uc.o
  6185.   CC      net/sunrpc/auth_unix.o
  6186.   AR      net/xfrm/built-in.a
  6187.   CC      net/socket.o
  6188.   CC      net/sunrpc/svc.o
  6189.   CC      drivers/gpu/drm/i915/intel_uc_fw.o
  6190.   CC      drivers/gpu/drm/i915/intel_guc.o
  6191.   CC      net/sunrpc/svcsock.o
  6192.   CC      net/compat.o
  6193.   CC      drivers/gpu/drm/i915/intel_guc_ads.o
  6194.   CC      net/sysctl_net.o
  6195.   CC      net/sunrpc/svcauth.o
  6196. /home/himanshu/clang-thread-safety-analysis/net/sunrpc/svcauth.c:153:2: warning: releasing mutex 'auth_domain_lock' that was not held [-Wthread-safety-analysis]
  6197.         spin_unlock(&auth_domain_lock);
  6198.         ^
  6199. 1 warning generated.
  6200.   CC      net/wireless/mlme.o
  6201.   CC      net/sunrpc/svcauth_unix.o
  6202.   CC      net/sunrpc/addr.o
  6203.   CC      drivers/gpu/drm/i915/intel_guc_ct.o
  6204.   CC      net/sunrpc/rpcb_clnt.o
  6205.   CC      net/sunrpc/timer.o
  6206.   CC      drivers/gpu/drm/i915/intel_guc_fw.o
  6207.   CC      net/sunrpc/xdr.o
  6208.   CC      net/wireless/ibss.o
  6209.   CC      net/sunrpc/sunrpc_syms.o
  6210.   CC      drivers/gpu/drm/i915/intel_guc_log.o
  6211.   CC      net/sunrpc/cache.o
  6212.   CC      net/sunrpc/rpc_pipe.o
  6213.   CC      drivers/gpu/drm/i915/intel_guc_submission.o
  6214.   CC      net/wireless/sme.o
  6215.   CC      net/wireless/chan.o
  6216.   CC      net/sunrpc/svc_xprt.o
  6217.   CC      drivers/gpu/drm/i915/intel_huc.o
  6218.   CC      net/wireless/ethtool.o
  6219.   CC      net/wireless/mesh.o
  6220.   CC      drivers/gpu/drm/i915/intel_huc_fw.o
  6221.   CC      net/sunrpc/xprtmultipath.o
  6222.   CC      net/sunrpc/stats.o
  6223.   CC      drivers/gpu/drm/i915/intel_renderstate_gen6.o
  6224.   CC      drivers/gpu/drm/i915/intel_renderstate_gen7.o
  6225.   CC      net/wireless/ap.o
  6226.   CC      drivers/gpu/drm/i915/intel_renderstate_gen8.o
  6227.   CC      drivers/i2c/algos/i2c-algo-bit.o
  6228.   CC      drivers/gpu/drm/i915/intel_renderstate_gen9.o
  6229.   CC      drivers/gpu/drm/i915/intel_audio.o
  6230.   AR      drivers/i2c/algos/built-in.a
  6231.   CC      drivers/i2c/busses/i2c-i801.o
  6232.   CC      net/sunrpc/sysctl.o
  6233.   AR      drivers/i2c/busses/built-in.a
  6234.   AR      drivers/i2c/muxes/built-in.a
  6235.   CC      drivers/i2c/i2c-boardinfo.o
  6236.   CC      drivers/gpu/drm/i915/intel_atomic.o
  6237.   AR      net/sunrpc/built-in.a
  6238.   CC      drivers/gpu/drm/i915/intel_atomic_plane.o
  6239.   CC      net/wireless/trace.o
  6240.   CC      drivers/i2c/i2c-core-base.o
  6241.   CC      drivers/gpu/drm/i915/intel_bios.o
  6242.   CC      drivers/gpu/drm/i915/intel_cdclk.o
  6243.   CC      drivers/i2c/i2c-core-smbus.o
  6244.   CC      drivers/i2c/i2c-core-acpi.o
  6245.   CC      drivers/gpu/drm/i915/intel_color.o
  6246.   CC      drivers/gpu/drm/i915/intel_combo_phy.o
  6247.   CC      drivers/i2c/i2c-smbus.o
  6248.   AR      drivers/i2c/built-in.a
  6249.   AR      drivers/i3c/built-in.a
  6250.   AR      drivers/gpu/drm/omapdrm/displays/built-in.a
  6251.   AR      drivers/gpu/drm/omapdrm/dss/built-in.a
  6252.   AR      drivers/gpu/drm/omapdrm/built-in.a
  6253.   AR      drivers/gpu/drm/panel/built-in.a
  6254.   AR      drivers/gpu/drm/rcar-du/built-in.a
  6255.   AR      drivers/gpu/drm/tilcdc/built-in.a
  6256.   CC      drivers/gpu/drm/drm_crtc_helper.o
  6257.   CC      drivers/gpu/drm/i915/intel_connector.o
  6258.   CC      drivers/gpu/drm/i915/intel_display.o
  6259.   CC      drivers/gpu/drm/drm_dp_helper.o
  6260.   CC      net/wireless/ocb.o
  6261.   CC      drivers/gpu/drm/drm_dsc.o
  6262.   CC      drivers/gpu/drm/i915/intel_dpio_phy.o
  6263.   CC      drivers/gpu/drm/drm_probe_helper.o
  6264.   CC      net/wireless/pmsr.o
  6265.   GEN     net/wireless/shipped-certs.c
  6266.   CC      drivers/gpu/drm/i915/intel_dpll_mgr.o
  6267.   CC      drivers/gpu/drm/i915/intel_fbc.o
  6268.   CC      drivers/gpu/drm/i915/intel_fifo_underrun.o
  6269.   CC      drivers/gpu/drm/i915/intel_frontbuffer.o
  6270.   CC      net/wireless/shipped-certs.o
  6271.   CC      drivers/gpu/drm/i915/intel_hdcp.o
  6272.   AR      net/wireless/built-in.a
  6273.   AR      net/built-in.a
  6274.   CC      drivers/gpu/drm/i915/intel_hotplug.o
  6275.   CC      drivers/gpu/drm/i915/intel_overlay.o
  6276.   CC      drivers/gpu/drm/i915/intel_psr.o
  6277.   CC      drivers/gpu/drm/i915/intel_quirks.o
  6278.   CC      drivers/gpu/drm/i915/intel_sideband.o
  6279.   CC      drivers/gpu/drm/i915/intel_sprite.o
  6280.   CC      drivers/gpu/drm/i915/intel_acpi.o
  6281.   CC      drivers/gpu/drm/i915/intel_opregion.o
  6282.   CC      drivers/gpu/drm/i915/intel_fbdev.o
  6283.   CC      drivers/gpu/drm/i915/dvo_ch7017.o
  6284.   CC      drivers/gpu/drm/i915/dvo_ch7xxx.o
  6285.   CC      drivers/gpu/drm/i915/dvo_ivch.o
  6286.   CC      drivers/gpu/drm/i915/dvo_ns2501.o
  6287.   CC      drivers/gpu/drm/i915/dvo_sil164.o
  6288.   CC      drivers/gpu/drm/i915/dvo_tfp410.o
  6289.   CC      drivers/gpu/drm/i915/icl_dsi.o
  6290.   CC      drivers/gpu/drm/i915/intel_crt.o
  6291.   CC      drivers/gpu/drm/i915/intel_ddi.o
  6292.   CC      drivers/gpu/drm/i915/intel_dp_aux_backlight.o
  6293.   CC      drivers/gpu/drm/i915/intel_dp_link_training.o
  6294.   CC      drivers/gpu/drm/i915/intel_dp_mst.o
  6295.   CC      drivers/gpu/drm/i915/intel_dp.o
  6296.   CC      drivers/gpu/drm/i915/intel_dsi.o
  6297.   CC      drivers/gpu/drm/i915/intel_dsi_dcs_backlight.o
  6298.   CC      drivers/gpu/drm/i915/intel_dsi_vbt.o
  6299.   CC      drivers/gpu/drm/i915/intel_dvo.o
  6300.   CC      drivers/gpu/drm/i915/intel_hdmi.o
  6301.   CC      drivers/gpu/drm/i915/intel_i2c.o
  6302.   CC      drivers/gpu/drm/i915/intel_lspcon.o
  6303.   CC      drivers/gpu/drm/i915/intel_lvds.o
  6304.   CC      drivers/gpu/drm/i915/intel_panel.o
  6305.   CC      drivers/gpu/drm/i915/intel_sdvo.o
  6306.   CC      drivers/gpu/drm/i915/intel_tv.o
  6307.   CC      drivers/gpu/drm/i915/vlv_dsi.o
  6308.   CC      drivers/gpu/drm/i915/vlv_dsi_pll.o
  6309.   AR      drivers/idle/built-in.a
  6310.   AR      drivers/input/joystick/built-in.a
  6311.   CC      drivers/input/keyboard/atkbd.o
  6312.   CC      drivers/gpu/drm/drm_plane_helper.o
  6313.   CC      drivers/gpu/drm/drm_dp_mst_topology.o
  6314.   AR      drivers/input/keyboard/built-in.a
  6315.   AR      drivers/input/misc/built-in.a
  6316.   CC      drivers/input/mouse/psmouse-base.o
  6317.   CC      drivers/gpu/drm/drm_atomic_helper.o
  6318.   CC      drivers/gpu/drm/i915/intel_vdsc.o
  6319.   CC      drivers/input/mouse/synaptics.o
  6320.   CC      drivers/gpu/drm/drm_kms_helper_common.o
  6321.   CC      drivers/gpu/drm/i915/i915_gpu_error.o
  6322.   CC      drivers/gpu/drm/drm_dp_dual_mode_helper.o
  6323.   CC      drivers/input/mouse/focaltech.o
  6324.   CC      drivers/input/mouse/alps.o
  6325.   CC      drivers/gpu/drm/drm_simple_kms_helper.o
  6326.   CC      drivers/gpu/drm/drm_modeset_helper.o
  6327.   CC      drivers/gpu/drm/drm_scdc_helper.o
  6328.   CC      drivers/input/mouse/byd.o
  6329.   CC      drivers/gpu/drm/drm_gem_framebuffer_helper.o
  6330.   CC      drivers/input/mouse/logips2pp.o
  6331.   CC      drivers/gpu/drm/i915/i915_vgpu.o
  6332.   CC      drivers/gpu/drm/drm_atomic_state_helper.o
  6333.   CC      drivers/gpu/drm/drm_damage_helper.o
  6334.   CC      drivers/input/mouse/lifebook.o
  6335.   CC      drivers/gpu/drm/drm_format_helper.o
  6336.   CC      drivers/input/mouse/trackpoint.o
  6337.   CC      drivers/input/mouse/cypress_ps2.o
  6338.   CC      drivers/gpu/drm/bridge/panel.o
  6339.   CC      drivers/gpu/drm/i915/i915_perf.o
  6340.   CC      drivers/input/mouse/psmouse-smbus.o
  6341.   CC      drivers/gpu/drm/drm_fb_helper.o
  6342.   CC      drivers/gpu/drm/drm_auth.o
  6343.   AR      drivers/input/mouse/built-in.a
  6344.   AR      drivers/input/tablet/built-in.a
  6345.   CC      drivers/input/touchscreen/of_touchscreen.o
  6346.   AR      drivers/input/touchscreen/built-in.a
  6347.   CC      drivers/input/input.o
  6348.   CC      drivers/gpu/drm/drm_cache.o
  6349.   CC      drivers/gpu/drm/i915/i915_oa_hsw.o
  6350.   CC      drivers/gpu/drm/i915/i915_oa_bdw.o
  6351.   CC      drivers/gpu/drm/drm_file.o
  6352.   CC      drivers/input/input-compat.o
  6353.   CC      drivers/input/input-mt.o
  6354.   CC      drivers/input/ff-core.o
  6355.   CC      drivers/gpu/drm/i915/i915_oa_chv.o
  6356.   CC      drivers/gpu/drm/i915/i915_oa_sklgt2.o
  6357.   CC      drivers/input/ff-memless.o
  6358.   CC      drivers/input/input-polldev.o
  6359.   CC      drivers/input/sparse-keymap.o
  6360.   CC      drivers/input/serio/serio.o
  6361.   CC      drivers/gpu/drm/i915/i915_oa_sklgt3.o
  6362.   CC      drivers/gpu/drm/i915/i915_oa_sklgt4.o
  6363.   CC      drivers/input/input-leds.o
  6364.   CC      drivers/input/serio/i8042.o
  6365.   CC      drivers/input/evdev.o
  6366.   CC      drivers/gpu/drm/i915/i915_oa_bxt.o
  6367.   CC      drivers/gpu/drm/i915/i915_oa_kblgt2.o
  6368. /home/himanshu/clang-thread-safety-analysis/drivers/input/evdev.c:938:2: warning: releasing mutex 'dev->event_lock' that was not held [-Wthread-safety-analysis]
  6369.         spin_unlock(&dev->event_lock);
  6370.         ^
  6371. /home/himanshu/clang-thread-safety-analysis/drivers/input/evdev.c:951:1: warning: mutex 'client->buffer_lock' is not held on every path through here [-Wthread-safety-analysis]
  6372. }
  6373. ^
  6374. /home/himanshu/clang-thread-safety-analysis/drivers/input/evdev.c:934:2: note: mutex acquired here
  6375.         spin_lock(&client->buffer_lock);
  6376.         ^
  6377.   CC      drivers/input/serio/serport.o
  6378. 2 warnings generated.
  6379.   AR      drivers/input/built-in.a
  6380.   CC      drivers/iommu/iommu.o
  6381.   CC      drivers/input/serio/libps2.o
  6382.   CC      drivers/gpu/drm/i915/i915_oa_kblgt3.o
  6383.   CC      drivers/gpu/drm/i915/i915_oa_glk.o
  6384.   AR      drivers/input/serio/built-in.a
  6385.   AR      drivers/irqchip/built-in.a
  6386.   AR      drivers/leds/trigger/built-in.a
  6387.   CC      drivers/leds/led-core.o
  6388.   CC      drivers/iommu/iommu-traces.o
  6389.   CC      drivers/leds/led-class.o
  6390.   CC      drivers/gpu/drm/i915/i915_oa_cflgt2.o
  6391.   CC      drivers/gpu/drm/i915/i915_oa_cflgt3.o
  6392.   CC      drivers/iommu/iommu-sysfs.o
  6393.   CC      drivers/leds/led-triggers.o
  6394.   AR      drivers/leds/built-in.a
  6395.   CC      drivers/iommu/iova.o
  6396.   CC      drivers/macintosh/mac_hid.o
  6397.   CC      drivers/gpu/drm/i915/i915_oa_cnl.o
  6398.   CC      drivers/gpu/drm/i915/i915_oa_icl.o
  6399.   AR      drivers/macintosh/built-in.a
  6400.   CC      drivers/mailbox/mailbox.o
  6401.   CC      drivers/iommu/amd_iommu.o
  6402.   CC      drivers/mailbox/pcc.o
  6403.   CC      drivers/md/md.o
  6404.   CC      drivers/gpu/drm/i915/intel_lpe_audio.o
  6405.   AR      drivers/mailbox/built-in.a
  6406.   CC      drivers/md/md-bitmap.o
  6407. /home/himanshu/clang-thread-safety-analysis/drivers/md/md.c:533:2: warning: releasing mutex 'all_mddevs_lock' that was not held [-Wthread-safety-analysis]
  6408.         spin_unlock(&all_mddevs_lock);
  6409.         ^
  6410. /home/himanshu/clang-thread-safety-analysis/drivers/md/md.c:2333:3: warning: releasing mutex 'mddev->lock' that was not held [-Wthread-safety-analysis]
  6411.                 spin_unlock(&mddev->lock);
  6412.                 ^
  6413. /home/himanshu/clang-thread-safety-analysis/drivers/md/md.c:2350:6: warning: mutex 'mddev->lock' is not held on every path through here [-Wthread-safety-analysis]
  6414.         if (mddev->safemode == 1)
  6415.             ^
  6416. /home/himanshu/clang-thread-safety-analysis/drivers/md/md.c:2335:3: note: mutex acquired here
  6417.                 spin_lock(&mddev->lock);
  6418.                 ^
  6419.   CC      drivers/iommu/amd_iommu_init.o
  6420.   AR      drivers/gpu/drm/i915/built-in.a
  6421.   CC      drivers/gpu/drm/drm_gem.o
  6422.   CC      drivers/md/dm.o
  6423.   CC      drivers/iommu/dmar.o
  6424.   CC      drivers/gpu/drm/drm_ioctl.o
  6425.   CC      drivers/md/dm-table.o
  6426.   CC      drivers/gpu/drm/drm_irq.o
  6427. 3 warnings generated.
  6428.   CC      drivers/iommu/intel-iommu.o
  6429.   CC      drivers/md/dm-target.o
  6430.   CC      drivers/gpu/drm/drm_memory.o
  6431.   CC      drivers/md/dm-linear.o
  6432.   CC      drivers/md/dm-stripe.o
  6433.   CC      drivers/gpu/drm/drm_drv.o
  6434.   CC      drivers/md/dm-ioctl.o
  6435.   CC      drivers/md/dm-io.o
  6436.   CC      drivers/iommu/intel-pasid.o
  6437.   CC      drivers/gpu/drm/drm_pci.o
  6438.   CC      drivers/md/dm-kcopyd.o
  6439.   CC      drivers/md/dm-sysfs.o
  6440.   AR      drivers/iommu/built-in.a
  6441.   AR      drivers/media/common/b2c2/built-in.a
  6442.   CC      drivers/gpu/drm/drm_sysfs.o
  6443.   AR      drivers/media/common/saa7146/built-in.a
  6444.   AR      drivers/media/common/siano/built-in.a
  6445.   AR      drivers/media/common/v4l2-tpg/built-in.a
  6446.   AR      drivers/media/common/videobuf2/built-in.a
  6447.   AR      drivers/media/common/built-in.a
  6448.   AR      drivers/media/firewire/built-in.a
  6449.   AR      drivers/media/i2c/built-in.a
  6450.   AR      drivers/media/mmc/siano/built-in.a
  6451.   AR      drivers/media/mmc/built-in.a
  6452.   AR      drivers/media/pci/b2c2/built-in.a
  6453.   AR      drivers/media/pci/ddbridge/built-in.a
  6454.   AR      drivers/media/pci/dm1105/built-in.a
  6455.   AR      drivers/media/pci/intel/ipu3/built-in.a
  6456.   AR      drivers/media/pci/intel/built-in.a
  6457.   AR      drivers/media/pci/mantis/built-in.a
  6458.   AR      drivers/media/pci/netup_unidvb/built-in.a
  6459.   AR      drivers/media/pci/ngene/built-in.a
  6460.   AR      drivers/media/pci/pluto2/built-in.a
  6461.   AR      drivers/media/pci/pt1/built-in.a
  6462.   AR      drivers/media/pci/pt3/built-in.a
  6463.   AR      drivers/media/pci/saa7146/built-in.a
  6464.   AR      drivers/media/pci/smipcie/built-in.a
  6465.   AR      drivers/media/pci/ttpci/built-in.a
  6466.   AR      drivers/media/pci/built-in.a
  6467.   AR      drivers/media/platform/cros-ec-cec/built-in.a
  6468.   AR      drivers/media/platform/davinci/built-in.a
  6469.   AR      drivers/media/platform/meson/built-in.a
  6470.   AR      drivers/media/platform/omap/built-in.a
  6471.   AR      drivers/media/platform/stm32/built-in.a
  6472.   AR      drivers/media/platform/built-in.a
  6473.   AR      drivers/media/rc/keymaps/built-in.a
  6474.   AR      drivers/media/rc/built-in.a
  6475.   AR      drivers/media/spi/built-in.a
  6476.   AR      drivers/media/tuners/built-in.a
  6477.   AR      drivers/media/usb/b2c2/built-in.a
  6478.   AR      drivers/media/usb/dvb-usb/built-in.a
  6479.   AR      drivers/media/usb/dvb-usb-v2/built-in.a
  6480.   AR      drivers/media/usb/s2255/built-in.a
  6481.   AR      drivers/media/usb/siano/built-in.a
  6482.   AR      drivers/media/usb/stkwebcam/built-in.a
  6483.   AR      drivers/media/usb/ttusb-budget/built-in.a
  6484.   AR      drivers/media/usb/ttusb-dec/built-in.a
  6485.   AR      drivers/media/usb/zr364xx/built-in.a
  6486.   AR      drivers/media/usb/built-in.a
  6487.   AR      drivers/media/built-in.a
  6488.   AR      drivers/mfd/built-in.a
  6489.   AR      drivers/misc/cardreader/built-in.a
  6490.   AR      drivers/misc/cb710/built-in.a
  6491.   AR      drivers/misc/eeprom/built-in.a
  6492.   AR      drivers/misc/lis3lv02d/built-in.a
  6493.   AR      drivers/misc/mic/bus/built-in.a
  6494.   AR      drivers/misc/mic/built-in.a
  6495.   AR      drivers/misc/ti-st/built-in.a
  6496.   AR      drivers/misc/built-in.a
  6497.   AR      drivers/mmc/built-in.a
  6498.   CC      drivers/md/dm-stats.o
  6499.   AR      drivers/net/dsa/b53/built-in.a
  6500.   AR      drivers/net/dsa/microchip/built-in.a
  6501.   AR      drivers/net/dsa/mv88e6xxx/built-in.a
  6502.   AR      drivers/net/dsa/sja1105/built-in.a
  6503.   AR      drivers/net/dsa/built-in.a
  6504.   CC      drivers/gpu/drm/drm_hashtab.o
  6505.   AR      drivers/net/ethernet/3com/built-in.a
  6506.   AR      drivers/net/ethernet/8390/built-in.a
  6507.   AR      drivers/net/ethernet/adaptec/built-in.a
  6508.   AR      drivers/net/ethernet/agere/built-in.a
  6509.   AR      drivers/net/ethernet/alacritech/built-in.a
  6510.   AR      drivers/net/ethernet/alteon/built-in.a
  6511.   AR      drivers/net/ethernet/amazon/built-in.a
  6512.   AR      drivers/net/ethernet/amd/built-in.a
  6513.   AR      drivers/net/ethernet/aquantia/built-in.a
  6514.   AR      drivers/net/ethernet/arc/built-in.a
  6515.   AR      drivers/net/ethernet/atheros/built-in.a
  6516.   AR      drivers/net/ethernet/aurora/built-in.a
  6517.   CC      drivers/net/ethernet/broadcom/tg3.o
  6518.   AR      drivers/net/ethernet/brocade/built-in.a
  6519.   AR      drivers/net/ethernet/cadence/built-in.a
  6520.   AR      drivers/net/ethernet/cavium/common/built-in.a
  6521.   AR      drivers/net/ethernet/cavium/liquidio/built-in.a
  6522.   AR      drivers/net/ethernet/cavium/octeon/built-in.a
  6523.   AR      drivers/net/ethernet/cavium/thunder/built-in.a
  6524.   AR      drivers/net/ethernet/cavium/built-in.a
  6525.   AR      drivers/net/ethernet/chelsio/built-in.a
  6526.   AR      drivers/net/ethernet/cisco/built-in.a
  6527.   AR      drivers/net/ethernet/cortina/built-in.a
  6528.   AR      drivers/net/ethernet/dec/tulip/built-in.a
  6529.   AR      drivers/net/ethernet/dec/built-in.a
  6530.   AR      drivers/net/ethernet/dlink/built-in.a
  6531.   AR      drivers/net/ethernet/emulex/built-in.a
  6532.   AR      drivers/net/ethernet/ezchip/built-in.a
  6533.   AR      drivers/net/ethernet/fujitsu/built-in.a
  6534.   AR      drivers/net/ethernet/hp/built-in.a
  6535.   AR      drivers/net/ethernet/huawei/built-in.a
  6536.   AR      drivers/net/ethernet/i825xx/built-in.a
  6537.   CC      drivers/net/ethernet/intel/e1000/e1000_main.o
  6538.   CC      drivers/gpu/drm/drm_mm.o
  6539.   CC      drivers/md/dm-rq.o
  6540.   CC      drivers/gpu/drm/drm_crtc.o
  6541.   CC      drivers/md/dm-builtin.o
  6542.   CC      drivers/gpu/drm/drm_fourcc.o
  6543.   CC      drivers/net/ethernet/intel/e1000/e1000_hw.o
  6544.   CC      drivers/md/dm-raid1.o
  6545.   CC      drivers/gpu/drm/drm_modes.o
  6546.   CC      drivers/md/dm-log.o
  6547.   CC      drivers/gpu/drm/drm_edid.o
  6548.   CC      drivers/net/ethernet/intel/e1000/e1000_ethtool.o
  6549.   CC      drivers/md/dm-region-hash.o
  6550.   CC      drivers/md/dm-zero.o
  6551.   CC      drivers/net/ethernet/intel/e1000/e1000_param.o
  6552.   AR      drivers/md/built-in.a
  6553.   AR      drivers/nfc/built-in.a
  6554.   AR      drivers/nvme/host/built-in.a
  6555.   AR      drivers/nvme/target/built-in.a
  6556.   AR      drivers/nvme/built-in.a
  6557.   CC      drivers/nvmem/core.o
  6558.   CC      drivers/gpu/drm/drm_encoder_slave.o
  6559.   AR      drivers/net/ethernet/broadcom/built-in.a
  6560.   AR      drivers/net/ethernet/marvell/octeontx2/built-in.a
  6561.   CC      drivers/net/ethernet/marvell/sky2.o
  6562.   CC      drivers/gpu/drm/drm_trace_points.o
  6563.   CC      drivers/nvmem/nvmem-sysfs.o
  6564.   AR      drivers/net/ethernet/intel/e1000/built-in.a
  6565.   CC      drivers/net/ethernet/intel/e1000e/82571.o
  6566.   AR      drivers/nvmem/built-in.a
  6567.   AR      drivers/pci/controller/dwc/built-in.a
  6568.   AR      drivers/pci/controller/built-in.a
  6569.   CC      drivers/pci/hotplug/pci_hotplug_core.o
  6570.   CC      drivers/gpu/drm/drm_prime.o
  6571.   CC      drivers/net/ethernet/intel/e1000e/ich8lan.o
  6572.   CC      drivers/pci/hotplug/acpi_pcihp.o
  6573.   CC      drivers/gpu/drm/drm_rect.o
  6574.   AR      drivers/pci/hotplug/built-in.a
  6575.   CC      drivers/pci/pcie/portdrv_core.o
  6576.   CC      drivers/gpu/drm/drm_vma_manager.o
  6577.   AR      drivers/net/ethernet/marvell/built-in.a
  6578.   AR      drivers/net/ethernet/mellanox/built-in.a
  6579.   AR      drivers/net/ethernet/micrel/built-in.a
  6580.   AR      drivers/net/ethernet/microchip/built-in.a
  6581.   AR      drivers/net/ethernet/mscc/built-in.a
  6582.   AR      drivers/net/ethernet/myricom/built-in.a
  6583.   AR      drivers/net/ethernet/natsemi/built-in.a
  6584.   AR      drivers/net/ethernet/neterion/built-in.a
  6585.   AR      drivers/net/ethernet/netronome/built-in.a
  6586.   AR      drivers/net/ethernet/ni/built-in.a
  6587.   CC      drivers/net/ethernet/nvidia/forcedeth.o
  6588.   CC      drivers/pci/pcie/portdrv_pci.o
  6589.   CC      drivers/net/ethernet/intel/e1000e/80003es2lan.o
  6590.   CC      drivers/gpu/drm/drm_flip_work.o
  6591.   CC      drivers/pci/pcie/err.o
  6592. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4205:3: warning: releasing mutex 'np->hwstats_lock' that was not held [-Wthread-safety-analysis]
  6593.                 spin_unlock(&np->hwstats_lock);
  6594.                 ^
  6595. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4664:21: warning: mutex 'dev->tx_global_lock' is not held on every path through here [-Wthread-safety-analysis]
  6596.         np->rx_ring_size = ring->rx_pending;
  6597.                            ^
  6598. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4651:3: note: mutex acquired here
  6599.                 netif_tx_lock_bh(dev);
  6600.                 ^
  6601. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4664:21: warning: mutex 'dev->addr_list_lock' is not held on every path through here [-Wthread-safety-analysis]
  6602.         np->rx_ring_size = ring->rx_pending;
  6603.                            ^
  6604. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4652:3: note: mutex acquired here
  6605.                 netif_addr_lock(dev);
  6606.                 ^
  6607. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4664:21: warning: mutex 'np->lock' is not held on every path through here [-Wthread-safety-analysis]
  6608.         np->rx_ring_size = ring->rx_pending;
  6609.                            ^
  6610. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4653:3: note: mutex acquired here
  6611.                 spin_lock(&np->lock);
  6612.                 ^
  6613. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4700:3: warning: releasing mutex 'np->lock' that was not held [-Wthread-safety-analysis]
  6614.                 spin_unlock(&np->lock);
  6615.                 ^
  6616. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4701:3: warning: releasing mutex 'dev->addr_list_lock' that was not held [-Wthread-safety-analysis]
  6617.                 netif_addr_unlock(dev);
  6618.                 ^
  6619. /home/himanshu/clang-thread-safety-analysis/drivers/net/ethernet/nvidia/forcedeth.c:4702:3: warning: releasing mutex 'dev->tx_global_lock' that was not held [-Wthread-safety-analysis]
  6620.                 netif_tx_unlock_bh(dev);
  6621.                 ^
  6622.   CC      drivers/gpu/drm/drm_modeset_lock.o
  6623.   CC      drivers/pci/pcie/aspm.o
  6624.   CC      drivers/net/ethernet/intel/e1000e/mac.o
  6625.   CC      drivers/gpu/drm/drm_atomic.o
  6626.   CC      drivers/pci/pcie/aer.o
  6627.   CC      drivers/net/ethernet/intel/e1000e/manage.o
  6628. 7 warnings generated.
  6629.   AR      drivers/net/ethernet/nvidia/built-in.a
  6630.   AR      drivers/net/ethernet/oki-semi/built-in.a
  6631.   AR      drivers/net/ethernet/packetengines/built-in.a
  6632.   AR      drivers/net/ethernet/qlogic/built-in.a
  6633.   CC      drivers/gpu/drm/drm_bridge.o
  6634.   AR      drivers/net/ethernet/qualcomm/emac/built-in.a
  6635.   AR      drivers/net/ethernet/qualcomm/built-in.a
  6636.   AR      drivers/net/ethernet/rdc/built-in.a
  6637.   CC      drivers/net/ethernet/realtek/8139too.o
  6638.   CC      drivers/pci/pcie/pme.o
  6639.   CC      drivers/net/ethernet/intel/e1000e/nvm.o
  6640.   CC      drivers/gpu/drm/drm_framebuffer.o
  6641.   AR      drivers/pci/pcie/built-in.a
  6642.   AR      drivers/pci/switch/built-in.a
  6643.   CC      drivers/pci/access.o
  6644.   CC      drivers/net/ethernet/realtek/r8169.o
  6645.   CC      drivers/net/ethernet/intel/e1000e/phy.o
  6646.   CC      drivers/gpu/drm/drm_connector.o
  6647.   CC      drivers/pci/bus.o
  6648.   CC      drivers/pci/probe.o
  6649.   CC      drivers/gpu/drm/drm_blend.o
  6650.   CC      drivers/net/ethernet/intel/e1000e/param.o
  6651.   CC      drivers/gpu/drm/drm_encoder.o
  6652.   CC      drivers/pci/host-bridge.o
  6653.   CC      drivers/net/ethernet/intel/e1000e/ethtool.o
  6654.   CC      drivers/gpu/drm/drm_mode_object.o
  6655.   CC      drivers/pci/remove.o
  6656.   AR      drivers/net/ethernet/realtek/built-in.a
  6657.   AR      drivers/net/ethernet/renesas/built-in.a
  6658.   AR      drivers/net/ethernet/rocker/built-in.a
  6659.   AR      drivers/net/ethernet/samsung/built-in.a
  6660.   AR      drivers/net/ethernet/seeq/built-in.a
  6661.   AR      drivers/net/ethernet/sfc/built-in.a
  6662.   AR      drivers/net/ethernet/silan/built-in.a
  6663.   CC      drivers/pci/pci.o
  6664.   CC      drivers/pci/pci-driver.o
  6665.   CC      drivers/gpu/drm/drm_property.o
  6666.   CC      drivers/net/ethernet/intel/e1000e/netdev.o
  6667.   CC      drivers/gpu/drm/drm_plane.o
  6668.   CC      drivers/pci/search.o
  6669.   CC      drivers/gpu/drm/drm_color_mgmt.o
  6670.   CC      drivers/gpu/drm/drm_print.o
  6671.   CC      drivers/pci/pci-sysfs.o
  6672.   CC      drivers/gpu/drm/drm_dumb_buffers.o
  6673.   AR      drivers/net/ethernet/sis/built-in.a
  6674.   CC      drivers/pci/rom.o
  6675.   CC      drivers/pci/setup-res.o
  6676.   CC      drivers/pci/irq.o
  6677.   CC      drivers/gpu/drm/drm_mode_config.o
  6678.   CC      drivers/net/ethernet/intel/e1000e/ptp.o
  6679.   CC      drivers/pci/vpd.o
  6680.   CC      drivers/pci/setup-bus.o
  6681.   CC      drivers/gpu/drm/drm_vblank.o
  6682.   AR      drivers/net/ethernet/intel/e1000e/built-in.a
  6683.   CC      drivers/net/ethernet/intel/e100.o
  6684.   CC      drivers/pci/vc.o
  6685.   CC      drivers/pci/mmap.o
  6686.   CC      drivers/pci/setup-irq.o
  6687.   CC      drivers/gpu/drm/drm_syncobj.o
  6688.   AR      drivers/net/ethernet/intel/built-in.a
  6689.   AR      drivers/net/ethernet/smsc/built-in.a
  6690.   AR      drivers/net/ethernet/socionext/built-in.a
  6691.   AR      drivers/net/ethernet/stmicro/built-in.a
  6692.   AR      drivers/net/ethernet/sun/built-in.a
  6693.   AR      drivers/net/ethernet/synopsys/built-in.a
  6694.   AR      drivers/net/ethernet/tehuti/built-in.a
  6695.   AR      drivers/net/ethernet/ti/built-in.a
  6696.   AR      drivers/net/ethernet/via/built-in.a
  6697.   AR      drivers/net/ethernet/wiznet/built-in.a
  6698.   CC      drivers/pci/proc.o
  6699.   AR      drivers/net/ethernet/xilinx/built-in.a
  6700.   CC      drivers/gpu/drm/drm_lease.o
  6701.   AR      drivers/net/ethernet/xircom/built-in.a
  6702.   AR      drivers/net/ethernet/built-in.a
  6703.   AR      drivers/net/fddi/built-in.a
  6704.   AR      drivers/net/hamradio/built-in.a
  6705.   CC      drivers/net/phy/mdio-boardinfo.o
  6706.   CC      drivers/gpu/drm/drm_writeback.o
  6707.   CC      drivers/pci/slot.o
  6708.   CC      drivers/net/phy/phy.o
  6709.   CC      drivers/net/phy/phy-c45.o
  6710.   CC      drivers/pci/pci-acpi.o
  6711.   CC      drivers/gpu/drm/drm_client.o
  6712.   CC      drivers/gpu/drm/drm_atomic_uapi.o
  6713.   CC      drivers/net/phy/phy-core.o
  6714.   CC      drivers/gpu/drm/drm_ioc32.o
  6715.   CC      drivers/pci/quirks.o
  6716.   CC      drivers/gpu/drm/drm_panel.o
  6717.   CC      drivers/net/phy/phy_device.o
  6718.   CC      drivers/gpu/drm/drm_agpsupport.o
  6719.   CC      drivers/gpu/drm/drm_debugfs.o
  6720.   CC      drivers/pci/msi.o
  6721.   CC      drivers/gpu/drm/drm_debugfs_crc.o
  6722.   CC      drivers/gpu/drm/drm_mipi_dsi.o
  6723.   CC      drivers/net/phy/mdio_bus.o
  6724.   CC      drivers/net/phy/mdio_device.o
  6725.   CC      drivers/gpu/drm/drm_panel_orientation_quirks.o
  6726.   CC      drivers/pci/ats.o
  6727.   AR      drivers/gpu/drm/built-in.a
  6728.   AR      drivers/gpu/built-in.a
  6729.   CC      drivers/pci/pci-label.o
  6730.   CC      drivers/net/phy/realtek.o
  6731.   CC      drivers/pcmcia/cs.o
  6732.   CC      drivers/pcmcia/socket_sysfs.o
  6733.   AR      drivers/pci/built-in.a
  6734.   AR      drivers/perf/built-in.a
  6735.   CC      drivers/platform/x86/eeepc-laptop.o
  6736.   AR      drivers/net/phy/built-in.a
  6737.   AR      drivers/net/usb/built-in.a
  6738.   AR      drivers/net/wireless/admtek/built-in.a
  6739.   AR      drivers/net/wireless/ath/built-in.a
  6740.   AR      drivers/net/wireless/atmel/built-in.a
  6741.   AR      drivers/net/wireless/broadcom/built-in.a
  6742.   AR      drivers/net/wireless/cisco/built-in.a
  6743.   CC      drivers/pcmcia/cardbus.o
  6744.   AR      drivers/net/wireless/intel/built-in.a
  6745.   AR      drivers/net/wireless/intersil/built-in.a
  6746.   AR      drivers/net/wireless/marvell/built-in.a
  6747.   AR      drivers/net/wireless/mediatek/built-in.a
  6748.   AR      drivers/net/wireless/quantenna/built-in.a
  6749.   AR      drivers/net/wireless/ralink/built-in.a
  6750.   AR      drivers/net/wireless/realtek/built-in.a
  6751.   CC      drivers/net/mii.o
  6752.   AR      drivers/net/wireless/rsi/built-in.a
  6753.   AR      drivers/net/wireless/st/built-in.a
  6754.   AR      drivers/net/wireless/ti/built-in.a
  6755.   AR      drivers/net/wireless/zydas/built-in.a
  6756.   AR      drivers/net/wireless/built-in.a
  6757.   CC      drivers/net/Space.o
  6758.   CC      drivers/platform/x86/pmc_atom.o
  6759.   CC      drivers/pcmcia/ds.o
  6760.   CC      drivers/net/loopback.o
  6761.   CC      drivers/net/netconsole.o
  6762.   AR      drivers/platform/x86/built-in.a
  6763.   AR      drivers/platform/built-in.a
  6764.   CC      drivers/pnp/pnpacpi/core.o
  6765.   CC      drivers/pcmcia/pcmcia_resource.o
  6766.   CC      drivers/pcmcia/cistpl.o
  6767.   CC      drivers/pnp/pnpacpi/rsparser.o
  6768.   AR      drivers/net/built-in.a
  6769.   CC      drivers/power/supply/power_supply_core.o
  6770.   CC      drivers/pcmcia/pcmcia_cis.o
  6771.   CC      drivers/power/supply/power_supply_sysfs.o
  6772.   AR      drivers/pnp/pnpacpi/built-in.a
  6773.   CC      drivers/pnp/core.o
  6774.   CC      drivers/pcmcia/rsrc_mgr.o
  6775.   CC      drivers/power/supply/power_supply_leds.o
  6776.   CC      drivers/pcmcia/rsrc_nonstatic.o
  6777.   CC      drivers/pnp/card.o
  6778.   AR      drivers/power/supply/built-in.a
  6779.   AR      drivers/power/built-in.a
  6780.   AR      drivers/pps/clients/built-in.a
  6781.   AR      drivers/pps/generators/built-in.a
  6782.   CC      drivers/pps/pps.o
  6783.   CC      drivers/pcmcia/yenta_socket.o
  6784.   CC      drivers/pnp/driver.o
  6785.   CC      drivers/pps/kapi.o
  6786.   CC      drivers/pnp/resource.o
  6787.   CC      drivers/pnp/manager.o
  6788.   CC      drivers/pps/sysfs.o
  6789.   AR      drivers/pcmcia/built-in.a
  6790.   CC      drivers/ptp/ptp_clock.o
  6791.   CC      drivers/pnp/support.o
  6792.   CC      drivers/pnp/interface.o
  6793.   AR      drivers/pps/built-in.a
  6794.   CC      drivers/pnp/quirks.o
  6795.   CC      drivers/pnp/system.o
  6796.   AR      drivers/pwm/built-in.a
  6797.   CC      drivers/ras/ras.o
  6798.   CC      drivers/ptp/ptp_chardev.o
  6799.   CC      drivers/ptp/ptp_sysfs.o
  6800.   AR      drivers/pnp/built-in.a
  6801.   CC      drivers/rtc/lib.o
  6802.   CC      drivers/ras/debugfs.o
  6803.   AR      drivers/ptp/built-in.a
  6804.   AR      drivers/scsi/pcmcia/built-in.a
  6805.   CC      drivers/scsi/scsi.o
  6806.   CC      drivers/rtc/systohc.o
  6807.   CC      drivers/scsi/hosts.o
  6808.   AR      drivers/ras/built-in.a
  6809.   AR      drivers/soc/amlogic/built-in.a
  6810.   AR      drivers/soc/bcm/built-in.a
  6811.   AR      drivers/soc/fsl/built-in.a
  6812.   AR      drivers/soc/mediatek/built-in.a
  6813.   AR      drivers/soc/qcom/built-in.a
  6814.   AR      drivers/soc/renesas/built-in.a
  6815.   AR      drivers/soc/sunxi/built-in.a
  6816.   AR      drivers/soc/xilinx/built-in.a
  6817.   AR      drivers/soc/built-in.a
  6818.   AR      drivers/thermal/broadcom/built-in.a
  6819.   AR      drivers/thermal/intel/built-in.a
  6820.   CC [M]  drivers/thermal/intel/x86_pkg_temp_thermal.o
  6821.   CC      drivers/rtc/class.o
  6822.   CC      drivers/scsi/scsi_ioctl.o
  6823.   CC      drivers/scsi/scsicam.o
  6824.   CC      drivers/rtc/interface.o
  6825.   AR      drivers/thermal/samsung/built-in.a
  6826.   AR      drivers/thermal/st/built-in.a
  6827.   AR      drivers/thermal/tegra/built-in.a
  6828.   CC      drivers/thermal/thermal_core.o
  6829.   CC      drivers/scsi/scsi_error.o
  6830.   CC      drivers/scsi/scsi_lib.o
  6831.   CC      drivers/rtc/nvmem.o
  6832.   CC      drivers/thermal/thermal_sysfs.o
  6833.   CC      drivers/rtc/dev.o
  6834.   CC      drivers/scsi/constants.o
  6835.   CC      drivers/thermal/thermal_helpers.o
  6836.   CC      drivers/scsi/scsi_lib_dma.o
  6837.   CC      drivers/rtc/proc.o
  6838.   CC      drivers/thermal/thermal_hwmon.o
  6839.   CC      drivers/scsi/scsi_scan.o
  6840.   CC      drivers/rtc/sysfs.o
  6841.   GEN     drivers/scsi/scsi_devinfo_tbl.c
  6842.   CC      drivers/scsi/scsi_devinfo.o
  6843.   CC      drivers/thermal/step_wise.o
  6844.   CC      drivers/rtc/rtc-mc146818-lib.o
  6845.   CC      drivers/thermal/user_space.o
  6846.   CC      drivers/scsi/scsi_sysctl.o
  6847.   CC      drivers/scsi/scsi_proc.o
  6848.   CC      drivers/rtc/rtc-cmos.o
  6849.   AR      drivers/thermal/built-in.a
  6850.   AR      drivers/tty/ipwireless/built-in.a
  6851.   CC      drivers/tty/serial/8250/8250_core.o
  6852.   CC      drivers/scsi/scsi_debugfs.o
  6853.   CC      drivers/tty/serial/serial_core.o
  6854.   AR      drivers/rtc/built-in.a
  6855.   CC      drivers/usb/class/usblp.o
  6856.   CC      drivers/scsi/scsi_trace.o
  6857.   CC      drivers/tty/serial/8250/8250_pnp.o
  6858.   AR      drivers/usb/class/built-in.a
  6859.   CC      drivers/usb/common/common.o
  6860.   CC      drivers/tty/serial/earlycon.o
  6861.   CC      drivers/tty/serial/8250/8250_port.o
  6862.   CC      drivers/scsi/scsi_logging.o
  6863.   AR      drivers/usb/common/built-in.a
  6864.   CC      drivers/usb/core/usb.o
  6865.   CC      drivers/usb/core/hub.o
  6866.   CC      drivers/scsi/scsi_pm.o
  6867.   CC      drivers/usb/core/hcd.o
  6868.   CC      drivers/tty/serial/8250/8250_dma.o
  6869.   CC      drivers/scsi/scsi_common.o
  6870. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/hcd.c:1869:36: warning: expecting mutex 'hcd_urb_list_lock' to be held at start of each loop [-Wthread-safety-analysis]
  6871.         list_for_each_entry_reverse(urb, &ep->urb_list, urb_list) {
  6872.                                           ^
  6873. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/hcd.c:1888:3: note: mutex acquired here
  6874.                 spin_lock(&hcd_urb_list_lock);
  6875.                 ^
  6876. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/hcd.c:1876:3: warning: releasing mutex 'hcd_urb_list_lock' that was not held [-Wthread-safety-analysis]
  6877.                 spin_unlock(&hcd_urb_list_lock);
  6878.                 ^
  6879.   CC      drivers/scsi/scsi_transport_spi.o
  6880.   CC      drivers/tty/serial/8250/8250_pci.o
  6881. 2 warnings generated.
  6882.   CC      drivers/usb/core/urb.o
  6883.   CC      drivers/tty/vt/vt_ioctl.o
  6884.   CC      drivers/tty/serial/8250/8250_exar.o
  6885.   CC      drivers/scsi/sd.o
  6886.   CC      drivers/usb/core/message.o
  6887.   CC      drivers/tty/vt/vc_screen.o
  6888.   CC      drivers/tty/serial/8250/8250_early.o
  6889.   CC      drivers/tty/vt/selection.o
  6890.   CC      drivers/usb/core/driver.o
  6891.   CC      drivers/tty/serial/8250/8250_lpss.o
  6892.   CC      drivers/scsi/sr.o
  6893.   CC      drivers/tty/vt/keyboard.o
  6894.   CC      drivers/tty/serial/8250/8250_mid.o
  6895.   CC      drivers/usb/core/config.o
  6896.   CC      drivers/scsi/sr_ioctl.o
  6897.   AR      drivers/tty/serial/8250/built-in.a
  6898.   AR      drivers/tty/serial/built-in.a
  6899.   CC      drivers/tty/tty_io.o
  6900.   CC      drivers/usb/core/file.o
  6901.   CC      drivers/tty/vt/consolemap.o
  6902.   CC      drivers/scsi/sr_vendor.o
  6903.   CC      drivers/usb/core/buffer.o
  6904.   CC      drivers/scsi/sg.o
  6905.   CONMK   drivers/tty/vt/consolemap_deftbl.c
  6906.   CC      drivers/tty/vt/vt.o
  6907.   CC      drivers/tty/n_tty.o
  6908.   CC      drivers/usb/core/sysfs.o
  6909. /home/himanshu/clang-thread-safety-analysis/drivers/tty/vt/vt.c:2981:2: warning: releasing mutex 'printing_lock' that was not held [-Wthread-safety-analysis]
  6910.         spin_unlock(&printing_lock);
  6911.         ^
  6912.   CC      drivers/usb/core/endpoint.o
  6913.   CC      drivers/scsi/scsi_sysfs.o
  6914.   CC      drivers/tty/tty_ioctl.o
  6915.   CC      drivers/usb/core/devio.o
  6916.   CC      drivers/tty/tty_ldisc.o
  6917. 1 warning generated.
  6918.   SHIPPED drivers/tty/vt/defkeymap.c
  6919.   CC      drivers/tty/vt/consolemap_deftbl.o
  6920. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/devio.c:567:27: warning: expecting mutex 'ps->lock' to be held at start of each loop [-Wthread-safety-analysis]
  6921.         list_for_each_entry(as, &ps->async_pending, asynclist) {
  6922.                                  ^
  6923. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/devio.c:575:4: note: mutex acquired here
  6924.                         spin_lock(&ps->lock);
  6925.                         ^
  6926. /home/himanshu/clang-thread-safety-analysis/drivers/usb/core/devio.c:572:4: warning: releasing mutex 'ps->lock' that was not held [-Wthread-safety-analysis]
  6927.                         spin_unlock(&ps->lock);         /* Allow completions */
  6928.                         ^
  6929.   AR      drivers/scsi/built-in.a
  6930.   CC      drivers/video/backlight/backlight.o
  6931.   CC      drivers/tty/vt/defkeymap.o
  6932.   AR      drivers/tty/vt/built-in.a
  6933.   CC      drivers/tty/tty_buffer.o
  6934.   AR      drivers/watchdog/built-in.a
  6935.   CC      drivers/tty/tty_port.o
  6936.   CC      drivers/video/backlight/generic_bl.o
  6937.   CC      drivers/tty/tty_mutex.o
  6938. 2 warnings generated.
  6939.   CC      drivers/usb/core/notify.o
  6940.   AR      drivers/video/backlight/built-in.a
  6941.   CC      drivers/video/console/dummycon.o
  6942.   CC      drivers/tty/tty_ldsem.o
  6943.   CC      drivers/usb/core/generic.o
  6944.   CC      drivers/usb/core/quirks.o
  6945.   CC      drivers/video/console/vgacon.o
  6946.   CC      drivers/tty/tty_baudrate.o
  6947.   CC      drivers/usb/core/devices.o
  6948.   CC      drivers/usb/core/phy.o
  6949.   CC      drivers/tty/tty_jobctrl.o
  6950.   CC      drivers/usb/core/port.o
  6951.   AR      drivers/video/console/built-in.a
  6952.   CC      drivers/video/fbdev/core/fb_cmdline.o
  6953.   CC      drivers/usb/core/hcd-pci.o
  6954.   CC      drivers/tty/n_null.o
  6955.   CC      drivers/video/fbdev/core/fb_notify.o
  6956.   CC      drivers/usb/core/usb-acpi.o
  6957.   CC      drivers/tty/pty.o
  6958.   CC      drivers/video/fbdev/core/fbmem.o
  6959.   CC      drivers/video/fbdev/core/fbmon.o
  6960.   AR      drivers/usb/core/built-in.a
  6961.   CC      drivers/usb/early/ehci-dbgp.o
  6962.   CC      drivers/tty/tty_audit.o
  6963.   AR      drivers/usb/early/built-in.a
  6964.   CC      drivers/usb/host/pci-quirks.o
  6965.   CC      drivers/video/fbdev/core/fbcmap.o
  6966.   CC      drivers/video/fbdev/core/fbsysfs.o
  6967.   CC      drivers/tty/sysrq.o
  6968.   CC      drivers/video/fbdev/core/modedb.o
  6969.   CC      drivers/usb/host/ehci-hcd.o
  6970.   CC      drivers/usb/host/ehci-pci.o
  6971.   AR      drivers/tty/built-in.a
  6972.   CC      drivers/usb/host/ohci-hcd.o
  6973.   CC      drivers/video/fbdev/core/fbcvt.o
  6974.   CC      drivers/usb/host/ohci-pci.o
  6975. In file included from /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-hcd.c:89:
  6976. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-q.c:52:2: warning: expecting mutex 'ohci->lock' to be held at start of each loop [-Wthread-safety-analysis]
  6977.         urb_free_priv (ohci, urb->hcpriv);
  6978.         ^
  6979. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-q.c:76:2: note: mutex acquired here
  6980.         spin_lock (&ohci->lock);
  6981.         ^
  6982. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-q.c:74:2: warning: releasing mutex 'ohci->lock' that was not held [-Wthread-safety-analysis]
  6983.         spin_unlock (&ohci->lock);
  6984.         ^
  6985. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-q.c:99:1: warning: mutex 'ohci->lock' is still held at the end of function [-Wthread-safety-analysis]
  6986. }
  6987. ^
  6988. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/ohci-q.c:76:2: note: mutex acquired here
  6989.         spin_lock (&ohci->lock);
  6990.         ^
  6991.   CC      drivers/video/fbdev/core/fb_defio.o
  6992.   CC      drivers/usb/host/uhci-hcd.o
  6993.   CC      drivers/video/fbdev/core/fbcon.o
  6994. 3 warnings generated.
  6995.   CC      drivers/usb/host/xhci.o
  6996. In file included from /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/uhci-hcd.c:125:
  6997. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/uhci-q.c:1555:2: warning: releasing mutex 'uhci->lock' that was not held [-Wthread-safety-analysis]
  6998.         spin_unlock(&uhci->lock);
  6999.         ^
  7000. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/uhci-q.c:1566:1: warning: mutex 'uhci->lock' is still held at the end of function [-Wthread-safety-analysis]
  7001. }
  7002. ^
  7003. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/uhci-q.c:1557:2: note: mutex acquired here
  7004.         spin_lock(&uhci->lock);
  7005.         ^
  7006.   CC      drivers/usb/host/xhci-mem.o
  7007. 2 warnings generated.
  7008.   CC      drivers/usb/host/xhci-ext-caps.o
  7009.   CC      drivers/usb/host/xhci-ring.o
  7010.   CC      drivers/video/fbdev/core/bitblit.o
  7011.   CC      drivers/usb/host/xhci-hub.o
  7012.   CC      drivers/usb/host/xhci-dbg.o
  7013.   CC      drivers/video/fbdev/core/softcursor.o
  7014. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:647:2: warning: releasing mutex 'xhci->lock' that was not held [-Wthread-safety-analysis]
  7015.         spin_unlock(&xhci->lock);
  7016.         ^
  7017. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:651:1: warning: mutex 'xhci->lock' is still held at the end of function [-Wthread-safety-analysis]
  7018. }
  7019. ^
  7020. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:650:2: note: mutex acquired here
  7021.         spin_lock(&xhci->lock);
  7022.         ^
  7023. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:1720:2: warning: releasing mutex 'xhci->lock' that was not held [-Wthread-safety-analysis]
  7024.         spin_unlock(&xhci->lock);
  7025.         ^
  7026. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:1724:1: warning: mutex 'xhci->lock' is not held on every path through here [-Wthread-safety-analysis]
  7027. }
  7028. ^
  7029. /home/himanshu/clang-thread-safety-analysis/drivers/usb/host/xhci-ring.c:1723:2: note: mutex acquired here
  7030.         spin_lock(&xhci->lock);
  7031.         ^
  7032.   CC      drivers/usb/host/xhci-trace.o
  7033.   CC      drivers/video/fbdev/core/tileblit.o
  7034. 4 warnings generated.
  7035.   CC      drivers/video/fbdev/core/cfbfillrect.o
  7036.   CC      drivers/usb/host/xhci-debugfs.o
  7037.   AR      drivers/usb/misc/built-in.a
  7038.   CC      drivers/video/logo/logo.o
  7039.   LOGO    drivers/video/logo/logo_linux_clut224.c
  7040.   LOGO    drivers/video/logo/logo_superh_mono.c
  7041.   LOGO    drivers/video/logo/logo_linux_mono.c
  7042.   LOGO    drivers/video/logo/logo_superh_vga16.c
  7043.   LOGO    drivers/video/logo/clut_vga16.c
  7044.   LOGO    drivers/video/logo/logo_linux_vga16.c
  7045.   LOGO    drivers/video/logo/logo_spe_clut224.c
  7046.   LOGO    drivers/video/logo/logo_mac_clut224.c
  7047.   LOGO    drivers/video/logo/logo_superh_clut224.c
  7048.   LOGO    drivers/video/logo/logo_sun_clut224.c
  7049.   LOGO    drivers/video/logo/logo_parisc_clut224.c
  7050.   LOGO    drivers/video/logo/logo_dec_clut224.c
  7051.   LOGO    drivers/video/logo/logo_sgi_clut224.c
  7052.   CC      drivers/video/logo/logo_linux_clut224.o
  7053.   CC      drivers/video/fbdev/core/cfbcopyarea.o
  7054.   AR      drivers/video/logo/built-in.a
  7055.   CC      drivers/video/hdmi.o
  7056.   CC      drivers/usb/mon/mon_main.o
  7057.   CC      drivers/usb/host/xhci-pci.o
  7058.   CC      drivers/video/fbdev/core/cfbimgblt.o
  7059.   CC      drivers/usb/mon/mon_stat.o
  7060.   AR      drivers/video/fbdev/omap2/omapfb/displays/built-in.a
  7061.   AR      drivers/video/fbdev/omap2/omapfb/dss/built-in.a
  7062.   AR      drivers/video/fbdev/omap2/omapfb/built-in.a
  7063.   AR      drivers/video/fbdev/omap2/built-in.a
  7064.   CC      drivers/video/fbdev/efifb.o
  7065.   CC      drivers/usb/mon/mon_text.o
  7066.   CC      drivers/video/fbdev/core/sysfillrect.o
  7067.   AR      drivers/usb/host/built-in.a
  7068.   AR      drivers/usb/phy/built-in.a
  7069.   CC      drivers/usb/storage/scsiglue.o
  7070.   CC      drivers/usb/storage/protocol.o
  7071.   CC      drivers/video/fbdev/core/syscopyarea.o
  7072.   CC      drivers/usb/mon/mon_bin.o
  7073.   CC      drivers/usb/storage/transport.o
  7074.   CC      drivers/video/fbdev/core/sysimgblt.o
  7075.   CC      drivers/usb/storage/usb.o
  7076.   AR      drivers/usb/mon/built-in.a
  7077.   CC      drivers/usb/storage/initializers.o
  7078.   CC      drivers/video/fbdev/core/fb_sys_fops.o
  7079.   CC      drivers/usb/storage/sierra_ms.o
  7080.   CC      drivers/usb/storage/option_ms.o
  7081.   CC      drivers/usb/storage/usual-tables.o
  7082.   AR      drivers/video/fbdev/core/built-in.a
  7083.   AR      drivers/video/fbdev/built-in.a
  7084.   AR      drivers/video/built-in.a
  7085.   AR      drivers/usb/storage/built-in.a
  7086.   AR      drivers/usb/built-in.a
  7087.   AR      drivers/built-in.a
  7088.   GEN     .version
  7089.   CHK     include/generated/compile.h
  7090.   UPD     include/generated/compile.h
  7091.   CC      init/version.o
  7092.   AR      init/built-in.a
  7093.   LD      vmlinux.o
  7094.   MODPOST vmlinux.o
  7095.   MODINFO modules.builtin.modinfo
  7096. drivers/gpu/drm/i915/i915_drv.o: In function `i915_driver_load':
  7097. i915_drv.c:(.text+0x37b): undefined reference to `__compiletime_assert_2340'
  7098. i915_drv.c:(.text+0x392): undefined reference to `__compiletime_assert_2340'
  7099. i915_drv.c:(.text+0x3a9): undefined reference to `__compiletime_assert_2340'
  7100. i915_drv.c:(.text+0x3bc): undefined reference to `__compiletime_assert_2340'
  7101. i915_drv.c:(.text+0x3d3): undefined reference to `__compiletime_assert_2340'
  7102. i915_drv.c:(.text+0x3e9): undefined reference to `__compiletime_assert_2355'
  7103. i915_drv.c:(.text+0x3ee): undefined reference to `__compiletime_assert_2356'
  7104. i915_drv.c:(.text+0x40e): undefined reference to `__compiletime_assert_2355'
  7105. i915_drv.c:(.text+0x413): undefined reference to `__compiletime_assert_2356'
  7106. i915_drv.c:(.text+0x428): undefined reference to `__compiletime_assert_2340'
  7107. i915_drv.c:(.text+0x43f): undefined reference to `__compiletime_assert_2340'
  7108. i915_drv.c:(.text+0x464): undefined reference to `__compiletime_assert_2340'
  7109. i915_drv.c:(.text+0x5ef): undefined reference to `__compiletime_assert_2340'
  7110. i915_drv.c:(.text+0x5fe): undefined reference to `__compiletime_assert_2340'
  7111. drivers/gpu/drm/i915/i915_drv.o:i915_drv.c:(.text+0x670): more undefined references to `__compiletime_assert_2340' follow
  7112. drivers/gpu/drm/i915/i915_drv.o: In function `intel_pch_type':
  7113. i915_drv.c:(.text+0x2724): undefined reference to `__compiletime_assert_2355'
  7114. i915_drv.c:(.text+0x2729): undefined reference to `__compiletime_assert_2356'
  7115. i915_drv.c:(.text+0x274a): undefined reference to `__compiletime_assert_2355'
  7116. i915_drv.c:(.text+0x274f): undefined reference to `__compiletime_assert_2356'
  7117. i915_drv.c:(.text+0x27b7): undefined reference to `__compiletime_assert_2340'
  7118. i915_drv.c:(.text+0x281c): undefined reference to `__compiletime_assert_2340'
  7119. i915_drv.c:(.text+0x282f): undefined reference to `__compiletime_assert_2340'
  7120. i915_drv.c:(.text+0x28cc): undefined reference to `__compiletime_assert_2340'
  7121. i915_drv.c:(.text+0x28de): undefined reference to `__compiletime_assert_2340'
  7122. i915_drv.c:(.text+0x28f4): undefined reference to `__compiletime_assert_2355'
  7123. i915_drv.c:(.text+0x28f9): undefined reference to `__compiletime_assert_2356'
  7124. i915_drv.c:(.text+0x291a): undefined reference to `__compiletime_assert_2355'
  7125. i915_drv.c:(.text+0x291f): undefined reference to `__compiletime_assert_2356'
  7126. i915_drv.c:(.text+0x2976): undefined reference to `__compiletime_assert_2340'
  7127. i915_drv.c:(.text+0x29b8): undefined reference to `__compiletime_assert_2340'
  7128. i915_drv.c:(.text+0x29ca): undefined reference to `__compiletime_assert_2340'
  7129. i915_drv.c:(.text+0x29e0): undefined reference to `__compiletime_assert_2355'
  7130. i915_drv.c:(.text+0x29e5): undefined reference to `__compiletime_assert_2356'
  7131. i915_drv.c:(.text+0x29fd): undefined reference to `__compiletime_assert_2355'
  7132. i915_drv.c:(.text+0x2a02): undefined reference to `__compiletime_assert_2356'
  7133. i915_drv.c:(.text+0x2a50): undefined reference to `__compiletime_assert_2340'
  7134. i915_drv.c:(.text+0x2a62): undefined reference to `__compiletime_assert_2340'
  7135. i915_drv.c:(.text+0x2a78): undefined reference to `__compiletime_assert_2355'
  7136. i915_drv.c:(.text+0x2a7d): undefined reference to `__compiletime_assert_2356'
  7137. i915_drv.c:(.text+0x2a95): undefined reference to `__compiletime_assert_2355'
  7138. i915_drv.c:(.text+0x2a9a): undefined reference to `__compiletime_assert_2356'
  7139. i915_drv.c:(.text+0x2ae8): undefined reference to `__compiletime_assert_2340'
  7140. i915_drv.c:(.text+0x2b00): undefined reference to `__compiletime_assert_2340'
  7141. i915_drv.c:(.text+0x2b13): undefined reference to `__compiletime_assert_2340'
  7142. i915_drv.c:(.text+0x2b55): undefined reference to `__compiletime_assert_2340'
  7143. i915_drv.c:(.text+0x2b6d): undefined reference to `__compiletime_assert_2340'
  7144. drivers/gpu/drm/i915/i915_drv.o:i915_drv.c:(.text+0x2bac): more undefined references to `__compiletime_assert_2340' follow
  7145. drivers/gpu/drm/i915/i915_irq.o: In function `gen8_de_irq_handler':
  7146. i915_irq.c:(.text+0x96b3): undefined reference to `__compiletime_assert_2355'
  7147. i915_irq.c:(.text+0x96b8): undefined reference to `__compiletime_assert_2356'
  7148. i915_irq.c:(.text+0x9832): undefined reference to `__compiletime_assert_2340'
  7149. drivers/gpu/drm/i915/i915_irq.o: In function `gen8_de_irq_postinstall':
  7150. i915_irq.c:(.text+0xa3bc): undefined reference to `__compiletime_assert_2355'
  7151. i915_irq.c:(.text+0xa3c1): undefined reference to `__compiletime_assert_2356'
  7152. i915_irq.c:(.text+0xa3f9): undefined reference to `__compiletime_assert_2340'
  7153. i915_irq.c:(.text+0xa641): undefined reference to `__compiletime_assert_2340'
  7154. drivers/gpu/drm/i915/i915_irq.o: In function `i915_enable_asle_pipestat':
  7155. i915_irq.c:(.text+0xa968): undefined reference to `__compiletime_assert_2340'
  7156. drivers/gpu/drm/i915/i915_reset.o: In function `intel_gpu_reset':
  7157. i915_reset.c:(.text+0x1e1): undefined reference to `__compiletime_assert_2340'
  7158. i915_reset.c:(.text+0x1fd): undefined reference to `__compiletime_assert_2340'
  7159. drivers/gpu/drm/i915/i915_reset.o:i915_reset.c:(.text+0x20c): more undefined references to `__compiletime_assert_2340' follow
  7160. drivers/gpu/drm/i915/intel_runtime_pm.o: In function `intel_power_domains_init':
  7161. intel_runtime_pm.c:(.text+0x16a2): undefined reference to `__compiletime_assert_2355'
  7162. intel_runtime_pm.c:(.text+0x16a7): undefined reference to `__compiletime_assert_2356'
  7163. intel_runtime_pm.c:(.text+0x16e9): undefined reference to `__compiletime_assert_2340'
  7164. intel_runtime_pm.c:(.text+0x16f8): undefined reference to `__compiletime_assert_2340'
  7165. intel_runtime_pm.c:(.text+0x1707): undefined reference to `__compiletime_assert_2340'
  7166. intel_runtime_pm.c:(.text+0x1716): undefined reference to `__compiletime_assert_2340'
  7167. intel_runtime_pm.c:(.text+0x1725): undefined reference to `__compiletime_assert_2340'
  7168. drivers/gpu/drm/i915/intel_runtime_pm.o:intel_runtime_pm.c:(.text+0x1a28): more undefined references to `__compiletime_assert_2340' follow
  7169. drivers/gpu/drm/i915/i915_debugfs.o: In function `i915_ips_status':
  7170. i915_debugfs.c:(.text+0x6e19): undefined reference to `__compiletime_assert_2355'
  7171. i915_debugfs.c:(.text+0x6e1e): undefined reference to `__compiletime_assert_2356'
  7172. i915_debugfs.c:(.text+0x6e2f): undefined reference to `__compiletime_assert_2340'
  7173. drivers/gpu/drm/i915/i915_debugfs.o: In function `i915_sr_status':
  7174. i915_debugfs.c:(.text+0x6f7e): undefined reference to `__compiletime_assert_2340'
  7175. i915_debugfs.c:(.text+0x6f91): undefined reference to `__compiletime_assert_2340'
  7176. i915_debugfs.c:(.text+0x6fa3): undefined reference to `__compiletime_assert_2340'
  7177. i915_debugfs.c:(.text+0x6fb1): undefined reference to `__compiletime_assert_2340'
  7178. drivers/gpu/drm/i915/i915_debugfs.o:i915_debugfs.c:(.text+0x6fbf): more undefined references to `__compiletime_assert_2340' follow
  7179. drivers/gpu/drm/i915/intel_cdclk.o: In function `intel_update_max_cdclk':
  7180. intel_cdclk.c:(.text+0x13b6): undefined reference to `__compiletime_assert_2355'
  7181. intel_cdclk.c:(.text+0x13bb): undefined reference to `__compiletime_assert_2356'
  7182. intel_cdclk.c:(.text+0x13d2): undefined reference to `__compiletime_assert_2355'
  7183. intel_cdclk.c:(.text+0x13d7): undefined reference to `__compiletime_assert_2356'
  7184. intel_cdclk.c:(.text+0x148c): undefined reference to `__compiletime_assert_2340'
  7185. intel_cdclk.c:(.text+0x14ab): undefined reference to `__compiletime_assert_2340'
  7186. intel_cdclk.c:(.text+0x14bd): undefined reference to `__compiletime_assert_2340'
  7187. intel_cdclk.c:(.text+0x14cf): undefined reference to `__compiletime_assert_2340'
  7188. drivers/gpu/drm/i915/intel_cdclk.o: In function `intel_update_cdclk':
  7189. intel_cdclk.c:(.text+0x15d8): undefined reference to `__compiletime_assert_2340'
  7190. drivers/gpu/drm/i915/intel_cdclk.o:intel_cdclk.c:(.text+0x15e6): more undefined references to `__compiletime_assert_2340' follow
  7191. drivers/gpu/drm/i915/intel_cdclk.o: In function `hsw_get_cdclk':
  7192. intel_cdclk.c:(.text+0x4f95): undefined reference to `__compiletime_assert_2355'
  7193. intel_cdclk.c:(.text+0x4f9a): undefined reference to `__compiletime_assert_2356'
  7194. drivers/gpu/drm/i915/intel_cdclk.o: In function `vlv_get_cdclk':
  7195. intel_cdclk.c:(.text+0x5035): undefined reference to `__compiletime_assert_2340'
  7196. drivers/gpu/drm/i915/intel_cdclk.o: In function `vlv_program_pfi_credits':
  7197. intel_cdclk.c:(.text+0x58aa): undefined reference to `__compiletime_assert_2340'
  7198. intel_cdclk.c:(.text+0x58d1): undefined reference to `__compiletime_assert_2340'
  7199. drivers/gpu/drm/i915/intel_cdclk.o: In function `intel_hpll_vco':
  7200. intel_cdclk.c:(.text+0x5988): undefined reference to `__compiletime_assert_2340'
  7201. intel_cdclk.c:(.text+0x599d): undefined reference to `__compiletime_assert_2340'
  7202. drivers/gpu/drm/i915/intel_cdclk.o:intel_cdclk.c:(.text+0x59b2): more undefined references to `__compiletime_assert_2340' follow
  7203. drivers/gpu/drm/i915/intel_display.o: In function `hsw_crtc_state_ips_capable':
  7204. intel_display.c:(.text+0x3117): undefined reference to `__compiletime_assert_2355'
  7205. intel_display.c:(.text+0x311c): undefined reference to `__compiletime_assert_2356'
  7206. intel_display.c:(.text+0x3130): undefined reference to `__compiletime_assert_2340'
  7207. intel_display.c:(.text+0x315e): undefined reference to `__compiletime_assert_2340'
  7208. drivers/gpu/drm/i915/intel_display.o: In function `intel_cpu_transcoder_set_m_n':
  7209. intel_display.c:(.text+0x34ec): undefined reference to `__compiletime_assert_2340'
  7210. intel_display.c:(.text+0x3507): undefined reference to `__compiletime_assert_2340'
  7211. drivers/gpu/drm/i915/intel_display.o: In function `vlv_force_pll_on':
  7212. intel_display.c:(.text+0x371b): undefined reference to `__compiletime_assert_2340'
  7213. drivers/gpu/drm/i915/intel_display.o:intel_display.c:(.text+0x428c): more undefined references to `__compiletime_assert_2340' follow
  7214. drivers/gpu/drm/i915/intel_display.o: In function `haswell_get_pipe_config':
  7215. intel_display.c:(.text+0x8b97): undefined reference to `__compiletime_assert_2355'
  7216. intel_display.c:(.text+0x8b9c): undefined reference to `__compiletime_assert_2356'
  7217. intel_display.c:(.text+0x8bb1): undefined reference to `__compiletime_assert_2340'
  7218. intel_display.c:(.text+0x8bca): undefined reference to `__compiletime_assert_2340'
  7219. drivers/gpu/drm/i915/intel_display.o: In function `skylake_get_initial_plane_config':
  7220. intel_display.c:(.text+0x9037): undefined reference to `__compiletime_assert_2340'
  7221. drivers/gpu/drm/i915/intel_display.o: In function `haswell_crtc_enable':
  7222. intel_display.c:(.text+0x9923): undefined reference to `__compiletime_assert_2340'
  7223. intel_display.c:(.text+0x99ca): undefined reference to `__compiletime_assert_2340'
  7224. drivers/gpu/drm/i915/intel_display.o:intel_display.c:(.text+0x9a9c): more undefined references to `__compiletime_assert_2340' follow
  7225. drivers/gpu/drm/i915/intel_display.o: In function `intel_modeset_init':
  7226. intel_display.c:(.text+0x10d3f): undefined reference to `__compiletime_assert_2355'
  7227. intel_display.c:(.text+0x10d44): undefined reference to `__compiletime_assert_2356'
  7228. intel_display.c:(.text+0x10d87): undefined reference to `__compiletime_assert_2340'
  7229. intel_display.c:(.text+0x10d9c): undefined reference to `__compiletime_assert_2340'
  7230. intel_display.c:(.text+0x11861): undefined reference to `__compiletime_assert_2355'
  7231. intel_display.c:(.text+0x11866): undefined reference to `__compiletime_assert_2356'
  7232. intel_display.c:(.text+0x1187a): undefined reference to `__compiletime_assert_2355'
  7233. intel_display.c:(.text+0x1187f): undefined reference to `__compiletime_assert_2356'
  7234. intel_display.c:(.text+0x119d6): undefined reference to `__compiletime_assert_2340'
  7235. intel_display.c:(.text+0x119e5): undefined reference to `__compiletime_assert_2340'
  7236. intel_display.c:(.text+0x119f4): undefined reference to `__compiletime_assert_2340'
  7237. intel_display.c:(.text+0x11a84): undefined reference to `__compiletime_assert_2340'
  7238. intel_display.c:(.text+0x11a98): undefined reference to `__compiletime_assert_2340'
  7239. drivers/gpu/drm/i915/intel_display.o:intel_display.c:(.text+0x11acd): more undefined references to `__compiletime_assert_2340' follow
  7240. drivers/gpu/drm/i915/intel_display.o: In function `intel_crtc_atomic_check':
  7241. intel_display.c:(.text+0x203cc): undefined reference to `__compiletime_assert_2355'
  7242. intel_display.c:(.text+0x203d1): undefined reference to `__compiletime_assert_2356'
  7243. intel_display.c:(.text+0x203e2): undefined reference to `__compiletime_assert_2340'
  7244. intel_display.c:(.text+0x20439): undefined reference to `__compiletime_assert_2340'
  7245. drivers/gpu/drm/i915/intel_dpio_phy.o: In function `bxt_port_to_phy_channel':
  7246. intel_dpio_phy.c:(.text+0x12): undefined reference to `__compiletime_assert_2340'
  7247. drivers/gpu/drm/i915/intel_dpio_phy.o: In function `bxt_ddi_phy_set_signal_level':
  7248. intel_dpio_phy.c:(.text+0xf8): undefined reference to `__compiletime_assert_2340'
  7249. drivers/gpu/drm/i915/intel_dpio_phy.o: In function `bxt_ddi_phy_is_enabled':
  7250. intel_dpio_phy.c:(.text+0x4a1): undefined reference to `__compiletime_assert_2340'
  7251. drivers/gpu/drm/i915/intel_dpio_phy.o:intel_dpio_phy.c:(.text+0x5d1): more undefined references to `__compiletime_assert_2340' follow
  7252. drivers/gpu/drm/i915/intel_hotplug.o: In function `intel_hpd_pin_default':
  7253. intel_hotplug.c:(.text+0x34): undefined reference to `__compiletime_assert_2355'
  7254. intel_hotplug.c:(.text+0x39): undefined reference to `__compiletime_assert_2356'
  7255. drivers/gpu/drm/i915/intel_overlay.o: In function `intel_overlay_put_image_ioctl':
  7256. intel_overlay.c:(.text+0x7d4): undefined reference to `__compiletime_assert_2340'
  7257. intel_overlay.c:(.text+0x7eb): undefined reference to `__compiletime_assert_2340'
  7258. intel_overlay.c:(.text+0x994): undefined reference to `__compiletime_assert_2340'
  7259. intel_overlay.c:(.text+0x9ac): undefined reference to `__compiletime_assert_2340'
  7260. intel_overlay.c:(.text+0x12ee): undefined reference to `__compiletime_assert_2340'
  7261. drivers/gpu/drm/i915/intel_overlay.o:intel_overlay.c:(.text+0x2271): more undefined references to `__compiletime_assert_2340' follow
  7262. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_get_buf_trans_edp':
  7263. intel_ddi.c:(.text+0x1571): undefined reference to `__compiletime_assert_2355'
  7264. intel_ddi.c:(.text+0x1576): undefined reference to `__compiletime_assert_2356'
  7265. intel_ddi.c:(.text+0x1598): undefined reference to `__compiletime_assert_2355'
  7266. intel_ddi.c:(.text+0x159d): undefined reference to `__compiletime_assert_2356'
  7267. intel_ddi.c:(.text+0x15b8): undefined reference to `__compiletime_assert_2355'
  7268. intel_ddi.c:(.text+0x15bd): undefined reference to `__compiletime_assert_2356'
  7269. intel_ddi.c:(.text+0x15d8): undefined reference to `__compiletime_assert_2355'
  7270. intel_ddi.c:(.text+0x15dd): undefined reference to `__compiletime_assert_2356'
  7271. intel_ddi.c:(.text+0x15f6): undefined reference to `__compiletime_assert_2355'
  7272. intel_ddi.c:(.text+0x15fb): undefined reference to `__compiletime_assert_2356'
  7273. intel_ddi.c:(.text+0x1619): undefined reference to `__compiletime_assert_2355'
  7274. intel_ddi.c:(.text+0x161e): undefined reference to `__compiletime_assert_2356'
  7275. intel_ddi.c:(.text+0x1635): undefined reference to `__compiletime_assert_2355'
  7276. intel_ddi.c:(.text+0x163a): undefined reference to `__compiletime_assert_2356'
  7277. intel_ddi.c:(.text+0x1673): undefined reference to `__compiletime_assert_2340'
  7278. intel_ddi.c:(.text+0x1681): undefined reference to `__compiletime_assert_2340'
  7279. intel_ddi.c:(.text+0x16d6): undefined reference to `__compiletime_assert_2340'
  7280. intel_ddi.c:(.text+0x16e4): undefined reference to `__compiletime_assert_2340'
  7281. intel_ddi.c:(.text+0x16f5): undefined reference to `__compiletime_assert_2355'
  7282. intel_ddi.c:(.text+0x16fa): undefined reference to `__compiletime_assert_2356'
  7283. intel_ddi.c:(.text+0x1711): undefined reference to `__compiletime_assert_2355'
  7284. intel_ddi.c:(.text+0x1716): undefined reference to `__compiletime_assert_2356'
  7285. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_get_buf_trans_dp':
  7286. intel_ddi.c:(.text+0x17ad): undefined reference to `__compiletime_assert_2340'
  7287. intel_ddi.c:(.text+0x17bb): undefined reference to `__compiletime_assert_2340'
  7288. intel_ddi.c:(.text+0x17c9): undefined reference to `__compiletime_assert_2340'
  7289. intel_ddi.c:(.text+0x17dc): undefined reference to `__compiletime_assert_2340'
  7290. intel_ddi.c:(.text+0x17ee): undefined reference to `__compiletime_assert_2340'
  7291. intel_ddi.c:(.text+0x184e): undefined reference to `__compiletime_assert_2355'
  7292. intel_ddi.c:(.text+0x1853): undefined reference to `__compiletime_assert_2356'
  7293. intel_ddi.c:(.text+0x186a): undefined reference to `__compiletime_assert_2355'
  7294. intel_ddi.c:(.text+0x186f): undefined reference to `__compiletime_assert_2356'
  7295. drivers/gpu/drm/i915/intel_ddi.o: In function `bxt_signal_levels':
  7296. intel_ddi.c:(.text+0x19b5): undefined reference to `__compiletime_assert_2340'
  7297. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_clk_disable':
  7298. intel_ddi.c:(.text+0x3bfd): undefined reference to `__compiletime_assert_2340'
  7299. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_compute_min_voltage_level':
  7300. intel_ddi.c:(.text+0x3f7a): undefined reference to `__compiletime_assert_2340'
  7301. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_get_config':
  7302. intel_ddi.c:(.text+0x4213): undefined reference to `__compiletime_assert_2340'
  7303. intel_ddi.c:(.text+0x4515): undefined reference to `__compiletime_assert_2340'
  7304. drivers/gpu/drm/i915/intel_ddi.o:intel_ddi.c:(.text+0x4d1c): more undefined references to `__compiletime_assert_2340' follow
  7305. drivers/gpu/drm/i915/intel_ddi.o: In function `kbl_get_buf_trans_dp':
  7306. intel_ddi.c:(.text+0x6993): undefined reference to `__compiletime_assert_2355'
  7307. intel_ddi.c:(.text+0x6998): undefined reference to `__compiletime_assert_2356'
  7308. intel_ddi.c:(.text+0x69ba): undefined reference to `__compiletime_assert_2355'
  7309. intel_ddi.c:(.text+0x69bf): undefined reference to `__compiletime_assert_2356'
  7310. intel_ddi.c:(.text+0x69d6): undefined reference to `__compiletime_assert_2355'
  7311. intel_ddi.c:(.text+0x69db): undefined reference to `__compiletime_assert_2356'
  7312. intel_ddi.c:(.text+0x69f4): undefined reference to `__compiletime_assert_2355'
  7313. intel_ddi.c:(.text+0x69f9): undefined reference to `__compiletime_assert_2356'
  7314. intel_ddi.c:(.text+0x6a17): undefined reference to `__compiletime_assert_2355'
  7315. intel_ddi.c:(.text+0x6a1c): undefined reference to `__compiletime_assert_2356'
  7316. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_get_buf_trans_hdmi':
  7317. intel_ddi.c:(.text+0x6a82): undefined reference to `__compiletime_assert_2355'
  7318. intel_ddi.c:(.text+0x6a87): undefined reference to `__compiletime_assert_2356'
  7319. intel_ddi.c:(.text+0x6ab2): undefined reference to `__compiletime_assert_2355'
  7320. intel_ddi.c:(.text+0x6ab7): undefined reference to `__compiletime_assert_2356'
  7321. intel_ddi.c:(.text+0x6ad6): undefined reference to `__compiletime_assert_2355'
  7322. intel_ddi.c:(.text+0x6adb): undefined reference to `__compiletime_assert_2356'
  7323. intel_ddi.c:(.text+0x6af5): undefined reference to `__compiletime_assert_2355'
  7324. intel_ddi.c:(.text+0x6afa): undefined reference to `__compiletime_assert_2356'
  7325. intel_ddi.c:(.text+0x6b1f): undefined reference to `__compiletime_assert_2340'
  7326. intel_ddi.c:(.text+0x6b2d): undefined reference to `__compiletime_assert_2340'
  7327. drivers/gpu/drm/i915/intel_ddi.o: In function `intel_ddi_clk_select':
  7328. intel_ddi.c:(.text+0x6cc9): undefined reference to `__compiletime_assert_2340'
  7329. drivers/gpu/drm/i915/intel_dp.o: In function `intel_power_sequencer_reset':
  7330. intel_dp.c:(.text+0x1b9): undefined reference to `__compiletime_assert_2340'
  7331. intel_dp.c:(.text+0x1c8): undefined reference to `__compiletime_assert_2340'
  7332. drivers/gpu/drm/i915/intel_dp.o:intel_dp.c:(.text+0x61a): more undefined references to `__compiletime_assert_2340' follow
  7333. drivers/gpu/drm/i915/intel_dp.o: In function `intel_dp_init_connector':
  7334. intel_dp.c:(.text+0x4cf0): undefined reference to `__compiletime_assert_2355'
  7335. intel_dp.c:(.text+0x4cf5): undefined reference to `__compiletime_assert_2356'
  7336. intel_dp.c:(.text+0x4d81): undefined reference to `__compiletime_assert_2340'
  7337. intel_dp.c:(.text+0x4d96): undefined reference to `__compiletime_assert_2355'
  7338. intel_dp.c:(.text+0x4d9b): undefined reference to `__compiletime_assert_2356'
  7339. intel_dp.c:(.text+0x4dbe): undefined reference to `__compiletime_assert_2340'
  7340. intel_dp.c:(.text+0x4eec): undefined reference to `__compiletime_assert_2340'
  7341. intel_dp.c:(.text+0x4efa): undefined reference to `__compiletime_assert_2340'
  7342. intel_dp.c:(.text+0x4f40): undefined reference to `__compiletime_assert_2340'
  7343. intel_dp.c:(.text+0x4f4e): undefined reference to `__compiletime_assert_2340'
  7344. drivers/gpu/drm/i915/intel_dp.o:intel_dp.c:(.text+0x5060): more undefined references to `__compiletime_assert_2340' follow
  7345. /home/himanshu/clang-thread-safety-analysis/Makefile:1052: recipe for target 'vmlinux' failed
  7346. make[1]: *** [vmlinux] Error 1
  7347. make[1]: Leaving directory '/home/himanshu/build/clang-thread-safety'
  7348. Makefile:179: recipe for target 'sub-make' failed
  7349. make: *** [sub-make] Error 2
RAW Paste Data