From: Yajun Deng <hidden> Date: 2021-10-28 07:23:28
There are three variables that are required at most,
no need to define four variables.
Fixes: 0fa4c30d710d ("batman-adv: Make sysfs support optional")
Signed-off-by: Yajun Deng <redacted>
---
net/batman-adv/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Fixes: 0fa4c30d710d ("batman-adv: Make sysfs support optional")
Even this Fixes would be wrong. The code is there since commit
c6bda689c2c9 ("batman-adv: add wrapper function to throw uevent in
userspace").
But even then, this would not fix anything but just be a cleanup.
October 28, 2021 3:35 PM, "Antonio Quartulli" [off-list ref] 写到:
Hi,
On 28/10/2021 09:23, Yajun Deng wrote:
quoted
There are three variables that are required at most,
no need to define four variables.
Fixes: 0fa4c30d710d ("batman-adv: Make sysfs support optional")
Signed-off-by: Yajun Deng <redacted>
From: Antonio Quartulli <hidden> Date: 2021-10-28 08:02:01
Hi,
On 28/10/2021 09:23, Yajun Deng wrote:
There are three variables that are required at most,
no need to define four variables.
Fixes: 0fa4c30d710d ("batman-adv: Make sysfs support optional")
Signed-off-by: Yajun Deng <redacted>
NAK.
kobject_uevent_env() does not know how many items are stored in the
array and thus requires it to be NULL terminated.
Please check the following for reference:
https://elixir.bootlin.com/linux/v5.15-rc6/source/lib/kobject_uevent.c#L548
OTOH I guess we could still use '{}' for the initialization.
Regards,
--
Antonio Quartulli