diff options
Diffstat (limited to 'scripts/coccinelle/api')
-rw-r--r-- | scripts/coccinelle/api/d_find_alias.cocci | 1 | ||||
-rw-r--r-- | scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci | 1 | ||||
-rw-r--r-- | scripts/coccinelle/api/drm-get-put.cocci | 1 | ||||
-rw-r--r-- | scripts/coccinelle/api/simple_open.cocci | 1 | ||||
-rw-r--r-- | scripts/coccinelle/api/vma_pages.cocci | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/scripts/coccinelle/api/d_find_alias.cocci b/scripts/coccinelle/api/d_find_alias.cocci index 9594c9f7eb8d..47e050166f20 100644 --- a/scripts/coccinelle/api/d_find_alias.cocci +++ b/scripts/coccinelle/api/d_find_alias.cocci | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /// Make sure calls to d_find_alias() have a corresponding call to dput(). | 2 | /// Make sure calls to d_find_alias() have a corresponding call to dput(). |
2 | // | 3 | // |
3 | // Keywords: d_find_alias, dput | 4 | // Keywords: d_find_alias, dput |
diff --git a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci index 85cf5408d378..7c312310547c 100644 --- a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci +++ b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /// Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE | 2 | /// Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE |
2 | /// for debugfs files. | 3 | /// for debugfs files. |
3 | /// | 4 | /// |
diff --git a/scripts/coccinelle/api/drm-get-put.cocci b/scripts/coccinelle/api/drm-get-put.cocci index 0c7a9265c07e..bf1313274f0b 100644 --- a/scripts/coccinelle/api/drm-get-put.cocci +++ b/scripts/coccinelle/api/drm-get-put.cocci | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /// | 2 | /// |
2 | /// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and | 3 | /// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and |
3 | /// drm_*_unreference() helpers. | 4 | /// drm_*_unreference() helpers. |
diff --git a/scripts/coccinelle/api/simple_open.cocci b/scripts/coccinelle/api/simple_open.cocci index bd1a2a4ee106..c121876d54ec 100644 --- a/scripts/coccinelle/api/simple_open.cocci +++ b/scripts/coccinelle/api/simple_open.cocci | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /// Remove an open coded simple_open() function | 2 | /// Remove an open coded simple_open() function |
2 | /// and replace file operations references to the function | 3 | /// and replace file operations references to the function |
3 | /// with simple_open() instead. | 4 | /// with simple_open() instead. |
diff --git a/scripts/coccinelle/api/vma_pages.cocci b/scripts/coccinelle/api/vma_pages.cocci index 3e52e11ea1dc..10511b9bf35e 100644 --- a/scripts/coccinelle/api/vma_pages.cocci +++ b/scripts/coccinelle/api/vma_pages.cocci | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /// | 2 | /// |
2 | /// Use vma_pages function on vma object instead of explicit computation. | 3 | /// Use vma_pages function on vma object instead of explicit computation. |
3 | /// | 4 | /// |