From d9871886bb7a7da2ea8661d4e0fda24efb14b6b8 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 8 Nov 2002 22:15:28 +0000 Subject: [PATCH] new tests --- scripts/check_driver | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/check_driver b/scripts/check_driver index add867d5..247168d3 100755 --- a/scripts/check_driver +++ b/scripts/check_driver @@ -149,7 +149,11 @@ if grep 'comedi_insn' ${driver} &>/dev/null;then echo "uses insn" insn=yes else - echo "E: doesn't use insn" + if grep 'subdev_8255_init' ${driver} &>/dev/null;then + echo uses subdev_8255_init + else + echo "E: doesn't use insn" + fi insn=no fi @@ -381,3 +385,15 @@ if [ $pci = yes ];then fi fi +if grep 'insn->data' ${driver} &>/dev/null;then + echo "E: driver uses insn->data, which is a userspace pointer" +fi + +if grep 'out[wlb] *([^(,]*iobase' ${driver} &>/dev/null; then + echo "E: misordered outX(dev->iobase + offset,XXX)" +fi + +if grep 'write[wlb] *([^(,]*iobase' ${driver} &>/dev/null; then + echo "E: writeX(dev->iobase + offset,XXX)" +fi + -- 2.26.2