Signed-off-by: Jani Nikula <jani.nik...@intel.com>
---
 dim | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/dim b/dim
index 4ff903fb3818..4370aec28ec0 100755
--- a/dim
+++ b/dim
@@ -662,6 +662,13 @@ function dim_checkpatch
        done
 }
 
+function dim_checker
+{
+       rm drivers/gpu/drm/i915/*.o &> /dev/null || true
+       rm drivers/gpu/drm/i915/*.ko &> /dev/null || true
+       make C=1 drivers/gpu/drm/i915/i915.ko
+}
+
 function prep_pull_mail_greetings
 {
        if [ -r $DIM_TEMPLATE_HELLO ]; then
@@ -1083,11 +1090,6 @@ fi
 # XXX: abscract each case to a dim_ prefixed function, and turn the help|*) 
case
 # into an else branch in the above check for functions.
 case "$subcmd" in
-       checker)
-               rm drivers/gpu/drm/i915/*.o &> /dev/null || true
-               rm drivers/gpu/drm/i915/*.ko &> /dev/null || true
-               make C=1 drivers/gpu/drm/i915/i915.ko
-               ;;
        help|*)
                manpage=$DIM_PREFIX/maintainer-tools/dim.rst
                if [ ! -e "$manpage" ]; then
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to