Re: [PATCH V6 3/6] mfd: pm8008: Add mfd cell struct to register LDOs
by kernel test robot
Hi Satya,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20220214]
[also build test ERROR on v5.17-rc4]
[cannot apply to robh/for-next broonie-regulator/for-next lee-mfd/for-mfd-next v5.17-rc4 v5.17-rc3 v5.17-rc2]
[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/Satya-Priya/Add-Qualcomm-Technol...
base: 259cbfc98c55ba3b6ef6e61fb7cfc3751dfded1e
config: i386-randconfig-a005-20220214 (https://download.01.org/0day-ci/archive/20220215/202202152150.MRo3NhGR-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/12b686033a10eae2956b1c8436bfaa8c4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Satya-Priya/Add-Qualcomm-Technologies-Inc-PM8008-regulator-driver/20220215-165525
git checkout 12b686033a10eae2956b1c8436bfaa8c411baa92
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mfd/
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/mfd/qcom-pm8008.c:270:38: error: expected ';' after top level declarator
MODULE_DEVICE_TABLE(of, pm8008_match)
^
;
1 error generated.
vim +270 drivers/mfd/qcom-pm8008.c
265
266 static const struct of_device_id pm8008_match[] = {
267 { .compatible = "qcom,pm8008", .data = (void *)PM8008_INFRA},
268 { .compatible = "qcom,pm8008-regulators", .data = (void *)PM8008_REGULATORS},
269 };
> 270 MODULE_DEVICE_TABLE(of, pm8008_match)
271
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH V3] scsi: target: tcmu: Make cmd_ring_size changeable via configfs.
by kernel test robot
Hi Guixin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on v5.17-rc4 next-20220215]
[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/Guixin-Liu/scsi-target-tcmu-Make...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202152052.AEF7jHIH-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/7f77700542b8196c546ef10656dda7a10...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Guixin-Liu/scsi-target-tcmu-Make-cmd_ring_size-changeable-via-configfs/20220215-160505
git checkout 7f77700542b8196c546ef10656dda7a107d8d1ad
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/target/
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/target/target_core_user.c: In function 'tcmu_show_configfs_dev_params':
>> drivers/target/target_core_user.c:2627:41: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
2627 | bl += sprintf(b + bl, "CmdRingSizeMB: %u\n",
| ~^
| |
| unsigned int
| %lu
2628 | (udev->cmdr_size + CMDR_OFF) >> 20);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
drivers/target/target_core_user.c: In function 'tcmu_cmd_ring_size_mb_show':
drivers/target/target_core_user.c:2743:37: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
2743 | return snprintf(page, PAGE_SIZE, "%u\n",
| ~^
| |
| unsigned int
| %lu
2744 | (udev->cmdr_size + CMDR_OFF) >> 20);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
vim +2627 drivers/target/target_core_user.c
2616
2617 static ssize_t tcmu_show_configfs_dev_params(struct se_device *dev, char *b)
2618 {
2619 struct tcmu_dev *udev = TCMU_DEV(dev);
2620 ssize_t bl = 0;
2621
2622 bl = sprintf(b + bl, "Config: %s ",
2623 udev->dev_config[0] ? udev->dev_config : "NULL");
2624 bl += sprintf(b + bl, "Size: %llu ", udev->dev_size);
2625 bl += sprintf(b + bl, "MaxDataAreaMB: %u ", udev->data_area_mb);
2626 bl += sprintf(b + bl, "DataPagesPerBlk: %u", udev->data_pages_per_blk);
> 2627 bl += sprintf(b + bl, "CmdRingSizeMB: %u\n",
2628 (udev->cmdr_size + CMDR_OFF) >> 20);
2629
2630 return bl;
2631 }
2632
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[hch-block:block-api 11/15] drivers/md/raid10.c:4156:46: error: 'dev' undeclared; did you mean 'rdev'?
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git block-api
head: b2927488e4b27601e6724de62e4dd144fa52d02e
commit: 7287dbe367d69aca4c1216af60fe32a0e4bddedd [11/15] block: add a bdev_discard_granularity helper
config: alpha-randconfig-r022-20220214 (https://download.01.org/0day-ci/archive/20220215/202202152151.aV08HWVq-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.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 remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block block-api
git checkout 7287dbe367d69aca4c1216af60fe32a0e4bddedd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/md/
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/md/raid10.c: In function 'raid10_run':
>> drivers/md/raid10.c:4156:46: error: 'dev' undeclared (first use in this function); did you mean 'rdev'?
4156 | if (bdev_discard_granularity(dev->bdev))
| ^~~
| rdev
drivers/md/raid10.c:4156:46: note: each undeclared identifier is reported only once for each function it appears in
vim +4156 drivers/md/raid10.c
4073
4074 static int raid10_run(struct mddev *mddev)
4075 {
4076 struct r10conf *conf;
4077 int i, disk_idx;
4078 struct raid10_info *disk;
4079 struct md_rdev *rdev;
4080 sector_t size;
4081 sector_t min_offset_diff = 0;
4082 int first = 1;
4083 bool discard_supported = false;
4084
4085 if (mddev_init_writes_pending(mddev) < 0)
4086 return -ENOMEM;
4087
4088 if (mddev->private == NULL) {
4089 conf = setup_conf(mddev);
4090 if (IS_ERR(conf))
4091 return PTR_ERR(conf);
4092 mddev->private = conf;
4093 }
4094 conf = mddev->private;
4095 if (!conf)
4096 goto out;
4097
4098 if (mddev_is_clustered(conf->mddev)) {
4099 int fc, fo;
4100
4101 fc = (mddev->layout >> 8) & 255;
4102 fo = mddev->layout & (1<<16);
4103 if (fc > 1 || fo > 0) {
4104 pr_err("only near layout is supported by clustered"
4105 " raid10\n");
4106 goto out_free_conf;
4107 }
4108 }
4109
4110 mddev->thread = conf->thread;
4111 conf->thread = NULL;
4112
4113 if (mddev->queue) {
4114 blk_queue_max_discard_sectors(mddev->queue,
4115 UINT_MAX);
4116 blk_queue_max_write_same_sectors(mddev->queue, 0);
4117 blk_queue_max_write_zeroes_sectors(mddev->queue, 0);
4118 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9);
4119 raid10_set_io_opt(conf);
4120 }
4121
4122 rdev_for_each(rdev, mddev) {
4123 long long diff;
4124
4125 disk_idx = rdev->raid_disk;
4126 if (disk_idx < 0)
4127 continue;
4128 if (disk_idx >= conf->geo.raid_disks &&
4129 disk_idx >= conf->prev.raid_disks)
4130 continue;
4131 disk = conf->mirrors + disk_idx;
4132
4133 if (test_bit(Replacement, &rdev->flags)) {
4134 if (disk->replacement)
4135 goto out_free_conf;
4136 disk->replacement = rdev;
4137 } else {
4138 if (disk->rdev)
4139 goto out_free_conf;
4140 disk->rdev = rdev;
4141 }
4142 diff = (rdev->new_data_offset - rdev->data_offset);
4143 if (!mddev->reshape_backwards)
4144 diff = -diff;
4145 if (diff < 0)
4146 diff = 0;
4147 if (first || diff < min_offset_diff)
4148 min_offset_diff = diff;
4149
4150 if (mddev->gendisk)
4151 disk_stack_limits(mddev->gendisk, rdev->bdev,
4152 rdev->data_offset << 9);
4153
4154 disk->head_position = 0;
4155
> 4156 if (bdev_discard_granularity(dev->bdev))
4157 discard_supported = true;
4158 first = 0;
4159 }
4160
4161 if (mddev->queue) {
4162 if (discard_supported)
4163 blk_queue_flag_set(QUEUE_FLAG_DISCARD,
4164 mddev->queue);
4165 else
4166 blk_queue_flag_clear(QUEUE_FLAG_DISCARD,
4167 mddev->queue);
4168 }
4169 /* need to check that every block has at least one working mirror */
4170 if (!enough(conf, -1)) {
4171 pr_err("md/raid10:%s: not enough operational mirrors.\n",
4172 mdname(mddev));
4173 goto out_free_conf;
4174 }
4175
4176 if (conf->reshape_progress != MaxSector) {
4177 /* must ensure that shape change is supported */
4178 if (conf->geo.far_copies != 1 &&
4179 conf->geo.far_offset == 0)
4180 goto out_free_conf;
4181 if (conf->prev.far_copies != 1 &&
4182 conf->prev.far_offset == 0)
4183 goto out_free_conf;
4184 }
4185
4186 mddev->degraded = 0;
4187 for (i = 0;
4188 i < conf->geo.raid_disks
4189 || i < conf->prev.raid_disks;
4190 i++) {
4191
4192 disk = conf->mirrors + i;
4193
4194 if (!disk->rdev && disk->replacement) {
4195 /* The replacement is all we have - use it */
4196 disk->rdev = disk->replacement;
4197 disk->replacement = NULL;
4198 clear_bit(Replacement, &disk->rdev->flags);
4199 }
4200
4201 if (!disk->rdev ||
4202 !test_bit(In_sync, &disk->rdev->flags)) {
4203 disk->head_position = 0;
4204 mddev->degraded++;
4205 if (disk->rdev &&
4206 disk->rdev->saved_raid_disk < 0)
4207 conf->fullsync = 1;
4208 }
4209
4210 if (disk->replacement &&
4211 !test_bit(In_sync, &disk->replacement->flags) &&
4212 disk->replacement->saved_raid_disk < 0) {
4213 conf->fullsync = 1;
4214 }
4215
4216 disk->recovery_disabled = mddev->recovery_disabled - 1;
4217 }
4218
4219 if (mddev->recovery_cp != MaxSector)
4220 pr_notice("md/raid10:%s: not clean -- starting background reconstruction\n",
4221 mdname(mddev));
4222 pr_info("md/raid10:%s: active with %d out of %d devices\n",
4223 mdname(mddev), conf->geo.raid_disks - mddev->degraded,
4224 conf->geo.raid_disks);
4225 /*
4226 * Ok, everything is just fine now
4227 */
4228 mddev->dev_sectors = conf->dev_sectors;
4229 size = raid10_size(mddev, 0, 0);
4230 md_set_array_sectors(mddev, size);
4231 mddev->resync_max_sectors = size;
4232 set_bit(MD_FAILFAST_SUPPORTED, &mddev->flags);
4233
4234 if (md_integrity_register(mddev))
4235 goto out_free_conf;
4236
4237 if (conf->reshape_progress != MaxSector) {
4238 unsigned long before_length, after_length;
4239
4240 before_length = ((1 << conf->prev.chunk_shift) *
4241 conf->prev.far_copies);
4242 after_length = ((1 << conf->geo.chunk_shift) *
4243 conf->geo.far_copies);
4244
4245 if (max(before_length, after_length) > min_offset_diff) {
4246 /* This cannot work */
4247 pr_warn("md/raid10: offset difference not enough to continue reshape\n");
4248 goto out_free_conf;
4249 }
4250 conf->offset_diff = min_offset_diff;
4251
4252 clear_bit(MD_RECOVERY_SYNC, &mddev->recovery);
4253 clear_bit(MD_RECOVERY_CHECK, &mddev->recovery);
4254 set_bit(MD_RECOVERY_RESHAPE, &mddev->recovery);
4255 set_bit(MD_RECOVERY_RUNNING, &mddev->recovery);
4256 mddev->sync_thread = md_register_thread(md_do_sync, mddev,
4257 "reshape");
4258 if (!mddev->sync_thread)
4259 goto out_free_conf;
4260 }
4261
4262 return 0;
4263
4264 out_free_conf:
4265 md_unregister_thread(&mddev->thread);
4266 mempool_exit(&conf->r10bio_pool);
4267 safe_put_page(conf->tmppage);
4268 kfree(conf->mirrors);
4269 kfree(conf);
4270 mddev->private = NULL;
4271 out:
4272 return -EIO;
4273 }
4274
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH V4 2/2] soc: qcom: smem: validate fields of shared structures
by kernel test robot
Hi Deepak,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.17-rc4 next-20220215]
[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/Deepak-Kumar-Singh/soc-qcom-smem...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 754e0b0e35608ed5206d6a67a791563c631cec07
config: openrisc-randconfig-s031-20220214 (https://download.01.org/0day-ci/archive/20220215/202202152150.EZ8yJDzm-lk...)
compiler: or1k-linux-gcc (GCC) 11.2.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.4-dirty
# https://github.com/0day-ci/linux/commit/cfc33be784b2bfdafba0ae278dfbf92bd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Deepak-Kumar-Singh/soc-qcom-smem-map-only-partitions-used-by-local-HOST/20220214-224750
git checkout cfc33be784b2bfdafba0ae278dfbf92bdd9111da
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash drivers/soc/qcom/
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/soc/qcom/smem.c:430:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:430:16: sparse: expected struct smem_header *header
drivers/soc/qcom/smem.c:430:16: sparse: got void [noderef] __iomem *virt_base
drivers/soc/qcom/smem.c:517:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:517:16: sparse: expected struct smem_header *header
drivers/soc/qcom/smem.c:517:16: sparse: got void [noderef] __iomem *virt_base
drivers/soc/qcom/smem.c:534:50: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] __iomem * @@
drivers/soc/qcom/smem.c:534:50: sparse: expected void *
drivers/soc/qcom/smem.c:534:50: sparse: got void [noderef] __iomem *
>> drivers/soc/qcom/smem.c:695:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_partition_header *phdr @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:695:22: sparse: expected struct smem_partition_header *phdr
drivers/soc/qcom/smem.c:695:22: sparse: got void [noderef] __iomem *virt_base
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
>> drivers/soc/qcom/smem.c:699:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:703:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_partition_header *phdr @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:703:22: sparse: expected struct smem_partition_header *phdr
drivers/soc/qcom/smem.c:703:22: sparse: got void [noderef] __iomem *virt_base
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:707:27: sparse: sparse: cast to restricted __le32
drivers/soc/qcom/smem.c:710:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:710:24: sparse: expected struct smem_header *header
drivers/soc/qcom/smem.c:710:24: sparse: got void [noderef] __iomem *virt_base
drivers/soc/qcom/smem.c:723:30: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/soc/qcom/smem.c:723:30: sparse: void *
drivers/soc/qcom/smem.c:723:30: sparse: void [noderef] __iomem *
drivers/soc/qcom/smem.c:744:36: sparse: sparse: subtraction of different types can't work (different address spaces)
drivers/soc/qcom/smem.c:753:28: sparse: sparse: subtraction of different types can't work (different address spaces)
drivers/soc/qcom/smem.c:762:36: sparse: sparse: subtraction of different types can't work (different address spaces)
drivers/soc/qcom/smem.c:777:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:777:16: sparse: expected struct smem_header *header
drivers/soc/qcom/smem.c:777:16: sparse: got void [noderef] __iomem *virt_base
drivers/soc/qcom/smem.c:810:57: sparse: sparse: restricted __le32 degrades to integer
drivers/soc/qcom/smem.c:831:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_partition_header *header @@ got void [noderef] __iomem * @@
drivers/soc/qcom/smem.c:831:16: sparse: expected struct smem_partition_header *header
drivers/soc/qcom/smem.c:831:16: sparse: got void [noderef] __iomem *
drivers/soc/qcom/smem.c:982:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_ptable *ptable @@ got void [noderef] __iomem * @@
drivers/soc/qcom/smem.c:982:22: sparse: expected struct smem_ptable *ptable
drivers/soc/qcom/smem.c:982:22: sparse: got void [noderef] __iomem *
drivers/soc/qcom/smem.c:1091:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got void [noderef] __iomem *virt_base @@
drivers/soc/qcom/smem.c:1091:16: sparse: expected struct smem_header *header
drivers/soc/qcom/smem.c:1091:16: sparse: got void [noderef] __iomem *virt_base
>> drivers/soc/qcom/smem.c:1112:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/soc/qcom/smem.c:1112:31: sparse: expected void const volatile [noderef] __iomem *addr
drivers/soc/qcom/smem.c:1112:31: sparse: got restricted __le32 *
drivers/soc/qcom/smem.c:1112:67: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __le32 * @@
drivers/soc/qcom/smem.c:1112:67: sparse: expected void const volatile [noderef] __iomem *addr
drivers/soc/qcom/smem.c:1112:67: sparse: got restricted __le32 *
drivers/soc/qcom/smem.c: note: in included file (through arch/openrisc/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
vim +695 drivers/soc/qcom/smem.c
4b638df4c9d556 Bjorn Andersson 2015-06-26 675
4b638df4c9d556 Bjorn Andersson 2015-06-26 676 /**
4b638df4c9d556 Bjorn Andersson 2015-06-26 677 * qcom_smem_get_free_space() - retrieve amount of free space in a partition
4b638df4c9d556 Bjorn Andersson 2015-06-26 678 * @host: the remote processor identifying a partition, or -1
4b638df4c9d556 Bjorn Andersson 2015-06-26 679 *
4b638df4c9d556 Bjorn Andersson 2015-06-26 680 * To be used by smem clients as a quick way to determine if any new
4b638df4c9d556 Bjorn Andersson 2015-06-26 681 * allocations has been made.
4b638df4c9d556 Bjorn Andersson 2015-06-26 682 */
4b638df4c9d556 Bjorn Andersson 2015-06-26 683 int qcom_smem_get_free_space(unsigned host)
4b638df4c9d556 Bjorn Andersson 2015-06-26 684 {
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 685 struct smem_partition *part;
4b638df4c9d556 Bjorn Andersson 2015-06-26 686 struct smem_partition_header *phdr;
4b638df4c9d556 Bjorn Andersson 2015-06-26 687 struct smem_header *header;
4b638df4c9d556 Bjorn Andersson 2015-06-26 688 unsigned ret;
4b638df4c9d556 Bjorn Andersson 2015-06-26 689
4b638df4c9d556 Bjorn Andersson 2015-06-26 690 if (!__smem)
4b638df4c9d556 Bjorn Andersson 2015-06-26 691 return -EPROBE_DEFER;
4b638df4c9d556 Bjorn Andersson 2015-06-26 692
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 693 if (host < SMEM_HOST_COUNT && __smem->partitions[host].virt_base) {
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 694 part = &__smem->partitions[host];
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 @695 phdr = part->virt_base;
9806884d8cd552 Stephen Boyd 2015-09-02 696 ret = le32_to_cpu(phdr->offset_free_cached) -
9806884d8cd552 Stephen Boyd 2015-09-02 697 le32_to_cpu(phdr->offset_free_uncached);
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 698
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 @699 if (ret > le32_to_cpu(part->size))
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 700 return -EINVAL;
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 701 } else if (__smem->global_partition.virt_base) {
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 702 part = &__smem->global_partition;
70716a4ee6c89c Deepak Kumar Singh 2022-02-14 703 phdr = part->virt_base;
d52e404874369f Chris Lew 2017-10-11 704 ret = le32_to_cpu(phdr->offset_free_cached) -
d52e404874369f Chris Lew 2017-10-11 705 le32_to_cpu(phdr->offset_free_uncached);
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 706
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 707 if (ret > le32_to_cpu(part->size))
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 708 return -EINVAL;
4b638df4c9d556 Bjorn Andersson 2015-06-26 709 } else {
4b638df4c9d556 Bjorn Andersson 2015-06-26 710 header = __smem->regions[0].virt_base;
9806884d8cd552 Stephen Boyd 2015-09-02 711 ret = le32_to_cpu(header->available);
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 712
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 713 if (ret > __smem->regions[0].size)
cfc33be784b2bf Deepak Kumar Singh 2022-02-14 714 return -EINVAL;
4b638df4c9d556 Bjorn Andersson 2015-06-26 715 }
4b638df4c9d556 Bjorn Andersson 2015-06-26 716
4b638df4c9d556 Bjorn Andersson 2015-06-26 717 return ret;
4b638df4c9d556 Bjorn Andersson 2015-06-26 718 }
4b638df4c9d556 Bjorn Andersson 2015-06-26 719 EXPORT_SYMBOL(qcom_smem_get_free_space);
4b638df4c9d556 Bjorn Andersson 2015-06-26 720
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH v1] media: Add a driver for the og01a1b camera sensor
by kernel test robot
Hi Shawnx,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20220214]
[also build test ERROR on v5.17-rc4]
[cannot apply to media-tree/master linus/master v5.17-rc4 v5.17-rc3 v5.17-rc2]
[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/Shawnx-Tu/media-Add-a-driver-for...
base: 259cbfc98c55ba3b6ef6e61fb7cfc3751dfded1e
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202152018.UKmjje4k-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.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/25f40ab32e83055024114ae7aa3a56634...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Shawnx-Tu/media-Add-a-driver-for-the-og01a1b-camera-sensor/20220215-152129
git checkout 25f40ab32e83055024114ae7aa3a566344f00e67
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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/media/i2c/og01a1b.c: In function 'og01a1b_probe':
>> drivers/media/i2c/og01a1b.c:1074:15: error: implicit declaration of function 'v4l2_async_register_subdev_sensor_common'; did you mean 'v4l2_async_register_subdev_sensor'? [-Werror=implicit-function-declaration]
1074 | ret = v4l2_async_register_subdev_sensor_common(&og01a1b->sd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v4l2_async_register_subdev_sensor
cc1: some warnings being treated as errors
vim +1074 drivers/media/i2c/og01a1b.c
1031
1032 static int og01a1b_probe(struct i2c_client *client)
1033 {
1034 struct og01a1b *og01a1b;
1035 int ret;
1036
1037 ret = og01a1b_check_hwcfg(&client->dev);
1038 if (ret) {
1039 dev_err(&client->dev, "failed to check HW configuration: %d",
1040 ret);
1041 return ret;
1042 }
1043
1044 og01a1b = devm_kzalloc(&client->dev, sizeof(*og01a1b), GFP_KERNEL);
1045 if (!og01a1b)
1046 return -ENOMEM;
1047
1048 v4l2_i2c_subdev_init(&og01a1b->sd, client, &og01a1b_subdev_ops);
1049 ret = og01a1b_identify_module(og01a1b);
1050 if (ret) {
1051 dev_err(&client->dev, "failed to find sensor: %d", ret);
1052 return ret;
1053 }
1054
1055 mutex_init(&og01a1b->mutex);
1056 og01a1b->cur_mode = &supported_modes[0];
1057 ret = og01a1b_init_controls(og01a1b);
1058 if (ret) {
1059 dev_err(&client->dev, "failed to init controls: %d", ret);
1060 goto probe_error_v4l2_ctrl_handler_free;
1061 }
1062
1063 og01a1b->sd.internal_ops = &og01a1b_internal_ops;
1064 og01a1b->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
1065 og01a1b->sd.entity.ops = &og01a1b_subdev_entity_ops;
1066 og01a1b->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1067 og01a1b->pad.flags = MEDIA_PAD_FL_SOURCE;
1068 ret = media_entity_pads_init(&og01a1b->sd.entity, 1, &og01a1b->pad);
1069 if (ret) {
1070 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1071 goto probe_error_v4l2_ctrl_handler_free;
1072 }
1073
> 1074 ret = v4l2_async_register_subdev_sensor_common(&og01a1b->sd);
1075 if (ret < 0) {
1076 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1077 ret);
1078 goto probe_error_media_entity_cleanup;
1079 }
1080
1081 /*
1082 * Device is already turned on by i2c-core with ACPI domain PM.
1083 * Enable runtime PM and turn off the device.
1084 */
1085 pm_runtime_set_active(&client->dev);
1086 pm_runtime_enable(&client->dev);
1087 pm_runtime_idle(&client->dev);
1088
1089 return 0;
1090
1091 probe_error_media_entity_cleanup:
1092 media_entity_cleanup(&og01a1b->sd.entity);
1093
1094 probe_error_v4l2_ctrl_handler_free:
1095 v4l2_ctrl_handler_free(og01a1b->sd.ctrl_handler);
1096 mutex_destroy(&og01a1b->mutex);
1097
1098 return ret;
1099 }
1100
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[ammarfaizi2-block:palmer/linux/riscv-sv57 2/4] arch/riscv/mm/init.c:782:83: warning: suggest braces around empty body in an 'if' statement
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-sv57
head: 8fbdccd2b17335e1881a23865e98c63fcc345938
commit: 677b9eb8810edc6c616a699018a83e24ed0cccab [2/4] riscv: mm: Prepare pt_ops helper functions for sv57
config: riscv-randconfig-r021-20220214 (https://download.01.org/0day-ci/archive/20220215/202202152048.f2hoyu2a-lk...)
compiler: riscv32-linux-gcc (GCC) 11.2.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/ammarfaizi2/linux-block/commit/677b9eb8810edc6c616a699...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-sv57
git checkout 677b9eb8810edc6c616a699018a83e24ed0cccab
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/mm/
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 >>):
arch/riscv/mm/init.c: In function 'create_fdt_early_page_table':
>> arch/riscv/mm/init.c:782:83: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
782 | (uintptr_t)early_dtb_pud, P4D_SIZE, PAGE_TABLE);
| ^
arch/riscv/mm/init.c:786:83: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
786 | (uintptr_t)early_dtb_pmd, PUD_SIZE, PAGE_TABLE);
| ^
arch/riscv/mm/init.c: At top level:
arch/riscv/mm/init.c:813:13: warning: no previous prototype for 'pt_ops_set_early' [-Wmissing-prototypes]
813 | void __init pt_ops_set_early(void)
| ^~~~~~~~~~~~~~~~
arch/riscv/mm/init.c:835:13: warning: no previous prototype for 'pt_ops_set_fixmap' [-Wmissing-prototypes]
835 | void __init pt_ops_set_fixmap(void)
| ^~~~~~~~~~~~~~~~~
arch/riscv/mm/init.c:853:13: warning: no previous prototype for 'pt_ops_set_late' [-Wmissing-prototypes]
853 | void __init pt_ops_set_late(void)
| ^~~~~~~~~~~~~~~
vim +/if +782 arch/riscv/mm/init.c
764
765 /*
766 * Setup a 4MB mapping that encompasses the device tree: for 64-bit kernel,
767 * this means 2 PMD entries whereas for 32-bit kernel, this is only 1 PGDIR
768 * entry.
769 */
770 static void __init create_fdt_early_page_table(pgd_t *pgdir, uintptr_t dtb_pa)
771 {
772 #ifndef CONFIG_BUILTIN_DTB
773 uintptr_t pa = dtb_pa & ~(PMD_SIZE - 1);
774
775 create_pgd_mapping(early_pg_dir, DTB_EARLY_BASE_VA,
776 IS_ENABLED(CONFIG_64BIT) ? early_dtb_pgd_next : pa,
777 PGDIR_SIZE,
778 IS_ENABLED(CONFIG_64BIT) ? PAGE_TABLE : PAGE_KERNEL);
779
780 if (pgtable_l5_enabled)
781 create_p4d_mapping(early_dtb_p4d, DTB_EARLY_BASE_VA,
> 782 (uintptr_t)early_dtb_pud, P4D_SIZE, PAGE_TABLE);
783
784 if (pgtable_l4_enabled)
785 create_pud_mapping(early_dtb_pud, DTB_EARLY_BASE_VA,
786 (uintptr_t)early_dtb_pmd, PUD_SIZE, PAGE_TABLE);
787
788 if (IS_ENABLED(CONFIG_64BIT)) {
789 create_pmd_mapping(early_dtb_pmd, DTB_EARLY_BASE_VA,
790 pa, PMD_SIZE, PAGE_KERNEL);
791 create_pmd_mapping(early_dtb_pmd, DTB_EARLY_BASE_VA + PMD_SIZE,
792 pa + PMD_SIZE, PMD_SIZE, PAGE_KERNEL);
793 }
794
795 dtb_early_va = (void *)DTB_EARLY_BASE_VA + (dtb_pa & (PMD_SIZE - 1));
796 #else
797 /*
798 * For 64-bit kernel, __va can't be used since it would return a linear
799 * mapping address whereas dtb_early_va will be used before
800 * setup_vm_final installs the linear mapping. For 32-bit kernel, as the
801 * kernel is mapped in the linear mapping, that makes no difference.
802 */
803 dtb_early_va = kernel_mapping_pa_to_va(XIP_FIXUP(dtb_pa));
804 #endif
805
806 dtb_early_pa = dtb_pa;
807 }
808
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH v8 2/2] serial:sunplus-uart:Add Sunplus SoC UART Driver
by kernel test robot
Hi Hammer,
I love your patch! Yet something to improve:
[auto build test ERROR on linux/master]
[cannot apply to tty/tty-testing robh/for-next linus/master v5.17-rc4 next-20220215]
[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/Hammer-Hsieh/Add-UART-driver-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2c271fe77d52a0555161926c232cd5bc07178b39
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220215/202202152052.4RCALWQy-lk...)
compiler: sh4-linux-gcc (GCC) 11.2.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/acb196db041b9bf489d6378ffb6375107...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hammer-Hsieh/Add-UART-driver-for-Suplus-SP7021-SoC/20220215-172535
git checkout acb196db041b9bf489d6378ffb63751070deea90
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/tty/
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 drivers/tty/serial/sunplus-uart.c:25:
>> include/linux/module.h:131:49: error: redefinition of '__inittest'
131 | static inline initcall_t __maybe_unused __inittest(void) \
| ^~~~~~~~~~
drivers/tty/serial/sunplus-uart.c:731:1: note: in expansion of macro 'module_init'
731 | module_init(sunplus_uart_init);
| ^~~~~~~~~~~
include/linux/module.h:131:49: note: previous definition of '__inittest' with type 'int (*(void))(void)'
131 | static inline initcall_t __maybe_unused __inittest(void) \
| ^~~~~~~~~~
include/linux/module.h:127:41: note: in expansion of macro 'module_init'
127 | #define console_initcall(fn) module_init(fn)
| ^~~~~~~~~~~
drivers/tty/serial/sunplus-uart.c:566:1: note: in expansion of macro 'console_initcall'
566 | console_initcall(sunplus_console_init);
| ^~~~~~~~~~~~~~~~
>> include/linux/module.h:133:13: error: redefinition of 'init_module'
133 | int init_module(void) __copy(initfn) \
| ^~~~~~~~~~~
drivers/tty/serial/sunplus-uart.c:731:1: note: in expansion of macro 'module_init'
731 | module_init(sunplus_uart_init);
| ^~~~~~~~~~~
include/linux/module.h:133:13: note: previous definition of 'init_module' with type 'int(void)'
133 | int init_module(void) __copy(initfn) \
| ^~~~~~~~~~~
include/linux/module.h:127:41: note: in expansion of macro 'module_init'
127 | #define console_initcall(fn) module_init(fn)
| ^~~~~~~~~~~
drivers/tty/serial/sunplus-uart.c:566:1: note: in expansion of macro 'console_initcall'
566 | console_initcall(sunplus_console_init);
| ^~~~~~~~~~~~~~~~
vim +/__inittest +131 include/linux/module.h
0fd972a7d91d6e Paul Gortmaker 2015-05-01 128
0fd972a7d91d6e Paul Gortmaker 2015-05-01 129 /* Each module must use one module_init(). */
0fd972a7d91d6e Paul Gortmaker 2015-05-01 130 #define module_init(initfn) \
1f318a8bafcfba Arnd Bergmann 2017-02-01 @131 static inline initcall_t __maybe_unused __inittest(void) \
0fd972a7d91d6e Paul Gortmaker 2015-05-01 132 { return initfn; } \
cf68fffb66d60d Sami Tolvanen 2021-04-08 @133 int init_module(void) __copy(initfn) \
cf68fffb66d60d Sami Tolvanen 2021-04-08 134 __attribute__((alias(#initfn))); \
cf68fffb66d60d Sami Tolvanen 2021-04-08 135 __CFI_ADDRESSABLE(init_module, __initdata);
0fd972a7d91d6e Paul Gortmaker 2015-05-01 136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week