Re: [PATCH 2/2] scsi: target: iblock: Report space allocation errors
by kernel test robot
Hi Konstantin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on v5.16-rc2 next-20211123]
[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/Konstantin-Shelekhin/scsi-target...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: i386-randconfig-s001-20211021 (https://download.01.org/0day-ci/archive/20211123/202111232117.VwHDjjtU-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/15d4d8f9601b04ee21f8f6042481828c4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Konstantin-Shelekhin/scsi-target-iblock-Report-space-allocation-errors/20211021-024526
git checkout 15d4d8f9601b04ee21f8f6042481828c4c34f6b7
# save the config file to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/target/target_core_iblock.c:329:57: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted blk_status_t [usertype] status @@ got int @@
drivers/target/target_core_iblock.c:329:57: sparse: expected restricted blk_status_t [usertype] status
drivers/target/target_core_iblock.c:329:57: sparse: got int
>> drivers/target/target_core_iblock.c:351:61: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected int new @@ got restricted blk_status_t [usertype] bi_status @@
drivers/target/target_core_iblock.c:351:61: sparse: expected int new
drivers/target/target_core_iblock.c:351:61: sparse: got restricted blk_status_t [usertype] bi_status
vim +329 drivers/target/target_core_iblock.c
319
320 static void iblock_complete_cmd(struct se_cmd *cmd)
321 {
322 struct iblock_req *ibr = cmd->priv;
323 u8 status;
324 sense_reason_t reason;
325
326 if (!refcount_dec_and_test(&ibr->pending))
327 return;
328
> 329 reason = iblock_blk_status_to_reason(atomic_read(&ibr->status));
330
331 if (reason != TCM_NO_SENSE)
332 status = SAM_STAT_CHECK_CONDITION;
333 else
334 status = SAM_STAT_GOOD;
335
336 target_complete_cmd_with_sense(cmd, status, reason);
337 kfree(ibr);
338 }
339
340 static void iblock_bio_done(struct bio *bio)
341 {
342 struct se_cmd *cmd = bio->bi_private;
343 struct iblock_req *ibr = cmd->priv;
344
345 if (bio->bi_status) {
346 pr_err("bio error: %p, err: %d\n", bio, bio->bi_status);
347 /*
348 * Set the error status of the iblock request to the error
349 * status of the first failed bio.
350 */
> 351 atomic_cmpxchg(&ibr->status, BLK_STS_OK, bio->bi_status);
352 smp_mb__after_atomic();
353 }
354
355 bio_put(bio);
356
357 iblock_complete_cmd(cmd);
358 }
359
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[groeck-staging:watchdog-next 11/23] drivers/watchdog/s3c2410_wdt.c:94: warning: expecting prototype for Quirk flags for different Samsung watchdog IP(). Prototype was for QUIRK_HAS_WTCLRINT_REG() instead
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next
head: 5c9a4cc5516e30ac2e0586e315e0806ae766321b
commit: 10748806ee44ad974d7ccd84c682222213b53e69 [11/23] watchdog: s3c2410: Cleanup PMU related code
config: arc-randconfig-r015-20211117 (https://download.01.org/0day-ci/archive/20211123/202111232037.iwzPIkeS-lk...)
compiler: arc-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://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/...
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging watchdog-next
git checkout 10748806ee44ad974d7ccd84c682222213b53e69
# 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/watchdog/
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/watchdog/s3c2410_wdt.c:94: warning: expecting prototype for Quirk flags for different Samsung watchdog IP(). Prototype was for QUIRK_HAS_WTCLRINT_REG() instead
vim +94 drivers/watchdog/s3c2410_wdt.c
59
60 /**
61 * Quirk flags for different Samsung watchdog IP-cores.
62 *
63 * This driver supports multiple Samsung SoCs, each of which might have
64 * different set of registers and features supported. As watchdog block
65 * sometimes requires modifying PMU registers for proper functioning, register
66 * differences in both watchdog and PMU IP-cores should be accounted for. Quirk
67 * flags described below serve the purpose of telling the driver about mentioned
68 * SoC traits, and can be specified in driver data for each particular supported
69 * device.
70 *
71 * %QUIRK_HAS_WTCLRINT_REG: Watchdog block has WTCLRINT register. It's used to
72 * clear the interrupt once the interrupt service routine is complete. It's
73 * write-only, writing any values to this register clears the interrupt, but
74 * reading is not permitted.
75 *
76 * %QUIRK_HAS_PMU_MASK_RESET: PMU block has the register for disabling/enabling
77 * WDT reset request. On old SoCs it's usually called MASK_WDT_RESET_REQUEST,
78 * new SoCs have CLUSTERx_NONCPU_INT_EN register, which 'mask_bit' value is
79 * inverted compared to the former one.
80 *
81 * %QUIRK_HAS_PMU_RST_STAT: PMU block has RST_STAT (reset status) register,
82 * which contains bits indicating the reason for most recent CPU reset. If
83 * present, driver will use this register to check if previous reboot was due to
84 * watchdog timer reset.
85 *
86 * %QUIRK_HAS_PMU_AUTO_DISABLE: PMU block has AUTOMATIC_WDT_RESET_DISABLE
87 * register. If 'mask_bit' bit is set, PMU will disable WDT reset when
88 * corresponding processor is in reset state.
89 *
90 * %QUIRK_HAS_PMU_CNT_EN: PMU block has some register (e.g. CLUSTERx_NONCPU_OUT)
91 * with "watchdog counter enable" bit. That bit should be set to make watchdog
92 * counter running.
93 */
> 94 #define QUIRK_HAS_WTCLRINT_REG (1 << 0)
95 #define QUIRK_HAS_PMU_MASK_RESET (1 << 1)
96 #define QUIRK_HAS_PMU_RST_STAT (1 << 2)
97 #define QUIRK_HAS_PMU_AUTO_DISABLE (1 << 3)
98 #define QUIRK_HAS_PMU_CNT_EN (1 << 4)
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Consulta muy urgente
by FOESCO
Buenos días
Soy Alex Pons, director de FOESCO (Formación Estatal Continua).
Nos ponemos en contacto con vosotros para informamos acerca de la última convocatoria de Cursos 100% Bonificables disponibles para empleados.
El plazo límite para poder solicitarlos finaliza el próximo VIERNES 25, pasada esta fecha no podrán tramitarse formaciones con cargo al Crédito de Formación 2021.
Precisáis recibir el listado de cursos disponibles?
Quedamos a la espera de vuestra respuesta.
Saludos cordiales.
Alex Pons
Director FOESCO
Equipo FOESCO (Formación Estatal Continua).
Entidad Organizadora: B200592AA
Tel: 910 323 794
(Horario de 9h a 15h y de 17h a 20h de Lunes a Viernes)
FOESCO ofrece formación a empresas y trabajadores en activo a través de cursos bonificados por la Fundación Estatal para la Formación en el Empleo (antiguo FORCEM) que gestiona las acciones formativas de FORMACIÓN CONTINUA para trabajadores y se rige por la ley 30/2015 de 9 de Septiembre.
Antes de imprimir este e-mail piense bien si es necesario hacerlo. La información transmitida en este mensaje está dirigida solamente a las personas o entidades que figuran en el encabezamiento y contiene información confidencial, por lo que, si usted lo recibiera por error, por favor destrúyalo sin copiarlo, usarlo ni distribuirlo, comunicándolo inmediatamente al emisor del mensaje. De conformidad con lo dispuesto en el Reglamento Europeo del 2016/679, del 27 de Abril de 2016, FOESCO le informa que los datos por usted suministrados serán tratados con las medidas de seguridad conformes a la normativa vigente que se requiere. Dichos datos serán empleados con fines de gestión. Para el ejercicio de sus derechos de transparencia, información, acceso, rectificación, supresión o derecho al olvido, limitación del tratamiento , portabilidad de datos y oposición de sus datos de carácter personal deberá dirigirse a la dirección del Responsable del tratamiento a C/ LAGUNA DEL MARQUESADO Nº10, 28021, MADRID, "PULSANDO AQUI" <mailto:bajas@foesco.com?Subject=BAJA%20CORREOS> y "ENVIAR".
10 months
Re: [PATCH v2 3/5] uaccess-buffer: add CONFIG_GENERIC_ENTRY support
by kernel test robot
Hi Peter,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/sched/core]
[also build test WARNING on bpf-next/master bpf/master linus/master v5.16-rc2]
[cannot apply to arm64/for-next/core arm-perf/for-next/perf tip/core/entry next-20211123]
[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/Peter-Collingbourne/kernel-intro...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git cb0e52b7748737b2cf6481fdd9b920ce7e1ebbdf
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20211123/202111231840.JTkqlqKw-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/7cd6f102201f3ea35eea1b990f7543e89...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Peter-Collingbourne/kernel-introduce-uaccess-logging/20211123-131922
git checkout 7cd6f102201f3ea35eea1b990f7543e890b7fdbb
# save the config file 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 warnings (new ones prefixed by >>):
kernel/uaccess-buffer.c: In function '__uaccess_buffer_syscall_entry':
>> kernel/uaccess-buffer.c:105:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
105 | buf->ubegin = (struct uaccess_buffer_entry __user *)desc.addr;
| ^
kernel/uaccess-buffer.c: In function '__uaccess_buffer_syscall_exit':
>> kernel/uaccess-buffer.c:117:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
117 | desc.addr = (u64)(buf->ubegin + num_entries);
| ^
>> kernel/uaccess-buffer.c:122:9: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result [-Wunused-result]
122 | (void)copy_to_user(buf->desc_ptr, &desc, sizeof(desc));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +105 kernel/uaccess-buffer.c
e050ed271bb000 Peter Collingbourne 2021-11-22 87
e050ed271bb000 Peter Collingbourne 2021-11-22 88 void __uaccess_buffer_syscall_entry(void)
e050ed271bb000 Peter Collingbourne 2021-11-22 89 {
e050ed271bb000 Peter Collingbourne 2021-11-22 90 struct uaccess_buffer_info *buf = ¤t->uaccess_buffer;
e050ed271bb000 Peter Collingbourne 2021-11-22 91 struct uaccess_descriptor desc;
e050ed271bb000 Peter Collingbourne 2021-11-22 92
e050ed271bb000 Peter Collingbourne 2021-11-22 93 if (get_user(buf->desc_ptr, buf->desc_ptr_ptr) || !buf->desc_ptr ||
e050ed271bb000 Peter Collingbourne 2021-11-22 94 put_user(0, buf->desc_ptr_ptr) ||
e050ed271bb000 Peter Collingbourne 2021-11-22 95 copy_from_user(&desc, buf->desc_ptr, sizeof(desc)))
e050ed271bb000 Peter Collingbourne 2021-11-22 96 return;
e050ed271bb000 Peter Collingbourne 2021-11-22 97
e050ed271bb000 Peter Collingbourne 2021-11-22 98 if (desc.size > 1024)
e050ed271bb000 Peter Collingbourne 2021-11-22 99 desc.size = 1024;
e050ed271bb000 Peter Collingbourne 2021-11-22 100
e050ed271bb000 Peter Collingbourne 2021-11-22 101 buf->kbegin = kmalloc_array(
e050ed271bb000 Peter Collingbourne 2021-11-22 102 desc.size, sizeof(struct uaccess_buffer_entry), GFP_KERNEL);
e050ed271bb000 Peter Collingbourne 2021-11-22 103 buf->kcur = buf->kbegin;
e050ed271bb000 Peter Collingbourne 2021-11-22 104 buf->kend = buf->kbegin + desc.size;
e050ed271bb000 Peter Collingbourne 2021-11-22 @105 buf->ubegin = (struct uaccess_buffer_entry __user *)desc.addr;
e050ed271bb000 Peter Collingbourne 2021-11-22 106 }
e050ed271bb000 Peter Collingbourne 2021-11-22 107
e050ed271bb000 Peter Collingbourne 2021-11-22 108 void __uaccess_buffer_syscall_exit(void)
e050ed271bb000 Peter Collingbourne 2021-11-22 109 {
e050ed271bb000 Peter Collingbourne 2021-11-22 110 struct uaccess_buffer_info *buf = ¤t->uaccess_buffer;
e050ed271bb000 Peter Collingbourne 2021-11-22 111 u64 num_entries = buf->kcur - buf->kbegin;
e050ed271bb000 Peter Collingbourne 2021-11-22 112 struct uaccess_descriptor desc;
e050ed271bb000 Peter Collingbourne 2021-11-22 113
e050ed271bb000 Peter Collingbourne 2021-11-22 114 if (!buf->kcur)
e050ed271bb000 Peter Collingbourne 2021-11-22 115 return;
e050ed271bb000 Peter Collingbourne 2021-11-22 116
e050ed271bb000 Peter Collingbourne 2021-11-22 @117 desc.addr = (u64)(buf->ubegin + num_entries);
e050ed271bb000 Peter Collingbourne 2021-11-22 118 desc.size = buf->kend - buf->kcur;
e050ed271bb000 Peter Collingbourne 2021-11-22 119 buf->kcur = 0;
e050ed271bb000 Peter Collingbourne 2021-11-22 120 if (copy_to_user(buf->ubegin, buf->kbegin,
e050ed271bb000 Peter Collingbourne 2021-11-22 121 num_entries * sizeof(struct uaccess_buffer_entry)) == 0)
e050ed271bb000 Peter Collingbourne 2021-11-22 @122 (void)copy_to_user(buf->desc_ptr, &desc, sizeof(desc));
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[luto:sched/lazymm 13/16] kernel/sched/core.c:4982 __change_current_mm() error: uninitialized symbol 'old_active_mm'.
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: c0d03d4f2778fd0a7c16e69cdfb3f111296129b5
commit: 4863118ffa6fe6af7cfb18c4d4ee6434537b0c8b [13/16] sched, exec: Factor current mm changes out from exec
config: x86_64-randconfig-m001-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 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:
kernel/sched/core.c:4982 __change_current_mm() error: uninitialized symbol 'old_active_mm'.
vim +/old_active_mm +4982 kernel/sched/core.c
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4938 void __change_current_mm(struct mm_struct *mm, bool mm_is_brand_new)
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4939 {
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4940 struct task_struct *tsk = current;
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4941 struct mm_struct *old_active_mm, *mm_to_drop = NULL;
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4942
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4943 BUG_ON(!mm); /* likely to cause corruption if we continue */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4944
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4945 /*
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4946 * We do not want to schedule, nor should procfs peek at current->mm
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4947 * while we're modifying it. task_lock() disables preemption and
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4948 * locks against procfs.
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4949 */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4950 task_lock(tsk);
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4951 /*
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4952 * membarrier() requires a full barrier before switching mm.
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4953 */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4954 smp_mb__after_spinlock();
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4955
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4956 local_irq_disable();
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4957
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4958 if (tsk->mm) {
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4959 /* We're detaching from an old mm. Sync stats. */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4960 sync_mm_rss(tsk->mm);
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4961 } else {
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4962 /*
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4963 * Switching from kernel mm to user. Drop the old lazy
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4964 * mm reference.
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4965 */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4966 mm_to_drop = tsk->active_mm;
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4967 }
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4968
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4969 tsk->active_mm = mm;
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4970 WRITE_ONCE(tsk->mm, mm); /* membarrier reads this without locks */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4971 membarrier_update_current_mm(mm);
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4972
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4973 if (mm_is_brand_new) {
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4974 /*
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4975 * For historical reasons, some architectures want IRQs on
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4976 * when activate_mm() is called. If we're going to call
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4977 * activate_mm(), turn on IRQs but leave preemption
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4978 * disabled.
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4979 */
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4980 if (!IS_ENABLED(CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM))
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4981 local_irq_enable();
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 @4982 activate_mm(old_active_mm, mm);
"old_active_mm" is never initialized.
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4983 if (IS_ENABLED(CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM))
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4984 local_irq_enable();
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4985 } else {
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4986 switch_mm_irqs_off(old_active_mm, mm, tsk);
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4987 local_irq_enable();
4863118ffa6fe6 kernel/sched/core.c Andy Lutomirski 2021-09-03 4988 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[sunxi:sunxi/clk-for-5.17 4/10] drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: error: 'pdev' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git sunxi/clk-for-5.17
head: c81821db64a8957e8ff4ebd4cdda60243ab5c949
commit: 72928074833fef3290e89f00dc471c037bcebc0c [4/10] clk: sunxi-ng: Allow the CCU core to be built as a module
config: parisc-buildonly-randconfig-r005-20211123 (https://download.01.org/0day-ci/archive/20211123/202111231442.Mg1z9HFF-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://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?i...
git remote add sunxi https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
git fetch --no-tags sunxi sunxi/clk-for-5.17
git checkout 72928074833fef3290e89f00dc471c037bcebc0c
# save the attached .config 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 drivers/clk/sunxi-ng/
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/clk/sunxi-ng/ccu-suniv-f1c100s.c: In function 'suniv_f1c100s_ccu_setup':
>> drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: error: 'pdev' undeclared (first use in this function)
532 | reg = devm_platform_ioremap_resource(pdev, 0);
| ^~~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: note: each undeclared identifier is reported only once for each function it appears in
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:534:24: error: 'return' with a value, in function returning void [-Werror=return-type]
534 | return PTR_ERR(reg);
| ^~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:543:24: error: 'return' with a value, in function returning void [-Werror=return-type]
543 | return ret;
| ^~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:552:16: error: 'return' with a value, in function returning void [-Werror=return-type]
552 | return 0;
| ^
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c: At top level:
>> drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:561:19: error: 'suniv_f1c100s_ccu_probe' undeclared here (not in a function); did you mean 'suniv_f1c100s_ccu_driver'?
561 | .probe = suniv_f1c100s_ccu_probe,
| ^~~~~~~~~~~~~~~~~~~~~~~
| suniv_f1c100s_ccu_driver
drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: warning: 'suniv_f1c100s_ccu_setup' defined but not used [-Wunused-function]
526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pdev +532 drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c
0380126eb9afc4 Mesih Kilinc 2018-12-02 525
0380126eb9afc4 Mesih Kilinc 2018-12-02 526 static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
0380126eb9afc4 Mesih Kilinc 2018-12-02 527 {
0380126eb9afc4 Mesih Kilinc 2018-12-02 528 void __iomem *reg;
72dc8e122383fc Samuel Holland 2021-11-18 529 int ret;
0380126eb9afc4 Mesih Kilinc 2018-12-02 530 u32 val;
0380126eb9afc4 Mesih Kilinc 2018-12-02 531
72dc8e122383fc Samuel Holland 2021-11-18 @532 reg = devm_platform_ioremap_resource(pdev, 0);
72dc8e122383fc Samuel Holland 2021-11-18 533 if (IS_ERR(reg))
72dc8e122383fc Samuel Holland 2021-11-18 534 return PTR_ERR(reg);
0380126eb9afc4 Mesih Kilinc 2018-12-02 535
0380126eb9afc4 Mesih Kilinc 2018-12-02 536 /* Force the PLL-Audio-1x divider to 4 */
0380126eb9afc4 Mesih Kilinc 2018-12-02 537 val = readl(reg + SUNIV_PLL_AUDIO_REG);
0380126eb9afc4 Mesih Kilinc 2018-12-02 538 val &= ~GENMASK(19, 16);
0380126eb9afc4 Mesih Kilinc 2018-12-02 539 writel(val | (3 << 16), reg + SUNIV_PLL_AUDIO_REG);
0380126eb9afc4 Mesih Kilinc 2018-12-02 540
72dc8e122383fc Samuel Holland 2021-11-18 541 ret = devm_sunxi_ccu_probe(&pdev->dev, reg, &suniv_ccu_desc);
72dc8e122383fc Samuel Holland 2021-11-18 542 if (ret)
72dc8e122383fc Samuel Holland 2021-11-18 543 return ret;
0380126eb9afc4 Mesih Kilinc 2018-12-02 544
0380126eb9afc4 Mesih Kilinc 2018-12-02 545 /* Gate then ungate PLL CPU after any rate changes */
0380126eb9afc4 Mesih Kilinc 2018-12-02 546 ccu_pll_notifier_register(&suniv_pll_cpu_nb);
0380126eb9afc4 Mesih Kilinc 2018-12-02 547
0380126eb9afc4 Mesih Kilinc 2018-12-02 548 /* Reparent CPU during PLL CPU rate changes */
0380126eb9afc4 Mesih Kilinc 2018-12-02 549 ccu_mux_notifier_register(pll_cpu_clk.common.hw.clk,
0380126eb9afc4 Mesih Kilinc 2018-12-02 550 &suniv_cpu_nb);
72dc8e122383fc Samuel Holland 2021-11-18 551
72dc8e122383fc Samuel Holland 2021-11-18 @552 return 0;
0380126eb9afc4 Mesih Kilinc 2018-12-02 553 }
72dc8e122383fc Samuel Holland 2021-11-18 554
72dc8e122383fc Samuel Holland 2021-11-18 555 static const struct of_device_id suniv_f1c100s_ccu_ids[] = {
72dc8e122383fc Samuel Holland 2021-11-18 556 { .compatible = "allwinner,suniv-f1c100s-ccu" },
72dc8e122383fc Samuel Holland 2021-11-18 557 { }
72dc8e122383fc Samuel Holland 2021-11-18 558 };
72dc8e122383fc Samuel Holland 2021-11-18 559
72dc8e122383fc Samuel Holland 2021-11-18 560 static struct platform_driver suniv_f1c100s_ccu_driver = {
72dc8e122383fc Samuel Holland 2021-11-18 @561 .probe = suniv_f1c100s_ccu_probe,
72dc8e122383fc Samuel Holland 2021-11-18 562 .driver = {
72dc8e122383fc Samuel Holland 2021-11-18 563 .name = "suniv-f1c100s-ccu",
72dc8e122383fc Samuel Holland 2021-11-18 564 .suppress_bind_attrs = true,
72dc8e122383fc Samuel Holland 2021-11-18 565 .of_match_table = suniv_f1c100s_ccu_ids,
72dc8e122383fc Samuel Holland 2021-11-18 566 },
72dc8e122383fc Samuel Holland 2021-11-18 567 };
72dc8e122383fc Samuel Holland 2021-11-18 568 module_platform_driver(suniv_f1c100s_ccu_driver);
72dc8e122383fc Samuel Holland 2021-11-18 569
:::::: The code at line 532 was first introduced by commit
:::::: 72dc8e122383fcce2ef6d32e351ec0609bd7ca49 clk: sunxi-ng: Convert early providers to platform drivers
:::::: TO: Samuel Holland <samuel(a)sholland.org>
:::::: CC: Maxime Ripard <maxime(a)cerno.tech>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[tglx-devel:msi 18/91] drivers/pci/msi/legacy.c:54:5: warning: no previous prototype for function 'pci_msi_legacy_setup_msi_irqs'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head: 2d9ab27714e1576db18b1ee323eaae9886e16006
commit: 5e32e214c6eeda4237b4fb01cd77c6c247465e0c [18/91] PCI/MSI: Split out irqdomain code
config: mips-randconfig-r035-20211123 (https://download.01.org/0day-ci/archive/20211123/202111231428.RmNJuNXe-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
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/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel msi
git checkout 5e32e214c6eeda4237b4fb01cd77c6c247465e0c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
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/pci/msi/legacy.c:7:
include/linux/msi.h:391:65: warning: declaration of 'struct cpumask' will not be visible outside of this function [-Wvisibility]
int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask,
^
drivers/pci/msi/legacy.c:48:20: error: use of undeclared identifier 'entry'
for (i = 0; i < entry->nvec_used; i++)
^
>> drivers/pci/msi/legacy.c:54:5: warning: no previous prototype for function 'pci_msi_legacy_setup_msi_irqs' [-Wmissing-prototypes]
int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
^
drivers/pci/msi/legacy.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
^
static
>> drivers/pci/msi/legacy.c:59:6: warning: no previous prototype for function 'pci_msi_legacy_teardown_msi_irqs' [-Wmissing-prototypes]
void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)
^
drivers/pci/msi/legacy.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)
^
static
3 warnings and 1 error generated.
vim +/pci_msi_legacy_setup_msi_irqs +54 drivers/pci/msi/legacy.c
53
> 54 int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
55 {
56 return arch_setup_msi_irqs(dev, nvec, type);
57 }
58
> 59 void pci_msi_legacy_teardown_msi_irqs(struct pci_dev *dev)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH bpf-next v2 01/10] io_uring: Implement eBPF iterator for registered buffers
by kernel test robot
Hi Kumar,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/Introduc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: hexagon-randconfig-r045-20211122 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
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/69cd86892cc99ed54a77816b3c4d78429...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kumar-Kartikeya-Dwivedi/Introduce-BPF-iterators-for-io_uring-and-epoll/20211123-065555
git checkout 69cd86892cc99ed54a77816b3c4d78429150339c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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 >>):
>> fs/io_uring.c:11190:6: warning: no previous prototype for function 'bpf_io_uring_iter_show_fdinfo' [-Wmissing-prototypes]
void bpf_io_uring_iter_show_fdinfo(const struct bpf_iter_aux_info *aux,
^
fs/io_uring.c:11190:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void bpf_io_uring_iter_show_fdinfo(const struct bpf_iter_aux_info *aux,
^
static
>> fs/io_uring.c:11197:5: warning: no previous prototype for function 'bpf_io_uring_iter_fill_link_info' [-Wmissing-prototypes]
int bpf_io_uring_iter_fill_link_info(const struct bpf_iter_aux_info *aux,
^
fs/io_uring.c:11197:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int bpf_io_uring_iter_fill_link_info(const struct bpf_iter_aux_info *aux,
^
static
2 warnings generated.
vim +/bpf_io_uring_iter_show_fdinfo +11190 fs/io_uring.c
11188
11189 #ifdef CONFIG_PROC_FS
11190 void bpf_io_uring_iter_show_fdinfo(const struct bpf_iter_aux_info *aux,
11191 struct seq_file *seq)
11192 {
11193 seq_printf(seq, "io_uring_inode:\t%lu\n", aux->io_uring.inode);
11194 }
11195 #endif
11196
11197 int bpf_io_uring_iter_fill_link_info(const struct bpf_iter_aux_info *aux,
11198 struct bpf_link_info *info)
11199 {
11200 info->iter.io_uring.inode = aux->io_uring.inode;
11201 return 0;
11202 }
11203
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months