#5 kernel_critsec_count volatility

closed-fixed
Henner Zeller
None
5
2004-01-25
2003-07-04
Max Bowsher
No

kernel_critsec_count is declared volatile, but is only
manipulated by functions which do not take a volatile
parameter.

gcc 3.3 warns about this: ("passing arg 1 of
`locked_decrement' discards qualifiers from pointer
target type")

The fix to EITHER to add volatile to the parameter of
locked_{inc,dec}rement, OR to remove the volatile from
kernel_critsec_count.

Someone knowledgeable about this area needs to decide
which is appropriate.

Discussion

    • assigned_to: nobody --> stephmo
     
  • Henner Zeller
    Henner Zeller
    2004-01-04

    • status: open --> closed-fixed
     
    • assigned_to: stephmo --> hzeller