aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
AgeCommit message (Expand)AuthorFilesLines
2024-03-21Merge tag 'cocci-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jl...Linus Torvalds1-1/+1
2024-02-29coccinelle: semantic patch to check for potential struct_size callsJacob Keller1-0/+74
2024-02-29coccinelle: Add rules to find str_plural() replacementsKees Cook1-0/+41
2024-02-18coccinelle: device_attr_show: Remove useless expression STRLi Zhijian1-1/+1
2024-01-20coccinelle: device_attr_show: simplify patch caseJulia Lawall1-8/+3
2024-01-19coccinelle: device_attr_show: Adapt to the latest Documentation/filesystems/s...Li Zhijian1-9/+13
2023-07-29Revert "debugfs, coccinelle: check for obsolete DEFINE_SIMPLE_ATTRIBUTE() usage"Sean Christopherson1-68/+0
2022-12-26coccinelle: api/atomic_as_refcounter: include message type in outputDeepak R Varma1-4/+4
2022-08-07update Coccinelle URLJulia Lawall43-43/+43
2022-08-07coccinelle: free: add version constraintJulia Lawall1-0/+1
2022-07-16scripts/coccinelle/free: add NULL test before dev_{put, hold} functionsZiyang Xuan1-0/+54
2022-07-16coccinelle: Remove script that checks replacing 0/1 with false/true in functi...Steven Rostedt (Google)1-59/+0
2022-07-03coccinelle: Extend address test from ifaddr semantic patch to test expressionsJérémy LEFAURE1-3/+1
2022-01-15drop fen.cocciJulia Lawall1-124/+0
2022-01-15scripts/coccinelle: drop bugon.cocciJulia Lawall1-63/+0
2021-11-13Merge tag 'coccinelle-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+155
2021-09-11coccinelle: semantic patch to check for inappropriate do_div() callsWen Yang1-0/+155
2021-08-08scripts: coccinelle: allow list_entry_is_head() to use posDaniel Thompson1-0/+2
2021-08-05coccinelle: api: rename kzfree to kfree_sensitiveWeizhao Ouyang1-1/+1
2021-06-21coccinelle: api: remove kobj_to_dev.cocci scriptKeith Busch1-45/+0
2021-05-01coccinelle: misc: minmax: suppress patch generation for err returnsDenis Efremov1-1/+17
2021-05-01drop unneeded *sJulia Lawall1-6/+6
2021-05-01coccinelle: irqf_oneshot: reduce the severity due to false positivesKrzysztof Kozlowski1-2/+2
2021-05-01coccinelle: misc: add swap scriptDenis Efremov1-0/+122
2021-05-01coccinelle: misc: update uninitialized_var.cocci documentationDenis Efremov1-5/+10
2021-05-01coccinelle: misc: restrict patch mode in flexible_array.cocciDenis Efremov1-2/+21
2021-05-01coccinelle: misc: add minmax scriptDenis Efremov1-0/+206
2021-02-12of: Remove of_dev_{get,put}()Rob Herring1-1/+0
2020-12-15coccinnelle: Remove ptr_ret scriptMaxime Ripard1-97/+0
2020-11-09remove boolinit.cocciPeter Zijlstra1-195/+0
2020-10-18Merge branch 'for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jlaw...Linus Torvalds10-23/+1104
2020-10-17coccinelle: api: add kfree_mismatch scriptDenis Efremov1-0/+228
2020-10-15coccinelle: iterators: Add for_each_child.cocci scriptSumera Priyadarsini1-0/+358
2020-10-10coccinelle: api: kfree_sensitive: print memset positionDenis Efremov1-4/+6
2020-10-03coccinelle: misc: add flexible_array.cocci scriptDenis Efremov1-0/+88
2020-10-01coccinelle: api: add kvmalloc scriptDenis Efremov1-0/+256
2020-09-21coccinelle: misc: add excluded_middle.cocci scriptDenis Efremov1-0/+39
2020-09-12coccinelle: api: update kzfree script to kfree_sensitiveDenis Efremov1-16/+13
2020-09-10scripts: device_attr_show.cocci: update location of sysfs docMauro Carvalho Chehab1-1/+1
2020-09-05coccinelle: misc: add uninitialized_var.cocci scriptDenis Efremov1-0/+51
2020-09-02coccinelle: ifnullfree: add vfree(), kvfree*() functionsDenis Efremov1-2/+9
2020-08-21coccinelle: api: add kobj_to_dev.cocci scriptDenis Efremov1-0/+45
2020-08-21coccinelle: add patch rule for dma_alloc_coherentAlex Dewar1-3/+13
2020-08-07mm, treewide: rename kzfree() to kfree_sensitive()Waiman Long4-8/+8
2020-08-06Merge branch 'for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawa...Linus Torvalds5-4/+427
2020-08-04coccinelle: api: filter out memdup_user definitionsDenis Efremov1-4/+13
2020-08-04coccinelle: api: extend memdup_user rule with vmemdup_user()Denis Efremov1-0/+45
2020-08-04coccinelle: api: extend memdup_user transformation with GFP_USERDenis Efremov1-2/+6
2020-08-04coccinelle: api: add kzfree scriptDenis Efremov1-0/+101
2020-08-04coccinelle: misc: add array_size_dup script to detect missed overflow checksDenis Efremov1-0/+209
2020-08-04coccinelle: api/kstrdup: fix coccinelle positionDenis Efremov1-1/+1
2020-08-04coccinelle: api: add device_attr_show scriptDenis Efremov1-0/+55
2020-07-10scripts: add dummy report mode to add_namespace.cocciMatthias Maennich1-1/+7
2020-05-07net: remove newlines in NL_SET_ERR_MSG_MODJacob Keller1-0/+75
2020-02-04mm: remove __kreallocFlorian Westphal1-4/+0
2020-01-06remove ioremap_nocache and devm_ioremap_nocacheChristoph Hellwig2-5/+1
2019-10-17coccinelle: api/devm_platform_ioremap_resource: remove useless scriptAlexandre Belloni1-60/+0
2019-10-07scripts: add_namespace: Fix coccicheck failedYueHaibing1-0/+2
2019-09-22Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+23
2019-09-18Merge tag 'driver-core-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+102
2019-09-10scripts: Coccinelle script for namespace dependencies.Matthias Maennich1-0/+23
2019-09-06coccinelle: platform_get_irq: Fix parse errorYueHaibing1-3/+3
2019-07-30coccinelle: api/atomic_as_refcounter: add SPDX License IdentifierMatthias Maennich1-0/+1
2019-07-30coccinelle: Add script to check for platform_get_irq() excessive printsStephen Boyd1-0/+102
2019-07-20Merge tag 'kbuild-v5.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ma...Linus Torvalds1-0/+60
2019-07-17coccinelle: api: add devm_platform_ioremap_resource scriptHimanshu Jha1-0/+60
2019-07-15docs: driver-model: move it to the driver-api bookMauro Carvalho Chehab1-1/+1
2019-07-14Merge tag 'stream_open-5.3' of https://lab.nexedi.com/kirr/linuxLinus Torvalds1-1/+8
2019-07-14*: convert stream-like files -> stream_open, even if they use noop_llseekKirill Smelkov1-1/+8
2019-07-12Merge tag 'kbuild-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds3-14/+13
2019-07-12Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2019-07-08coccinelle: api/stream_open: treat all wait_.*() calls as blockingKirill Smelkov1-4/+4
2019-07-08coccinelle: put_device: Add a cast to an expression for an assignmentMarkus Elfring1-1/+1
2019-07-08coccinelle: put_device: Adjust a message constructionMarkus Elfring1-5/+4
2019-07-08coccinelle: kstrdup: Fix typo in warning messagesRikard Falkeborn1-4/+4
2019-06-21docs: driver-model: convert docs to ReST and rename to *.rstMauro Carvalho Chehab1-1/+1
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505Thomas Gleixner50-106/+156
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 257Thomas Gleixner1-1/+2
2019-04-06fs: stream_open - opener for stream-like files so that read and write can run...Kirill Smelkov1-0/+363
2019-03-28scripts: coccinelle: Fix description of badty.cocciMichael Stefaniuc1-1/+1
2019-03-28coccinelle: put_device: reduce false positivesWen Yang1-0/+1
2019-03-17coccinelle: semantic code search for missing put_device()Wen Yang1-0/+56
2019-01-08dma-mapping: remove dma_zalloc_coherent()Luis Chamberlain2-14/+5
2019-01-06scripts: coccinelle: boolinit: drop warnings on named constantsJulia Lawall1-0/+5
2019-01-06scripts: coccinelle: check for redeclarationJulia Lawall1-0/+3
2018-12-29Merge tag 'kbuild-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-16/+27
2018-12-17scripts: coccinelle: Correct warning messageJulia Lawall1-6/+6
2018-12-17scripts: coccinelle: only suggest true/false in files that already use themJulia Lawall1-10/+21
2018-11-24drm: remove no longer needed drm-get-put coccinelle scriptFernando Ramos1-78/+0
2018-08-22Coccinelle: remove pci_alloc_consistent semantic to detect in zalloc-simple.c...zhong jiang1-40/+1
2018-08-14Coccinelle: doubletest: reduce side effect false positivesJulia Lawall1-8/+26
2018-07-18Coccinelle: add atomic_as_refcounter scriptElena Reshetova1-0/+129
2018-06-06Merge tag 'kbuild-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds2-22/+24
2018-05-22coccinelle: deref_null: improve performanceJulia Lawall1-20/+20
2018-05-22coccinelle: mini_lock: improve performanceJulia Lawall1-2/+4
2018-03-30Merge airlied/drm-next into drm-misc-nextSean Paul1-2/+2
2018-03-28Backmerge tag 'v4.16-rc7' into drm-nextDave Airlie1-2/+2
2018-03-22drm: Remove drm_property_{un/reference}_blob aliasesHaneen Mohammed1-10/+0
2018-03-19drm: remove drm_mode_object_{un/reference} aliasesHaneen Mohammed1-10/+0
2018-03-03Coccinelle: memdup: Fix typo in warning messagesDafna Hirschfeld1-2/+2
2018-02-08coccinelle: deref_null: avoid useless computationJulia Lawall1-3/+3
2018-02-07coccinelle: devm_free: reduce false positivesJulia Lawall1-1/+54
2018-01-29Coccinelle: memdup: drop spurious lineJulia Lawall1-1/+0
2018-01-16Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simpleHimanshu Jha1-0/+0
2018-01-16Coccinelle: ifnullfree: Trim the warning reported in report modeHimanshu Jha1-1/+1
2018-01-16Coccinelle: alloc_cast: Add more memory allocating functions to the listHimanshu Jha1-21/+71
2018-01-16Coccinelle: array_size: report even if include is missingJérémy Lefaure1-2/+2
2018-01-16Coccinelle: kzalloc-simple: Add all zero allocating functionsHimanshu Jha1-5/+367
2017-11-21Coccinelle: Remove setup_timer.cocciKees Cook1-277/+0
2017-11-17Merge tag 'kbuild-misc-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds6-53/+307
2017-11-15Merge tag 'drm-for-v4.15' of git://people.freedesktop.org/~airlied/linuxLinus Torvalds1-0/+5
2017-11-16coccinelle: orplus: reorganize to improve performanceJulia Lawall1-14/+29
2017-11-14coccinelle: use exists to improve efficiencyJulia Lawall1-1/+1
2017-11-14Coccinelle: use false positive annotationJulia Lawall1-4/+4
2017-11-14coccinelle: grep Options and Requires fields more preciselyMasahiro Yamada1-1/+1
2017-11-14coccinelle: api: detect identical chip data arraysJulia Lawall1-0/+161
2017-11-14coccinelle: Improve setup_timer.cocci matchingKees Cook1-24/+105
2017-11-14Coccinelle: setup_timer: improve messages from setup_timerJulia Lawall1-9/+6
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman8-0/+8
2017-09-26drm: introduce drm_dev_{get/put} functionsAishwarya Pant1-0/+5
2017-02-28drm: Introduce drm_property_blob_{get,put}()Thierry Reding1-0/+10
2017-02-28drm: Introduce drm_gem_object_{get,put}()Thierry Reding1-0/+20
2017-02-28drm: Introduce drm_framebuffer_{get,put}()Thierry Reding1-0/+10
2017-02-28drm: Introduce drm_connector_{get,put}()Thierry Reding1-0/+10
2017-02-28drm: Introduce drm_mode_object_{get,put}()Thierry Reding1-0/+42
2016-12-11Coccinelle: misc: Add support for devm variant in all modesVaishali Thakkar1-3/+12
2016-12-11Coccinelle: misc: Improve the result given by context modeVaishali Thakkar1-1/+2
2016-12-11Coccinelle: misc: Improve the matching of rulesVaishali Thakkar1-13/+23
2016-12-11Coccinelle: Add misc/boolconv.cocciAndrew F. Davis1-0/+90
2016-10-11Coccinelle: flag conditions with no effectNicholas Mc Guire1-0/+64
2016-10-01Coccinelle: pm_runtime: ensure relevance of pm_runtime reportsJulia Lawall1-7/+11
2016-10-01Coccinelle: limit memdup_user transformation to GFP_KERNEL caseJulia Lawall1-4/+4
2016-07-22scripts/coccinelle: require coccinelle >= 1.0.4 on device_node_continue.cocciLuis R. Rodriguez1-0/+3
2016-06-21coccinelle: catch krealloc() on devm_*() allocated memoryYann Droneaud1-0/+4
2016-06-21coccinelle: recognize more devm_* memory allocation functionsYann Droneaud1-0/+20
2016-06-21coccinelle: also catch kzfree() issuesYann Droneaud4-5/+25
2016-06-20Coccinelle: noderef: Add new rules and correct the old ruleVaishali Thakkar1-1/+17
2016-05-26Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/k...Linus Torvalds2-173/+2
2016-04-20scripts: coccinelle: remove check to move constants to rightWolfram Sang1-171/+0
2016-04-20Coccinelle: setup_timer: Add space in front of parenthesesVaishali Thakkar1-2/+2
2016-04-12debugfs, coccinelle: check for obsolete DEFINE_SIMPLE_ATTRIBUTE() usageNicolai Stange1-0/+67
2016-02-18Coccinelle: Add api/setup_timer.cocciVaishali Thakkar1-0/+199
2016-02-18coccinelle: bugon: reduce rule applicabilityJulia Lawall1-1/+1
2016-02-18Coccinelle: pm_runtime: reduce rule applicabilityJulia Lawall1-1/+1
2016-02-18Coccinelle: array_size: reduce rule applicabilityJulia Lawall1-1/+1
2016-02-18Coccinelle: reduce rule applicabilityJulia Lawall1-1/+1
2016-02-18scripts/coccinelle: modernize &Julia Lawall1-1/+1
2016-01-12coccinelle: tests: unsigned value cannot be lesser than zeroAndrzej Hajda1-0/+75
2015-10-26coccinelle: Improve checking for missing NULL terminatorsDaniel Granat1-5/+28
2015-10-26coccinelle: ifnullfree: handle various destroy functionsJulia Lawall1-1/+9
2015-10-26coccinelle: ifnullfree: various cleanupsJulia Lawall1-11/+7
2015-10-26cocinelle: iterators: semantic patch to delete unneeded of_node_putJulia Lawall1-0/+100
2015-10-26scripts/coccinelle: fix typosJulia Lawall1-2/+2
2015-10-26coccinelle: misc: remove "complex return code" warningsJohan Hovold1-180/+0
2015-10-26coccinelle: tests: improve odd_ptr_err.cocciJulia Lawall1-34/+86
2015-10-26coccinelle: misc: move constants to the rightJulia Lawall1-0/+171
2015-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-0/+84
2015-09-08coccinelle: mm: scripts/coccinelle/api/alloc/pool_zalloc-simple.cocciSean O. Stalley1-0/+84
2015-08-19coccinelle: api: extend spatch for dropping unnecessary ownerKrzysztof Kozlowski1-0/+73
2015-06-03coccinelle: simple_return: Add a blank lineFabio Estevam1-1/+1
2015-05-25coccinelle: irqf_oneshot.cocci: Improve the generated commit logFabio Estevam1-2/+5
2015-05-21coccinelle: api: add vma_pages.cocciDmitry Kalinkin1-0/+60
2015-05-21scripts/coccinelle/misc/irqf_oneshot.cocci: Fix grammarFabio Estevam1-1/+1
2015-05-21scripts/coccinelle/misc/semicolon.cocci: Use imperative moodFabio Estevam1-1/+1
2015-05-20coccinelle: simple_open: Use imperative moodFabio Estevam1-2/+2
2015-05-20coccinelle: ifaddr: Fix the sentenceFabio Estevam1-2/+1
2015-05-20coccinelle: returnvar: Use imperative moodFabio Estevam1-1/+1
2015-05-20coccinelle: pm_runtime: Insert blank lineFabio Estevam1-1/+1
2015-04-15scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warningFabian Frederick1-1/+1
2015-03-25irqf_oneshot.cocci: add check of devm_request_threaded_irq()Valentin Rothberg1-0/+24
2014-12-20Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/k...Linus Torvalds1-1/+1
2014-11-24bugon.cocci: fix Options at the macroMauro Carvalho Chehab1-1/+1
2014-11-06coccinelle: api: add spatch to prevent unnecessary .ownerWolfram Sang1-0/+106
2014-09-26coccinelle: misc: semantic patch to delete overly complex return code processingJulia Lawall1-0/+180
2014-08-14Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/k...Linus Torvalds5-27/+258
2014-08-08scripts/coccinelle/free/ifnullfree.cocci: add copyright informationFabian Frederick1-2/+3
2014-08-08scripts/coccinelle/free: add NULL test before freeing functionsFabian Frederick1-0/+52
2014-08-06Coccinelle: Script to replace if and BUG with BUG_ONHimangi Saraogi1-0/+62
2014-08-06Coccinelle: Script to detect incorrect argument to sizeofHimangi Saraogi1-0/+76
2014-08-06Coccinelle: Script to use ARRAY_SIZE instead of division of two sizeofsHimangi Saraogi1-0/+87
2014-08-06Coccinelle: Script to detect cast after memory allocationHimangi Saraogi2-67/+72
2014-08-06coccinelle/null: solve parse errorHimangi Saraogi1-1/+2
2014-06-19devres: remove devm_request_and_ioremap()Jingoo Han1-90/+0
2014-06-10coccicheck: Add unneeded return variable testPeter Senna Tschudin1-0/+66
2014-06-09coccinelle: Check for missing NULL terminators in of_device_id tablesStephen Boyd1-0/+62
2014-04-08scripts/coccinelle: Use PTR_ERR_OR_ZEROSachin Kamat1-7/+7
2014-03-29Coccicheck: Remove memcpy to struct assignment testPeter Senna Tschudin1-103/+0
2014-01-03scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUENishanth Menon1-0/+109
2013-10-23scripts/coccinelle/api: remove devm_request_and_ioremap.cocciWolfram Sang1-105/+0
2013-09-07Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/k...Linus Torvalds1-0/+58
2013-08-13coccinelle: replace 0/1 with false/true in functions returning boolRasmus Villemoes1-0/+58
2013-07-15PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.Rusty Russell1-5/+5
2013-07-03Coccinelle: Update the options used to the new option schemeNicolas Palix33-33/+33
2013-07-03scripts: Coccinelle script for pci_free_consistent()strnape1@fel.cvut.cz1-0/+52
2013-06-14scripts/coccinelle: check for field address argument to kfreeJulia Lawall1-0/+32
2013-02-27Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/k...Linus Torvalds3-0/+241
2013-02-22scripts/coccinelle: find constant additions that could be bit orsJulia Lawall1-0/+55
2013-02-22scripts/coccinelle/misc/memcpy-assign.cocci: Replace memcpy with struct assig...Peter Senna Tschudin1-0/+103
2013-01-24scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon testPeter Senna Tschudin1-0/+83
2013-01-22lib: devres: Introduce devm_ioremap_resource()Thierry Reding1-0/+90