make subdev_flags and runflags volatile since they can be modified
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Feb 2003 21:34:14 +0000 (21:34 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 19 Feb 2003 21:34:14 +0000 (21:34 +0000)
in interrupt (comedi_event())

include/linux/comedidev.h

index 038d04868373a6c7864f60ec32223835c307a655..3bff04306e80973f93553c5d49ec318461dca2bb 100644 (file)
@@ -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;