[Intel-gfx] [PATCH] sna: Correct misspelled cacheing->caching in comments

Sedat Dilek sedat.dilek at gmail.com
Mon Jun 22 22:45:42 PDT 2015


I have seen this typo once and added an entry to codespell's dictionary.txt file.

$ diff -uprN /usr/share/codespell/dictionary.txt.orig /usr/share/codespell/dictionary.txt
--- /usr/share/codespell/dictionary.txt.orig    2015-06-09 20:49:25.000000000 +0200
+++ /usr/share/codespell/dictionary.txt 2015-06-23 07:37:35.893689539 +0200
@@ -625,6 +625,7 @@ burried->buried
 busineses->business, businesses,
 busness->business
 bussiness->business
+cacheing->caching
 caculater->calculator
 cacuses->caucuses
 cahracters->characters

There some other places where this typo occurs:

[ src/sna/kgem.c ]

 298:static void assert_cacheing(struct kgem *kgem, struct kgem_bo *bo)
 324:#define assert_cacheing(kgem, bo)
2455:  assert_cacheing(kgem, bo);
2841:  assert_cacheing(kgem, bo);

It's up to Chris what to do with this.

Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
---
 src/sna/sna_dri2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 2cde0c6aa0dc..2a1f8475b735 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -228,7 +228,7 @@ sna_dri2_cache_bo(struct sna *sna,
 	if (!c)
 		goto err;
 
-	DBG(("%s: cacheing handle=%d (name=%d, flags=%d, active_scanout=%d)\n", __FUNCTION__, bo->handle, name, flags, bo->active_scanout));
+	DBG(("%s: caching handle=%d (name=%d, flags=%d, active_scanout=%d)\n", __FUNCTION__, bo->handle, name, flags, bo->active_scanout));
 
 	c->bo = bo;
 	c->name = name;
@@ -333,7 +333,7 @@ sna_dri2_get_back(struct sna *sna,
 			c->name = back->name;
 			c->flags = back->flags;
 			list_add(&c->link, &priv->cache);
-			DBG(("%s: cacheing handle=%d (name=%d, flags=%d, active_scanout=%d)\n", __FUNCTION__, c->bo->handle, c->name, c->flags, c->bo->active_scanout));
+			DBG(("%s: caching handle=%d (name=%d, flags=%d, active_scanout=%d)\n", __FUNCTION__, c->bo->handle, c->name, c->flags, c->bo->active_scanout));
 		}
 	} else {
 		if (&c->link != &priv->cache)
-- 
2.4.4



More information about the Intel-gfx mailing list