Re: [PATCH] scsi: ufs: clear uac for RPMB after ufshcd resets
by kernel test robot
Hi Jaegeuk,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on scsi/for-next]
[also build test WARNING on mkp-scsi/for-next linux/master linus/master v5.10-rc6 next-20201130]
[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/Jaegeuk-Kim/scsi-ufs-clear-uac-f...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-randconfig-a006-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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
# https://github.com/0day-ci/linux/commit/0636adf2e8880085b18818ce6e7ee8781...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jaegeuk-Kim/scsi-ufs-clear-uac-for-RPMB-after-ufshcd-resets/20201201-121956
git checkout 0636adf2e8880085b18818ce6e7ee878189b52ca
# 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 warnings (new ones prefixed by >>):
>> drivers/scsi/ufs/ufshcd.c:8398:1: warning: unused label 'out' [-Wunused-label]
out:
^~~~
1 warning generated.
vim +/out +8398 drivers/scsi/ufs/ufshcd.c
57d104c153d3d6d Subhash Jadavani 2014-09-25 8335
57d104c153d3d6d Subhash Jadavani 2014-09-25 8336 /**
57d104c153d3d6d Subhash Jadavani 2014-09-25 8337 * ufshcd_set_dev_pwr_mode - sends START STOP UNIT command to set device
57d104c153d3d6d Subhash Jadavani 2014-09-25 8338 * power mode
57d104c153d3d6d Subhash Jadavani 2014-09-25 8339 * @hba: per adapter instance
57d104c153d3d6d Subhash Jadavani 2014-09-25 8340 * @pwr_mode: device power mode to set
57d104c153d3d6d Subhash Jadavani 2014-09-25 8341 *
57d104c153d3d6d Subhash Jadavani 2014-09-25 8342 * Returns 0 if requested power mode is set successfully
57d104c153d3d6d Subhash Jadavani 2014-09-25 8343 * Returns non-zero if failed to set the requested power mode
57d104c153d3d6d Subhash Jadavani 2014-09-25 8344 */
57d104c153d3d6d Subhash Jadavani 2014-09-25 8345 static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba,
57d104c153d3d6d Subhash Jadavani 2014-09-25 8346 enum ufs_dev_pwr_mode pwr_mode)
57d104c153d3d6d Subhash Jadavani 2014-09-25 8347 {
57d104c153d3d6d Subhash Jadavani 2014-09-25 8348 unsigned char cmd[6] = { START_STOP };
57d104c153d3d6d Subhash Jadavani 2014-09-25 8349 struct scsi_sense_hdr sshdr;
7c48bfd038e570c Akinobu Mita 2014-10-23 8350 struct scsi_device *sdp;
7c48bfd038e570c Akinobu Mita 2014-10-23 8351 unsigned long flags;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8352 int ret;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8353
7c48bfd038e570c Akinobu Mita 2014-10-23 8354 spin_lock_irqsave(hba->host->host_lock, flags);
7c48bfd038e570c Akinobu Mita 2014-10-23 8355 sdp = hba->sdev_ufs_device;
7c48bfd038e570c Akinobu Mita 2014-10-23 8356 if (sdp) {
7c48bfd038e570c Akinobu Mita 2014-10-23 8357 ret = scsi_device_get(sdp);
7c48bfd038e570c Akinobu Mita 2014-10-23 8358 if (!ret && !scsi_device_online(sdp)) {
7c48bfd038e570c Akinobu Mita 2014-10-23 8359 ret = -ENODEV;
7c48bfd038e570c Akinobu Mita 2014-10-23 8360 scsi_device_put(sdp);
7c48bfd038e570c Akinobu Mita 2014-10-23 8361 }
7c48bfd038e570c Akinobu Mita 2014-10-23 8362 } else {
7c48bfd038e570c Akinobu Mita 2014-10-23 8363 ret = -ENODEV;
7c48bfd038e570c Akinobu Mita 2014-10-23 8364 }
7c48bfd038e570c Akinobu Mita 2014-10-23 8365 spin_unlock_irqrestore(hba->host->host_lock, flags);
7c48bfd038e570c Akinobu Mita 2014-10-23 8366
7c48bfd038e570c Akinobu Mita 2014-10-23 8367 if (ret)
7c48bfd038e570c Akinobu Mita 2014-10-23 8368 return ret;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8369
57d104c153d3d6d Subhash Jadavani 2014-09-25 8370 /*
57d104c153d3d6d Subhash Jadavani 2014-09-25 8371 * If scsi commands fail, the scsi mid-layer schedules scsi error-
57d104c153d3d6d Subhash Jadavani 2014-09-25 8372 * handling, which would wait for host to be resumed. Since we know
57d104c153d3d6d Subhash Jadavani 2014-09-25 8373 * we are functional while we are here, skip host resume in error
57d104c153d3d6d Subhash Jadavani 2014-09-25 8374 * handling context.
57d104c153d3d6d Subhash Jadavani 2014-09-25 8375 */
57d104c153d3d6d Subhash Jadavani 2014-09-25 8376 hba->host->eh_noresume = 1;
0636adf2e888008 Randall Huang 2020-11-30 8377 ufshcd_clear_ua_wluns(hba);
57d104c153d3d6d Subhash Jadavani 2014-09-25 8378
57d104c153d3d6d Subhash Jadavani 2014-09-25 8379 cmd[4] = pwr_mode << 4;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8380
57d104c153d3d6d Subhash Jadavani 2014-09-25 8381 /*
57d104c153d3d6d Subhash Jadavani 2014-09-25 8382 * Current function would be generally called from the power management
e806402130c9c49 Christoph Hellwig 2016-10-20 8383 * callbacks hence set the RQF_PM flag so that it doesn't resume the
57d104c153d3d6d Subhash Jadavani 2014-09-25 8384 * already suspended childs.
57d104c153d3d6d Subhash Jadavani 2014-09-25 8385 */
fcbfffe2c5cbec0 Christoph Hellwig 2017-02-23 8386 ret = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
fcbfffe2c5cbec0 Christoph Hellwig 2017-02-23 8387 START_STOP_TIMEOUT, 0, 0, RQF_PM, NULL);
57d104c153d3d6d Subhash Jadavani 2014-09-25 8388 if (ret) {
57d104c153d3d6d Subhash Jadavani 2014-09-25 8389 sdev_printk(KERN_WARNING, sdp,
ef61329db7b8b43 Hannes Reinecke 2014-10-24 8390 "START_STOP failed for power mode: %d, result %x\n",
ef61329db7b8b43 Hannes Reinecke 2014-10-24 8391 pwr_mode, ret);
c65be1a63f1df22 Johannes Thumshirn 2018-06-25 8392 if (driver_byte(ret) == DRIVER_SENSE)
2104551969e8011 Hannes Reinecke 2015-01-08 8393 scsi_print_sense_hdr(sdp, NULL, &sshdr);
57d104c153d3d6d Subhash Jadavani 2014-09-25 8394 }
57d104c153d3d6d Subhash Jadavani 2014-09-25 8395
57d104c153d3d6d Subhash Jadavani 2014-09-25 8396 if (!ret)
57d104c153d3d6d Subhash Jadavani 2014-09-25 8397 hba->curr_dev_pwr_mode = pwr_mode;
57d104c153d3d6d Subhash Jadavani 2014-09-25 @8398 out:
7c48bfd038e570c Akinobu Mita 2014-10-23 8399 scsi_device_put(sdp);
57d104c153d3d6d Subhash Jadavani 2014-09-25 8400 hba->host->eh_noresume = 0;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8401 return ret;
57d104c153d3d6d Subhash Jadavani 2014-09-25 8402 }
57d104c153d3d6d Subhash Jadavani 2014-09-25 8403
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
fs/ext4/fast_commit.c:1753:27: warning: unused function 'tag2str'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b65054597872ce3aefbc6a666385eabdf9e288da
commit: 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 ext4: fast commit recovery path
date: 6 weeks ago
config: mips-randconfig-r023-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# 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 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
>> fs/ext4/fast_commit.c:1753:27: warning: unused function 'tag2str'
static inline const char tag)
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 133, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1
and $0, $2
sc $0, $1
beqz $0, 1b
.set pop
'
clang-12: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 12.0.0 (git://gitmirror/llvm_project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-ac40a2d8f1/bin
clang-12: note: diagnostic msg:
Makefile arch fs include kernel scripts source usr
vim +/tag2str +1753 fs/ext4/fast_commit.c
1752
> 1753 static inline const char *tag2str(u16 tag)
1754 {
1755 switch (tag) {
1756 case EXT4_FC_TAG_LINK:
1757 return "TAG_ADD_ENTRY";
1758 case EXT4_FC_TAG_UNLINK:
1759 return "TAG_DEL_ENTRY";
1760 case EXT4_FC_TAG_ADD_RANGE:
1761 return "TAG_ADD_RANGE";
1762 case EXT4_FC_TAG_CREAT:
1763 return "TAG_CREAT_DENTRY";
1764 case EXT4_FC_TAG_DEL_RANGE:
1765 return "TAG_DEL_RANGE";
1766 case EXT4_FC_TAG_INODE:
1767 return "TAG_INODE";
1768 case EXT4_FC_TAG_PAD:
1769 return "TAG_PAD";
1770 case EXT4_FC_TAG_TAIL:
1771 return "TAG_TAIL";
1772 case EXT4_FC_TAG_HEAD:
1773 return "TAG_HEAD";
1774 default:
1775 return "TAG_ERROR";
1776 }
1777 }
1778
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [RFC] ASoC: Add compatible for mt6359-sound device
by kernel test robot
Hi Shane,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on asoc/for-next]
[also build test ERROR on next-20201130]
[cannot apply to v5.10-rc6]
[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/Shane-Chien/ASoC-Add-compatible-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: arm64-randconfig-r035-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/5e3af2882978915507e75552c058e189b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shane-Chien/ASoC-Add-compatible-for-mt6359-sound-device/20201201-134616
git checkout 5e3af2882978915507e75552c058e189b36ae0af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
aarch64-linux-gnu-ld: warning: -z norelro ignored
aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-gnu-ld: sound/soc/codecs/mt6359.o: in function `mt6359_platform_driver_probe':
>> mt6359.c:(.text+0x690): undefined reference to `devm_iio_channel_get'
>> aarch64-linux-gnu-ld: mt6359.c:(.text+0x6b8): undefined reference to `devm_iio_channel_get'
--
>> sound/soc/codecs/mt6359.c:2760:15: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
pr_notice("%s() not support\n");
~^
include/linux/printk.h:363:28: note: expanded from macro 'pr_notice'
printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:301:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
sound/soc/codecs/mt6359.c:2746:12: warning: unused function 'mt6359_get_audio_auxadc' [-Wunused-function]
static int mt6359_get_audio_auxadc(struct mt6359_priv *priv, int auxadc_ch)
^
2 warnings generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [RFC] ASoC: Add compatible for mt6359-sound device
by kernel test robot
Hi Shane,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20201130]
[cannot apply to v5.10-rc6]
[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/Shane-Chien/ASoC-Add-compatible-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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
# https://github.com/0day-ci/linux/commit/5e3af2882978915507e75552c058e189b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shane-Chien/ASoC-Add-compatible-for-mt6359-sound-device/20201201-134616
git checkout 5e3af2882978915507e75552c058e189b36ae0af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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 >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from include/linux/delay.h:22,
from sound/soc/codecs/mt6359.c:8:
sound/soc/codecs/mt6359.c: In function 'mt6359_get_audio_auxadc':
>> include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
13 | #define KERN_NOTICE KERN_SOH "5" /* normal but significant condition */
| ^~~~~~~~
include/linux/printk.h:363:9: note: in expansion of macro 'KERN_NOTICE'
363 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
sound/soc/codecs/mt6359.c:2760:3: note: in expansion of macro 'pr_notice'
2760 | pr_notice("%s() not support\n");
| ^~~~~~~~~
sound/soc/codecs/mt6359.c:2760:15: note: format string is defined here
2760 | pr_notice("%s() not support\n");
| ~^
| |
| char *
At top level:
sound/soc/codecs/mt6359.c:2746:12: warning: 'mt6359_get_audio_auxadc' defined but not used [-Wunused-function]
2746 | static int mt6359_get_audio_auxadc(struct mt6359_priv *priv, int auxadc_ch)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[broonie-misc:asoc-5.11 143/145] xtensa-linux-ld: regmap-spi.c:undefined reference to `spi_sync'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git asoc-5.11
head: 645be01d7b553e9ab0791ceb88f381a087d691d9
commit: 6cd4c6459e47402ab90802eca61a18b231434053 [143/145] ASoC: Add ADAU1372 audio CODEC support
config: xtensa-randconfig-r006-20201201 (attached as .config)
compiler: xtensa-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
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?...
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc asoc-5.11
git checkout 6cd4c6459e47402ab90802eca61a18b231434053
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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 >>):
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_async_alloc':
regmap-spi.c:(.text+0x20): undefined reference to `spi_write_then_read'
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_read':
regmap-spi.c:(.text+0x33): undefined reference to `spi_write_then_read'
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `list_add_tail':
regmap-spi.c:(.text+0xa4): undefined reference to `spi_async'
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_async_write':
regmap-spi.c:(.text+0xef): undefined reference to `spi_async'
>> xtensa-linux-ld: regmap-spi.c:(.text+0x100): undefined reference to `spi_sync'
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_gather_write':
regmap-spi.c:(.text+0x142): undefined reference to `spi_sync'
xtensa-linux-ld: regmap-spi.c:(.text+0x14c): undefined reference to `spi_sync'
xtensa-linux-ld: drivers/base/regmap/regmap-spi.o: in function `spi_sync_transfer.constprop.0':
regmap-spi.c:(.text+0x166): undefined reference to `spi_sync'
>> xtensa-linux-ld: sound/soc/codecs/adau1372-spi.o:(.init.literal+0x4): undefined reference to `__spi_register_driver'
xtensa-linux-ld: sound/soc/codecs/adau1372-spi.o: in function `adau1372_spi_probe':
adau1372-spi.c:(.text+0x60): undefined reference to `spi_write_then_read'
xtensa-linux-ld: sound/soc/codecs/adau1372-spi.o: in function `spi_w8r8.constprop.0':
adau1372-spi.c:(.text+0x7a): undefined reference to `spi_write_then_read'
xtensa-linux-ld: sound/soc/codecs/adau1372-spi.o: in function `adau1372_spi_driver_init':
adau1372-spi.c:(.init.text+0xa): undefined reference to `__spi_register_driver'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:100:28: sparse: sparse: cast truncates bits from constant value (10000 becomes 0)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b65054597872ce3aefbc6a666385eabdf9e288da
commit: d701ec326a31945d1533b438a6feab753829b738 ionic: clean up sparse complaints
date: 5 weeks ago
config: ia64-randconfig-s032-20201201 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-170-g3bc348f6-dirty
# 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 d701ec326a31945d1533b438a6feab753829b738
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/net/ethernet/pensando/ionic/ionic_txrx.c:100:28: sparse: sparse: cast truncates bits from constant value (10000 becomes 0)
drivers/net/ethernet/pensando/ionic/ionic_txrx.c: note: in included file (through arch/ia64/include/asm/io.h, arch/ia64/include/asm/uaccess.h, include/linux/uaccess.h, ...):
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] value @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] value
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
vim +100 drivers/net/ethernet/pensando/ionic/ionic_txrx.c
0f3154e6bcb3549 Shannon Nelson 2019-09-03 68
08f2e4b2b2008ce Shannon Nelson 2019-10-23 69 static struct sk_buff *ionic_rx_frags(struct ionic_queue *q,
08f2e4b2b2008ce Shannon Nelson 2019-10-23 70 struct ionic_desc_info *desc_info,
08f2e4b2b2008ce Shannon Nelson 2019-10-23 71 struct ionic_cq_info *cq_info)
0f3154e6bcb3549 Shannon Nelson 2019-09-03 72 {
0f3154e6bcb3549 Shannon Nelson 2019-09-03 73 struct ionic_rxq_comp *comp = cq_info->cq_desc;
0f3154e6bcb3549 Shannon Nelson 2019-09-03 74 struct device *dev = q->lif->ionic->dev;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 75 struct ionic_page_info *page_info;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 76 struct sk_buff *skb;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 77 unsigned int i;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 78 u16 frag_len;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 79 u16 len;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 80
08f2e4b2b2008ce Shannon Nelson 2019-10-23 81 page_info = &desc_info->pages[0];
08f2e4b2b2008ce Shannon Nelson 2019-10-23 82 len = le16_to_cpu(comp->len);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 83
08f2e4b2b2008ce Shannon Nelson 2019-10-23 84 prefetch(page_address(page_info->page) + NET_IP_ALIGN);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 85
08f2e4b2b2008ce Shannon Nelson 2019-10-23 86 skb = ionic_rx_skb_alloc(q, len, true);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 87 if (unlikely(!skb))
08f2e4b2b2008ce Shannon Nelson 2019-10-23 88 return NULL;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 89
08f2e4b2b2008ce Shannon Nelson 2019-10-23 90 i = comp->num_sg_elems + 1;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 91 do {
08f2e4b2b2008ce Shannon Nelson 2019-10-23 92 if (unlikely(!page_info->page)) {
08f2e4b2b2008ce Shannon Nelson 2019-10-23 93 struct napi_struct *napi = &q_to_qcq(q)->napi;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 94
08f2e4b2b2008ce Shannon Nelson 2019-10-23 95 napi->skb = NULL;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 96 dev_kfree_skb(skb);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 97 return NULL;
0f3154e6bcb3549 Shannon Nelson 2019-09-03 98 }
0f3154e6bcb3549 Shannon Nelson 2019-09-03 99
08f2e4b2b2008ce Shannon Nelson 2019-10-23 @100 frag_len = min(len, (u16)PAGE_SIZE);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 101 len -= frag_len;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 102
08f2e4b2b2008ce Shannon Nelson 2019-10-23 103 dma_unmap_page(dev, dma_unmap_addr(page_info, dma_addr),
08f2e4b2b2008ce Shannon Nelson 2019-10-23 104 PAGE_SIZE, DMA_FROM_DEVICE);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 105 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
08f2e4b2b2008ce Shannon Nelson 2019-10-23 106 page_info->page, 0, frag_len, PAGE_SIZE);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 107 page_info->page = NULL;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 108 page_info++;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 109 i--;
08f2e4b2b2008ce Shannon Nelson 2019-10-23 110 } while (i > 0);
08f2e4b2b2008ce Shannon Nelson 2019-10-23 111
08f2e4b2b2008ce Shannon Nelson 2019-10-23 112 return skb;
0f3154e6bcb3549 Shannon Nelson 2019-09-03 113 }
0f3154e6bcb3549 Shannon Nelson 2019-09-03 114
:::::: The code at line 100 was first introduced by commit
:::::: 08f2e4b2b2008ce461dd6958caa616a2e3a30ac8 ionic: implement support for rx sgl
:::::: TO: Shannon Nelson <snelson(a)pensando.io>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[chao-linux:dev 6/6] ld.lld: error: undefined symbol: LZ4_compress_HC
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev
head: d379148c04b729eda4ce567f9115b2af5962a9bd
commit: d379148c04b729eda4ce567f9115b2af5962a9bd [6/6] f2fs: compress: support lz4hc compression
config: riscv-randconfig-r004-20201130 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project dfcf1acf13226be0f599a7ab6b395b66dc9545d6)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id...
git remote add chao-linux https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
git fetch --no-tags chao-linux dev
git checkout d379148c04b729eda4ce567f9115b2af5962a9bd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x19AC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x19C6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1A60): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1CA6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1DE0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1E56): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1EA2): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1EDC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1F66): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1F94): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x1FB2): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.text+0x2036): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0xD8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: debug_core.c:(.init.text+0x176): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: undefined symbol: LZ4_compress_HC
>>> referenced by compress.c
>>> f2fs/compress.o:(lz4_compress_pages) in archive fs/built-in.a
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months