• Takashi Sakamoto's avatar
    ALSA: firewire-lib: change a member of event structure to suppress sparse wanings to bool type · 17e1717c
    Takashi Sakamoto authored
    Commit a9c4284b ("ALSA: firewire-lib: add context information to
    tracepoints") adds new members to tracepoint events of this module, to
    represent context information. One of the members is bool type and
    this causes sparse warnings.
    
    16:1: warning: expression using sizeof bool
    60:1: warning: expression using sizeof bool
    16:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
    60:1: warning: odd constant _Bool cast (ffffffffffffffff becomes 1)
    
    This commit suppresses the warnings, by changing type of the member
    to 'unsigned int'. Additionally, this commit applies '!!' idiom to
    get 0/1 from 'in_interrupt()'.
    
    Fixes: a9c4284b ("ALSA: firewire-lib: add context information to tracepoints")
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    17e1717c
Name
Last commit
Last update
..
bebob Loading commit data...
dice Loading commit data...
digi00x Loading commit data...
fireworks Loading commit data...
oxfw Loading commit data...
tascam Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
amdtp-am824.c Loading commit data...
amdtp-am824.h Loading commit data...
amdtp-stream-trace.h Loading commit data...
amdtp-stream.c Loading commit data...
amdtp-stream.h Loading commit data...
cmp.c Loading commit data...
cmp.h Loading commit data...
fcp.c Loading commit data...
fcp.h Loading commit data...
isight.c Loading commit data...
iso-resources.c Loading commit data...
iso-resources.h Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
packets-buffer.c Loading commit data...
packets-buffer.h Loading commit data...