From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: drivers/gpu/drm/radeon/radeon_gart.c:580:5: sparse: symbol 'radeon_vm_evict' was not declared. Shoul
Date: Wed, 17 Oct 2012 06:44:44 +0000 [thread overview]
Message-ID: <20121017064444.GA17885@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 1949 bytes --]
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
[-- Attachment #2: make-it-static-90a51a3.diff --]
[-- Type: text/x-diff, Size: 517 bytes --]
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index 98b170a..3bae351 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -577,7 +577,7 @@ void radeon_vm_manager_fini(struct radeon_device *rdev)
*
* Global and local mutex must be locked!
*/
-int radeon_vm_evict(struct radeon_device *rdev, struct radeon_vm *vm)
+static int radeon_vm_evict(struct radeon_device *rdev, struct radeon_vm *vm)
{
struct radeon_vm *vm_evict;
next reply other threads:[~2012-10-17 6:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 6:44 Fengguang Wu [this message]
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
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=20121017064444.GA17885@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 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.