alsa-kernel: emu10k1: Fix outl() in snd_emu10k1_resume_regs()
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);
Is there any tool to find out who got this wrong in the first place?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
At Wed, 04 Oct 2006 17:23:14 +0100,
Quoted 8 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
One could check whether the argument is long or not. The long is likely an i/o port while the data is int or unsigned int. But, C allows implicit conversion, so the compiler would never complain...
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 7 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Git or gitweb. I think also that hg should have also the history
FYI, a quick look to gitweb, gives this commit :
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=09668b441dacdf4640509b640ad73e24efd5204f
Regards,
Arnaud
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 14 lines · Arnaud Patard (Rtp)
Quoted 10 lines · James Courtier-Dutton
Review
Quoted 6 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Quoted 10 lines
Git or gitweb. I think also that hg should have also the history
FYI, a quick look to gitweb, gives this commit :
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=09668b441dacdf4640509b640ad73e24efd5204fRegards,
Arnaud
I meant, how do I find out who committed the line with the bug in it.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Hello,
Quoted 1 line · James Courtier-Dutton
I meant, how do I find out who committed the line with the bug in it.
For git there is git-blame which annotates each line of a file with information about the last commit. I do not know about hg though.
All the best,
Jochen
Signature · 1 line
http://seehuhn.de/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At Wed, 04 Oct 2006 18:26:24 +0200,
Quoted 12 lines · I wrote:
At Wed, 04 Oct 2006 17:23:14 +0100,
Quoted 8 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Quoted 4 lines
One could check whether the argument is long or not. The long is likely an i/o port while the data is int or unsigned int. But, C allows implicit conversion, so the compiler would never complain...
Err, I must be dense.
An easy way would be to check the line with hg annotate with the target file, then check the commit log.
Before you digging in: that part is my fault :)
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 11 lines · Takashi Iwai
At Wed, 04 Oct 2006 17:23:14 +0100,
Quoted 8 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Quoted 4 lines
One could check whether the argument is long or not. The long is likely an i/o port while the data is int or unsigned int. But, C allows implicit conversion, so the compiler would never complain...
Using sparse should help in avoiding this kind of bug.
Signature · 9 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 7 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Appearently, the bug is in code from first commit of PM code:
Use:
# hg annonate emu10k1_main.c .... 3769: outl(emu->port + HCFG, emu->saved_hcfg); .... # hg log -vr 3769 changeset: 3769:f30a961a9d6855846d824f0a23a1565030399e6c user: tiwai date: Thu Nov 17 16:14:10 2005 +0000 files: include/emu10k1.h pci/emu10k1/emu10k1.c pci/emu10k1/emu10k1_main.c pci/emu10k1/emufx.c pci/emu10k1/emupcm.c pci/emu10k1/p16v.c description: emu10k1 - Add PM support
Add PM support to emu10k1 driver.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Quoted 10 lines · Jaroslav Kysela
Quoted 7 lines · James Courtier-Dutton
Review
Quoted 5 lines · Takashi Iwai
(quoted diff) +2
-2- outl(emu->port + A_IOCFG, emu->saved_a_iocfg); - outl(emu->port + HCFG, emu->saved_hcfg); + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); + outl(emu->saved_hcfg, emu->port + HCFG);Is there any tool to find out who got this wrong in the first place?
Quoted 5 lines
Appearently, the bug is in code from first commit of PM code:
Use:
# hg annonate emu10k1_main.c
Sorry, should be 'hg annotate' of course.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV