linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aubin LaBrosse <aubin@stormboxes.com>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: [PATCH] Replace assert() with WARN_ON in drivers/scsi/libata-core.c
Date: Mon, 13 Feb 2006 18:56:46 -0500	[thread overview]
Message-ID: <43F11CBE.10107@stormboxes.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0602131543270.18300@shark.he.net>

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

Randy.Dunlap wrote:
> On Mon, 13 Feb 2006, Aubin LaBrosse wrote:
>
>   
>> Replace assert() with WARN_ON in drivers/scsi/libata-core.c
>>
>> This is my first patch to the kernel - this work was suggested by Jeff Garzik as a janitorial task for libata.  If I could get some feedback letting me know that this is the correct format and my tools are setup right, I'll do the rest of these.
>>
>> Signed-off-by: Aubin LaBrosse <aubin@stormboxes.com>
>>     
>
> Jeff wrote an email a couple of days ago that he already has
> several of these patches...
>
>   
>> @@ -1251,8 +1251,8 @@ static void ata_dev_identify(struct ata_
>>
>>  	DPRINTK("ENTER, host %u, dev %u\n", ap->id, device);
>>
>> -	assert (dev->class == ATA_DEV_ATA || dev->class == ATA_DEV_ATAPI ||
>> -		dev->class == ATA_DEV_NONE);
>> +	WARN_ON(dev->class != ATA_DEV_ATA &&&dev->class != ATA_DEV_ATAPI &&
>> +		dev->class != ATA_DEV_NONE);
>>     
>
> Does that one compile cleanly?
>
>   
>>  	ata_dev_select(ap, device, 1, 1); /* select device 0/1 */
>>
>>     
>
> Otherwise it looks pretty good to me.
>
>   
Oops.  I guess it wouldn't have compiled. :(  I was so fixated on 
getting the tools to work right I didn't even try.  thanks for the 
feedback, even if someone beat me to it. guess i'll go check out 
kernelnewbies for other janitorial type stuff to work on (and won't 
forget to compile and boot-test my patches, sorry!)


-aubin

[-- Attachment #2: aubin.vcf --]
[-- Type: text/x-vcard, Size: 160 bytes --]

begin:vcard
fn:Aubin LaBrosse
n:LaBrosse;Aubin
email;internet:aubin@stormboxes.com
tel;work:589-0692
tel;home:429-1520
tel;cell:493-0121
version:2.1
end:vcard


      reply	other threads:[~2006-02-13 23:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-13 23:35 [PATCH] Replace assert() with WARN_ON in drivers/scsi/libata-core.c Aubin LaBrosse
2006-02-13 23:44 ` Jeff Garzik
2006-02-14  0:20   ` Aubin LaBrosse
2006-02-13 23:45 ` Randy.Dunlap
2006-02-13 23:56   ` Aubin LaBrosse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43F11CBE.10107@stormboxes.com \
    --to=aubin@stormboxes.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).