From: kernel test robot <lkp@intel.com>
To: Lukasz Luba <l.luba@partner.samsung.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzk@kernel.org>
Subject: drivers/memory/samsung/exynos5422-dmc.c:216:6: warning: variable 'ret' set but not used
Date: Sat, 18 Jul 2020 07:27:28 +0800 [thread overview]
Message-ID: <202007180724.D088l0nH%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2735 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4ebf8d7649cd86c41c41bf48da4b7761da2d5009
commit: 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 memory: Add DMC driver for Exynos5422
date: 10 months ago
config: arm-randconfig-r026-20200717 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
git checkout 6e7674c3c6df565ab47d02b4f2e608e3477cdf86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/memory/samsung/exynos5422-dmc.c: In function 'exynos5_switch_timing_regs':
>> drivers/memory/samsung/exynos5422-dmc.c:216:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
216 | int ret;
| ^~~
drivers/memory/samsung/exynos5422-dmc.c: At top level:
drivers/memory/samsung/exynos5422-dmc.c:736:1: warning: no previous prototype for 'exynos5_dmc_align_init_freq' [-Wmissing-prototypes]
736 | exynos5_dmc_align_init_freq(struct exynos5_dmc *dmc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ret +216 drivers/memory/samsung/exynos5422-dmc.c
199
200 /**
201 * exynos5_switch_timing_regs() - Changes bank register set for DRAM timings
202 * @dmc: device for which the new settings is going to be applied
203 * @set: boolean variable passing set value
204 *
205 * Changes the register set, which holds timing parameters.
206 * There is two register sets: 0 and 1. The register set 0
207 * is used in normal operation when the clock is provided from main PLL.
208 * The bank register set 1 is used when the main PLL frequency is going to be
209 * changed and the clock is taken from alternative, stable source.
210 * This function switches between these banks according to the
211 * currently used clock source.
212 */
213 static void exynos5_switch_timing_regs(struct exynos5_dmc *dmc, bool set)
214 {
215 unsigned int reg;
> 216 int ret;
217
218 ret = regmap_read(dmc->clk_regmap, CDREX_LPDDR3PHY_CON3, ®);
219
220 if (set)
221 reg |= EXYNOS5_TIMING_SET_SWI;
222 else
223 reg &= ~EXYNOS5_TIMING_SET_SWI;
224
225 regmap_write(dmc->clk_regmap, CDREX_LPDDR3PHY_CON3, reg);
226 }
227
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34328 bytes --]
reply other threads:[~2020-07-17 23:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007180724.D088l0nH%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=l.luba@partner.samsung.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®