From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A0F17E6 for ; Thu, 9 Mar 2023 06:09:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 141E3C433EF; Thu, 9 Mar 2023 06:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678342165; bh=fsLhHcjhO5MajeqhhNrUkIj89nd00dnJ8w3YBl4clAw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hrIEBIkX5gxzeBg72m0QXHTSpFepipJm7bADK0SO0OqyWMSGdo6Lv4/ih+XqQJuXy wc/brZvytSdfqJhQxyLhn1XgTws0mpHbCq3In1/dx/++OeWGACN/ngYUVG4IQ7Uj/D Ox1aybG128qoxQoy0SFMSQtb3HQ9J/kncj1pK8TZXePQb2JafflXrZ7zP+BQvJN+wn d29p3GKgx3ZwSJaH8/qcXpHV+UVePk2K9ezoXqIOCKKFEYFf/2j5eF1x6a80jHcHms k35cM/0KniwHVcYKSAA41i3b/rN30Q9rtuSL3XMzVYujEAMNf2fHiGHB99gVldEHkP C1DAuf5pO/I4w== Message-ID: Date: Thu, 9 Mar 2023 07:09:20 +0100 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v13 2/2] clk: clk-loongson2: add clock controller driver support To: zhuyinbo , kernel test robot , Michael Turquette , Stephen Boyd , Rob Herring , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Jianmin Lv , Liu Peibao , wanghongliang@loongson.cn, loongson-kernel@lists.loongnix.cn References: <20230307115022.12846-2-zhuyinbo@loongson.cn> <202303082037.QPfBP64A-lkp@intel.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 09/03/2023 03:58, zhuyinbo wrote: > > 在 2023/3/8 下午8:16, kernel test robot 写道: >> Hi Yinbo, >> >> I love your patch! Yet something to improve: >> >> [auto build test ERROR on clk/clk-next] >> [also build test ERROR on robh/for-next linus/master v6.3-rc1 next-20230308] >> [If your patch is applied to the wrong git tree, kindly drop us a note. >> And when submitting patch, we suggest to use '--base' as documented in >> https://git-scm.com/docs/git-format-patch#_base_tree_information] >> >> url: https://github.com/intel-lab-lkp/linux/commits/Yinbo-Zhu/clk-clk-loongson2-add-clock-controller-driver-support/20230307-195252 >> base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next >> patch link: https://lore.kernel.org/r/20230307115022.12846-2-zhuyinbo%40loongson.cn >> patch subject: [PATCH v13 2/2] clk: clk-loongson2: add clock controller driver support >> config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20230308/202303082037.QPfBP64A-lkp@intel.com/config) >> compiler: mips-linux-gcc (GCC) 12.1.0 >> reproduce (this is a W=1 build): >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # https://github.com/intel-lab-lkp/linux/commit/391d6fc63ac65f5456e4755c9dd85232a6296285 >> git remote add linux-review https://github.com/intel-lab-lkp/linux >> git fetch --no-tags linux-review Yinbo-Zhu/clk-clk-loongson2-add-clock-controller-driver-support/20230307-195252 >> git checkout 391d6fc63ac65f5456e4755c9dd85232a6296285 >> # save the config file >> mkdir build_dir && cp config build_dir/.config >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/ >> >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test robot >> | Link: https://lore.kernel.org/oe-kbuild-all/202303082037.QPfBP64A-lkp@intel.com/ >> >> All errors (new ones prefixed by >>): >> >> drivers/clk/clk-loongson2.c: In function 'loongson2_calc_pll_rate': >>>> drivers/clk/clk-loongson2.c:79:15: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration] >> 79 | val = readq(loongson2_pll_base + offset); >> | ^~~~~ >> | readl >> cc1: some warnings being treated as errors > > The CONFIG_64BIT not enabled in your config file, I will add a depend on > "CONFIG_64BIT" in my clock driver to fix this compile error. No, that's not how it should be fixed. Fix your code instead. Best regards, Krzysztof