From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [linux-next:master 426/12343] drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:46 sysfs_gt_attribute_w_func() error: uninitialized symbol 'ret'.
Date: Wed, 18 May 2022 06:29:44 +0800 [thread overview]
Message-ID: <202205180649.2GCfwsqR-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2750 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Andi Shyti <andi.shyti@linux.intel.com>
CC: Matthew Auld <matthew.auld@intel.com>
CC: Lucas De Marchi <lucas.demarchi@intel.com>
CC: Andrzej Hajda <andrzej.hajda@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 47c1c54d1bcd0a69a56b49473bc20f17b70e5242
commit: 56a709cf77468e3a422b0ce3d58f8c2257bac2f1 [426/12343] 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/20220518/202205180649.2GCfwsqR-lkp(a)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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@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
80cf8af17af042 Andi Shyti 2022-03-19 24
56a709cf77468e Andi Shyti 2022-03-19 25 static int
56a709cf77468e Andi Shyti 2022-03-19 26 sysfs_gt_attribute_w_func(struct device *dev, struct device_attribute *attr,
56a709cf77468e Andi Shyti 2022-03-19 27 int (func)(struct intel_gt *gt, u32 val), u32 val)
56a709cf77468e Andi Shyti 2022-03-19 28 {
56a709cf77468e Andi Shyti 2022-03-19 29 struct intel_gt *gt;
56a709cf77468e Andi Shyti 2022-03-19 30 int ret;
56a709cf77468e Andi Shyti 2022-03-19 31
56a709cf77468e Andi Shyti 2022-03-19 32 if (!is_object_gt(&dev->kobj)) {
56a709cf77468e Andi Shyti 2022-03-19 33 int i;
56a709cf77468e Andi Shyti 2022-03-19 34 struct drm_i915_private *i915 = kdev_minor_to_i915(dev);
56a709cf77468e Andi Shyti 2022-03-19 35
56a709cf77468e Andi Shyti 2022-03-19 36 for_each_gt(gt, i915, i) {
56a709cf77468e Andi Shyti 2022-03-19 37 ret = func(gt, val);
56a709cf77468e Andi Shyti 2022-03-19 38 if (ret)
56a709cf77468e Andi Shyti 2022-03-19 39 break;
56a709cf77468e Andi Shyti 2022-03-19 40 }
56a709cf77468e Andi Shyti 2022-03-19 41 } else {
56a709cf77468e Andi Shyti 2022-03-19 42 gt = intel_gt_sysfs_get_drvdata(dev, attr->attr.name);
56a709cf77468e Andi Shyti 2022-03-19 43 ret = func(gt, val);
56a709cf77468e Andi Shyti 2022-03-19 44 }
56a709cf77468e Andi Shyti 2022-03-19 45
56a709cf77468e Andi Shyti 2022-03-19 @46 return ret;
56a709cf77468e Andi Shyti 2022-03-19 47 }
56a709cf77468e Andi Shyti 2022-03-19 48
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-05-17 22:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202205180649.2GCfwsqR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.