public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* block/cfq-iosched.c - control reaches end of non-void function warning
@ 2007-08-06 20:40 Gabriel C
  2007-08-07  6:46 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel C @ 2007-08-06 20:40 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Linux Kernel Mailing List

Hi Jens,

I just noticed this warning in one of my build logs :

...

block/cfq-iosched.c: In function 'cfq_async_queue_prio':
block/cfq-iosched.c:1430: warning: control reaches end of non-void function

...

Guessing return 0; is missing there.


Regards,

Gabriel 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: block/cfq-iosched.c - control reaches end of non-void function warning
  2007-08-06 20:40 block/cfq-iosched.c - control reaches end of non-void function warning Gabriel C
@ 2007-08-07  6:46 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-08-07  6:46 UTC (permalink / raw)
  To: Gabriel C; +Cc: Linux Kernel Mailing List

On Mon, Aug 06 2007, Gabriel C wrote:
> Hi Jens,
> 
> I just noticed this warning in one of my build logs :
> 
> ...
> 
> block/cfq-iosched.c: In function 'cfq_async_queue_prio':
> block/cfq-iosched.c:1430: warning: control reaches end of non-void function
> 
> ...
> 
> Guessing return 0; is missing there.

The default: case ends up in a BUG(), which does not return.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-07  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 20:40 block/cfq-iosched.c - control reaches end of non-void function warning Gabriel C
2007-08-07  6:46 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox