public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kobject.h with HOTPLUG=n
@ 2006-12-18 17:49 Randy Dunlap
  2006-12-18 19:51 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2006-12-18 17:49 UTC (permalink / raw)
  To: gregkh, linux-kernel, kay.sievers

In 2.6.20-rc1-mm1, with HOTPLUG=n, 2 linux/kobject.h inline functions
need to return <int>.  Currently this causes 962 warnings like this:

include/linux/kobject.h: In function 'kobject_uevent':
include/linux/kobject.h:277: warning: no return statement in function returning non-void
include/linux/kobject.h: In function 'kobject_uevent_env':
include/linux/kobject.h:281: warning: no return statement in function returning non-void

Should these functions return 0 or some error code?

static inline int kobject_uevent(struct kobject *kobj, enum kobject_action action) { }
static inline int kobject_uevent_env(struct kobject *kobj,
				      enum kobject_action action,
				      char *envp[])
{ }

-- 
~Randy

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

end of thread, other threads:[~2006-12-18 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-18 17:49 kobject.h with HOTPLUG=n Randy Dunlap
2006-12-18 19:51 ` Greg KH
2006-12-18 20:41   ` [PATCH] " Randy Dunlap

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