Re: Fwd: Need guidance regarding fixing styleguide error in rtl871x_pwrctrl.h

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

 



On Wed, Feb 9, 2022 at 11:36 AM Valdis Klētnieks
<valdis.kletnieks@xxxxxx> wrote:
> ...
> It turns out that the C keyword 'volatile' usually doesn't actually do what
> needs to happen if a variable actually *is* volatile and subject to change
> while the executing thread isn't looking.
>
> There's a good documentation file on this:
>
> Documentation/process/volatile-considered-harmful.rst

Also see Ian Lance Taylor's https://www.airs.com/blog/archives/154.
He's a GCC dev, and he explains how GCC interprets the keyword.

Jeff

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux