From: Prarit Bhargava <prarit@redhat.com>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] checkstack fixes for drivers/media/dvb
Date: Wed, 12 May 2010 18:23:36 -0400 [thread overview]
Message-ID: <4BEB2A68.3050801@redhat.com> (raw)
In-Reply-To: <4BEB11E5.8090504@infradead.org>
On 05/12/2010 04:39 PM, Mauro Carvalho Chehab wrote:
> Prarit Bhargava wrote:
>
>> When compiling 2.6.34-rc7 I see the following warnings
>>
>> drivers/media/dvb/frontends/dib3000mc.c: In function 'dib3000mc_i2c_enumeration':
>> drivers/media/dvb/frontends/dib3000mc.c:853: warning: the frame size of 2224 bytes is larger than 2048 bytes
>> drivers/media/dvb/frontends/dib7000p.c: In function 'dib7000p_i2c_enumeration':
>> drivers/media/dvb/frontends/dib7000p.c:1346: warning: the frame size of 2304 bytes is larger than 2048 bytes
>>
>> because the dib*_state structs are large and they are alloc'd on the stack.
>>
>> This patch moves the structures off the stack.
>>
> Hi Prarit,
>
> Thanks for the patch, but I've received two patches to fix the same thing some time ago.
> Unfortunately, it took a long time to be merged, since I was waiting for the driver
> maintainer's ack. It is at those changesets:
>
> http://git.linuxtv.org/v4l-dvb.git?a=commit;h=65483f7e5f3e169ea038de26068395231dd3b13b
> http://git.linuxtv.org/v4l-dvb.git?a=commit;h=370c0cb185d4fccfb2c66fbe94b48579d4c5fa1c
>
>
Oops! Sorry about that Mauro :( -- I didn't realize there was another
git tree to check. Just curious -- is the one listed in MAINTAINERS
still active?
>> I also noticed that the cxusb driver doesn't check the return value from
>> dib7000p_i2c_enumeration().
>>
> Randy's patch also added a test for it, but without the warning printk. It may be a good
> idea to have that warning. So, please be free to send it as a separate patch if you also
> think so.
>
>
Sure I'll do that shortly (after checking out the above tree ;) ).
P.
prev parent reply other threads:[~2010-05-12 22:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 18:55 [PATCH] checkstack fixes for drivers/media/dvb Prarit Bhargava
2010-05-12 20:39 ` Mauro Carvalho Chehab
2010-05-12 22:23 ` Prarit Bhargava [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BEB2A68.3050801@redhat.com \
--to=prarit@redhat.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.