All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/platform/x86/thinkpad_acpi.c:10370 dytc_profile_refresh() error: uninitialized symbol 'output'.
Date: Tue, 09 Aug 2022 23:12:46 +0800	[thread overview]
Message-ID: <202208092323.733iC81l-lkp@intel.com> (raw)

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

BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Mark Pearson <markpearson@lenovo.com>
CC: Hans de Goede <hdegoede@redhat.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   eb555cb5b794f4e12a9897f3d46d5a72104cd4a7
commit: e1c21608e3cfc4b44ecdf04e12986b6564667095 platform/x86: thinkpad_acpi: Add PSC mode support
date:   5 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 5 months ago
config: i386-randconfig-m021-20220808 (https://download.01.org/0day-ci/archive/20220809/202208092323.733iC81l-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/platform/x86/thinkpad_acpi.c:10370 dytc_profile_refresh() error: uninitialized symbol 'output'.

Old smatch warnings:
drivers/platform/x86/thinkpad_acpi.c:2591 hotkey_inputdev_close() warn: bitwise AND condition is false here
drivers/platform/x86/thinkpad_acpi.c:3761 hotkey_notify_hotkey() warn: bitwise AND condition is false here
drivers/platform/x86/thinkpad_acpi.c:10367 dytc_profile_refresh() error: uninitialized symbol 'err'.

vim +/output +10370 drivers/platform/x86/thinkpad_acpi.c

c3bfcd4c676238e Mark Pearson 2021-01-11  10350  
c3bfcd4c676238e Mark Pearson 2021-01-11  10351  static void dytc_profile_refresh(void)
c3bfcd4c676238e Mark Pearson 2021-01-11  10352  {
c3bfcd4c676238e Mark Pearson 2021-01-11  10353  	enum platform_profile_option profile;
c3bfcd4c676238e Mark Pearson 2021-01-11  10354  	int output, err;
c3bfcd4c676238e Mark Pearson 2021-01-11  10355  	int perfmode;
c3bfcd4c676238e Mark Pearson 2021-01-11  10356  
c3bfcd4c676238e Mark Pearson 2021-01-11  10357  	mutex_lock(&dytc_mutex);
e1c21608e3cfc4b Mark Pearson 2022-02-25  10358  	if (dytc_profile_available == DYTC_FUNCMODE_MMC) {
7a47f86bba748b3 Mark Pearson 2021-04-06  10359  		if (dytc_mmc_get_available)
7a47f86bba748b3 Mark Pearson 2021-04-06  10360  			err = dytc_command(DYTC_CMD_MMC_GET, &output);
7a47f86bba748b3 Mark Pearson 2021-04-06  10361  		else
c3bfcd4c676238e Mark Pearson 2021-01-11  10362  			err = dytc_cql_command(DYTC_CMD_GET, &output);
e1c21608e3cfc4b Mark Pearson 2022-02-25  10363  	} else if (dytc_profile_available == DYTC_FUNCMODE_PSC)
e1c21608e3cfc4b Mark Pearson 2022-02-25  10364  		err = dytc_command(DYTC_CMD_GET, &output);
e1c21608e3cfc4b Mark Pearson 2022-02-25  10365  
c3bfcd4c676238e Mark Pearson 2021-01-11  10366  	mutex_unlock(&dytc_mutex);
c3bfcd4c676238e Mark Pearson 2021-01-11  10367  	if (err)
c3bfcd4c676238e Mark Pearson 2021-01-11  10368  		return;
c3bfcd4c676238e Mark Pearson 2021-01-11  10369  
c3bfcd4c676238e Mark Pearson 2021-01-11 @10370  	perfmode = (output >> DYTC_GET_MODE_BIT) & 0xF;
c3bfcd4c676238e Mark Pearson 2021-01-11  10371  	convert_dytc_to_profile(perfmode, &profile);
c3bfcd4c676238e Mark Pearson 2021-01-11  10372  	if (profile != dytc_current_profile) {
c3bfcd4c676238e Mark Pearson 2021-01-11  10373  		dytc_current_profile = profile;
c3bfcd4c676238e Mark Pearson 2021-01-11  10374  		platform_profile_notify();
c3bfcd4c676238e Mark Pearson 2021-01-11  10375  	}
c3bfcd4c676238e Mark Pearson 2021-01-11  10376  }
c3bfcd4c676238e Mark Pearson 2021-01-11  10377  

:::::: The code at line 10370 was first introduced by commit
:::::: c3bfcd4c676238e198d5a798b50e5d424bf05497 platform/x86: thinkpad_acpi: Add platform profile support

:::::: TO: Mark Pearson <markpearson@lenovo.com>
:::::: CC: Hans de Goede <hdegoede@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

             reply	other threads:[~2022-08-09 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09 15:12 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-10 17:08 drivers/platform/x86/thinkpad_acpi.c:10370 dytc_profile_refresh() error: uninitialized symbol 'output' kernel test robot
2022-08-30 22:18 kernel test robot
2022-09-01  6:27 kernel test robot
2022-09-01 14:42 kernel test robot

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=202208092323.733iC81l-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.