* [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static
@ 2018-03-11 17:03 Colin King
2018-03-11 17:22 ` Sowmini Varadhan
2018-03-12 6:54 ` santosh.shilimkar
0 siblings, 2 replies; 4+ messages in thread
From: Colin King @ 2018-03-11 17:03 UTC (permalink / raw)
To: Santosh Shilimkar, David S . Miller, netdev, linux-rdma,
rds-devel
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
Functions rds_info_from_znotifier and rds_message_zcopy_from_user are
local to the source and do not need to be in global scope, so make them
static.
Cleans up sparse warnins:
net/rds/message.c:70:27: warning: symbol 'rds_info_from_znotifier' was
not declared. Should it be static?
net/rds/message.c:358:5: warning: symbol 'rds_message_zcopy_from_user'
was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
net/rds/message.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/rds/message.c b/net/rds/message.c
index 9c41bdd9e444..7448fa192543 100644
--- a/net/rds/message.c
+++ b/net/rds/message.c
@@ -67,7 +67,8 @@ static inline bool rds_zcookie_add(struct rds_msg_zcopy_info *info, u32 cookie)
return true;
}
-struct rds_msg_zcopy_info *rds_info_from_znotifier(struct rds_znotifier *znotif)
+static struct rds_msg_zcopy_info *
+rds_info_from_znotifier(struct rds_znotifier *znotif)
{
return container_of(znotif, struct rds_msg_zcopy_info, znotif);
}
@@ -355,7 +356,8 @@ struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned in
return rm;
}
-int rds_message_zcopy_from_user(struct rds_message *rm, struct iov_iter *from)
+static int rds_message_zcopy_from_user(struct rds_message *rm,
+ struct iov_iter *from)
{
struct scatterlist *sg;
int ret = 0;
--
2.15.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static
2018-03-11 17:03 [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static Colin King
@ 2018-03-11 17:22 ` Sowmini Varadhan
2018-03-12 6:54 ` santosh.shilimkar
1 sibling, 0 replies; 4+ messages in thread
From: Sowmini Varadhan @ 2018-03-11 17:22 UTC (permalink / raw)
To: Colin King
Cc: Santosh Shilimkar, David S . Miller, netdev, linux-rdma,
rds-devel, kernel-janitors, linux-kernel
On (03/11/18 18:03), Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions rds_info_from_znotifier and rds_message_zcopy_from_user are
> local to the source and do not need to be in global scope, so make them
> static.
the rds_message_zcopy_from_user warning was already flagged by kbuild-robot
last week. See
https://www.spinics.net/lists/netdev/msg488041.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static
2018-03-11 17:03 [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static Colin King
2018-03-11 17:22 ` Sowmini Varadhan
@ 2018-03-12 6:54 ` santosh.shilimkar
2018-03-12 7:04 ` santosh.shilimkar
1 sibling, 1 reply; 4+ messages in thread
From: santosh.shilimkar @ 2018-03-12 6:54 UTC (permalink / raw)
To: Colin King, David S . Miller, netdev, linux-rdma, rds-devel
Cc: kernel-janitors, linux-kernel
On 3/11/18 10:03 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Functions rds_info_from_znotifier and rds_message_zcopy_from_user are
> local to the source and do not need to be in global scope, so make them
> static.
>
> Cleans up sparse warnins:
> net/rds/message.c:70:27: warning: symbol 'rds_info_from_znotifier' was
> not declared. Should it be static?
> net/rds/message.c:358:5: warning: symbol 'rds_message_zcopy_from_user'
> was not declared. Should it be static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> net/rds/message.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static
2018-03-12 6:54 ` santosh.shilimkar
@ 2018-03-12 7:04 ` santosh.shilimkar
0 siblings, 0 replies; 4+ messages in thread
From: santosh.shilimkar @ 2018-03-12 7:04 UTC (permalink / raw)
To: Colin King, David S . Miller, netdev, linux-rdma, rds-devel
Cc: kernel-janitors, linux-kernel
On 3/11/18 11:54 PM, santosh.shilimkar@oracle.com wrote:
> On 3/11/18 10:03 AM, Colin King wrote:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> Functions rds_info_from_znotifier and rds_message_zcopy_from_user are
>> local to the source and do not need to be in global scope, so make them
>> static.
>>
>> Cleans up sparse warnins:
>> net/rds/message.c:70:27: warning: symbol 'rds_info_from_znotifier' was
>> not declared. Should it be static?
>> net/rds/message.c:358:5: warning: symbol 'rds_message_zcopy_from_user'
>> was not declared. Should it be static?
>>
>> Signed-off-by: Colin Ian King <colin.king@canonical.com>
>> ---
>> net/rds/message.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
This was fixed by kbuild robot and the fix is already in net-next.
Regards,
Santosh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-12 7:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-11 17:03 [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static Colin King
2018-03-11 17:22 ` Sowmini Varadhan
2018-03-12 6:54 ` santosh.shilimkar
2018-03-12 7:04 ` santosh.shilimkar
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).