* [PATCH] can: use namespace aware procfs function
@ 2017-04-15 18:06 Oliver Hartkopp
2017-04-15 18:12 ` Fwd: " Oliver Hartkopp
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Hartkopp @ 2017-04-15 18:06 UTC (permalink / raw)
To: linux-can; +Cc: Oliver Hartkopp
Fixes 'can: complete initial namespace support'
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
---
net/can/proc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/can/proc.c b/net/can/proc.c
index 1a7d95e2335b..83045f00c63c 100644
--- a/net/can/proc.c
+++ b/net/can/proc.c
@@ -272,7 +272,7 @@ static int can_stats_proc_show(struct seq_file *m, void *v)
static int can_stats_proc_open(struct inode *inode, struct file *file)
{
- return single_open(file, can_stats_proc_show, NULL);
+ return single_open_net(inode, file, can_stats_proc_show);
}
static const struct file_operations can_stats_proc_fops = {
@@ -306,7 +306,7 @@ static int can_reset_stats_proc_show(struct seq_file *m, void *v)
static int can_reset_stats_proc_open(struct inode *inode, struct file *file)
{
- return single_open(file, can_reset_stats_proc_show, NULL);
+ return single_open_net(inode, file, can_reset_stats_proc_show);
}
static const struct file_operations can_reset_stats_proc_fops = {
@@ -325,7 +325,7 @@ static int can_version_proc_show(struct seq_file *m, void *v)
static int can_version_proc_open(struct inode *inode, struct file *file)
{
- return single_open(file, can_version_proc_show, NULL);
+ return single_open_net(inode, file, can_version_proc_show);
}
static const struct file_operations can_version_proc_fops = {
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Fwd: [PATCH] can: use namespace aware procfs function
2017-04-15 18:06 [PATCH] can: use namespace aware procfs function Oliver Hartkopp
@ 2017-04-15 18:12 ` Oliver Hartkopp
2017-04-15 18:21 ` Marc Kleine-Budde
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Hartkopp @ 2017-04-15 18:12 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: linux-can@vger.kernel.org
Hey Marc,
can you squash this fix into my original RFC v2 patch?
I missed this change which then leads to a segfault.
Alternatively I can send a v3.
Regards,
Oliver
-------- Forwarded Message --------
Subject: [PATCH] can: use namespace aware procfs function
Date: Sat, 15 Apr 2017 20:06:29 +0200
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: linux-can@vger.kernel.org
CC: Oliver Hartkopp <socketcan@hartkopp.net>
Fixes 'can: complete initial namespace support'
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
---
net/can/proc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/can/proc.c b/net/can/proc.c
index 1a7d95e2335b..83045f00c63c 100644
--- a/net/can/proc.c
+++ b/net/can/proc.c
@@ -272,7 +272,7 @@ static int can_stats_proc_show(struct seq_file *m,
void *v)
static int can_stats_proc_open(struct inode *inode, struct file *file)
{
- return single_open(file, can_stats_proc_show, NULL);
+ return single_open_net(inode, file, can_stats_proc_show);
}
static const struct file_operations can_stats_proc_fops = {
@@ -306,7 +306,7 @@ static int can_reset_stats_proc_show(struct seq_file
*m, void *v)
static int can_reset_stats_proc_open(struct inode *inode, struct file
*file)
{
- return single_open(file, can_reset_stats_proc_show, NULL);
+ return single_open_net(inode, file, can_reset_stats_proc_show);
}
static const struct file_operations can_reset_stats_proc_fops = {
@@ -325,7 +325,7 @@ static int can_version_proc_show(struct seq_file *m,
void *v)
static int can_version_proc_open(struct inode *inode, struct file *file)
{
- return single_open(file, can_version_proc_show, NULL);
+ return single_open_net(inode, file, can_version_proc_show);
}
static const struct file_operations can_version_proc_fops = {
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe linux-can" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: Fwd: [PATCH] can: use namespace aware procfs function
2017-04-15 18:12 ` Fwd: " Oliver Hartkopp
@ 2017-04-15 18:21 ` Marc Kleine-Budde
2017-04-15 20:56 ` Oliver Hartkopp
0 siblings, 1 reply; 6+ messages in thread
From: Marc Kleine-Budde @ 2017-04-15 18:21 UTC (permalink / raw)
To: Oliver Hartkopp; +Cc: linux-can@vger.kernel.org
[-- Attachment #1.1: Type: text/plain, Size: 420 bytes --]
On 04/15/2017 08:12 PM, Oliver Hartkopp wrote:
> Hey Marc,
>
> can you squash this fix into my original RFC v2 patch?
will do.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fwd: [PATCH] can: use namespace aware procfs function
2017-04-15 18:21 ` Marc Kleine-Budde
@ 2017-04-15 20:56 ` Oliver Hartkopp
2017-04-17 10:55 ` Oliver Hartkopp
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Hartkopp @ 2017-04-15 20:56 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: linux-can@vger.kernel.org, Mario Kicherer
On 04/15/2017 08:21 PM, Marc Kleine-Budde wrote:
> On 04/15/2017 08:12 PM, Oliver Hartkopp wrote:
>> Hey Marc,
>>
>> can you squash this fix into my original RFC v2 patch?
>
> will do.
>
Great!
I finalized a namespace patch for CAN BCM some minutes ago.
I'll do some more testing tomorrow and post it then.
Best regards,
Oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fwd: [PATCH] can: use namespace aware procfs function
2017-04-15 20:56 ` Oliver Hartkopp
@ 2017-04-17 10:55 ` Oliver Hartkopp
2017-04-25 8:59 ` Marc Kleine-Budde
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Hartkopp @ 2017-04-17 10:55 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: linux-can@vger.kernel.org, Mario Kicherer
On 04/15/2017 10:56 PM, Oliver Hartkopp wrote:
> On 04/15/2017 08:21 PM, Marc Kleine-Budde wrote:
>> On 04/15/2017 08:12 PM, Oliver Hartkopp wrote:
>>> can you squash this fix into my original RFC v2 patch?
>>
>> will do.
>>
>
> Great!
>
> I finalized a namespace patch for CAN BCM some minutes ago.
>
> I'll do some more testing tomorrow and post it then.
Done :-)
Will you push these patches to can-next?
Regards,
Oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fwd: [PATCH] can: use namespace aware procfs function
2017-04-17 10:55 ` Oliver Hartkopp
@ 2017-04-25 8:59 ` Marc Kleine-Budde
0 siblings, 0 replies; 6+ messages in thread
From: Marc Kleine-Budde @ 2017-04-25 8:59 UTC (permalink / raw)
To: Oliver Hartkopp; +Cc: linux-can@vger.kernel.org, Mario Kicherer
[-- Attachment #1.1: Type: text/plain, Size: 790 bytes --]
On 04/17/2017 12:55 PM, Oliver Hartkopp wrote:
> On 04/15/2017 10:56 PM, Oliver Hartkopp wrote:
>> On 04/15/2017 08:21 PM, Marc Kleine-Budde wrote:
>>> On 04/15/2017 08:12 PM, Oliver Hartkopp wrote:
>>>> can you squash this fix into my original RFC v2 patch?
>>>
>>> will do.
>>>
>>
>> Great!
>>
>> I finalized a namespace patch for CAN BCM some minutes ago.
>>
>> I'll do some more testing tomorrow and post it then.
>
> Done :-)
>
> Will you push these patches to can-next?
done.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-04-25 8:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15 18:06 [PATCH] can: use namespace aware procfs function Oliver Hartkopp
2017-04-15 18:12 ` Fwd: " Oliver Hartkopp
2017-04-15 18:21 ` Marc Kleine-Budde
2017-04-15 20:56 ` Oliver Hartkopp
2017-04-17 10:55 ` Oliver Hartkopp
2017-04-25 8:59 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox