From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol 'radeon_vm_evict' was not declared. S
Date: Wed, 17 Oct 2012 16:55:08 +0000 [thread overview]
Message-ID: <20121017165508.GA13934@localhost> (raw)
In-Reply-To: <20121017064444.GA17885@localhost>
Alex,
On Wed, Oct 17, 2012 at 04:41:52PM +0000, Deucher, Alexander wrote:
> Fengguang,
>
> Do you want to send a formal patch, or should I just fix in my next radeon -fixes pull request?
Since it's a trivial fix, would you just fix it in your tree?
Thanks,
Fengguang
> > -----Original Message-----
> > From: Christian König [mailto:deathsimple@vodafone.de]
> > Sent: Wednesday, October 17, 2012 5:26 AM
> > To: Fengguang Wu
> > Cc: kernel-janitors@vger.kernel.org; Deucher, Alexander; Cherkasov, Dmitrii
> > Subject: Re: drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol
> > 'radeon_vm_evict' was not declared. Should it be static?
> >
> > Hi Fengguang,
> >
> > yes that's correct the function should be static.
> >
> > Cheers,
> > Christian.
> >
> > On 17.10.2012 08:44, Fengguang Wu wrote:
> > > Hi Christian,
> > >
> > > FYI, there are new sparse warnings show up in
> > >
> > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux master
> > > head: 8d2b6b3ae280dcf6f6c7a95623670a57cdf562ed
> > > commit: 90a51a329258e3c868f6f4c1fb264ca01c590c57 drm/radeon: allocate
> > page tables on demand v4
> > > date: 2 days ago
> > >
> > > + drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol
> > 'radeon_vm_evict' was not declared. Should it be static?
> > >
> > > vim +580 drivers/gpu/drm/radeon/radeon_gart.c
> > >
> > > 09db8644 Alex Deucher 2012-07-17 569 /**
> > > 90a51a32 Christian König 2012-10-09 570 * radeon_vm_evict - evict page
> > table to make room for new one
> > > 90a51a32 Christian König 2012-10-09 571 *
> > > 90a51a32 Christian König 2012-10-09 572 * @rdev: radeon_device pointer
> > > 90a51a32 Christian König 2012-10-09 573 * @vm: VM we want to allocate
> > something for
> > > 90a51a32 Christian König 2012-10-09 574 *
> > > 90a51a32 Christian König 2012-10-09 575 * Evict a VM from the lru, making
> > sure that it isn't @vm. (cayman+).
> > > 90a51a32 Christian König 2012-10-09 576 * Returns 0 for success, -
> > ENOMEM for failure.
> > > 90a51a32 Christian König 2012-10-09 577 *
> > > 90a51a32 Christian König 2012-10-09 578 * Global and local mutex must be
> > locked!
> > > 90a51a32 Christian König 2012-10-09 579 */
> > > 90a51a32 Christian König 2012-10-09 @580 int radeon_vm_evict(struct
> > radeon_device *rdev, struct radeon_vm *vm)
> > > 90a51a32 Christian König 2012-10-09 581 {
> > > 90a51a32 Christian König 2012-10-09 582 struct radeon_vm *vm_evict;
> > > 90a51a32 Christian König 2012-10-09 583
> > > 90a51a32 Christian König 2012-10-09 584 if (list_empty(&rdev-
> > >vm_manager.lru_vm))
> > > 90a51a32 Christian König 2012-10-09 585 return -ENOMEM;
> > > 90a51a32 Christian König 2012-10-09 586
> > > 90a51a32 Christian König 2012-10-09 587 vm_evict > > list_first_entry(&rdev->vm_manager.lru_vm,
> > > 90a51a32 Christian König 2012-10-09 588
> > struct radeon_vm, list);
> > >
> > > Shall we apply the attached diff?
> > >
> > > Thanks,
> > > Fengguang
> >
>
next prev parent reply other threads:[~2012-10-17 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 6:44 drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol 'radeon_vm_evict' was not declared. Shoul Fengguang Wu
2012-10-17 9:26 ` drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol 'radeon_vm_evict' was not declared. S Christian König
2012-10-17 16:41 ` Deucher, Alexander
2012-10-17 16:55 ` Fengguang Wu [this message]
2012-10-17 16:56 ` Deucher, Alexander
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=20121017165508.GA13934@localhost \
--to=fengguang.wu@intel.com \
--cc=kernel-janitors@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox