Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146900067
D49812.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
840 B
Referenced Files
None
Subscribers
None
D49812.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -184,7 +184,7 @@
*
* NOTE: This function only works for pages allocated by the kernel.
*/
-void *linux_page_address(struct page *);
+void *linux_page_address(const struct page *);
#define page_address(page) linux_page_address(page)
static inline void *
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c
--- a/sys/compat/linuxkpi/common/src/linux_page.c
+++ b/sys/compat/linuxkpi/common/src/linux_page.c
@@ -83,7 +83,7 @@
}
void *
-linux_page_address(struct page *page)
+linux_page_address(const struct page *page)
{
if (page->object != kernel_object) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 7, 2:47 PM (1 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29371206
Default Alt Text
D49812.diff (840 B)
Attached To
Mode
D49812: linuxkpi: Constify `struct page` arg to `linux_page_address()`
Attached
Detach File
Event Timeline
Log In to Comment