Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1310700pxb; Thu, 28 Oct 2021 01:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSuzHchHs5/CL3hWV35M/r5T32lHYryCZCOxFOPxD2mXJb3rJd25cB4eqMnf3sG81qrcNk X-Received: by 2002:aa7:db07:: with SMTP id t7mr4204891eds.173.1635408313644; Thu, 28 Oct 2021 01:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635408313; cv=none; d=google.com; s=arc-20160816; b=JS3YRt27/QW5AZ+oHS93n4iyH1VbwGcLZfUz94rYx1cgk86Q9x8E7TS3I0rT0o4YBx PE5liqpNIBhF8OoQ0HSuuuij+F09sXExd3D41S6gC0rqOXnTMajqD++L6sDa2BQaT4w2 8mcxc4lJ5VH5huhJiitSx0YGKt7A4AMW2oZ0B27JlQzHE0JIP1yxnCZEpv1DcxUaGGcq JYxy6qQHqwCgGYABu8T9GsojoZ9sDWrsfsnXRddz0ckh7Z0GDCjtNYmk4J/YGDt3RK+f 1uB+rZuG1jpZnjkFa7q+LYncmgjPFE2lpiEFjlmQF4WiTYpVpN1u7MALpjMBXtiK5rRM UApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:date:message-id:from:references:cc:to :subject; bh=ixPTcNYadCe/XdvbCxx/dJFTNAMqFN5J4BSec3GzA+Y=; b=DOWBK44OjK6mWSWxKE3ZH/ljsg/F3yWx0upJ96C2WLs9Ux3SiJaMS1lW1X4t6DUbP7 eYoGFRtTEMl5iqxi44jyQnNN1QyU23xbmhf4mVy+B08kU1wgpTJ6yjX2171PbmOVJnyz RBsxIhwOIH7GS818NEABTtG/mVgW8zQ0mycS1wVU6nQBFoNAZKC2woi12YjoMtIgvmuD R0QPv7EtQ5CriXk1FAD1WSCXMX3DMuO93mlKCiwaVyvSMo1t3FCht2Uqf3jE+6o2XuWS NZdCjmFXDt6WZTf6QpYLRwS8/J49RVa7+XDMR+FpSurvgmW1whDisUJDRQZ20bt48tpH LXQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qa37si3939911ejc.661.2021.10.28.01.04.48; Thu, 28 Oct 2021 01:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbhJ1IEM (ORCPT + 99 others); Thu, 28 Oct 2021 04:04:12 -0400 Received: from s2.neomailbox.net ([5.148.176.60]:16156 "EHLO s2.neomailbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbhJ1IEF (ORCPT ); Thu, 28 Oct 2021 04:04:05 -0400 X-Greylist: delayed 1598 seconds by postgrey-1.27 at vger.kernel.org; Thu, 28 Oct 2021 04:04:05 EDT Subject: Re: [PATCH net-next] batman-adv: Fix the wrong definition To: Yajun Deng , mareklindner@neomailbox.ch, sw@simonwunderlich.de, sven@narfation.org Cc: b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211028072306.1351-1-yajun.deng@linux.dev> From: Antonio Quartulli Message-ID: Date: Thu, 28 Oct 2021 09:35:28 +0200 MIME-Version: 1.0 In-Reply-To: <20211028072306.1351-1-yajun.deng@linux.dev> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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