All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Luke D. Jones" <luke@ljones.dev>, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, hdegoede@redhat.com,
	pobrn@protonmail.com, hadess@hadess.net, linux@roeck-us.net,
	platform-driver-x86@vger.kernel.org,
	"Luke D. Jones" <luke@ljones.dev>
Subject: Re: [PATCH v11] asus-wmi: Add support for custom fan curves
Date: Thu, 9 Sep 2021 01:49:34 +0800	[thread overview]
Message-ID: <202109090126.1ZzDBqTn-lkp@intel.com> (raw)
In-Reply-To: <20210907232232.5205-2-luke@ljones.dev>

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

Hi "Luke,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on next-20210908]
[cannot apply to linux/master v5.14]
[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/Luke-D-Jones/asus-wmi-Add-support-for-custom-fan-curves/20210908-072520
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 626bf91a292e2035af5b9d9cce35c5c138dfe06d
config: i386-allyesconfig (attached as .config)
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/3f17887090cfe852531995edb96ad6a3580a6a55
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Luke-D-Jones/asus-wmi-Add-support-for-custom-fan-curves/20210908-072520
        git checkout 3f17887090cfe852531995edb96ad6a3580a6a55
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/platform/x86/asus-wmi.c: In function 'fan_curve_store':
>> drivers/platform/x86/asus-wmi.c:2332:12: error: variable 'old_value' set but not used [-Werror=unused-but-set-variable]
    2332 |  u8 value, old_value;
         |            ^~~~~~~~~
   cc1: all warnings being treated as errors


vim +/old_value +2332 drivers/platform/x86/asus-wmi.c

  2325	
  2326	static ssize_t fan_curve_store(struct device *dev,
  2327				       struct device_attribute *attr, const char *buf,
  2328				       size_t count)
  2329	{
  2330		struct asus_wmi *asus = dev_get_drvdata(dev);
  2331		struct fan_curve_data *data;
> 2332		u8 value, old_value;
  2333		int err;
  2334	
  2335		int index = to_sensor_dev_attr_2(attr)->index;
  2336		int nr = to_sensor_dev_attr_2(attr)->nr;
  2337		int pwm = nr & FAN_CURVE_PWM_MASK;
  2338	
  2339		data = fan_curve_data_select(asus, attr);
  2340	
  2341		err = kstrtou8(buf, 10, &value);
  2342		if (err < 0)
  2343			return err;
  2344	
  2345		if (pwm) {
  2346			old_value = data->percents[index];
  2347			data->percents[index] = value;
  2348		} else {
  2349			old_value = data->temps[index];
  2350			data->temps[index] = value;
  2351		}
  2352	
  2353		/*
  2354		 * Mark as disabled so the user has to explicitly enable to apply a
  2355		 * changed fan curve. This prevents potential lockups from writing out
  2356		 * many changes as one-write-per-change.
  2357		 */
  2358		data->enabled = false;
  2359	
  2360		return count;
  2361	}
  2362	

---
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: 65422 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v11] asus-wmi: Add support for custom fan curves
Date: Thu, 09 Sep 2021 01:49:34 +0800	[thread overview]
Message-ID: <202109090126.1ZzDBqTn-lkp@intel.com> (raw)
In-Reply-To: <20210907232232.5205-2-luke@ljones.dev>

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

Hi "Luke,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on next-20210908]
[cannot apply to linux/master v5.14]
[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/Luke-D-Jones/asus-wmi-Add-support-for-custom-fan-curves/20210908-072520
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 626bf91a292e2035af5b9d9cce35c5c138dfe06d
config: i386-allyesconfig (attached as .config)
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/3f17887090cfe852531995edb96ad6a3580a6a55
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Luke-D-Jones/asus-wmi-Add-support-for-custom-fan-curves/20210908-072520
        git checkout 3f17887090cfe852531995edb96ad6a3580a6a55
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/platform/x86/asus-wmi.c: In function 'fan_curve_store':
>> drivers/platform/x86/asus-wmi.c:2332:12: error: variable 'old_value' set but not used [-Werror=unused-but-set-variable]
    2332 |  u8 value, old_value;
         |            ^~~~~~~~~
   cc1: all warnings being treated as errors


vim +/old_value +2332 drivers/platform/x86/asus-wmi.c

  2325	
  2326	static ssize_t fan_curve_store(struct device *dev,
  2327				       struct device_attribute *attr, const char *buf,
  2328				       size_t count)
  2329	{
  2330		struct asus_wmi *asus = dev_get_drvdata(dev);
  2331		struct fan_curve_data *data;
> 2332		u8 value, old_value;
  2333		int err;
  2334	
  2335		int index = to_sensor_dev_attr_2(attr)->index;
  2336		int nr = to_sensor_dev_attr_2(attr)->nr;
  2337		int pwm = nr & FAN_CURVE_PWM_MASK;
  2338	
  2339		data = fan_curve_data_select(asus, attr);
  2340	
  2341		err = kstrtou8(buf, 10, &value);
  2342		if (err < 0)
  2343			return err;
  2344	
  2345		if (pwm) {
  2346			old_value = data->percents[index];
  2347			data->percents[index] = value;
  2348		} else {
  2349			old_value = data->temps[index];
  2350			data->temps[index] = value;
  2351		}
  2352	
  2353		/*
  2354		 * Mark as disabled so the user has to explicitly enable to apply a
  2355		 * changed fan curve. This prevents potential lockups from writing out
  2356		 * many changes as one-write-per-change.
  2357		 */
  2358		data->enabled = false;
  2359	
  2360		return count;
  2361	}
  2362	

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

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

  parent reply	other threads:[~2021-09-08 17:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 23:22 [PATCH v11 0/1] asus-wmi: Add support for custom fan curves Luke D. Jones
2021-09-07 23:22 ` [PATCH v11] " Luke D. Jones
2021-09-08 12:32   ` kernel test robot
2021-09-08 12:32     ` kernel test robot
2021-09-08 17:49   ` kernel test robot [this message]
2021-09-08 17:49     ` kernel test robot
2021-09-28 11:36   ` Bastien Nocera
2021-09-28 11:43     ` Luke Jones
2021-09-28 11:56       ` Hans de Goede
2021-09-28 11:59         ` Luke Jones
2021-09-28 12:03           ` Hans de Goede
2021-09-28 12:15             ` Luke Jones
2021-09-28 14:11               ` Hans de Goede
2021-09-28 11:44     ` Hans de Goede
2021-09-28 11:56       ` Luke Jones
2021-09-28 11:59         ` Hans de Goede
2021-09-28 12:01           ` Luke Jones

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=202109090126.1ZzDBqTn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hadess@hadess.net \
    --cc=hdegoede@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=luke@ljones.dev \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=pobrn@protonmail.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 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.