From: Frank Mori Hess Date: Wed, 19 Feb 2003 21:34:14 +0000 (+0000) Subject: make subdev_flags and runflags volatile since they can be modified X-Git-Tag: r0_7_67x~89 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81106291feaff96f9062441e52597736e695ee84;p=comedi.git make subdev_flags and runflags volatile since they can be modified in interrupt (comedi_event()) --- 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;