From 81106291feaff96f9062441e52597736e695ee84 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 19 Feb 2003 21:34:14 +0000 Subject: [PATCH] make subdev_flags and runflags volatile since they can be modified in interrupt (comedi_event()) --- include/linux/comedidev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 038d0486..3bff0430 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -96,7 +96,7 @@ typedef struct comedi_lrange_struct comedi_lrange; struct comedi_subdevice_struct{ int type; int n_chan; - int subdev_flags; + volatile int subdev_flags; int len_chanlist; /* maximum length of channel/gain list */ void *private; @@ -105,7 +105,7 @@ struct comedi_subdevice_struct{ void *lock; void *busy; - unsigned int runflags; + volatile unsigned int runflags; int io_bits; -- 2.26.2