Messages in this thread | | | Date | Mon, 11 May 2015 23:46:04 +0200 (CEST) | From | Jiri Kosina <> | Subject | Re: [PATCH] livepatch: match return value to function signature |
| |
On Mon, 11 May 2015, Nicholas Mc Guire wrote:
> klp_initialized() should return bool but is actually returning > struct kobject * - convert it to a boolean explicitly. > > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> > --- > > static code checking was not happy with > ./kernel/livepatch/core.c:131 WARNING: return of wrong type > bool != struct kobject * > > This adds !! to explicitly convert to boolean type. > > Patch was compile tested with x86_64_defconfig > > patch is against 4.1-rc2 (localversion-next is -next-20150508)
Applied to for-4.2/upstream. Thanks,
-- Jiri Kosina SUSE Labs
| |