Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
838b0ec9
Commit
838b0ec9
authored
Jun 27, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: fix some minor compile warnings.
parent
95980dc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
arch/ppc/mm/cachemap.c
arch/ppc/mm/cachemap.c
+5
-3
arch/ppc/platforms/pmac_nvram.c
arch/ppc/platforms/pmac_nvram.c
+1
-0
No files found.
arch/ppc/mm/cachemap.c
View file @
838b0ec9
...
...
@@ -50,6 +50,8 @@
#include <asm/smp.h>
#include <asm/machdep.h>
int
map_page
(
unsigned
long
va
,
unsigned
long
pa
,
int
flags
);
/* This function will allocate the requested contiguous pages and
* map them into the kernel's vmalloc() space. This is done so we
* get unique mapping for these pages, outside of the kernel's 1:1
...
...
@@ -96,7 +98,7 @@ void *consistent_alloc(int gfp, size_t size, dma_addr_t *dma_handle)
/* This gives us the real physical address of the first page.
*/
*
dma_handle
=
pa
=
virt_to_bus
(
page
);
*
dma_handle
=
pa
=
virt_to_bus
(
(
void
*
)
page
);
flags
=
_PAGE_KERNEL
|
_PAGE_NO_CACHE
;
...
...
@@ -151,10 +153,10 @@ void consistent_sync(void *vaddr, size_t size, int direction)
*/
void
consistent_sync_page
(
struct
page
*
page
,
unsigned
long
offset
,
size_t
size
,
int
direction
)
size_t
size
,
int
direction
)
{
unsigned
long
start
;
start
=
page_address
(
page
)
+
offset
;
consistent_sync
(
start
,
size
,
direction
);
consistent_sync
(
(
void
*
)
start
,
size
,
direction
);
}
arch/ppc/platforms/pmac_nvram.c
View file @
838b0ec9
...
...
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/string.h>
#include <linux/nvram.h>
#include <linux/init.h>
#include <linux/slab.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment