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
26749b32
Commit
26749b32
authored
Jun 15, 2020
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dma-direct: mark __dma_direct_alloc_pages static
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
1fbf57d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
include/linux/dma-direct.h
include/linux/dma-direct.h
+0
-2
kernel/dma/direct.c
kernel/dma/direct.c
+1
-1
No files found.
include/linux/dma-direct.h
View file @
26749b32
...
...
@@ -77,8 +77,6 @@ void *dma_direct_alloc_pages(struct device *dev, size_t size,
dma_addr_t
*
dma_handle
,
gfp_t
gfp
,
unsigned
long
attrs
);
void
dma_direct_free_pages
(
struct
device
*
dev
,
size_t
size
,
void
*
cpu_addr
,
dma_addr_t
dma_addr
,
unsigned
long
attrs
);
struct
page
*
__dma_direct_alloc_pages
(
struct
device
*
dev
,
size_t
size
,
gfp_t
gfp
,
unsigned
long
attrs
);
int
dma_direct_get_sgtable
(
struct
device
*
dev
,
struct
sg_table
*
sgt
,
void
*
cpu_addr
,
dma_addr_t
dma_addr
,
size_t
size
,
unsigned
long
attrs
);
...
...
kernel/dma/direct.c
View file @
26749b32
...
...
@@ -109,7 +109,7 @@ static inline bool dma_should_free_from_pool(struct device *dev,
return
false
;
}
struct
page
*
__dma_direct_alloc_pages
(
struct
device
*
dev
,
size_t
size
,
st
atic
st
ruct
page
*
__dma_direct_alloc_pages
(
struct
device
*
dev
,
size_t
size
,
gfp_t
gfp
,
unsigned
long
attrs
)
{
size_t
alloc_size
=
PAGE_ALIGN
(
size
);
...
...
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