Re: [PATCH 4/5] ALSA: HDA - remove the custom implementation for the audio LED trigger
by kernel test robot
Hi Jaroslav,
I love your patch! Perhaps something to improve:
[auto build test WARNING on sound/for-next]
[also build test WARNING on v5.11-rc7 next-20210125]
[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/Jaroslav-Kysela/ALSA-control-add...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/a7fc56df5a000d97b1b201a3f8a59218f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jaroslav-Kysela/ALSA-control-add-generic-LED-trigger-code/20210211-192035
git checkout a7fc56df5a000d97b1b201a3f8a59218fba1ee49
# 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: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
sound/core/control_led.c:49:19: warning: no previous prototype for 'snd_ctl_led_controls_by_access' [-Wmissing-prototypes]
49 | struct list_head *snd_ctl_led_controls_by_access(unsigned int access)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/core/control_led.c:244:6: warning: no previous prototype for 'snd_ctl_led_hello' [-Wmissing-prototypes]
244 | void snd_ctl_led_hello(void)
| ^~~~~~~~~~~~~~~~~
vim +/snd_ctl_led_hello +244 sound/core/control_led.c
300372c2ee4ebb Jaroslav Kysela 2021-02-11 237
300372c2ee4ebb Jaroslav Kysela 2021-02-11 238 /**
300372c2ee4ebb Jaroslav Kysela 2021-02-11 239 * snd_ctl_led_hello - kernel module reference helper
300372c2ee4ebb Jaroslav Kysela 2021-02-11 240 *
300372c2ee4ebb Jaroslav Kysela 2021-02-11 241 * Call this helper in the module init function when the control LED
300372c2ee4ebb Jaroslav Kysela 2021-02-11 242 * code should be activated for the given driver.
300372c2ee4ebb Jaroslav Kysela 2021-02-11 243 */
300372c2ee4ebb Jaroslav Kysela 2021-02-11 @244 void snd_ctl_led_hello(void)
300372c2ee4ebb Jaroslav Kysela 2021-02-11 245 {
300372c2ee4ebb Jaroslav Kysela 2021-02-11 246 }
300372c2ee4ebb Jaroslav Kysela 2021-02-11 247 EXPORT_SYMBOL(snd_ctl_led_hello);
300372c2ee4ebb Jaroslav Kysela 2021-02-11 248
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 5610/6048] drivers/hwmon/aht10.c:172 aht10_read_values() warn: inconsistent returns 'data->lock'.
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
commit: afd0187163980ca729a0cbafe1b664ea23e8fea6 [5610/6048] hwmon: Add AHT10 Temperature and Humidity Sensor Driver
config: x86_64-randconfig-m001-20210210 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/hwmon/aht10.c:172 aht10_read_values() warn: inconsistent returns 'data->lock'.
vim +172 drivers/hwmon/aht10.c
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 130) static int aht10_read_values(struct aht10_data *data)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 131) {
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 132) const u8 cmd_meas[] = {AHT10_CMD_MEAS, 0x33, 0x00};
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 133) u32 temp, hum;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 134) int res;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 135) u8 raw_data[AHT10_MEAS_SIZE];
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 136) struct i2c_client *client = data->client;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 137)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 138) mutex_lock(&data->lock);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 139) if (aht10_polltime_expired(data)) {
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 140) res = i2c_master_send(client, cmd_meas, sizeof(cmd_meas));
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 141) if (res < 0)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 142) return res;
Unlock on error before returning.
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 143)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 144) usleep_range(AHT10_MEAS_DELAY,
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 145) AHT10_MEAS_DELAY + AHT10_DELAY_EXTRA);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 146)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 147) res = i2c_master_recv(client, raw_data, AHT10_MEAS_SIZE);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 148) if (res != AHT10_MEAS_SIZE) {
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 149) mutex_unlock(&data->lock);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 150) if (res >= 0)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 151) return -ENODATA;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 152) else
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 153) return res;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 154) }
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 155)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 156) hum = ((u32)raw_data[1] << 12u) |
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 157) ((u32)raw_data[2] << 4u) |
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 158) ((raw_data[3] & 0xF0u) >> 4u);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 159)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 160) temp = ((u32)(raw_data[3] & 0x0Fu) << 16u) |
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 161) ((u32)raw_data[4] << 8u) |
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 162) raw_data[5];
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 163)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 164) temp = ((temp * 625) >> 15u) * 10;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 165) hum = ((hum * 625) >> 16u) * 10;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 166)
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 167) data->temperature = (int)temp - 50000;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 168) data->humidity = hum;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 169) data->previous_poll_time = ktime_get_boottime();
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 170) }
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 171) mutex_unlock(&data->lock);
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 @172) return 0;
afd0187163980c Johannes Cornelis Draaijer (datdenkikniet 2021-01-07 173) }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[jwboyer-fedora:f33 28/40] drivers/gpu/drm/panel/panel-xingbangda-xbd599.c:221:3: error: 'const struct drm_display_mode' has no member named 'vrefresh'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git f33
head: 2d6d546c8e250ef35d415b537e054b269284a1db
commit: 2d84ea0badc5f64af198b777328d14feceb6fa4b [28/40] drm: panel: add Xingbangda XBD599 panel
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git/commit...
git remote add jwboyer-fedora https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git
git fetch --no-tags jwboyer-fedora f33
git checkout 2d84ea0badc5f64af198b777328d14feceb6fa4b
# 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(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-xingbangda-xbd599.c:221:3: error: 'const struct drm_display_mode' has no member named 'vrefresh'
221 | .vrefresh = 60,
| ^~~~~~~~
In file included from drivers/gpu/drm/panel/panel-xingbangda-xbd599.c:21:
drivers/gpu/drm/panel/panel-xingbangda-xbd599.c: In function 'xbd599_probe':
drivers/gpu/drm/panel/panel-xingbangda-xbd599.c:313:27: error: 'const struct drm_display_mode' has no member named 'vrefresh'
313 | xbd599_default_mode.vrefresh,
| ^
include/drm/drm_print.h:368:40: note: in definition of macro 'DRM_DEV_INFO'
368 | drm_dev_printk(dev, KERN_INFO, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
vim +221 drivers/gpu/drm/panel/panel-xingbangda-xbd599.c
211
212 static const struct drm_display_mode xbd599_default_mode = {
213 .hdisplay = 720,
214 .hsync_start = 720 + 40,
215 .hsync_end = 720 + 40 + 40,
216 .htotal = 720 + 40 + 40 + 40,
217 .vdisplay = 1440,
218 .vsync_start = 1440 + 18,
219 .vsync_end = 1440 + 18 + 10,
220 .vtotal = 1440 + 18 + 10 + 17,
> 221 .vrefresh = 60,
222 .clock = 69000,
223 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
224
225 .width_mm = 68,
226 .height_mm = 136,
227 .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
228 };
229
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chanwoo:devfreq-testing 5/5] drivers/memory/tegra/tegra20-emc.c:203:38: error: field 'ondemand_data' has incomplete type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e
commit: 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e [5/5] PM / devfreq: Add new up_threshold and down_differential sysfs attrs
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/...
git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
git fetch --no-tags chanwoo devfreq-testing
git checkout 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/memory/tegra/tegra20-emc.c:203:38: error: field 'ondemand_data' has incomplete type
203 | struct devfreq_simple_ondemand_data ondemand_data;
| ^~~~~~~~~~~~~
vim +/ondemand_data +203 drivers/memory/tegra/tegra20-emc.c
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 175
96e5da7c842424 Dmitry Osipenko 2018-10-21 176 struct tegra_emc {
96e5da7c842424 Dmitry Osipenko 2018-10-21 177 struct device *dev;
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 178 struct tegra_mc *mc;
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 179 struct icc_provider provider;
96e5da7c842424 Dmitry Osipenko 2018-10-21 180 struct notifier_block clk_nb;
96e5da7c842424 Dmitry Osipenko 2018-10-21 181 struct clk *clk;
96e5da7c842424 Dmitry Osipenko 2018-10-21 182 void __iomem *regs;
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 183 unsigned int dram_bus_width;
96e5da7c842424 Dmitry Osipenko 2018-10-21 184
96e5da7c842424 Dmitry Osipenko 2018-10-21 185 struct emc_timing *timings;
96e5da7c842424 Dmitry Osipenko 2018-10-21 186 unsigned int num_timings;
8209eefa3d379d Thierry Reding 2019-12-22 187
8209eefa3d379d Thierry Reding 2019-12-22 188 struct {
8209eefa3d379d Thierry Reding 2019-12-22 189 struct dentry *root;
8209eefa3d379d Thierry Reding 2019-12-22 190 unsigned long min_rate;
8209eefa3d379d Thierry Reding 2019-12-22 191 unsigned long max_rate;
8209eefa3d379d Thierry Reding 2019-12-22 192 } debugfs;
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 193
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 194 /*
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 195 * There are multiple sources in the EMC driver which could request
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 196 * a min/max clock rate, these rates are contained in this array.
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 197 */
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 198 struct emc_rate_request requested_rate[EMC_RATE_TYPE_MAX];
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 199
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 200 /* protect shared rate-change code path */
d5ef16ba5fbe12 Dmitry Osipenko 2020-11-04 201 struct mutex rate_lock;
dedf62d6f17fc9 Dmitry Osipenko 2020-11-11 202
dedf62d6f17fc9 Dmitry Osipenko 2020-11-11 @203 struct devfreq_simple_ondemand_data ondemand_data;
96e5da7c842424 Dmitry Osipenko 2018-10-21 204 };
96e5da7c842424 Dmitry Osipenko 2018-10-21 205
:::::: The code at line 203 was first introduced by commit
:::::: dedf62d6f17fc9cf0389602b6d3d7533cc218679 memory: tegra20-emc: Add devfreq support
:::::: TO: Dmitry Osipenko <digetx(a)gmail.com>
:::::: CC: Krzysztof Kozlowski <krzk(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [soc:broadcom/drivers 2/4] drivers/soc/bcm/bcm63xx/bcm-pmb.c:103:45: sparse: sparse: cast to restricted __le32
by Arnd Bergmann
On Thu, Feb 11, 2021 at 7:44 AM Rafał Miłecki <rafal(a)milecki.pl> wrote:
> On 10.02.2021 22:48, kernel test robot wrote:
>
> Florian: can you review above code & verify my logic is correct there?
> That I need to use le32_to_cpu() / be32_to_cpu() on the readl() value?
I'm fairly sure the logic is incorrect.
> Assuming my logic is correct, above code doesn't use __le32 / __be32 as
> that would require extra variables and code paths. Current code is quite
> simple & clear.
The problem is that readl() assumes that a register is little-endian in
hardware, and it performs a byteswap when running on a big-endian
machine (on most architectures).
The usual way to encode this is to use
if (device->big_endian)
return ioread32be(device->reg + offset);
else
return ioread32(device->reg + offset);
You can treat ioread32() as an alias for readl() in practice, while
ioread32be() produces the byte-reversed result of that.
If you however also need to run this on big-endian mips, you
might need to wrap this in another #ifdef that accounts for
the different behavior on that architecture, where readl()
sometimes sometimes assumes the register is cpu-endian
rather than little-endian.
Arnd
1 year, 7 months
Re: [PATCH 2/3] drm/ttm: remove swap LRU
by Dan Carpenter
Hi "Christian,
url: https://github.com/0day-ci/linux/commits/Christian-K-nig/drm-ttm-move-swa...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: ia64-randconfig-m031-20210209 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/gpu/drm/ttm/ttm_device.c:144 ttm_device_swapout() warn: variable dereferenced before check 'bo->ttm' (see line 142)
vim +144 drivers/gpu/drm/ttm/ttm_device.c
d37e3072dc32c7 Christian König 2021-02-10 125 long ttm_device_swapout(struct ttm_device *bdev, struct ttm_operation_ctx *ctx,
d37e3072dc32c7 Christian König 2021-02-10 126 gfp_t gfp_flags)
d37e3072dc32c7 Christian König 2021-02-10 127 {
d37e3072dc32c7 Christian König 2021-02-10 128 struct ttm_global *glob = &ttm_glob;
d37e3072dc32c7 Christian König 2021-02-10 129 struct ttm_resource_manager *man;
22b09b650f7486 Christian König 2021-02-10 130 struct ttm_buffer_object *bo;
d37e3072dc32c7 Christian König 2021-02-10 131 unsigned i, j;
22b09b650f7486 Christian König 2021-02-10 132 int ret;
22b09b650f7486 Christian König 2021-02-10 133
22b09b650f7486 Christian König 2021-02-10 134 spin_lock(&glob->lru_lock);
d37e3072dc32c7 Christian König 2021-02-10 135 for (i = TTM_PL_SYSTEM; i < TTM_NUM_MEM_TYPES; ++i) {
d37e3072dc32c7 Christian König 2021-02-10 136 man = ttm_manager_type(bdev, i);
d37e3072dc32c7 Christian König 2021-02-10 137 if (!man || !man->use_tt)
d37e3072dc32c7 Christian König 2021-02-10 138 continue;
d37e3072dc32c7 Christian König 2021-02-10 139
d37e3072dc32c7 Christian König 2021-02-10 140 for (j = 0; j < TTM_MAX_BO_PRIORITY; ++j) {
d37e3072dc32c7 Christian König 2021-02-10 141 list_for_each_entry(bo, &man->lru[j], lru) {
d37e3072dc32c7 Christian König 2021-02-10 @142 long num_pages = bo->ttm->num_pages;
^^^^^^^^^
Dereferenced
d37e3072dc32c7 Christian König 2021-02-10 143
d37e3072dc32c7 Christian König 2021-02-10 @144 if (!bo->ttm ||
^^^^^^^^
Checked too late
d37e3072dc32c7 Christian König 2021-02-10 145 bo->ttm->page_flags & TTM_PAGE_FLAG_SG ||
d37e3072dc32c7 Christian König 2021-02-10 146 bo->ttm->page_flags & TTM_PAGE_FLAG_SWAPPED)
d37e3072dc32c7 Christian König 2021-02-10 147 continue;
22b09b650f7486 Christian König 2021-02-10 148
22b09b650f7486 Christian König 2021-02-10 149 ret = ttm_bo_swapout(bo, ctx, gfp_flags);
22b09b650f7486 Christian König 2021-02-10 150 /* ttm_bo_swapout has dropped the lru_lock */
22b09b650f7486 Christian König 2021-02-10 151 if (!ret)
22b09b650f7486 Christian König 2021-02-10 152 return num_pages;
22b09b650f7486 Christian König 2021-02-10 153 if (ret != -EBUSY)
22b09b650f7486 Christian König 2021-02-10 154 return ret;
22b09b650f7486 Christian König 2021-02-10 155 }
22b09b650f7486 Christian König 2021-02-10 156 }
d37e3072dc32c7 Christian König 2021-02-10 157 }
22b09b650f7486 Christian König 2021-02-10 158 spin_unlock(&glob->lru_lock);
22b09b650f7486 Christian König 2021-02-10 159 return 0;
22b09b650f7486 Christian König 2021-02-10 160 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] Input: psmouse - add support for FocalTech PS/2 Protocol v2
by kernel test robot
Hi Hamza,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on input/next]
[also build test ERROR on linux/master hid/for-next linus/master v5.11-rc7 next-20210125]
[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/Hamza-Farooq/Input-psmouse-add-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: parisc-randconfig-r004-20210211 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/958fb71223bb82ea01edbcbf4970af1d8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hamza-Farooq/Input-psmouse-add-support-for-FocalTech-PS-2-Protocol-v2/20210211-074527
git checkout 958fb71223bb82ea01edbcbf4970af1d888b1050
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from include/linux/bitops.h:5,
from drivers/input/mouse/psmouse-base.c:13:
drivers/input/mouse/psmouse-base.c: In function 'psmouse_extensions':
>> drivers/input/mouse/psmouse-base.c:1089:24: error: 'focaltech_v2_detect' undeclared (first use in this function); did you mean 'focaltech_detect'?
1089 | if (psmouse_do_detect(focaltech_v2_detect,
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/input/mouse/psmouse-base.c:1089:2: note: in expansion of macro 'if'
1089 | if (psmouse_do_detect(focaltech_v2_detect,
| ^~
drivers/input/mouse/psmouse-base.c:1089:24: note: each undeclared identifier is reported only once for each function it appears in
1089 | if (psmouse_do_detect(focaltech_v2_detect,
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/input/mouse/psmouse-base.c:1089:2: note: in expansion of macro 'if'
1089 | if (psmouse_do_detect(focaltech_v2_detect,
| ^~
--
>> drivers/input/mouse/focaltech_v2.c:27:5: warning: no previous prototype for 'focaltech_v2_detect' [-Wmissing-prototypes]
27 | int focaltech_v2_detect(struct psmouse *psmouse, bool set_properties)
| ^~~~~~~~~~~~~~~~~~~
drivers/input/mouse/focaltech_v2.c:17:33: warning: 'switch_protocol' defined but not used [-Wunused-const-variable=]
17 | static const struct fte_command switch_protocol[] = {
| ^~~~~~~~~~~~~~~
vim +1089 drivers/input/mouse/psmouse-base.c
1052
1053 /*
1054 * psmouse_extensions() probes for any extensions to the basic PS/2 protocol
1055 * the mouse may have.
1056 */
1057 static int psmouse_extensions(struct psmouse *psmouse,
1058 unsigned int max_proto, bool set_properties)
1059 {
1060 bool synaptics_hardware = false;
1061 int ret;
1062
1063 /*
1064 * Always check for focaltech, this is safe as it uses pnp-id
1065 * matching.
1066 */
1067 if (psmouse_do_detect(focaltech_detect,
1068 psmouse, false, set_properties)) {
1069 if (max_proto > PSMOUSE_IMEX &&
1070 IS_ENABLED(CONFIG_MOUSE_PS2_FOCALTECH) &&
1071 (!set_properties || focaltech_init(psmouse) == 0)) {
1072 return PSMOUSE_FOCALTECH;
1073 }
1074 /*
1075 * Restrict psmouse_max_proto so that psmouse_initialize()
1076 * does not try to reset rate and resolution, because even
1077 * that upsets the device.
1078 * This also causes us to basically fall through to basic
1079 * protocol detection, where we fully reset the mouse,
1080 * and set it up as bare PS/2 protocol device.
1081 */
1082 psmouse_max_proto = max_proto = PSMOUSE_PS2;
1083 }
1084
1085 /*
1086 * Always check for focaltech-v2, this is safe as it uses pnp-id
1087 * matching.
1088 */
> 1089 if (psmouse_do_detect(focaltech_v2_detect,
1090 psmouse, false, set_properties)) {
1091 if (max_proto > PSMOUSE_IMEX &&
1092 IS_ENABLED(CONFIG_MOUSE_PS2_FOCALTECH_V2) &&
1093 (!set_properties || focaltech_v2_init(psmouse) == 0)) {
1094 return PSMOUSE_FOCALTECH_V2;
1095 }
1096 /*
1097 * Restrict psmouse_max_proto so that psmouse_initialize()
1098 * does not try to reset rate and resolution, because even
1099 * that upsets the device.
1100 * This also causes us to basically fall through to basic
1101 * protocol detection, where we fully reset the mouse,
1102 * and set it up as bare PS/2 protocol device.
1103 */
1104 psmouse_max_proto = max_proto = PSMOUSE_PS2;
1105 }
1106
1107 /*
1108 * We always check for LifeBook because it does not disturb mouse
1109 * (it only checks DMI information).
1110 */
1111 if (psmouse_try_protocol(psmouse, PSMOUSE_LIFEBOOK, &max_proto,
1112 set_properties, max_proto > PSMOUSE_IMEX))
1113 return PSMOUSE_LIFEBOOK;
1114
1115 if (psmouse_try_protocol(psmouse, PSMOUSE_VMMOUSE, &max_proto,
1116 set_properties, max_proto > PSMOUSE_IMEX))
1117 return PSMOUSE_VMMOUSE;
1118
1119 /*
1120 * Try Kensington ThinkingMouse (we try first, because Synaptics
1121 * probe upsets the ThinkingMouse).
1122 */
1123 if (max_proto > PSMOUSE_IMEX &&
1124 psmouse_try_protocol(psmouse, PSMOUSE_THINKPS, &max_proto,
1125 set_properties, true)) {
1126 return PSMOUSE_THINKPS;
1127 }
1128
1129 /*
1130 * Try Synaptics TouchPad. Note that probing is done even if
1131 * Synaptics protocol support is disabled in config - we need to
1132 * know if it is Synaptics so we can reset it properly after
1133 * probing for IntelliMouse.
1134 */
1135 if (max_proto > PSMOUSE_PS2 &&
1136 psmouse_do_detect(synaptics_detect,
1137 psmouse, false, set_properties)) {
1138 synaptics_hardware = true;
1139
1140 if (max_proto > PSMOUSE_IMEX) {
1141 /*
1142 * Try activating protocol, but check if support is
1143 * enabled first, since we try detecting Synaptics
1144 * even when protocol is disabled.
1145 */
1146 if (IS_ENABLED(CONFIG_MOUSE_PS2_SYNAPTICS) ||
1147 IS_ENABLED(CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS)) {
1148 if (!set_properties)
1149 return PSMOUSE_SYNAPTICS;
1150
1151 ret = synaptics_init(psmouse);
1152 if (ret >= 0)
1153 return ret;
1154 }
1155
1156 /*
1157 * Some Synaptics touchpads can emulate extended
1158 * protocols (like IMPS/2). Unfortunately
1159 * Logitech/Genius probes confuse some firmware
1160 * versions so we'll have to skip them.
1161 */
1162 max_proto = PSMOUSE_IMEX;
1163 }
1164
1165 /*
1166 * Make sure that touchpad is in relative mode, gestures
1167 * (taps) are enabled.
1168 */
1169 synaptics_reset(psmouse);
1170 }
1171
1172 /*
1173 * Try Cypress Trackpad. We must try it before Finger Sensing Pad
1174 * because Finger Sensing Pad probe upsets some modules of Cypress
1175 * Trackpads.
1176 */
1177 if (max_proto > PSMOUSE_IMEX &&
1178 psmouse_try_protocol(psmouse, PSMOUSE_CYPRESS, &max_proto,
1179 set_properties, true)) {
1180 return PSMOUSE_CYPRESS;
1181 }
1182
1183 /* Try ALPS TouchPad */
1184 if (max_proto > PSMOUSE_IMEX) {
1185 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS);
1186 if (psmouse_try_protocol(psmouse, PSMOUSE_ALPS,
1187 &max_proto, set_properties, true))
1188 return PSMOUSE_ALPS;
1189 }
1190
1191 /* Try OLPC HGPK touchpad */
1192 if (max_proto > PSMOUSE_IMEX &&
1193 psmouse_try_protocol(psmouse, PSMOUSE_HGPK, &max_proto,
1194 set_properties, true)) {
1195 return PSMOUSE_HGPK;
1196 }
1197
1198 /* Try Elantech touchpad */
1199 if (max_proto > PSMOUSE_IMEX &&
1200 psmouse_try_protocol(psmouse, PSMOUSE_ELANTECH,
1201 &max_proto, set_properties, false)) {
1202 if (!set_properties)
1203 return PSMOUSE_ELANTECH;
1204
1205 ret = elantech_init(psmouse);
1206 if (ret >= 0)
1207 return ret;
1208 }
1209
1210 if (max_proto > PSMOUSE_IMEX) {
1211 if (psmouse_try_protocol(psmouse, PSMOUSE_GENPS,
1212 &max_proto, set_properties, true))
1213 return PSMOUSE_GENPS;
1214
1215 if (psmouse_try_protocol(psmouse, PSMOUSE_PS2PP,
1216 &max_proto, set_properties, true))
1217 return PSMOUSE_PS2PP;
1218
1219 if (psmouse_try_protocol(psmouse, PSMOUSE_TRACKPOINT,
1220 &max_proto, set_properties, true))
1221 return PSMOUSE_TRACKPOINT;
1222
1223 if (psmouse_try_protocol(psmouse, PSMOUSE_TOUCHKIT_PS2,
1224 &max_proto, set_properties, true))
1225 return PSMOUSE_TOUCHKIT_PS2;
1226 }
1227
1228 /*
1229 * Try Finger Sensing Pad. We do it here because its probe upsets
1230 * Trackpoint devices (causing TP_READ_ID command to time out).
1231 */
1232 if (max_proto > PSMOUSE_IMEX &&
1233 psmouse_try_protocol(psmouse, PSMOUSE_FSP,
1234 &max_proto, set_properties, true)) {
1235 return PSMOUSE_FSP;
1236 }
1237
1238 /*
1239 * Reset to defaults in case the device got confused by extended
1240 * protocol probes. Note that we follow up with full reset because
1241 * some mice put themselves to sleep when they see PSMOUSE_RESET_DIS.
1242 */
1243 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS);
1244 psmouse_reset(psmouse);
1245
1246 if (max_proto >= PSMOUSE_IMEX &&
1247 psmouse_try_protocol(psmouse, PSMOUSE_IMEX,
1248 &max_proto, set_properties, true)) {
1249 return PSMOUSE_IMEX;
1250 }
1251
1252 if (max_proto >= PSMOUSE_IMPS &&
1253 psmouse_try_protocol(psmouse, PSMOUSE_IMPS,
1254 &max_proto, set_properties, true)) {
1255 return PSMOUSE_IMPS;
1256 }
1257
1258 /*
1259 * Okay, all failed, we have a standard mouse here. The number of
1260 * the buttons is still a question, though. We assume 3.
1261 */
1262 psmouse_try_protocol(psmouse, PSMOUSE_PS2,
1263 &max_proto, set_properties, true);
1264
1265 if (synaptics_hardware) {
1266 /*
1267 * We detected Synaptics hardware but it did not respond to
1268 * IMPS/2 probes. We need to reset the touchpad because if
1269 * there is a track point on the pass through port it could
1270 * get disabled while probing for protocol extensions.
1271 */
1272 psmouse_reset(psmouse);
1273 }
1274
1275 return PSMOUSE_PS2;
1276 }
1277
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chanwoo:devfreq-testing 5/5] drivers/scsi/ufs/ufs-qcom.c:1438:46: warning: variable 'd' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e
commit: 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e [5/5] PM / devfreq: Add new up_threshold and down_differential sysfs attrs
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/...
git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
git fetch --no-tags chanwoo devfreq-testing
git checkout 82254c87f7c13ff0ca73ca9a8c776ddd1c638f9e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/ufs/ufs-qcom.c: In function 'ufs_qcom_config_scaling_param':
>> drivers/scsi/ufs/ufs-qcom.c:1438:46: warning: variable 'd' set but not used [-Wunused-but-set-variable]
1438 | static struct devfreq_simple_ondemand_data *d;
| ^
vim +/d +1438 drivers/scsi/ufs/ufs-qcom.c
b8416b2fedbf1c Bjorn Andersson 2019-08-28 1432
80b21006cd0e86 Asutosh Das 2020-03-25 1433 #if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND)
80b21006cd0e86 Asutosh Das 2020-03-25 1434 static void ufs_qcom_config_scaling_param(struct ufs_hba *hba,
80b21006cd0e86 Asutosh Das 2020-03-25 1435 struct devfreq_dev_profile *p,
80b21006cd0e86 Asutosh Das 2020-03-25 1436 void *data)
80b21006cd0e86 Asutosh Das 2020-03-25 1437 {
80b21006cd0e86 Asutosh Das 2020-03-25 @1438 static struct devfreq_simple_ondemand_data *d;
80b21006cd0e86 Asutosh Das 2020-03-25 1439
80b21006cd0e86 Asutosh Das 2020-03-25 1440 if (!data)
80b21006cd0e86 Asutosh Das 2020-03-25 1441 return;
80b21006cd0e86 Asutosh Das 2020-03-25 1442
80b21006cd0e86 Asutosh Das 2020-03-25 1443 d = (struct devfreq_simple_ondemand_data *)data;
80b21006cd0e86 Asutosh Das 2020-03-25 1444 p->polling_ms = 60;
82254c87f7c13f Chanwoo Choi 2020-10-08 1445 p->up_threshold = 70;
82254c87f7c13f Chanwoo Choi 2020-10-08 1446 p->down_differential = 5;
80b21006cd0e86 Asutosh Das 2020-03-25 1447 }
80b21006cd0e86 Asutosh Das 2020-03-25 1448 #else
80b21006cd0e86 Asutosh Das 2020-03-25 1449 static void ufs_qcom_config_scaling_param(struct ufs_hba *hba,
80b21006cd0e86 Asutosh Das 2020-03-25 1450 struct devfreq_dev_profile *p,
80b21006cd0e86 Asutosh Das 2020-03-25 1451 void *data)
80b21006cd0e86 Asutosh Das 2020-03-25 1452 {
80b21006cd0e86 Asutosh Das 2020-03-25 1453 }
80b21006cd0e86 Asutosh Das 2020-03-25 1454 #endif
80b21006cd0e86 Asutosh Das 2020-03-25 1455
:::::: The code at line 1438 was first introduced by commit
:::::: 80b21006cd0e8661affd8e1bf1707c8d5099605e scsi: ufs-qcom: Override devfreq parameters
:::::: TO: Asutosh Das <asutoshd(a)codeaurora.org>
:::::: CC: Martin K. Petersen <martin.petersen(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-rt-devel:linux-5.10.y-rt-rebase 276/283] arch/powerpc/include/asm/page_32.h:54:2: error: implicit declaration of function 'WARN_ON'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.10.y-rt-rebase
head: 91d922a595bd1730c2215adf09dd716f858ad811
commit: 45664075f34bb1799470c82491b04a064a76eb77 [276/283] POWERPC: Allow to enable RT
config: powerpc-randconfig-r014-20210211 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.10.y-rt-rebase
git checkout 45664075f34bb1799470c82491b04a064a76eb77
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/page.h:249,
from arch/powerpc/include/asm/thread_info.h:13,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/page_32.h: In function 'clear_page':
>> arch/powerpc/include/asm/page_32.h:54:2: error: implicit declaration of function 'WARN_ON' [-Werror=implicit-function-declaration]
54 | WARN_ON((unsigned long)addr & (L1_CACHE_BYTES - 1));
| ^~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h: In function 'cpu_has_feature':
>> arch/powerpc/include/asm/cpu_has_feature.h:33:3: error: implicit declaration of function 'printk' [-Werror=implicit-function-declaration]
33 | printk("Warning! cpu_has_feature() used prior to jump label init!\n");
| ^~~~~~
>> arch/powerpc/include/asm/cpu_has_feature.h:34:3: error: implicit declaration of function 'dump_stack' [-Werror=implicit-function-declaration]
34 | dump_stack();
| ^~~~~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:13,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/inst.h: In function '__ppc_inst_as_str':
>> arch/powerpc/include/asm/inst.h:130:3: error: implicit declaration of function 'sprintf' [-Werror=implicit-function-declaration]
130 | sprintf(str, "%08x %08x", ppc_inst_val(x), ppc_inst_suffix(x));
| ^~~~~~~
>> arch/powerpc/include/asm/inst.h:130:3: warning: incompatible implicit declaration of built-in function 'sprintf'
arch/powerpc/include/asm/inst.h:1:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
+++ |+#include <stdio.h>
1 | /* SPDX-License-Identifier: GPL-2.0-or-later */
In file included from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/linux/thread_info.h: In function 'copy_overflow':
>> include/linux/thread_info.h:144:2: error: implicit declaration of function 'WARN' [-Werror=implicit-function-declaration]
144 | WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
| ^~~~
include/linux/thread_info.h: In function 'check_copy_size':
>> include/linux/thread_info.h:160:6: error: implicit declaration of function 'WARN_ON_ONCE' [-Werror=implicit-function-declaration]
160 | if (WARN_ON_ONCE(bytes > INT_MAX))
| ^~~~~~~~~~~~
In file included from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/linux/printk.h: At top level:
>> include/linux/printk.h:165:5: error: conflicting types for 'printk'
165 | int printk(const char *fmt, ...);
| ^~~~~~
include/linux/printk.h:165:1: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
165 | int printk(const char *fmt, ...);
| ^~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h:33:3: note: previous implicit declaration of 'printk' was here
33 | printk("Warning! cpu_has_feature() used prior to jump label init!\n");
| ^~~~~~
In file included from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/printk.h:198:24: warning: conflicting types for 'dump_stack'
198 | extern asmlinkage void dump_stack(void) __cold;
| ^~~~~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h:34:3: note: previous implicit declaration of 'dump_stack' was here
34 | dump_stack();
| ^~~~~~~~~~
cc1: some warnings being treated as errors
--
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E
In file included from arch/powerpc/include/asm/page.h:249,
from arch/powerpc/include/asm/thread_info.h:13,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/page_32.h: In function 'clear_page':
arch/powerpc/include/asm/page_32.h:54:2: error: implicit declaration of function 'WARN_ON'
54 | WARN_ON((unsigned long)addr & (L1_CACHE_BYTES - 1));
| ^~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h: In function 'cpu_has_feature':
arch/powerpc/include/asm/cpu_has_feature.h:33:3: error: implicit declaration of function 'printk'
33 | printk("Warning! cpu_has_feature() used prior to jump label init!n");
| ^~~~~~
arch/powerpc/include/asm/cpu_has_feature.h:34:3: error: implicit declaration of function 'dump_stack'
34 | dump_stack();
| ^~~~~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:13,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/inst.h: In function '__ppc_inst_as_str':
arch/powerpc/include/asm/inst.h:130:3: error: implicit declaration of function 'sprintf'
130 | sprintf(str, "%08x %08x", ppc_inst_val(x), ppc_inst_suffix(x));
| ^~~~~~~
>> arch/powerpc/include/asm/inst.h:130:3: warning: incompatible implicit declaration of built-in function 'sprintf'
arch/powerpc/include/asm/inst.h:1:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
+++ |+#include <stdio.h>
1 | /Dockerfile /Gemfile /Gemfile.lock /bin /boot /c /cephfs /db /dev /etc /home /htmldocs /include /kbuild /lib /lib32 /lib64 /libx32 /lkp-cloud /lkp-src /media /mnt /opt /patch /pkg /proc /root /run /sbin /share /srv /sys /tmp /usr /var SPDX-License-Identifier: GPL-2.0-or-later arch/ include/ kernel/ scripts/ source/ usr/
In file included from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/linux/thread_info.h: In function 'copy_overflow':
include/linux/thread_info.h:144:2: error: implicit declaration of function 'WARN'
144 | WARN(1, "Buffer overflow detected (%d < %lu)!n", size, count);
| ^~~~
include/linux/thread_info.h: In function 'check_copy_size':
include/linux/thread_info.h:160:6: error: implicit declaration of function 'WARN_ON_ONCE'
160 | if (WARN_ON_ONCE(bytes > INT_MAX))
| ^~~~~~~~~~~~
In file included from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/linux/printk.h: At top level:
>> include/linux/printk.h:165:5: error: conflicting types for 'printk'
165 | int printk(const char ...);
| ^~~~~~
include/linux/printk.h:165:1: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
165 | int printk(const char ...);
| ^~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h:33:3: note: previous implicit declaration of 'printk' was here
33 | printk("Warning! cpu_has_feature() used prior to jump label init!n");
| ^~~~~~
In file included from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
>> include/linux/printk.h:198:24: warning: conflicting types for 'dump_stack'
198 | extern asmlinkage void dump_stack(void) __cold;
| ^~~~~~~~~~
In file included from arch/powerpc/include/asm/hw_breakpoint.h:12,
from arch/powerpc/include/asm/processor.h:41,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from arch/powerpc/include/asm/ptrace.h:254,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:526,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/debug_locks.h:5,
from include/linux/rtmutex.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/ratelimit_types.h:7,
from include/linux/printk.h:10,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cpu_has_feature.h:34:3: note: previous implicit declaration of 'dump_stack' was here
34 | dump_stack();
| ^~~~~~~~~~
cc1: some warnings being treated as errors
Makefile arch include kernel scripts source usr [scripts/Makefile.build:117: kernel/bounds.s] Error 1
Target '__build' not remade because of errors.
Makefile arch include kernel scripts source usr [Makefile:1206: prepare0] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch include kernel scripts source usr [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E
vim +/WARN_ON +54 arch/powerpc/include/asm/page_32.h
7ab0b7cb8951d4 arch/powerpc/include/asm/page_32.h Christophe Leroy 2019-08-16 44
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 45 /*
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 46 * Clear page using the dcbz instruction, which doesn't cause any
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 47 * memory traffic (except to write out any cache lines which get
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 48 * displaced). This only works on cacheable memory.
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 49 */
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 50 static inline void clear_page(void *addr)
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 51 {
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 52 unsigned int i;
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 53
7ab0b7cb8951d4 arch/powerpc/include/asm/page_32.h Christophe Leroy 2019-08-16 @54 WARN_ON((unsigned long)addr & (L1_CACHE_BYTES - 1));
7ab0b7cb8951d4 arch/powerpc/include/asm/page_32.h Christophe Leroy 2019-08-16 55
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 56 for (i = 0; i < PAGE_SIZE / L1_CACHE_BYTES; i++, addr += L1_CACHE_BYTES)
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 57 dcbz(addr);
5736f96d12dd42 arch/powerpc/include/asm/page_32.h Christophe Leroy 2016-02-09 58 }
5cd16ee934eafc include/asm-powerpc/page_32.h Michael Ellerman 2005-11-11 59 extern void copy_page(void *to, void *from);
5cd16ee934eafc include/asm-powerpc/page_32.h Michael Ellerman 2005-11-11 60
:::::: The code at line 54 was first introduced by commit
:::::: 7ab0b7cb8951d4095d73e203759b74d41916e455 powerpc/32: Add warning on misaligned copy_page() or clear_page()
:::::: TO: Christophe Leroy <christophe.leroy(a)c-s.fr>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months