[curro:for-edward 7/17] include/asm-generic/vmlinux.lds.h:299:9: warning: 'ACPI_PROBE_TABLE' macro redefined
by kernel test robot
tree: https://github.com/curro/linux for-edward
head: 9ba143107276ffb71f116efd181424c070805213
commit: b17127f75521e43cafb06f5e7c4bbf4b89a7080f [7/17] cpufreq: intel_pstate: Implement VLP controller statistics and target range calculation.
config: x86_64-randconfig-a005-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/curro/linux/commit/b17127f75521e43cafb06f5e7c4bbf4b89a...
git remote add curro https://github.com/curro/linux
git fetch --no-tags curro for-edward
git checkout b17127f75521e43cafb06f5e7c4bbf4b89a7080f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
In file included from drivers/cpufreq/intel_pstate.c:37:
In file included from drivers/cpufreq/../../kernel/sched/sched.h:70:
>> include/asm-generic/vmlinux.lds.h:299:9: warning: 'ACPI_PROBE_TABLE' macro redefined [-Wmacro-redefined]
#define ACPI_PROBE_TABLE(name) \
^
include/linux/acpi.h:1177:9: note: previous definition is here
#define ACPI_PROBE_TABLE(name) __##name##_acpi_probe_table
^
drivers/cpufreq/intel_pstate.c:90:23: warning: unused function 'percent_fp' [-Wunused-function]
static inline int32_t percent_fp(int percent)
^
drivers/cpufreq/intel_pstate.c:105:23: warning: unused function 'percent_ext_fp' [-Wunused-function]
static inline int32_t percent_ext_fp(int percent)
^
drivers/cpufreq/intel_pstate.c:2041:13: warning: unused function 'intel_pstate_reset_vlp' [-Wunused-function]
static void intel_pstate_reset_vlp(struct cpudata *cpu)
^
drivers/cpufreq/intel_pstate.c:2190:39: warning: unused function 'get_vlp_target_range' [-Wunused-function]
static const struct vlp_target_range *get_vlp_target_range(struct cpudata *cpu)
^
drivers/cpufreq/intel_pstate.c:2314:13: warning: unused function 'update_vlp_sample' [-Wunused-function]
static bool update_vlp_sample(struct cpudata *cpu, u64 time, unsigned int flags)
^
6 warnings generated.
vim +/ACPI_PROBE_TABLE +299 include/asm-generic/vmlinux.lds.h
6c3ff8b11a16ec6 Stephen Boyd 2013-10-30 297
e647b532275bb35 Marc Zyngier 2015-09-28 298 #ifdef CONFIG_ACPI
e647b532275bb35 Marc Zyngier 2015-09-28 @299 #define ACPI_PROBE_TABLE(name) \
e647b532275bb35 Marc Zyngier 2015-09-28 300 . = ALIGN(8); \
a62143850053332 Masahiro Yamada 2018-05-09 301 __##name##_acpi_probe_table = .; \
4b89b7f7aad5742 Nicholas Piggin 2016-11-24 302 KEEP(*(__##name##_acpi_probe_table)) \
a62143850053332 Masahiro Yamada 2018-05-09 303 __##name##_acpi_probe_table_end = .;
e647b532275bb35 Marc Zyngier 2015-09-28 304 #else
e647b532275bb35 Marc Zyngier 2015-09-28 305 #define ACPI_PROBE_TABLE(name)
e647b532275bb35 Marc Zyngier 2015-09-28 306 #endif
e647b532275bb35 Marc Zyngier 2015-09-28 307
:::::: The code at line 299 was first introduced by commit
:::::: e647b532275bb357e87272e052fccf5fcdb36a17 ACPI: Add early device probing infrastructure
:::::: TO: Marc Zyngier <Marc.Zyngier(a)arm.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
ERROR: modpost: "vchiq_mmal_port_set_format" undefined!
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 02de58b24d2e1b2cf947d57205bd2221d897193c
commit: b18ee53ad297264a79cf4ea566663f20786b6455 staging: bcm2835: Break MMAL support out from camera
date: 3 months ago
config: microblaze-randconfig-r014-20200930 (attached as .config)
compiler: microblaze-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/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 b18ee53ad297264a79cf4ea566663f20786b6455
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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 >>, old ones prefixed by <<):
>> ERROR: modpost: "vchiq_mmal_port_set_format" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_parameter_set" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_connect_tunnel" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_finalise" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_component_disable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "mmal_vchi_buffer_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_enable" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_version" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_submit_buffer" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_init" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "mmal_vchi_buffer_cleanup" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
>> ERROR: modpost: "vchiq_mmal_port_parameter_get" [drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: incorrect type in initializer (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 02de58b24d2e1b2cf947d57205bd2221d897193c
commit: 3bbd8ef9f780749426d4e52be0dfa3f70656d92b scsi: bfa: Staticify all local functions
date: 10 weeks ago
config: ia64-randconfig-s031-20200930 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
# 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 3bbd8ef9f780749426d4e52be0dfa3f70656d92b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] scan_flags @@ got restricted blist_flags_t @@
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: expected unsigned int [usertype] scan_flags
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: got restricted blist_flags_t
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: invalid assignment: |=
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: left side has type restricted blist_flags_t
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: invalid assignment: &=
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: left side has type restricted blist_flags_t
>> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] scan_flags @@ got restricted blist_flags_t @@
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: expected unsigned int [usertype] scan_flags
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: got restricted blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: invalid assignment: |=
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: left side has type restricted blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: invalid assignment: &=
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: left side has type restricted blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:1> *from @@ got void * @@
drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: expected void const [noderef] <asn:1> *from
>> drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: got void *
>> drivers/scsi/bfa/bfad_bsg.c:3412:37: sparse: sparse: Using plain integer as NULL pointer
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] <asn:1> *to @@ got void * @@
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: expected void [noderef] <asn:1> *to
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: got void *
vim +2551 drivers/scsi/bfa/bfad_bsg.c
c0350bf57445b9e Krishna Gudipati 2011-07-20 2542
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2543 /* Function to reset the LUN SCAN mode */
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2544 static void
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2545 bfad_iocmd_lunmask_reset_lunscan_mode(struct bfad_s *bfad, int lunmask_cfg)
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2546 {
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2547 struct bfad_im_port_s *pport_im = bfad->pport.im_port;
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2548 struct bfad_vport_s *vport = NULL;
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2549
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2550 /* Set the scsi device LUN SCAN flags for base port */
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 @2551 bfad_reset_sdev_bflags(pport_im, lunmask_cfg);
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2552
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2553 /* Set the scsi device LUN SCAN flags for the vports */
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2554 list_for_each_entry(vport, &bfad->vport_list, list_entry)
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2555 bfad_reset_sdev_bflags(vport->drv_port.im_port, lunmask_cfg);
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2556 }
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2557
:::::: The code at line 2551 was first introduced by commit
:::::: 5b7db7af522d9f281ff8bf540d2b5cbea2206b27 [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts.
:::::: TO: Krishna Gudipati <kgudipat(a)brocade.com>
:::::: CC: James Bottomley <JBottomley(a)Parallels.com>
---
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 3/3] rtc: rv3032: Add a driver for Microcrystal RV-3032
by kernel test robot
Hi Alexandre,
I love your patch! Perhaps something to improve:
[auto build test WARNING on abelloni/rtc-next]
[also build test WARNING on robh/for-next v5.9-rc7 next-20200929]
[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/Alexandre-Belloni/dt-bindings-rt...
base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
config: nds32-randconfig-r035-20200930 (attached as .config)
compiler: nds32le-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/038302bc860e9c8ecb37dad9fc74d823b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandre-Belloni/dt-bindings-rtc-add-trickle-voltage-mV/20200922-013149
git checkout 038302bc860e9c8ecb37dad9fc74d823bd57fdbe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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/rtc/rtc-rv3032.c: In function 'rv3032_trickle_charger_setup':
>> drivers/rtc/rtc-rv3032.c:485:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
485 | u32 val, ohms, voltage;
| ^~~
vim +/val +485 drivers/rtc/rtc-rv3032.c
482
483 static int rv3032_trickle_charger_setup(struct device *dev, struct rv3032_data *rv3032)
484 {
> 485 u32 val, ohms, voltage;
486 int i, ret;
487
488 val = FIELD_PREP(RV3032_PMU_TCM, 1) | FIELD_PREP(RV3032_PMU_BSM, RV3032_PMU_BSM_DSM);
489 if (!device_property_read_u32(dev, "trickle-voltage-mV", &voltage)) {
490 for (i = 0; i < ARRAY_SIZE(rv3032_trickle_voltages); i++)
491 if (voltage == rv3032_trickle_voltages[i])
492 break;
493 if (i < ARRAY_SIZE(rv3032_trickle_voltages))
494 val = FIELD_PREP(RV3032_PMU_TCM, i) |
495 FIELD_PREP(RV3032_PMU_BSM, RV3032_PMU_BSM_LSM);
496 }
497
498 if (!device_property_read_u32(dev, "trickle-resistor-ohms", &ohms)) {
499 for (i = 0; i < ARRAY_SIZE(rv3032_trickle_resistors); i++)
500 if (ohms == rv3032_trickle_resistors[i])
501 break;
502
503 if (i < ARRAY_SIZE(rv3032_trickle_resistors)) {
504 ret = regmap_update_bits(rv3032->regmap, RV3032_PMU,
505 RV3032_PMU_TCR | RV3032_PMU_TCM | RV3032_PMU_BSM,
506 FIELD_PREP(RV3032_PMU_TCR, i));
507 if (ret)
508 return ret;
509 } else {
510 dev_warn(dev, "invalid trickle resistor value\n");
511 }
512 }
513
514 return 0;
515 }
516
---
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 v6 07/10] thermal: qcom: add support for adc-tm5 PMIC thermal monitor
by kernel test robot
Hi Dmitry,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20200929]
[also build test ERROR on v5.9-rc7]
[cannot apply to iio/togreg robh/for-next linus/master agross-msm/qcom/for-next v5.9-rc7 v5.9-rc6 v5.9-rc5]
[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/Dmitry-Baryshkov/qcom-pm8150-add...
base: 49e7e3e905e437a02782019570f70997e2da9101
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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/c13f45be7731fe856b6baf1f65ebc7c5c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Baryshkov/qcom-pm8150-add-support-for-thermal-monitoring/20200930-180410
git checkout c13f45be7731fe856b6baf1f65ebc7c5cf6f5953
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/thermal/qcom/qcom-spmi-adc-tm5.c: In function 'adc_tm5_configure':
>> drivers/thermal/qcom/qcom-spmi-adc-tm5.c:296:12: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
296 | buf[6] |= FIELD_PREP(ADC_TM5_M_CTL_HW_SETTLE_DELAY_MASK, channel->hw_settle_time);
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +296 drivers/thermal/qcom/qcom-spmi-adc-tm5.c
250
251 static int adc_tm5_configure(struct adc_tm5_channel *channel, int low_temp, int high_temp)
252 {
253 struct adc_tm5_chip *chip = channel->chip;
254 u8 buf[8];
255 u16 reg = ADC_TM5_M_ADC_CH_SEL_CTL(channel->channel);
256 int ret = 0;
257
258 ret = adc_tm5_read(chip, reg, buf, sizeof(buf));
259 if (ret) {
260 dev_err(chip->dev, "block read failed with %d\n", ret);
261 return ret;
262 }
263
264 /* Update ADC channel select */
265 buf[0] = channel->adc_channel;
266
267 /* Warm temperature corresponds to low voltage threshold */
268 if (high_temp != INT_MAX) {
269 u16 adc_code = qcom_adc_tm5_temp_volt_scale(channel->prescale,
270 chip->data->full_scale_code_volt, high_temp);
271
272 buf[1] = adc_code & 0xff;
273 buf[2] = adc_code >> 8;
274 buf[7] |= ADC_TM5_M_LOW_THR_INT_EN;
275 } else {
276 buf[7] &= ~ADC_TM5_M_LOW_THR_INT_EN;
277 }
278
279 /* Cool temperature corresponds to high voltage threshold */
280 if (low_temp != -INT_MAX) {
281 u16 adc_code = qcom_adc_tm5_temp_volt_scale(channel->prescale,
282 chip->data->full_scale_code_volt, low_temp);
283
284 buf[3] = adc_code & 0xff;
285 buf[4] = adc_code >> 8;
286 buf[7] |= ADC_TM5_M_HIGH_THR_INT_EN;
287 } else {
288 buf[7] &= ~ADC_TM5_M_HIGH_THR_INT_EN;
289 }
290
291 /* Update timer select */
292 buf[5] = ADC5_TIMER_SEL_2;
293
294 /* Set calibration select, hw_settle delay */
295 buf[6] &= ~ADC_TM5_M_CTL_HW_SETTLE_DELAY_MASK;
> 296 buf[6] |= FIELD_PREP(ADC_TM5_M_CTL_HW_SETTLE_DELAY_MASK, channel->hw_settle_time);
297 buf[6] &= ~ADC_TM5_M_CTL_CAL_SEL_MASK;
298 buf[6] |= FIELD_PREP(ADC_TM5_M_CTL_CAL_SEL_MASK, channel->cal_method);
299
300 buf[7] |= ADC_TM5_M_MEAS_EN;
301
302 ret = adc_tm5_write(chip, reg, buf, sizeof(buf));
303 if (ret) {
304 dev_err(chip->dev, "buf write failed\n");
305 return ret;
306 }
307
308 return adc_tm5_enable(chip);
309 }
310
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-review:UPDATE-20200930-013350/Anmol-Karn/net-bluetooth-Fix-null-pointer-dereference-in-hci_event_packet/20200910-123605 1/1] net/bluetooth/hci_event.c:4938:3: error: void function 'hci_phy_link_complete_evt' should not return a value
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200930-013350/Anmol-Kar...
head: 25720ca76ab0618da4816346aac98b54cef759fd
commit: 25720ca76ab0618da4816346aac98b54cef759fd [1/1] net: bluetooth: Fix null pointer dereference in hci_event_packet()
config: x86_64-randconfig-r031-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/25720ca76ab0618da4816346aac98b54c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20200930-013350/Anmol-Karn/net-bluetooth-Fix-null-pointer-dereference-in-hci_event_packet/20200910-123605
git checkout 25720ca76ab0618da4816346aac98b54cef759fd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> net/bluetooth/hci_event.c:4938:3: error: void function 'hci_phy_link_complete_evt' should not return a value [-Wreturn-type]
return 0;
^ ~
1 error generated.
vim +/hci_phy_link_complete_evt +4938 net/bluetooth/hci_event.c
4918
4919 static void hci_phy_link_complete_evt(struct hci_dev *hdev,
4920 struct sk_buff *skb)
4921 {
4922 struct hci_ev_phy_link_complete *ev = (void *) skb->data;
4923 struct hci_conn *hcon, *bredr_hcon;
4924
4925 BT_DBG("%s handle 0x%2.2x status 0x%2.2x", hdev->name, ev->phy_handle,
4926 ev->status);
4927
4928 hci_dev_lock(hdev);
4929
4930 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle);
4931 if (!hcon) {
4932 hci_dev_unlock(hdev);
4933 return;
4934 }
4935
4936 if (!hcon->amp_mgr) {
4937 hci_dev_unlock(hdev);
> 4938 return 0;
4939 }
4940
4941 if (ev->status) {
4942 hci_conn_del(hcon);
4943 hci_dev_unlock(hdev);
4944 return;
4945 }
4946
4947 bredr_hcon = hcon->amp_mgr->l2cap_conn->hcon;
4948
4949 hcon->state = BT_CONNECTED;
4950 bacpy(&hcon->dst, &bredr_hcon->dst);
4951
4952 hci_conn_hold(hcon);
4953 hcon->disc_timeout = HCI_DISCONN_TIMEOUT;
4954 hci_conn_drop(hcon);
4955
4956 hci_debugfs_create_conn(hcon);
4957 hci_conn_add_sysfs(hcon);
4958
4959 amp_physical_cfm(bredr_hcon, hcon);
4960
4961 hci_dev_unlock(hdev);
4962 }
4963
---
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 v6 3/3] iio: adc: mt6360: Add ADC driver for MT6360
by kernel test robot
Hi Gene,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on iio/togreg]
[also build test ERROR on robh/for-next soc/for-next v5.9-rc7 next-20200929]
[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/Gene-Chen/iio-adc-mt6360-Add-ADC...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/c5eda86258a6e9fc21bae8a1e0cb3bc9f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gene-Chen/iio-adc-mt6360-Add-ADC-driver-for-MT6360/20200930-165619
git checkout c5eda86258a6e9fc21bae8a1e0cb3bc9f54ca87e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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/mt6360-adc.c:212:3: error: 'const struct iio_info' has no member named 'read_label'; did you mean 'read_raw'?
212 | .read_label = mt6360_adc_read_label,
| ^~~~~~~~~~
| read_raw
>> drivers/iio/adc/mt6360-adc.c:212:16: error: initialization of 'int (*)(struct iio_dev *, const struct iio_chan_spec *, int, int *, int *, long int)' from incompatible pointer type 'int (*)(struct iio_dev *, const struct iio_chan_spec *, char *)' [-Werror=incompatible-pointer-types]
212 | .read_label = mt6360_adc_read_label,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/mt6360-adc.c:212:16: note: (near initialization for 'mt6360_adc_iio_info.read_raw_multi')
cc1: some warnings being treated as errors
vim +212 drivers/iio/adc/mt6360-adc.c
209
210 static const struct iio_info mt6360_adc_iio_info = {
211 .read_raw = mt6360_adc_read_raw,
> 212 .read_label = mt6360_adc_read_label,
213 };
214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[radeon-alex:drm-next 182/207] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:558:6: warning: no previous prototype for 'amdgpu_virt_update_vf2pf_work_item'
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git drm-next
head: 1ebf4588bcd8d58d1f3c3d38e360ad068b791634
commit: 519b8b76f0b62a0be0d9fcee39819d2461fc3cb0 [182/207] drm/amdgpu: Implement new guest side VF2PF message transaction (v2)
config: microblaze-randconfig-r034-20200930 (attached as .config)
compiler: microblaze-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
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next
git checkout 519b8b76f0b62a0be0d9fcee39819d2461fc3cb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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/amd/amdgpu/amdgpu_virt.c:558:6: warning: no previous prototype for 'amdgpu_virt_update_vf2pf_work_item' [-Wmissing-prototypes]
558 | void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
197 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
196 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
195 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:67,
from drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
vim +/amdgpu_virt_update_vf2pf_work_item +558 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
557
> 558 void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
559 {
560 struct amdgpu_device *adev = container_of(work, struct amdgpu_device, virt.vf2pf_work.work);
561
562 amdgpu_virt_read_pf2vf_data(adev);
563 amdgpu_virt_write_vf2pf_data(adev);
564
565 schedule_delayed_work(&(adev->virt.vf2pf_work), adev->virt.vf2pf_update_interval_ms);
566 }
567
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months