[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADVatmOcuzx7RZHDG+7P31hfscpsVOc2wNS6DvEZifCpntRCsw@mail.gmail.com>
Date: Fri, 2 Sep 2022 09:18:11 +0100
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Leon Romanovsky <leon@...nel.org>,
Gal Pressman <gal@...dia.com>,
Alexander Aring <alex.aring@...il.com>,
Stefan Schmidt <stefan@...enfreihafen.org>,
paul@...l-moore.com, linux-wpan@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: ieee802154: Fix compilation error when
CONFIG_IEEE802154_NL802154_EXPERIMENTAL is disabled
On Fri, Sep 2, 2022 at 4:06 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> From: Gal Pressman <gal@...dia.com>
>
> When CONFIG_IEEE802154_NL802154_EXPERIMENTAL is disabled,
> NL802154_CMD_DEL_SEC_LEVEL is undefined and results in a compilation
> error:
> net/ieee802154/nl802154.c:2503:19: error: 'NL802154_CMD_DEL_SEC_LEVEL' undeclared here (not in a function); did you mean 'NL802154_CMD_SET_CCA_ED_LEVEL'?
> 2503 | .resv_start_op = NL802154_CMD_DEL_SEC_LEVEL + 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> | NL802154_CMD_SET_CCA_ED_LEVEL
>
> Unhide the experimental commands, having them defined in an enum
> makes no difference.
>
> Fixes: 9c5d03d36251 ("genetlink: start to validate reserved header bytes")
> Signed-off-by: Gal Pressman <gal@...dia.com>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Fixes the build for me.
Tested-by: Sudip Mukherjee <sudipm.mukherjee@...il.com>
--
Regards
Sudip
Powered by blists - more mailing lists