From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 1/6] reset: hisilicon: add reset core Date: Tue, 22 Nov 2016 10:41:12 +0100 Message-ID: <2907606.qYBKeXi75W@wuerfel> References: <1479800961-6249-1-git-send-email-zhangfei.gao@linaro.org> <3993565.nedzUBZcVS@wuerfel> <0084ef53-c0e6-51e8-afa5-07264dfce529@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <0084ef53-c0e6-51e8-afa5-07264dfce529-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: zhangfei Cc: Philipp Zabel , Rob Herring , haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, xuwei5-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org, Chen Feng , Xinliang Liu , Xia Qing , Jiancheng Xue , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Tuesday, November 22, 2016 5:22:42 PM CET zhangfei wrote: > Hi, Arnd > > On 2016年11月22日 16:45, Arnd Bergmann wrote: > > On Tuesday, November 22, 2016 3:49:16 PM CET Zhangfei Gao wrote: > >> @@ -1,8 +1,8 @@ > >> obj-y += core.o > >> -obj-y += hisilicon/ > >> obj-$(CONFIG_ARCH_STI) += sti/ > >> obj-$(CONFIG_RESET_ATH79) += reset-ath79.o > >> obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o > >> +obj-$(CONFIG_ARCH_HISI) += hisilicon/ > >> obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o > >> obj-$(CONFIG_RESET_MESON) += reset-meson.o > >> obj-$(CONFIG_RESET_OXNAS) += reset-oxnas.o > > Please leave the obj-y line, otherwise the COMPILE_TEST variant won't work. > > COMPILE_TEST is added in drivers/reset/hisilicon/Kconfig > like > config COMMON_RESET_HI3660 > tristate "Hi3660 Reset Driver" > depends on ARCH_HISI || COMPILE_TEST > > The reason not using "obj-y" here is that reset.c will be compiled unconditionally. > > drivers/reset/hisilicon/Makefile > obj-y += reset.o Yes, that line has to change as well then, to only build it when one of the hardware specific drivers is enabled. Arnd -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html