* [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings
@ 2018-02-01 1:54 Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 2/3] staging: android: ion: Remove unused include files for ion_page_pool.c Yisheng Xie
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Yisheng Xie @ 2018-02-01 1:54 UTC (permalink / raw)
To: gregkh; +Cc: devel, xieyisheng1, sumit.semwal, linux-kernel
ion_buffer_fault_user_mappings's definition has been removed and not be
used anymore, just remove its useless declaration.
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
drivers/staging/android/ion/ion.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h
index f5f9cd6..2160c35 100644
--- a/drivers/staging/android/ion/ion.h
+++ b/drivers/staging/android/ion/ion.h
@@ -201,15 +201,6 @@ struct ion_heap {
bool ion_buffer_cached(struct ion_buffer *buffer);
/**
- * ion_buffer_fault_user_mappings - fault in user mappings of this buffer
- * @buffer: buffer
- *
- * indicates whether userspace mappings of this buffer will be faulted
- * in, this can affect how buffers are allocated from the heap.
- */
-bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer);
-
-/**
* ion_device_add_heap - adds a heap to the ion device
* @heap: the heap to add
*/
--
1.7.12.4
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH resend 2/3] staging: android: ion: Remove unused include files for ion_page_pool.c
2018-02-01 1:54 [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
@ 2018-02-01 1:54 ` Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 3/3] staging: android: ion: Nuke ion_page_pool_init Yisheng Xie
2018-02-12 11:40 ` [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2 siblings, 0 replies; 5+ messages in thread
From: Yisheng Xie @ 2018-02-01 1:54 UTC (permalink / raw)
To: gregkh; +Cc: devel, xieyisheng1, sumit.semwal, linux-kernel
After rewrite of ion_page_pool, some of its include file is no need
anymore, just remove it.
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
drivers/staging/android/ion/ion_page_pool.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c
index 817849d..f2318c9 100644
--- a/drivers/staging/android/ion/ion_page_pool.c
+++ b/drivers/staging/android/ion/ion_page_pool.c
@@ -14,10 +14,6 @@
*
*/
-#include <linux/debugfs.h>
-#include <linux/dma-mapping.h>
-#include <linux/err.h>
-#include <linux/fs.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/slab.h>
--
1.7.12.4
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH resend 3/3] staging: android: ion: Nuke ion_page_pool_init
2018-02-01 1:54 [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 2/3] staging: android: ion: Remove unused include files for ion_page_pool.c Yisheng Xie
@ 2018-02-01 1:54 ` Yisheng Xie
2018-02-12 11:40 ` [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2 siblings, 0 replies; 5+ messages in thread
From: Yisheng Xie @ 2018-02-01 1:54 UTC (permalink / raw)
To: gregkh; +Cc: devel, xieyisheng1, sumit.semwal, linux-kernel
ion_page_pool.c now is used to apply pool APIs for system heap, which do
not need do any initial at device_initcall. Therefore ion_page_pool_init
can be nuked.
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
drivers/staging/android/ion/ion_page_pool.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c
index f2318c9..3c1eba5 100644
--- a/drivers/staging/android/ion/ion_page_pool.c
+++ b/drivers/staging/android/ion/ion_page_pool.c
@@ -15,7 +15,6 @@
*/
#include <linux/list.h>
-#include <linux/init.h>
#include <linux/slab.h>
#include <linux/swap.h>
@@ -167,9 +166,3 @@ void ion_page_pool_destroy(struct ion_page_pool *pool)
{
kfree(pool);
}
-
-static int __init ion_page_pool_init(void)
-{
- return 0;
-}
-device_initcall(ion_page_pool_init);
--
1.7.12.4
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings
2018-02-01 1:54 [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 2/3] staging: android: ion: Remove unused include files for ion_page_pool.c Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 3/3] staging: android: ion: Nuke ion_page_pool_init Yisheng Xie
@ 2018-02-12 11:40 ` Yisheng Xie
2018-02-14 2:54 ` Yisheng Xie
2 siblings, 1 reply; 5+ messages in thread
From: Yisheng Xie @ 2018-02-12 11:40 UTC (permalink / raw)
To: gregkh; +Cc: devel, sumit.semwal, linux-kernel
Hi Greg,
JFYI, I have rebase this patchset to v4.15-rc1.[1]
[1] https://lkml.org/lkml/2018/2/12/204
Thanks
Yisheng
On 2018/2/1 9:54, Yisheng Xie wrote:
> ion_buffer_fault_user_mappings's definition has been removed and not be
> used anymore, just remove its useless declaration.
>
> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
> ---
> drivers/staging/android/ion/ion.h | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h
> index f5f9cd6..2160c35 100644
> --- a/drivers/staging/android/ion/ion.h
> +++ b/drivers/staging/android/ion/ion.h
> @@ -201,15 +201,6 @@ struct ion_heap {
> bool ion_buffer_cached(struct ion_buffer *buffer);
>
> /**
> - * ion_buffer_fault_user_mappings - fault in user mappings of this buffer
> - * @buffer: buffer
> - *
> - * indicates whether userspace mappings of this buffer will be faulted
> - * in, this can affect how buffers are allocated from the heap.
> - */
> -bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer);
> -
> -/**
> * ion_device_add_heap - adds a heap to the ion device
> * @heap: the heap to add
> */
>
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings
2018-02-12 11:40 ` [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
@ 2018-02-14 2:54 ` Yisheng Xie
0 siblings, 0 replies; 5+ messages in thread
From: Yisheng Xie @ 2018-02-14 2:54 UTC (permalink / raw)
To: gregkh; +Cc: devel, sumit.semwal, linux-kernel
Hi Greg
On 2018/2/12 19:40, Yisheng Xie wrote:
> Hi Greg,
>
> JFYI, I have rebase this patchset to v4.15-rc1.[1]
Ah, sorry , I mean v4.16-rc1, and the same to other threads.
Thanks
Yisheng
>
> [1] https://lkml.org/lkml/2018/2/12/204
>
> Thanks
> Yisheng
>
> On 2018/2/1 9:54, Yisheng Xie wrote:
>> ion_buffer_fault_user_mappings's definition has been removed and not be
>> used anymore, just remove its useless declaration.
>>
>> Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
>> ---
>> drivers/staging/android/ion/ion.h | 9 ---------
>> 1 file changed, 9 deletions(-)
>>
>> diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h
>> index f5f9cd6..2160c35 100644
>> --- a/drivers/staging/android/ion/ion.h
>> +++ b/drivers/staging/android/ion/ion.h
>> @@ -201,15 +201,6 @@ struct ion_heap {
>> bool ion_buffer_cached(struct ion_buffer *buffer);
>>
>> /**
>> - * ion_buffer_fault_user_mappings - fault in user mappings of this buffer
>> - * @buffer: buffer
>> - *
>> - * indicates whether userspace mappings of this buffer will be faulted
>> - * in, this can affect how buffers are allocated from the heap.
>> - */
>> -bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer);
>> -
>> -/**
>> * ion_device_add_heap - adds a heap to the ion device
>> * @heap: the heap to add
>> */
>>
>
>
> .
>
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-14 2:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 1:54 [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 2/3] staging: android: ion: Remove unused include files for ion_page_pool.c Yisheng Xie
2018-02-01 1:54 ` [PATCH resend 3/3] staging: android: ion: Nuke ion_page_pool_init Yisheng Xie
2018-02-12 11:40 ` [PATCH resend 1/3] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings Yisheng Xie
2018-02-14 2:54 ` Yisheng Xie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).