Re: [PATCH] I/O helpers rework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Maciej W. Rozycki" <macro@xxxxxxxx> writes:
> On Thu, 13 Jan 2005, Richard Sandiford wrote:
>
>> >> Well, maybe the 'volatile' have no sense, but some archs (including
>> >> i386, of course :-)) and some drivers use it.  Adding the 'volatile'
>> >> will remove some compiler warnings.
>> >
>> >  As will removing "volatile" from broken ports.
>> 
>> There's nothing wrong with "volatile void *".
>
>  So what's the volatile value you can get by dereferencing such a pointer?

You can't dereference it, obviously, just like you can't deference a
normal "void *".  But you can assign it to any "volatile T *" without
an explicit cast.  I assumed that's what was happening in this case?

Richard


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux