From: Cedric Le Goater <clg@fr.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
Nick Piggin <npiggin@suse.de>
Subject: Re: 2.6.22-rc4-mm1
Date: Wed, 06 Jun 2007 18:42:50 +0200 [thread overview]
Message-ID: <4666E40A.2060708@fr.ibm.com> (raw)
In-Reply-To: <20070606020737.4663d686.akpm@linux-foundation.org>
Here's a tentative fix for mm-merge-nopfn-into-fault.patch.
./arch/powerpc/platforms/cell/spufs/file.c: In function 'spufs_mem_mmap_fault':
./arch/powerpc/platforms/cell/spufs/file.c:122: error: 'address' undeclared (first use in this function)
./arch/powerpc/platforms/cell/spufs/file.c:122: error: (Each undeclared identifier is reported only once
./arch/powerpc/platforms/cell/spufs/file.c:122: error: for each function it appears in.)
./arch/powerpc/platforms/cell/spufs/file.c:141: error: expected ';' before 'if'
./arch/powerpc/platforms/cell/spufs/file.c:122: warning: unused variable 'addr0'
I'm not sure how useful is the addr0 variable.
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
arch/powerpc/platforms/cell/spufs/file.c | 23 +++++------------------
1 file changed, 5 insertions(+), 18 deletions(-)
Index: 2.6.22-rc4-mm1/arch/powerpc/platforms/cell/spufs/file.c
===================================================================
--- 2.6.22-rc4-mm1.orig/arch/powerpc/platforms/cell/spufs/file.c
+++ 2.6.22-rc4-mm1/arch/powerpc/platforms/cell/spufs/file.c
@@ -53,19 +53,6 @@ spufs_mem_open(struct inode *inode, stru
return 0;
}
-static int
-spufs_mem_release(struct inode *inode, struct file *file)
-{
- struct spufs_inode_info *i = SPUFS_I(inode);
- struct spu_context *ctx = i->i_ctx;
-
- spin_lock(&ctx->mapping_lock);
- if (!--i->i_openers)
- ctx->local_store = NULL;
- spin_unlock(&ctx->mapping_lock);
- return 0;
-}
-
static ssize_t
__spufs_mem_read(struct spu_context *ctx, char __user *buffer,
size_t size, loff_t *pos)
@@ -119,13 +106,13 @@ static struct page *spufs_mem_mmap_fault
struct fault_data *fdata)
{
struct spu_context *ctx = vma->vm_file->private_data;
- unsigned long pfn, offset, addr0 = address;
+ unsigned long pfn, offset, addr0 = fdata->address;
#ifdef CONFIG_SPU_FS_64K_LS
struct spu_state *csa = &ctx->csa;
int psize;
/* Check what page size we are using */
- psize = get_slice_psize(vma->vm_mm, address);
+ psize = get_slice_psize(vma->vm_mm, fdata->address);
/* Some sanity checking */
BUG_ON(csa->use_big_pages != (psize == MMU_PAGE_64K));
@@ -133,18 +120,18 @@ static struct page *spufs_mem_mmap_fault
/* Wow, 64K, cool, we need to align the address though */
if (csa->use_big_pages) {
BUG_ON(vma->vm_start & 0xffff);
- address &= ~0xfffful;
+ fdata->address &= ~0xfffful;
}
#endif /* CONFIG_SPU_FS_64K_LS */
- offset = fdata->pgoff << PAGE_SHIFT
+ offset = fdata->pgoff << PAGE_SHIFT;
if (offset >= LS_SIZE) {
fdata->type = VM_FAULT_SIGBUS;
return NULL;
}
pr_debug("spufs_mem_mmap_nopfn address=0x%lx -> 0x%lx, offset=0x%lx\n",
- addr0, address, offset);
+ addr0, fdata->address, offset);
spu_acquire(ctx);
next prev parent reply other threads:[~2007-06-06 16:43 UTC|newest]
Thread overview: 124+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 9:07 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 11:39 ` 2.6.22-rc4-mm1 Gabriel C
2007-06-06 16:51 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 0:01 ` 2.6.22-rc4-mm1 Robert Hancock
2007-06-06 12:43 ` 2.6.22-rc4-mm1 Cedric Le Goater
2007-06-06 15:18 ` 2.6.22-rc4-mm1 Michal Piotrowski
2007-06-06 16:01 ` 2.6.22-rc4-mm1 Cedric Le Goater
2007-06-06 16:26 ` 2.6.22-rc4-mm1 Mel Gorman
2007-06-06 16:35 ` 2.6.22-rc4-mm1 William Lee Irwin III
2007-06-06 16:47 ` 2.6.22-rc4-mm1 Mel Gorman
2007-06-06 16:53 ` 2.6.22-rc4-mm1 Cedric Le Goater
2007-06-06 17:20 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 17:06 ` 2.6.22-rc4-mm1 Peter Zijlstra
2007-06-06 19:27 ` 2.6.22-rc4-mm1 Peter Zijlstra
2007-06-06 13:04 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-06 13:06 ` 2.6.22-rc4-mm1 Cedric Le Goater
2007-06-06 13:48 ` 2.6.22-rc4-mm1 Andy Whitcroft
2007-06-06 17:23 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 13:49 ` 2.6.22-rc4-mm1 -- ia64 build failure Andy Whitcroft
2007-06-06 17:43 ` Andrew Morton
2007-06-06 18:11 ` Yinghai Lu
2007-06-06 14:00 ` 2.6.22-rc4-mm1 -- x86_64 ACPI panic Andy Whitcroft
2007-06-06 17:52 ` Andrew Morton
2007-06-08 9:15 ` Luming Yu
2007-06-08 18:12 ` Andrew Morton
2007-06-26 6:00 ` Len Brown
[not found] ` <6bffcb0e0706060356y3628e26m49fdce4d6fb8cac9@mail.gmail.com>
2007-06-06 14:34 ` 2.6.22-rc4-mm1 Michal Piotrowski
2007-06-06 17:14 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 16:08 ` 2.6.22-rc4-mm1 - 'lvm vgscan' busticated again Valdis.Kletnieks
2007-06-07 6:44 ` Tejun Heo
2007-06-07 20:28 ` Valdis.Kletnieks
2007-06-08 6:37 ` Tejun Heo
2007-06-06 16:19 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-06 18:09 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 2:26 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-07 5:59 ` 2.6.22-rc4-mm1 Matt Mackall
2007-06-07 6:51 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-07 14:04 ` 2.6.22-rc4-mm1 Matt Mackall
2007-06-07 15:40 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-07 15:59 ` 2.6.22-rc4-mm1 Matt Mackall
2007-06-07 16:39 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-07 16:59 ` 2.6.22-rc4-mm1 Matt Mackall
2007-06-08 4:43 ` 2.6.22-rc4-mm1 WANG Cong
2007-06-06 16:30 ` 2.6.22-rc4-mm1 William Lee Irwin III
2007-06-06 18:13 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 19:43 ` 2.6.22-rc4-mm1 William Lee Irwin III
2007-06-07 0:32 ` 2.6.22-rc4-mm1 Paul Menage
2007-06-07 1:09 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 6:13 ` 2.6.22-rc4-mm1 William Lee Irwin III
2007-06-06 18:23 ` 2.6.22-rc4-mm1 Andy Whitcroft
2007-06-06 16:42 ` Cedric Le Goater [this message]
2007-06-06 18:48 ` 2.6.22-rc4-mm1 Michal Piotrowski
2007-06-06 20:16 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 22:14 ` 2.6.22-rc4-mm1 Kay Sievers
2007-06-07 8:40 ` 2.6.22-rc4-mm1 Michal Piotrowski
2007-06-07 8:48 ` 2.6.22-rc4-mm1 Kay Sievers
2007-06-07 9:41 ` 2.6.22-rc4-mm1 Michal Piotrowski
2007-06-07 15:04 ` 2.6.22-rc4-mm1 Kay Sievers
2007-06-07 15:25 ` 2.6.22-rc4-mm1 Peter Jones
2007-06-07 15:43 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 15:52 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 15:59 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 16:06 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 16:15 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 18:48 ` 2.6.22-rc4-mm1 Bill Nottingham
2007-06-07 20:01 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 21:00 ` 2.6.22-rc4-mm1 Peter Jones
2007-06-07 23:09 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 22:32 ` 2.6.22-rc4-mm1 Alan Cox
2007-06-07 23:09 ` 2.6.22-rc4-mm1 Greg KH
2007-06-08 15:33 ` 2.6.22-rc4-mm1 Valdis.Kletnieks
2007-06-08 15:50 ` 2.6.22-rc4-mm1 Greg KH
2007-06-08 16:11 ` 2.6.22-rc4-mm1 Greg KH
2007-06-08 16:10 ` 2.6.22-rc4-mm1 Kay Sievers
2007-06-08 7:31 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-08 15:51 ` 2.6.22-rc4-mm1 Greg KH
2007-06-08 16:36 ` 2.6.22-rc4-mm1 Kay Sievers
2007-06-08 17:21 ` 2.6.22-rc4-mm1 Peter Jones
2007-06-06 19:32 ` 2.6.22-rc4-mm1 Mariusz Kozlowski
2007-06-06 20:24 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 20:52 ` 2.6.22-rc4-mm1 Fabio Comolli
2007-06-06 21:28 ` 2.6.22-rc4-mm1 Herbert Xu
2007-06-06 23:42 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 6:54 ` 2.6.22-rc4-mm1 Jan Engelhardt
2007-06-07 7:01 ` 2.6.22-rc4-mm1 Herbert Xu
2007-06-07 7:12 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-11 5:01 ` 2.6.22-rc4-mm1 Dan Williams
2007-06-11 6:26 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-11 6:51 ` 2.6.22-rc4-mm1 Paul Mundt
2007-06-07 19:27 ` 2.6.22-rc4-mm1 Adrian Bunk
2007-06-06 20:58 ` 2.6.22-rc4-mm1 Grant Wilson
2007-06-06 23:37 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 14:53 ` 2.6.22-rc4-mm1 Alan Stern
2007-06-08 4:23 ` [linux-usb-devel] 2.6.22-rc4-mm1 Greg KH
2007-06-08 14:06 ` Alan Stern
2007-06-08 18:47 ` Greg KH
2007-06-07 7:53 ` [2.6.22-rc4-mm1] ACPI Exception (processor_throttling) Maciej Rutecki
2007-06-07 8:51 ` Maciej Rutecki
2007-06-07 8:51 ` Maciej Rutecki
2007-06-07 9:09 ` Luming Yu
2007-06-07 10:30 ` Maciej Rutecki
2007-06-07 12:47 ` 2.6.22-rc4-mm1 KAMEZAWA Hiroyuki
2007-06-07 12:47 ` 2.6.22-rc4-mm1 KAMEZAWA Hiroyuki
2007-06-07 15:34 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-07 15:34 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-08 0:31 ` 2.6.22-rc4-mm1 KAMEZAWA Hiroyuki
2007-06-08 0:31 ` 2.6.22-rc4-mm1 KAMEZAWA Hiroyuki
-- strict thread matches above, loose matches on Subject: below --
2007-06-06 14:21 2.6.22-rc4-mm1 Mikael Pettersson
2007-06-06 15:34 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-06 17:56 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 18:24 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-07 6:44 ` 2.6.22-rc4-mm1 Tejun Heo
2007-06-07 7:01 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-07 7:09 ` 2.6.22-rc4-mm1 Tejun Heo
2007-06-07 7:15 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-07 7:22 ` 2.6.22-rc4-mm1 Tejun Heo
2007-06-07 15:54 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-07 16:01 ` 2.6.22-rc4-mm1 Greg KH
2007-06-07 17:02 ` 2.6.22-rc4-mm1 Jiri Slaby
2007-06-07 20:09 ` 2.6.22-rc4-mm1 Greg KH
[not found] <fa.463099pz3wyAW1RRKsHFuX299RE@ifi.uio.no>
[not found] ` <fa.zIhbKpmFY9tR8ro0OTwpTvD79Xk@ifi.uio.no>
2007-06-06 14:35 ` 2.6.22-rc4-mm1 Robert Hancock
2007-06-06 18:18 ` 2.6.22-rc4-mm1 Andy Whitcroft
2007-06-06 18:27 ` 2.6.22-rc4-mm1 Andrew Morton
2007-06-06 19:06 ` 2.6.22-rc4-mm1 Andy Whitcroft
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=4666E40A.2060708@fr.ibm.com \
--to=clg@fr.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
/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.