[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171007.030103.394881238635414484.davem@davemloft.net>
Date: Sat, 07 Oct 2017 03:01:03 +0100 (WEST)
From: David Miller <davem@...emloft.net>
To: michael.chan@...adcom.com
Cc: jtoppins@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] bnxt_en: tc: only the function prototypes
need to be wrapped in #ifdef
From: Michael Chan <michael.chan@...adcom.com>
Date: Fri, 6 Oct 2017 18:27:31 -0700
> On Fri, Oct 6, 2017 at 12:48 PM, Jonathan Toppins <jtoppins@...hat.com> wrote:
>> There is no reason to wrap the data structures inside the ifdef.
>
> What's so bad about wrapping unused data structures inside #ifdef?
> These structures are only used if CONFIG_BNXT_FLOWER_OFFLOAD is
> defined.
Yeah I agree, this ifdef is actually a good way to trap unintentional
usage of those datastructures so it's doubly best to keep the ifdef.
Powered by blists - more mailing lists