drivers/gpu/drm/i915/i915_sw_fence.c:111:20: error: unused function 'debug_fence_free'
by kernel test robot
Hi Nick,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: 9f4069b055d1508c833115df7493b6e0001e5c9b drm/i915: re-disable -Wframe-address
date: 5 months ago
config: x86_64-randconfig-r026-20200912 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 45d0343900d3005d1d00cbb1a87c419c085dec71)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 9f4069b055d1508c833115df7493b6e0001e5c9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_sw_fence.c:111:20: error: unused function 'debug_fence_free' [-Werror,-Wunused-function]
static inline void debug_fence_free(struct i915_sw_fence *fence)
^
1 error generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9f4069b055d1508c833115df7493b6e0001e5c9b
vim +/debug_fence_free +111 drivers/gpu/drm/i915/i915_sw_fence.c
fc1584059d6c438 Chris Wilson 2016-11-25 110
fc1584059d6c438 Chris Wilson 2016-11-25 @111 static inline void debug_fence_free(struct i915_sw_fence *fence)
fc1584059d6c438 Chris Wilson 2016-11-25 112 {
fc1584059d6c438 Chris Wilson 2016-11-25 113 }
fc1584059d6c438 Chris Wilson 2016-11-25 114
:::::: The code at line 111 was first introduced by commit
:::::: fc1584059d6c438b1febafa1c207ae1d3c6643e8 drm/i915: Integrate i915_sw_fence with debugobjects
:::::: TO: Chris Wilson <chris(a)chris-wilson.co.uk>
:::::: CC: Chris Wilson <chris(a)chris-wilson.co.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 4870/7089] drivers/clk/imx/clk-imx35.c:251:12: warning: no previous prototype for 'mx35_clocks_init'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d5b2251d63b5344ee827d3680fa79bdb9f9ddfa1
commit: e1324ece2af442f60f77c42b141db6549fda6afd [4870/7089] ARM: imx: Remove i.MX35 board files
config: arm-randconfig-r004-20200913 (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 e1324ece2af442f60f77c42b141db6549fda6afd
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/clk/imx/clk-imx35.c:251:12: warning: no previous prototype for 'mx35_clocks_init' [-Wmissing-prototypes]
251 | int __init mx35_clocks_init(void)
| ^~~~~~~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e1324ece2af442f60f77c42b141db6549fda6afd
vim +/mx35_clocks_init +251 drivers/clk/imx/clk-imx35.c
8d449cb5e29a48 drivers/clk/imx/clk-imx35.c Alexander Stein 2015-09-09 250
8d449cb5e29a48 drivers/clk/imx/clk-imx35.c Alexander Stein 2015-09-09 @251 int __init mx35_clocks_init(void)
8d449cb5e29a48 drivers/clk/imx/clk-imx35.c Alexander Stein 2015-09-09 252 {
8d449cb5e29a48 drivers/clk/imx/clk-imx35.c Alexander Stein 2015-09-09 253 _mx35_clocks_init();
8d449cb5e29a48 drivers/clk/imx/clk-imx35.c Alexander Stein 2015-09-09 254
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 255 clk_register_clkdev(clk[pata_gate], NULL, "pata_imx");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 256 clk_register_clkdev(clk[can1_gate], NULL, "flexcan.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 257 clk_register_clkdev(clk[can2_gate], NULL, "flexcan.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 258 clk_register_clkdev(clk[cspi1_gate], "per", "imx35-cspi.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 259 clk_register_clkdev(clk[cspi1_gate], "ipg", "imx35-cspi.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 260 clk_register_clkdev(clk[cspi2_gate], "per", "imx35-cspi.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 261 clk_register_clkdev(clk[cspi2_gate], "ipg", "imx35-cspi.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 262 clk_register_clkdev(clk[epit1_gate], NULL, "imx-epit.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 263 clk_register_clkdev(clk[epit2_gate], NULL, "imx-epit.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 264 clk_register_clkdev(clk[esdhc1_gate], "per", "sdhci-esdhc-imx35.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 265 clk_register_clkdev(clk[ipg], "ipg", "sdhci-esdhc-imx35.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 266 clk_register_clkdev(clk[ahb], "ahb", "sdhci-esdhc-imx35.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 267 clk_register_clkdev(clk[esdhc2_gate], "per", "sdhci-esdhc-imx35.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 268 clk_register_clkdev(clk[ipg], "ipg", "sdhci-esdhc-imx35.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 269 clk_register_clkdev(clk[ahb], "ahb", "sdhci-esdhc-imx35.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 270 clk_register_clkdev(clk[esdhc3_gate], "per", "sdhci-esdhc-imx35.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 271 clk_register_clkdev(clk[ipg], "ipg", "sdhci-esdhc-imx35.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 272 clk_register_clkdev(clk[ahb], "ahb", "sdhci-esdhc-imx35.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 273 /* i.mx35 has the i.mx27 type fec */
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 274 clk_register_clkdev(clk[fec_gate], NULL, "imx27-fec.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 275 clk_register_clkdev(clk[gpt_gate], "per", "imx-gpt.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 276 clk_register_clkdev(clk[ipg], "ipg", "imx-gpt.0");
5bdfba29f18f0a arch/arm/mach-imx/clk-imx35.c Shawn Guo 2012-09-14 277 clk_register_clkdev(clk[i2c1_gate], NULL, "imx21-i2c.0");
5bdfba29f18f0a arch/arm/mach-imx/clk-imx35.c Shawn Guo 2012-09-14 278 clk_register_clkdev(clk[i2c2_gate], NULL, "imx21-i2c.1");
5bdfba29f18f0a arch/arm/mach-imx/clk-imx35.c Shawn Guo 2012-09-14 279 clk_register_clkdev(clk[i2c3_gate], NULL, "imx21-i2c.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 280 clk_register_clkdev(clk[ipu_gate], NULL, "ipu-core");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 281 clk_register_clkdev(clk[ipu_gate], NULL, "mx3_sdc_fb");
7852399cc666fd arch/arm/mach-imx/clk-imx35.c Alex Gershgorin 2012-09-02 282 clk_register_clkdev(clk[kpp_gate], NULL, "imx-keypad");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 283 clk_register_clkdev(clk[owire_gate], NULL, "mxc_w1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 284 clk_register_clkdev(clk[sdma_gate], NULL, "imx35-sdma");
48540058612786 arch/arm/mach-imx/clk-imx35.c Fabio Estevam 2012-08-20 285 clk_register_clkdev(clk[ssi1_gate], NULL, "imx-ssi.0");
48540058612786 arch/arm/mach-imx/clk-imx35.c Fabio Estevam 2012-08-20 286 clk_register_clkdev(clk[ssi2_gate], NULL, "imx-ssi.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 287 /* i.mx35 has the i.mx21 type uart */
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 288 clk_register_clkdev(clk[uart1_gate], "per", "imx21-uart.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 289 clk_register_clkdev(clk[ipg], "ipg", "imx21-uart.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 290 clk_register_clkdev(clk[uart2_gate], "per", "imx21-uart.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 291 clk_register_clkdev(clk[ipg], "ipg", "imx21-uart.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 292 clk_register_clkdev(clk[uart3_gate], "per", "imx21-uart.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 293 clk_register_clkdev(clk[ipg], "ipg", "imx21-uart.2");
3713e3f5e9274b drivers/clk/imx/clk-imx35.c Philippe Reynes 2015-07-26 294 /* i.mx35 has the i.mx21 type rtc */
3713e3f5e9274b drivers/clk/imx/clk-imx35.c Philippe Reynes 2015-07-26 295 clk_register_clkdev(clk[ckil], "ref", "imx21-rtc");
3713e3f5e9274b drivers/clk/imx/clk-imx35.c Philippe Reynes 2015-07-26 296 clk_register_clkdev(clk[rtc_gate], "ipg", "imx21-rtc");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 297 clk_register_clkdev(clk[usb_div], "per", "mxc-ehci.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 298 clk_register_clkdev(clk[ipg], "ipg", "mxc-ehci.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 299 clk_register_clkdev(clk[usbotg_gate], "ahb", "mxc-ehci.0");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 300 clk_register_clkdev(clk[usb_div], "per", "mxc-ehci.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 301 clk_register_clkdev(clk[ipg], "ipg", "mxc-ehci.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 302 clk_register_clkdev(clk[usbotg_gate], "ahb", "mxc-ehci.1");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 303 clk_register_clkdev(clk[usb_div], "per", "mxc-ehci.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 304 clk_register_clkdev(clk[ipg], "ipg", "mxc-ehci.2");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 305 clk_register_clkdev(clk[usbotg_gate], "ahb", "mxc-ehci.2");
61c4b560e9a42c arch/arm/mach-imx/clk-imx35.c Peter Chen 2013-01-17 306 clk_register_clkdev(clk[usb_div], "per", "imx-udc-mx27");
61c4b560e9a42c arch/arm/mach-imx/clk-imx35.c Peter Chen 2013-01-17 307 clk_register_clkdev(clk[ipg], "ipg", "imx-udc-mx27");
61c4b560e9a42c arch/arm/mach-imx/clk-imx35.c Peter Chen 2013-01-17 308 clk_register_clkdev(clk[usbotg_gate], "ahb", "imx-udc-mx27");
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 309 clk_register_clkdev(clk[wdog_gate], NULL, "imx2-wdt.0");
4d62435f0601ec arch/arm/mach-imx/clk-imx35.c Shawn Guo 2012-09-15 310 clk_register_clkdev(clk[nfc_div], NULL, "imx25-nand.0");
7852399cc666fd arch/arm/mach-imx/clk-imx35.c Alex Gershgorin 2012-09-02 311 clk_register_clkdev(clk[csi_gate], NULL, "mx3-camera.0");
75498083e25e96 arch/arm/mach-imx/clk-imx35.c Markus Pargmann 2013-03-29 312 clk_register_clkdev(clk[admux_gate], "audmux", NULL);
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 313
0931aff7226abb drivers/clk/imx/clk-imx35.c Shawn Guo 2015-05-15 314 mxc_timer_init(MX35_GPT1_BASE_ADDR, MX35_INT_GPT, GPT_TYPE_IMX31);
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 315
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 316 return 0;
5b48a6145466f1 arch/arm/mach-imx/clk-imx35.c Sascha Hauer 2012-04-03 317 }
a55a3d726680d1 arch/arm/mach-imx/clk-imx35.c Steffen Trumtrar 2013-12-18 318
:::::: The code at line 251 was first introduced by commit
:::::: 8d449cb5e29a488cef44d81196f2819b92585513 clk: imx35: Do not call mxc_timer_init twice when booting with DT
:::::: TO: Alexander Stein <alexander.stein(a)systec-electronic.com>
:::::: CC: Shawn Guo <shawnguo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH 3/3] spi: spi-geni-qcom: Slightly optimize setup of bidirectional xfters
by kernel test robot
Hi Douglas,
I love your patch! Yet something to improve:
[auto build test ERROR on spi/for-next]
[also build test ERROR on v5.9-rc4 next-20200911]
[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]
url: https://github.com/0day-ci/linux/commits/Douglas-Anderson/spi-spi-geni-qc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/spi/spi-geni-qcom.c: In function 'setup_fifo_xfer':
>> drivers/spi/spi-geni-qcom.c:385:2: error: implicit declaration of function '__iowmb' [-Werror=implicit-function-declaration]
385 | __iowmb();
| ^~~~~~~
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/4458adf4007926cfaaa505b54a83059c9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Douglas-Anderson/spi-spi-geni-qcom-Use-the-FIFO-even-more/20200913-050928
git checkout 4458adf4007926cfaaa505b54a83059c9ba813ad
vim +/__iowmb +385 drivers/spi/spi-geni-qcom.c
334
335 static void setup_fifo_xfer(struct spi_transfer *xfer,
336 struct spi_geni_master *mas,
337 u16 mode, struct spi_master *spi)
338 {
339 u32 m_cmd = 0;
340 u32 len;
341 struct geni_se *se = &mas->se;
342 int ret;
343
344 /*
345 * Ensure that our interrupt handler isn't still running from some
346 * prior command before we start messing with the hardware behind
347 * its back. We don't need to _keep_ the lock here since we're only
348 * worried about racing with out interrupt handler. The SPI core
349 * already handles making sure that we're not trying to do two
350 * transfers at once or setting a chip select and doing a transfer
351 * concurrently.
352 *
353 * NOTE: we actually _can't_ hold the lock here because possibly we
354 * might call clk_set_rate() which needs to be able to sleep.
355 */
356 spin_lock_irq(&mas->lock);
357 spin_unlock_irq(&mas->lock);
358
359 if (xfer->bits_per_word != mas->cur_bits_per_word) {
360 spi_setup_word_len(mas, mode, xfer->bits_per_word);
361 mas->cur_bits_per_word = xfer->bits_per_word;
362 }
363
364 /* Speed and bits per word can be overridden per transfer */
365 ret = geni_spi_set_clock_and_bw(mas, xfer->speed_hz);
366 if (ret)
367 return;
368
369 mas->tx_rem_bytes = 0;
370 mas->rx_rem_bytes = 0;
371
372 if (!(mas->cur_bits_per_word % MIN_WORD_LEN))
373 len = xfer->len * BITS_PER_BYTE / mas->cur_bits_per_word;
374 else
375 len = xfer->len / (mas->cur_bits_per_word / BITS_PER_BYTE + 1);
376 len &= TRANS_LEN_MSK;
377
378 mas->cur_xfer = xfer;
379
380 /*
381 * Factor out the __iowmb() so that we can use writel_relaxed() for
382 * both writes below and thus only incur the overhead once even if
383 * we execute both of them.
384 */
> 385 __iowmb();
386
387 if (xfer->tx_buf) {
388 m_cmd |= SPI_TX_ONLY;
389 mas->tx_rem_bytes = xfer->len;
390 writel_relaxed(len, se->base + SE_SPI_TX_TRANS_LEN);
391 }
392 if (xfer->rx_buf) {
393 m_cmd |= SPI_RX_ONLY;
394 writel_relaxed(len, se->base + SE_SPI_RX_TRANS_LEN);
395 mas->rx_rem_bytes = xfer->len;
396 }
397
398 /*
399 * Lock around right before we start the transfer since our
400 * interrupt could come in at any time now.
401 */
402 spin_lock_irq(&mas->lock);
403 geni_se_setup_m_cmd(se, m_cmd, FRAGMENTATION);
404
405 /*
406 * TX_WATERMARK_REG should be set after SPI configuration and
407 * setting up GENI SE engine, as driver starts data transfer
408 * for the watermark interrupt.
409 */
410 if (m_cmd & SPI_TX_ONLY)
411 writel(mas->tx_wm, se->base + SE_GENI_TX_WATERMARK_REG);
412 spin_unlock_irq(&mas->lock);
413 }
414
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
drivers/vfio/pci/vfio_pci_nvlink2.c:100:9: error: implicit declaration of function 'mm_iommu_put'; did you mean
by kernel test robot
Hi Chen,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: ee8642162a9edd40daafd3fb894e3fd3f909e361 drm/nouveau: fix build error without CONFIG_IOMMU_API
date: 8 months ago
config: powerpc64-randconfig-r012-20200913 (attached as .config)
compiler: powerpc64le-linux-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 ee8642162a9edd40daafd3fb894e3fd3f909e361
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/vfio/pci/vfio_pci_nvlink2.c: In function 'vfio_pci_nvgpu_release':
>> drivers/vfio/pci/vfio_pci_nvlink2.c:100:9: error: implicit declaration of function 'mm_iommu_put'; did you mean 'mm_iommu_init'? [-Werror=implicit-function-declaration]
100 | ret = mm_iommu_put(data->mm, data->mem);
| ^~~~~~~~~~~~
| mm_iommu_init
drivers/vfio/pci/vfio_pci_nvlink2.c: In function 'vfio_pci_nvgpu_mmap':
>> drivers/vfio/pci/vfio_pci_nvlink2.c:163:14: error: implicit declaration of function 'mm_iommu_newdev' [-Werror=implicit-function-declaration]
163 | ret = (int) mm_iommu_newdev(data->mm, data->useraddr,
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ee8642162a9edd40daafd3fb894e3fd3f909e361
vim +100 drivers/vfio/pci/vfio_pci_nvlink2.c
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 91
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 92 static void vfio_pci_nvgpu_release(struct vfio_pci_device *vdev,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 93 struct vfio_pci_region *region)
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 94 {
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 95 struct vfio_pci_nvgpu_data *data = region->data;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 96 long ret;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 97
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 98 /* If there were any mappings at all... */
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 99 if (data->mm) {
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 @100 ret = mm_iommu_put(data->mm, data->mem);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 101 WARN_ON(ret);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 102
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 103 mmdrop(data->mm);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 104 }
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 105
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 106 vfio_unregister_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 107 &data->group_notifier);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 108
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 109 pnv_npu2_unmap_lpar_dev(data->gpdev);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 110
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 111 kfree(data);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 112 }
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 113
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 114 static vm_fault_t vfio_pci_nvgpu_mmap_fault(struct vm_fault *vmf)
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 115 {
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 116 vm_fault_t ret;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 117 struct vm_area_struct *vma = vmf->vma;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 118 struct vfio_pci_region *region = vma->vm_private_data;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 119 struct vfio_pci_nvgpu_data *data = region->data;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 120 unsigned long vmf_off = (vmf->address - vma->vm_start) >> PAGE_SHIFT;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 121 unsigned long nv2pg = data->gpu_hpa >> PAGE_SHIFT;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 122 unsigned long vm_pgoff = vma->vm_pgoff &
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 123 ((1U << (VFIO_PCI_OFFSET_SHIFT - PAGE_SHIFT)) - 1);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 124 unsigned long pfn = nv2pg + vm_pgoff + vmf_off;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 125
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 126 ret = vmf_insert_pfn(vma, vmf->address, pfn);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 127 trace_vfio_pci_nvgpu_mmap_fault(data->gpdev, pfn << PAGE_SHIFT,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 128 vmf->address, ret);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 129
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 130 return ret;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 131 }
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 132
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 133 static const struct vm_operations_struct vfio_pci_nvgpu_mmap_vmops = {
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 134 .fault = vfio_pci_nvgpu_mmap_fault,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 135 };
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 136
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 137 static int vfio_pci_nvgpu_mmap(struct vfio_pci_device *vdev,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 138 struct vfio_pci_region *region, struct vm_area_struct *vma)
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 139 {
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 140 int ret;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 141 struct vfio_pci_nvgpu_data *data = region->data;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 142
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 143 if (data->useraddr)
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 144 return -EPERM;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 145
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 146 if (vma->vm_end - vma->vm_start > data->size)
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 147 return -EINVAL;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 148
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 149 vma->vm_private_data = region;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 150 vma->vm_flags |= VM_PFNMAP;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 151 vma->vm_ops = &vfio_pci_nvgpu_mmap_vmops;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 152
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 153 /*
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 154 * Calling mm_iommu_newdev() here once as the region is not
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 155 * registered yet and therefore right initialization will happen now.
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 156 * Other places will use mm_iommu_find() which returns
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 157 * registered @mem and does not go gup().
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 158 */
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 159 data->useraddr = vma->vm_start;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 160 data->mm = current->mm;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 161
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 162 atomic_inc(&data->mm->mm_count);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 @163 ret = (int) mm_iommu_newdev(data->mm, data->useraddr,
e66e02c4d96d335 Peng Hao 2019-07-02 164 vma_pages(vma), data->gpu_hpa, &data->mem);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 165
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 166 trace_vfio_pci_nvgpu_mmap(vdev->pdev, data->gpu_hpa, data->useraddr,
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 167 vma->vm_end - vma->vm_start, ret);
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 168
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 169 return ret;
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 170 }
7f92891778dff62 Alexey Kardashevskiy 2018-12-20 171
:::::: The code at line 100 was first introduced by commit
:::::: 7f92891778dff62303c070ac81de7b7d80de331a vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver
:::::: TO: Alexey Kardashevskiy <aik(a)ozlabs.ru>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[zen-kernel-zen-kernel:5.8/zen-sauce 2/26] include/asm-generic/page.h:93:50: error: ordered comparison of pointer with null pointer
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.8/zen-sauce
head: 4ae00f4cbefe933616f33bf79935393ec49dbfa3
commit: 5664a4e6b6af231e79f53494742a7d7a08ba72d7 [2/26] ZEN: Add VHBA driver
config: h8300-allyesconfig (attached as .config)
compiler: h8300-linux-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 5664a4e6b6af231e79f53494742a7d7a08ba72d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from drivers/scsi/vhba/vhba.c:23:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> include/asm-generic/page.h:93:50: error: ordered comparison of pointer with null pointer [-Werror=extra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from drivers/scsi/vhba/vhba.c:42:
drivers/scsi/vhba/vhba.c: At top level:
drivers/scsi/vhba/vhba.c:483:15: error: no previous prototype for 'vhba_queuecommand' [-Werror=missing-prototypes]
483 | DEF_SCSI_QCMD(vhba_queuecommand)
| ^~~~~~~~~~~~~~~~~
include/scsi/scsi_host.h:495:6: note: in definition of macro 'DEF_SCSI_QCMD'
495 | int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \
| ^~~~~~~~~
cc1: all warnings being treated as errors
# https://github.com/zen-kernel/zen-kernel/commit/5664a4e6b6af231e79f534947...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.8/zen-sauce
git checkout 5664a4e6b6af231e79f53494742a7d7a08ba72d7
vim +93 include/asm-generic/page.h
5c01b46bb6bb8f2 Arnd Bergmann 2009-05-13 92
5c01b46bb6bb8f2 Arnd Bergmann 2009-05-13 @93 #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
5c01b46bb6bb8f2 Arnd Bergmann 2009-05-13 94 ((void *)(kaddr) < (void *)memory_end))
5c01b46bb6bb8f2 Arnd Bergmann 2009-05-13 95
:::::: The code at line 93 was first introduced by commit
:::::: 5c01b46bb6bb8f2662573c05c87b5d68fa25af89 asm-generic: add generic NOMMU versions of some headers
:::::: TO: Arnd Bergmann <arnd(a)arndb.de>
:::::: CC: Arnd Bergmann <arnd(a)klappe2.(none)>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years