Re: [patch 2.6.25-rc5 2/2] gpiochip_reserve()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, March 13, 2008 - 4:06 pm

On Thu, 13 Mar 2008 14:52:21 -0800
David Brownell <david-b@pacbell.net> wrote:


I applaud the addition of __msut_check to a newly-added function of this
kind, but we usually only add the tag to the declaration, not to the
definition as well.

Not a lot of thought went into this, but we might as well be consistent.

--- a/drivers/gpio/gpiolib.c~gpiochip_reserve-fix
+++ a/drivers/gpio/gpiolib.c
@@ -121,7 +121,7 @@ static int gpiochip_find_base(int ngpio)
  * to mark a range of gpios as unavailable for dynamic gpio number allocation,
  * for example because its driver support is not yet loaded.
  */
-int __init __must_check gpiochip_reserve(int start, int ngpio)
+int __init gpiochip_reserve(int start, int ngpio)
 {
 	int ret = 0;
 	unsigned long flags;


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 2.6.25-rc5 2/2] gpiochip_reserve(), David Brownell, (Thu Mar 13, 3:52 pm)
Re: [patch 2.6.25-rc5 2/2] gpiochip_reserve(), Andrew Morton, (Thu Mar 13, 4:06 pm)
Re: [patch 2.6.25-rc5 2/2] gpiochip_reserve(), Dave Jones, (Thu Mar 13, 6:33 pm)