[xilinx-xlnx:xlnx_rebase_v5.15 778/924] include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_427' declared with attribute error: FIELD_PREP: mask is not constant
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 66bb31d008b55b6ae2ca9e41f7a4ff21816dded3
commit: 1606e76a608339cc67dfd9b03542976482b90805 [778/924] v4l: xilinx: Driver support for Xilinx DP Rx subsystem
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202151614.84IOzHYZ-lk...)
compiler: mips-linux-gcc (GCC) 11.2.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/Xilinx/linux-xlnx/commit/1606e76a608339cc67dfd9b035429...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout 1606e76a608339cc67dfd9b03542976482b90805
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash
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 >>):
In file included from <command-line>:
drivers/media/platform/xilinx/xilinx-dprxss.c: In function 'xdprxss_clrset.constprop':
>> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_427' declared with attribute error: FIELD_PREP: mask is not constant
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert'
303 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:46:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
46 | BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:17: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/media/platform/xilinx/xilinx-dprxss.c:521:19: note: in expansion of macro 'FIELD_PREP'
521 | regval |= FIELD_PREP(clr_mask, set_data);
| ^~~~~~~~~~
>> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_431' declared with attribute error: BUILD_BUG_ON failed: (((clr_mask) + (1ULL << (__builtin_ffsll(clr_mask) - 1))) & (((clr_mask) + (1ULL << (__builtin_ffsll(clr_mask) - 1))) - 1)) != 0
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert'
303 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
322 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/linux/build_bug.h:21:9: note: in expansion of macro 'BUILD_BUG_ON'
21 | BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~
include/linux/bitfield.h:54:17: note: in expansion of macro '__BUILD_BUG_ON_NOT_POWER_OF_2'
54 | __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) + \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:17: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
| ^~~~~~~~~~~~~~~~
drivers/media/platform/xilinx/xilinx-dprxss.c:521:19: note: in expansion of macro 'FIELD_PREP'
521 | regval |= FIELD_PREP(clr_mask, set_data);
| ^~~~~~~~~~
vim +/__compiletime_assert_427 +322 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @322 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 323
:::::: The code at line 322 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [RFC PATCH 3/4] NTB: EPF: support NTB transfer between PCI RC and EP connection
by kernel test robot
Hi Frank,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on jonmason-ntb/ntb-next v5.17-rc4 next-20220214]
[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/Frank-Li/NTB-function-for-PCIe-R...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202151535.839zuzcU-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.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/84bf6254010435435a8c196e30bb2d25f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Frank-Li/NTB-function-for-PCIe-RC-to-EP-connection/20220215-134115
git checkout 84bf6254010435435a8c196e30bb2d25fd22763c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/pci/endpoint/functions/
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/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous prototype for 'pci_read' [-Wmissing-prototypes]
975 | int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
| ^~~~~~~~
>> drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous prototype for 'pci_write' [-Wmissing-prototypes]
984 | int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
| ^~~~~~~~~
vim +/pci_read +975 drivers/pci/endpoint/functions/pci-epf-vntb.c
974
> 975 int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
976 {
977 if (devfn == 0) {
978 memcpy(val, ((uint8_t *)pci_space) + where, size);
979 return 0;
980 }
981 return -1;
982 }
983
> 984 int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val)
985 {
986 return 0;
987 }
988
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH 3/8] sched: Move rt_period/runtime sysctls to rt.c
by kernel test robot
Hi Zhen,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/sched/core]
[also build test ERROR on linus/master kees/for-next/pstore v5.17-rc4]
[cannot apply to next-20220214]
[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/Zhen-Ni/sched-Move-a-series-of-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3624ba7b5e2acc02b01301ea5fd3534971eb9896
config: parisc-randconfig-r023-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151509.TszSxsaB-lk...)
compiler: hppa-linux-gcc (GCC) 11.2.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/f93266963b3b3629980fa3384a5e37fd1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zhen-Ni/sched-Move-a-series-of-sysctls-starting-with-sys-kernel-sched_/20220215-132416
git checkout f93266963b3b3629980fa3384a5e37fd13f4c350
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash kernel/rcu/
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 >>):
kernel/rcu/rcutorture.c: In function 'rcu_torture_disable_rt_throttle':
>> kernel/rcu/rcutorture.c:921:26: error: 'sysctl_sched_rt_runtime' undeclared (first use in this function); did you mean 'sysctl_sched_rr_timeslice'?
921 | old_rt_runtime = sysctl_sched_rt_runtime;
| ^~~~~~~~~~~~~~~~~~~~~~~
| sysctl_sched_rr_timeslice
kernel/rcu/rcutorture.c:921:26: note: each undeclared identifier is reported only once for each function it appears in
kernel/rcu/rcutorture.c: In function 'rcu_torture_enable_rt_throttle':
kernel/rcu/rcutorture.c:930:9: error: 'sysctl_sched_rt_runtime' undeclared (first use in this function); did you mean 'sysctl_sched_rr_timeslice'?
930 | sysctl_sched_rt_runtime = old_rt_runtime;
| ^~~~~~~~~~~~~~~~~~~~~~~
| sysctl_sched_rr_timeslice
vim +921 kernel/rcu/rcutorture.c
450efca7182a51 Joel Fernandes (Google 2018-06-10 909)
450efca7182a51 Joel Fernandes (Google 2018-06-10 910) static void rcu_torture_disable_rt_throttle(void)
450efca7182a51 Joel Fernandes (Google 2018-06-10 911) {
450efca7182a51 Joel Fernandes (Google 2018-06-10 912) /*
450efca7182a51 Joel Fernandes (Google 2018-06-10 913) * Disable RT throttling so that rcutorture's boost threads don't get
450efca7182a51 Joel Fernandes (Google 2018-06-10 914) * throttled. Only possible if rcutorture is built-in otherwise the
450efca7182a51 Joel Fernandes (Google 2018-06-10 915) * user should manually do this by setting the sched_rt_period_us and
450efca7182a51 Joel Fernandes (Google 2018-06-10 916) * sched_rt_runtime sysctls.
450efca7182a51 Joel Fernandes (Google 2018-06-10 917) */
450efca7182a51 Joel Fernandes (Google 2018-06-10 918) if (!IS_BUILTIN(CONFIG_RCU_TORTURE_TEST) || old_rt_runtime != -1)
450efca7182a51 Joel Fernandes (Google 2018-06-10 919) return;
450efca7182a51 Joel Fernandes (Google 2018-06-10 920)
450efca7182a51 Joel Fernandes (Google 2018-06-10 @921) old_rt_runtime = sysctl_sched_rt_runtime;
450efca7182a51 Joel Fernandes (Google 2018-06-10 922) sysctl_sched_rt_runtime = -1;
450efca7182a51 Joel Fernandes (Google 2018-06-10 923) }
450efca7182a51 Joel Fernandes (Google 2018-06-10 924)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
drivers/iio/adc/da9150-gpadc.c:281:2: error: use of undeclared identifier 'DA9150_GPADC_CHAN_0x08'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d567f5db412ed52de0b3b3efca4a451263de6108
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date: 1 year, 5 months ago
config: mips-buildonly-randconfig-r005-20220215 (https://download.01.org/0day-ci/archive/20220215/202202151553.WMyhY9PJ-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/iio/adc/
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/iio/adc/da9150-gpadc.c:281:2: error: use of undeclared identifier 'DA9150_GPADC_CHAN_0x08'
DA9150_GPADC_CHANNEL_PROCESSED(GPIOD, GPIOD_6V, IIO_VOLTAGE, NULL),
^
drivers/iio/adc/da9150-gpadc.c:273:2: note: expanded from macro 'DA9150_GPADC_CHANNEL_PROCESSED'
DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
^
drivers/iio/adc/da9150-gpadc.c:254:13: note: expanded from macro 'DA9150_GPADC_CHANNEL'
.channel = DA9150_GPADC_CHAN_##_id, \
^
<scratch space>:144:1: note: expanded from here
DA9150_GPADC_CHAN_0x08
^
>> drivers/iio/adc/da9150-gpadc.c:360:28: error: invalid application of 'sizeof' to an incomplete type 'const struct iio_chan_spec[]'
indio_dev->num_channels = ARRAY_SIZE(da9150_gpadc_channels);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
2 errors generated.
vim +/DA9150_GPADC_CHAN_0x08 +281 drivers/iio/adc/da9150-gpadc.c
ed5f07b3d3d434 Adam Thomson 2015-02-18 260
ed5f07b3d3d434 Adam Thomson 2015-02-18 261 #define DA9150_GPADC_CHANNEL_RAW(_id, _hw_id, _type, _ext_name) \
ed5f07b3d3d434 Adam Thomson 2015-02-18 262 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
ed5f07b3d3d434 Adam Thomson 2015-02-18 263 BIT(IIO_CHAN_INFO_RAW), _ext_name)
ed5f07b3d3d434 Adam Thomson 2015-02-18 264
ed5f07b3d3d434 Adam Thomson 2015-02-18 265 #define DA9150_GPADC_CHANNEL_SCALED(_id, _hw_id, _type, _ext_name) \
ed5f07b3d3d434 Adam Thomson 2015-02-18 266 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
ed5f07b3d3d434 Adam Thomson 2015-02-18 267 BIT(IIO_CHAN_INFO_RAW) | \
ed5f07b3d3d434 Adam Thomson 2015-02-18 268 BIT(IIO_CHAN_INFO_SCALE) | \
ed5f07b3d3d434 Adam Thomson 2015-02-18 269 BIT(IIO_CHAN_INFO_OFFSET), \
ed5f07b3d3d434 Adam Thomson 2015-02-18 270 _ext_name)
ed5f07b3d3d434 Adam Thomson 2015-02-18 271
ed5f07b3d3d434 Adam Thomson 2015-02-18 272 #define DA9150_GPADC_CHANNEL_PROCESSED(_id, _hw_id, _type, _ext_name) \
ed5f07b3d3d434 Adam Thomson 2015-02-18 @273 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
ed5f07b3d3d434 Adam Thomson 2015-02-18 274 BIT(IIO_CHAN_INFO_PROCESSED), _ext_name)
ed5f07b3d3d434 Adam Thomson 2015-02-18 275
ed5f07b3d3d434 Adam Thomson 2015-02-18 276 /* Supported channels */
ed5f07b3d3d434 Adam Thomson 2015-02-18 277 static const struct iio_chan_spec da9150_gpadc_channels[] = {
ed5f07b3d3d434 Adam Thomson 2015-02-18 278 DA9150_GPADC_CHANNEL_PROCESSED(GPIOA, GPIOA_6V, IIO_VOLTAGE, NULL),
ed5f07b3d3d434 Adam Thomson 2015-02-18 279 DA9150_GPADC_CHANNEL_PROCESSED(GPIOB, GPIOB_6V, IIO_VOLTAGE, NULL),
ed5f07b3d3d434 Adam Thomson 2015-02-18 280 DA9150_GPADC_CHANNEL_PROCESSED(GPIOC, GPIOC_6V, IIO_VOLTAGE, NULL),
ed5f07b3d3d434 Adam Thomson 2015-02-18 @281 DA9150_GPADC_CHANNEL_PROCESSED(GPIOD, GPIOD_6V, IIO_VOLTAGE, NULL),
ed5f07b3d3d434 Adam Thomson 2015-02-18 282 DA9150_GPADC_CHANNEL_PROCESSED(IBUS, IBUS_SENSE, IIO_CURRENT, "ibus"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 283 DA9150_GPADC_CHANNEL_PROCESSED(VBUS, VBUS_DIV_, IIO_VOLTAGE, "vbus"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 284 DA9150_GPADC_CHANNEL_PROCESSED(VSYS, VSYS, IIO_VOLTAGE, "vsys"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 285 DA9150_GPADC_CHANNEL_SCALED(VBAT, VBAT, IIO_VOLTAGE, "vbat"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 286 DA9150_GPADC_CHANNEL_RAW(TBAT, TBAT, IIO_VOLTAGE, "tbat"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 287 DA9150_GPADC_CHANNEL_SCALED(TJUNC_CORE, TJUNC_CORE, IIO_TEMP,
ed5f07b3d3d434 Adam Thomson 2015-02-18 288 "tjunc_core"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 289 DA9150_GPADC_CHANNEL_SCALED(TJUNC_OVP, TJUNC_OVP, IIO_TEMP,
ed5f07b3d3d434 Adam Thomson 2015-02-18 290 "tjunc_ovp"),
ed5f07b3d3d434 Adam Thomson 2015-02-18 291 };
ed5f07b3d3d434 Adam Thomson 2015-02-18 292
ed5f07b3d3d434 Adam Thomson 2015-02-18 293 /* Default maps used by da9150-charger */
ed5f07b3d3d434 Adam Thomson 2015-02-18 294 static struct iio_map da9150_gpadc_default_maps[] = {
ed5f07b3d3d434 Adam Thomson 2015-02-18 295 {
ed5f07b3d3d434 Adam Thomson 2015-02-18 296 .consumer_dev_name = "da9150-charger",
ed5f07b3d3d434 Adam Thomson 2015-02-18 297 .consumer_channel = "CHAN_IBUS",
ed5f07b3d3d434 Adam Thomson 2015-02-18 298 .adc_channel_label = "IBUS",
ed5f07b3d3d434 Adam Thomson 2015-02-18 299 },
ed5f07b3d3d434 Adam Thomson 2015-02-18 300 {
ed5f07b3d3d434 Adam Thomson 2015-02-18 301 .consumer_dev_name = "da9150-charger",
ed5f07b3d3d434 Adam Thomson 2015-02-18 302 .consumer_channel = "CHAN_VBUS",
ed5f07b3d3d434 Adam Thomson 2015-02-18 303 .adc_channel_label = "VBUS",
ed5f07b3d3d434 Adam Thomson 2015-02-18 304 },
ed5f07b3d3d434 Adam Thomson 2015-02-18 305 {
ed5f07b3d3d434 Adam Thomson 2015-02-18 306 .consumer_dev_name = "da9150-charger",
ed5f07b3d3d434 Adam Thomson 2015-02-18 307 .consumer_channel = "CHAN_TJUNC",
ed5f07b3d3d434 Adam Thomson 2015-02-18 308 .adc_channel_label = "TJUNC_CORE",
ed5f07b3d3d434 Adam Thomson 2015-02-18 309 },
ed5f07b3d3d434 Adam Thomson 2015-02-18 310 {
ed5f07b3d3d434 Adam Thomson 2015-02-18 311 .consumer_dev_name = "da9150-charger",
ed5f07b3d3d434 Adam Thomson 2015-02-18 312 .consumer_channel = "CHAN_VBAT",
ed5f07b3d3d434 Adam Thomson 2015-02-18 313 .adc_channel_label = "VBAT",
ed5f07b3d3d434 Adam Thomson 2015-02-18 314 },
ed5f07b3d3d434 Adam Thomson 2015-02-18 315 {},
ed5f07b3d3d434 Adam Thomson 2015-02-18 316 };
ed5f07b3d3d434 Adam Thomson 2015-02-18 317
ed5f07b3d3d434 Adam Thomson 2015-02-18 318 static int da9150_gpadc_probe(struct platform_device *pdev)
ed5f07b3d3d434 Adam Thomson 2015-02-18 319 {
ed5f07b3d3d434 Adam Thomson 2015-02-18 320 struct device *dev = &pdev->dev;
ed5f07b3d3d434 Adam Thomson 2015-02-18 321 struct da9150 *da9150 = dev_get_drvdata(dev->parent);
ed5f07b3d3d434 Adam Thomson 2015-02-18 322 struct da9150_gpadc *gpadc;
ed5f07b3d3d434 Adam Thomson 2015-02-18 323 struct iio_dev *indio_dev;
ed5f07b3d3d434 Adam Thomson 2015-02-18 324 int irq, ret;
ed5f07b3d3d434 Adam Thomson 2015-02-18 325
ed5f07b3d3d434 Adam Thomson 2015-02-18 326 indio_dev = devm_iio_device_alloc(dev, sizeof(*gpadc));
ed5f07b3d3d434 Adam Thomson 2015-02-18 327 if (!indio_dev) {
ed5f07b3d3d434 Adam Thomson 2015-02-18 328 dev_err(&pdev->dev, "Failed to allocate IIO device\n");
ed5f07b3d3d434 Adam Thomson 2015-02-18 329 return -ENOMEM;
ed5f07b3d3d434 Adam Thomson 2015-02-18 330 }
ed5f07b3d3d434 Adam Thomson 2015-02-18 331 gpadc = iio_priv(indio_dev);
ed5f07b3d3d434 Adam Thomson 2015-02-18 332
ed5f07b3d3d434 Adam Thomson 2015-02-18 333 platform_set_drvdata(pdev, indio_dev);
ed5f07b3d3d434 Adam Thomson 2015-02-18 334 gpadc->da9150 = da9150;
ed5f07b3d3d434 Adam Thomson 2015-02-18 335 gpadc->dev = dev;
ed5f07b3d3d434 Adam Thomson 2015-02-18 336 mutex_init(&gpadc->lock);
ed5f07b3d3d434 Adam Thomson 2015-02-18 337 init_completion(&gpadc->complete);
ed5f07b3d3d434 Adam Thomson 2015-02-18 338
ed5f07b3d3d434 Adam Thomson 2015-02-18 339 irq = platform_get_irq_byname(pdev, "GPADC");
7c279229f980e5 Stephen Boyd 2019-07-30 340 if (irq < 0)
ed5f07b3d3d434 Adam Thomson 2015-02-18 341 return irq;
ed5f07b3d3d434 Adam Thomson 2015-02-18 342
ed5f07b3d3d434 Adam Thomson 2015-02-18 343 ret = devm_request_threaded_irq(dev, irq, NULL, da9150_gpadc_irq,
ed5f07b3d3d434 Adam Thomson 2015-02-18 344 IRQF_ONESHOT, "GPADC", gpadc);
ed5f07b3d3d434 Adam Thomson 2015-02-18 345 if (ret) {
ed5f07b3d3d434 Adam Thomson 2015-02-18 346 dev_err(dev, "Failed to request IRQ %d: %d\n", irq, ret);
ed5f07b3d3d434 Adam Thomson 2015-02-18 347 return ret;
ed5f07b3d3d434 Adam Thomson 2015-02-18 348 }
ed5f07b3d3d434 Adam Thomson 2015-02-18 349
ed5f07b3d3d434 Adam Thomson 2015-02-18 350 ret = iio_map_array_register(indio_dev, da9150_gpadc_default_maps);
ed5f07b3d3d434 Adam Thomson 2015-02-18 351 if (ret) {
ed5f07b3d3d434 Adam Thomson 2015-02-18 352 dev_err(dev, "Failed to register IIO maps: %d\n", ret);
ed5f07b3d3d434 Adam Thomson 2015-02-18 353 return ret;
ed5f07b3d3d434 Adam Thomson 2015-02-18 354 }
ed5f07b3d3d434 Adam Thomson 2015-02-18 355
ed5f07b3d3d434 Adam Thomson 2015-02-18 356 indio_dev->name = dev_name(dev);
ed5f07b3d3d434 Adam Thomson 2015-02-18 357 indio_dev->info = &da9150_gpadc_info;
ed5f07b3d3d434 Adam Thomson 2015-02-18 358 indio_dev->modes = INDIO_DIRECT_MODE;
ed5f07b3d3d434 Adam Thomson 2015-02-18 359 indio_dev->channels = da9150_gpadc_channels;
ed5f07b3d3d434 Adam Thomson 2015-02-18 @360 indio_dev->num_channels = ARRAY_SIZE(da9150_gpadc_channels);
ed5f07b3d3d434 Adam Thomson 2015-02-18 361
ed5f07b3d3d434 Adam Thomson 2015-02-18 362 ret = iio_device_register(indio_dev);
ed5f07b3d3d434 Adam Thomson 2015-02-18 363 if (ret) {
ed5f07b3d3d434 Adam Thomson 2015-02-18 364 dev_err(dev, "Failed to register IIO device: %d\n", ret);
ed5f07b3d3d434 Adam Thomson 2015-02-18 365 goto iio_map_unreg;
ed5f07b3d3d434 Adam Thomson 2015-02-18 366 }
ed5f07b3d3d434 Adam Thomson 2015-02-18 367
ed5f07b3d3d434 Adam Thomson 2015-02-18 368 return 0;
ed5f07b3d3d434 Adam Thomson 2015-02-18 369
ed5f07b3d3d434 Adam Thomson 2015-02-18 370 iio_map_unreg:
ed5f07b3d3d434 Adam Thomson 2015-02-18 371 iio_map_array_unregister(indio_dev);
ed5f07b3d3d434 Adam Thomson 2015-02-18 372
ed5f07b3d3d434 Adam Thomson 2015-02-18 373 return ret;
ed5f07b3d3d434 Adam Thomson 2015-02-18 374 }
ed5f07b3d3d434 Adam Thomson 2015-02-18 375
:::::: The code at line 281 was first introduced by commit
:::::: ed5f07b3d3d4344f917658a7f62cf62ccb19cb07 iio: Add support for DA9150 GPADC
:::::: TO: Adam Thomson <Adam.Thomson.Opensource(a)diasemi.com>
:::::: CC: Sebastian Reichel <sre(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH v2 2/2] drm/msm/dpu: Add SC8180x to hw catalog
by kernel test robot
Hi Bjorn,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm/drm-next]
[also build test WARNING on v5.17-rc4 next-20220214]
[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/Bjorn-Andersson/drm-msm-dpu-Add-...
base: git://anongit.freedesktop.org/drm/drm drm-next
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202151520.viearqHY-lk...)
compiler: mips-linux-gcc (GCC) 11.2.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/2ad34ad9a2871f13cf0948eecc12d7faa...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bjorn-Andersson/drm-msm-dpu-Add-INTF_5-interrupts/20220215-123310
git checkout 2ad34ad9a2871f13cf0948eecc12d7faabcee788
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/msm/
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/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1124:46: warning: excess elements in array initializer
1124 | .danger_lut_tbl = {0xf, 0xffff, 0x0, 0x0},
| ^~~
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1124:46: note: (near initialization for 'sc8180x_perf_data.danger_lut_tbl')
vim +1124 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
1117
1118 static const struct dpu_perf_cfg sc8180x_perf_data = {
1119 .max_bw_low = 9600000,
1120 .max_bw_high = 9600000,
1121 .min_core_ib = 2400000,
1122 .min_llcc_ib = 800000,
1123 .min_dram_ib = 800000,
> 1124 .danger_lut_tbl = {0xf, 0xffff, 0x0, 0x0},
1125 .qos_lut_tbl = {
1126 {.nentry = ARRAY_SIZE(sc8180x_qos_linear),
1127 .entries = sc8180x_qos_linear
1128 },
1129 {.nentry = ARRAY_SIZE(sc8180x_qos_macrotile),
1130 .entries = sc8180x_qos_macrotile
1131 },
1132 {.nentry = ARRAY_SIZE(sc7180_qos_nrt),
1133 .entries = sc7180_qos_nrt
1134 },
1135 /* TODO: macrotile-qseed is different from macrotile */
1136 },
1137 .cdp_cfg = {
1138 {.rd_enable = 1, .wr_enable = 1},
1139 {.rd_enable = 1, .wr_enable = 0}
1140 },
1141 .clk_inefficiency_factor = 105,
1142 .bw_inefficiency_factor = 120,
1143 };
1144
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week