lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160816163150.GA28201@roeck-us.net>
Date:	Tue, 16 Aug 2016 09:31:50 -0700
From:	Guenter Roeck <linux@...ck-us.net>
To:	Frank Wang <frank.wang@...k-chips.com>
Cc:	heiko@...ech.de, kishon@...com, dianders@...omium.org,
	jwerner@...omium.org, robh+dt@...nel.org, pawel.moll@....com,
	mark.rutland@....com, ijc+devicetree@...lion.org.uk,
	galak@...eaurora.org, linux-kernel@...r.kernel.org,
	devicetree@...r.kernel.org, linux-usb@...r.kernel.org,
	linux-rockchip@...ts.infradead.org, xzy.xu@...k-chips.com,
	kever.yang@...k-chips.com, huangtao@...k-chips.com,
	william.wu@...k-chips.com, daniel.meng@...k-chips.com
Subject: Re: [PATCH] phy: rockchip-inno-usb2: add COMMON_CLK dependency

On Tue, Aug 16, 2016 at 02:02:00PM +0800, Frank Wang wrote:
> On kernel builds without COMMON_CLK, the newly added rockchip-inno-usb2
> driver fails to build:
> 
> drivers/phy/phy-rockchip-inno-usb2.c:124:16: error: field 'clk480m_hw'
> has incomplete type
>    struct clk_hw clk480m_hw;
> 
> In file included from include/linux/clk.h:16:0
>                  from drivers/phy/phy-rockchip-inno-usb2.c:17:
> include/linux/kernel.h:831:48: error: initialization from incompatible
> pointer type [-Werror=incompatible-pointer-types]
>    const typeof( ((type *)0)->member ) *__mptr = (ptr); \
> 
>   ... ...
> 
> Signed-off-by: Frank Wang <frank.wang@...k-chips.com>
> ---
>  drivers/phy/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
> index f9bf981..c6d57e5 100644
> --- a/drivers/phy/Kconfig
> +++ b/drivers/phy/Kconfig
> @@ -370,6 +370,7 @@ config PHY_ROCKCHIP_USB
>  config PHY_ROCKCHIP_INNO_USB2
>  	tristate "Rockchip INNO USB2PHY Driver"
>  	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
> +	depends on COMMON_CLK

Wonder what is preferred here. I find 33 "select COMMON_CLK" and
18 "depends on COMMON_CLK".

Either case

Reviewed-by: Guenter Roeck <linux@...ck-us.net>


>  	select GENERIC_PHY
>  	help
>  	  Support for Rockchip USB2.0 PHY with Innosilicon IP block.
> -- 
> 1.7.9.5
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ