Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114597
b: refs/heads/master
c: 7c12d90
h: refs/heads/master
i:
  114595: 34294e5
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Oct 7, 2008
1 parent 36c3cf4 commit d6ac911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76c31f239ea221a6c84bd26141262a43bfe8b7f4
refs/heads/master: 7c12d906f4ef690c65e60111375856640f63a545
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ pgprot_t pci_phys_mem_access_prot(struct file *file,
struct pci_dev *pdev = NULL;
struct resource *found = NULL;
unsigned long prot = pgprot_val(protection);
unsigned long offset = pfn << PAGE_SHIFT;
resource_size_t offset = ((resource_size_t)pfn) << PAGE_SHIFT;
int i;

if (page_is_ram(pfn))
Expand Down Expand Up @@ -470,7 +470,8 @@ pgprot_t pci_phys_mem_access_prot(struct file *file,
int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
enum pci_mmap_state mmap_state, int write_combine)
{
resource_size_t offset = vma->vm_pgoff << PAGE_SHIFT;
resource_size_t offset =
((resource_size_t)vma->vm_pgoff) << PAGE_SHIFT;
struct resource *rp;
int ret;

Expand Down

0 comments on commit d6ac911

Please sign in to comment.