dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Oded Gabbay <oded.gabbay@gmail.com>
Cc: kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org
Subject: [gabbayo:habanalabs-next 33/38] drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:72:6: warning: variable 'rc' set but not used
Date: Tue, 19 May 2020 18:06:46 +0800	[thread overview]
Message-ID: <202005191843.Ajzy2tyj%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1897 bytes --]

tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   addd4be0a770e4cf5607310459cb7c8d11c8ae57
commit: f0fdc034c52b87d1c11bc28e2affd9d5a41a419b [33/38] habanalabs: add hwmgr module for gaudi
config: m68k-randconfig-r012-20200519 (attached as .config)
compiler: m68k-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
        git checkout f0fdc034c52b87d1c11bc28e2affd9d5a41a419b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c: In function 'clk_max_freq_mhz_store':
>> drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c:72:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
72 |  int rc;
|      ^~

vim +/rc +72 drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c

    66	
    67	static ssize_t clk_max_freq_mhz_store(struct device *dev,
    68			struct device_attribute *attr, const char *buf, size_t count)
    69	{
    70		struct hl_device *hdev = dev_get_drvdata(dev);
    71		struct gaudi_device *gaudi = hdev->asic_specific;
  > 72		int rc;
    73		u64 value;
    74	
    75		if (hl_device_disabled_or_in_reset(hdev)) {
    76			count = -ENODEV;
    77			goto fail;
    78		}
    79	
    80		rc = kstrtoull(buf, 0, &value);
    81	
    82		gaudi->max_freq_value = value * 1000 * 1000;
    83	
    84		hl_set_frequency(hdev, MME_PLL, gaudi->max_freq_value);
    85	
    86	fail:
    87		return count;
    88	}
    89	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34854 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

                 reply	other threads:[~2020-05-19 10:07 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=202005191843.Ajzy2tyj%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kbuild-all@lists.01.org \
    --cc=oded.gabbay@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).