Return-path: Received: from proofpoint-cluster.metrocast.net ([65.175.128.136]:36251 "EHLO proofpoint-cluster.metrocast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759525Ab3BGXbp (ORCPT ); Thu, 7 Feb 2013 18:31:45 -0500 References: <201302071807.47221.hverkuil@xs4all.nl> <201302072357.03659.hverkuil@xs4all.nl> In-Reply-To: <201302072357.03659.hverkuil@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [RFC PATCH] ivtv-alsa: regression fix: remove __init from ivtv_alsa_load From: Andy Walls Date: Thu, 07 Feb 2013 18:31:44 -0500 To: Hans Verkuil CC: linux-media Message-ID: <35ed01b6-7195-415d-b0bc-64d7c9feb3bf@email.android.com> Sender: linux-media-owner@vger.kernel.org List-ID: Hans Verkuil wrote: >On Thu February 7 2013 22:58:53 Andy Walls wrote: >> Hans Verkuil wrote: >> >> >Andy, >> > >> >Please review this patch. This fix probably should be fast-tracked >to >> >3.8 and >> >queued for stable 3.7. >> > >> >ivtv-alsa kept crashing my machine every time I loaded it, and this >is >> >the >> >cause. >> > >> >Regards, >> > >> > Hans >> > >> >This function is called after initialization, so it should never be >> >marked >> >__init! >> > >> >Signed-off-by: Hans Verkuil >> >--- >> > drivers/media/pci/ivtv/ivtv-alsa-main.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> >diff --git a/drivers/media/pci/ivtv/ivtv-alsa-main.c >> >b/drivers/media/pci/ivtv/ivtv-alsa-main.c >> >index 4a221c6..e970cfa 100644 >> >--- a/drivers/media/pci/ivtv/ivtv-alsa-main.c >> >+++ b/drivers/media/pci/ivtv/ivtv-alsa-main.c >> >@@ -205,7 +205,7 @@ err_exit: >> > return ret; >> > } >> > >> >-static int __init ivtv_alsa_load(struct ivtv *itv) >> >+static int ivtv_alsa_load(struct ivtv *itv) >> > { >> > struct v4l2_device *v4l2_dev = &itv->v4l2_dev; >> > struct ivtv_stream *s; >> >> Hans, >> >> I concur. Now I have to check cx18 for the same problem. > >Hmm, there is the same problem in cx18 as well: > >static int __init cx18_alsa_load(struct cx18 *cx) > >Checking some more I saw that this __init annotation was added only in >3.8, >both for ivtv and cx18 (so 3.7 is fine). > >Ah, I see that Mauro added __init accidentally when fixing some >compiler >warnings in ivtv and cx18. > >I'll make a pull request tomorrow morning removing the __init from >ivtv_alsa_load >and cx18_alsa_load and ask Mauro to fast-track this regression. > >I assume I have your SoB for this? > >Regards, > > Hans > >> >> Your patch looks good. >> >> Reviewed-by: Andy Walls >> Signed-off-by: Andy Walls >> >> Regards, >> Andy >> Yes. Signed-off-by: Andy Walls -Andy