CC: kbuild-...@lists.01.org
BCC: l...@intel.com
CC: Linux Memory Management List <linux...@kvack.org>
TO: Andi Shyti <andi.sh...@linux.intel.com>
CC: Matthew Auld <matthew.a...@intel.com>
CC: Lucas De Marchi <lucas.demar...@intel.com>
CC: Andrzej Hajda <andrzej.ha...@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   3f7bdc402fb06f897ff1f492a2d42e1f7c2efedb
commit: 56a709cf77468e3a422b0ce3d58f8c2257bac2f1 [427/12195] drm/i915/gt: 
Create per-tile RPS sysfs interfaces
:::::: branch date: 13 hours ago
:::::: commit date: 8 weeks ago
config: x86_64-randconfig-m001-20220516 
(https://download.01.org/0day-ci/archive/20220517/202205170706.j8p9ivh2-...@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

smatch warnings:
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:46 sysfs_gt_attribute_w_func() 
error: uninitialized symbol 'ret'.

vim +/ret +46 drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c

80cf8af17af042c Andi Shyti 2022-03-19  24  
56a709cf77468e3 Andi Shyti 2022-03-19  25  static int
56a709cf77468e3 Andi Shyti 2022-03-19  26  sysfs_gt_attribute_w_func(struct 
device *dev, struct device_attribute *attr,
56a709cf77468e3 Andi Shyti 2022-03-19  27                         int 
(func)(struct intel_gt *gt, u32 val), u32 val)
56a709cf77468e3 Andi Shyti 2022-03-19  28  {
56a709cf77468e3 Andi Shyti 2022-03-19  29       struct intel_gt *gt;
56a709cf77468e3 Andi Shyti 2022-03-19  30       int ret;
56a709cf77468e3 Andi Shyti 2022-03-19  31  
56a709cf77468e3 Andi Shyti 2022-03-19  32       if (!is_object_gt(&dev->kobj)) {
56a709cf77468e3 Andi Shyti 2022-03-19  33               int i;
56a709cf77468e3 Andi Shyti 2022-03-19  34               struct drm_i915_private 
*i915 = kdev_minor_to_i915(dev);
56a709cf77468e3 Andi Shyti 2022-03-19  35  
56a709cf77468e3 Andi Shyti 2022-03-19  36               for_each_gt(gt, i915, 
i) {
56a709cf77468e3 Andi Shyti 2022-03-19  37                       ret = func(gt, 
val);
56a709cf77468e3 Andi Shyti 2022-03-19  38                       if (ret)
56a709cf77468e3 Andi Shyti 2022-03-19  39                               break;
56a709cf77468e3 Andi Shyti 2022-03-19  40               }
56a709cf77468e3 Andi Shyti 2022-03-19  41       } else {
56a709cf77468e3 Andi Shyti 2022-03-19  42               gt = 
intel_gt_sysfs_get_drvdata(dev, attr->attr.name);
56a709cf77468e3 Andi Shyti 2022-03-19  43               ret = func(gt, val);
56a709cf77468e3 Andi Shyti 2022-03-19  44       }
56a709cf77468e3 Andi Shyti 2022-03-19  45  
56a709cf77468e3 Andi Shyti 2022-03-19 @46       return ret;
56a709cf77468e3 Andi Shyti 2022-03-19  47  }
56a709cf77468e3 Andi Shyti 2022-03-19  48  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to