[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200624121150.GA2324254@vkoul-mobl>
Date: Wed, 24 Jun 2020 17:41:50 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Kishon Vijay Abraham I <kishon@...com>,
Dilip Kota <eswara.kota@...ux.intel.com>,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH] phy: intel: fix enum type mismatch warning
On 27-05-20, 15:45, Arnd Bergmann wrote:
> clang points out that a local variable is initialized with
> an enum value of the wrong type:
>
> drivers/phy/intel/phy-intel-combo.c:202:34: error: implicit conversion from enumeration type 'enum intel_phy_mode' to different enumeration type 'enum intel_combo_mode' [-Werror,-Wenum-conversion]
> enum intel_combo_mode cb_mode = PHY_PCIE_MODE;
> ~~~~~~~ ^~~~~~~~~~~~~
>
> >From reading the code, it seems that this was not only the
> wrong type, but not even supposed to be a code path that can
> happen in practice.
>
> Change the code to have no default phy mode but instead return an
> error for invalid input.
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists