Re: [PATCH] udf: fix the problem that the disc content is not displayed
by kernel test robot
Hi lianzhi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.11-rc3 next-20210114]
[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/lianzhi-chang/udf-fix-the-proble...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 65f0d2414b7079556fbbcc070b3d1c9f9587606d
config: mips-randconfig-r026-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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://github.com/0day-ci/linux/commit/76a7c356fa5bfe473a3d7c15bda5922c9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review lianzhi-chang/udf-fix-the-problem-that-the-disc-content-is-not-displayed/20210114-161012
git checkout 76a7c356fa5bfe473a3d7c15bda5922c902a33f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:257:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic, int, subu, ll, sc)
^
arch/mips/include/asm/atomic.h:251:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from fs/udf/super.c:41:
In file included from fs/udf/udfdecl.h:10:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:9:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:56:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:261:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic64, s64, dsubu, lld, scd)
^
arch/mips/include/asm/atomic.h:251:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from fs/udf/super.c:41:
In file included from fs/udf/udfdecl.h:10:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:9:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:15:
In file included from include/linux/smp_types.h:5:
include/linux/llist.h:237:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return xchg(&head->first, NULL);
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from fs/udf/super.c:41:
In file included from fs/udf/udfdecl.h:10:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:9:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/lockdep.h:27:
include/linux/debug_locks.h:17:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return xchg(&debug_locks, 0);
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from fs/udf/super.c:41:
In file included from fs/udf/udfdecl.h:12:
In file included from include/linux/buffer_head.h:14:
In file included from include/linux/pagemap.h:8:
In file included from include/linux/mm.h:33:
In file included from include/linux/pgtable.h:6:
arch/mips/include/asm/pgtable.h:202:3: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
cmpxchg64(&buddy->pte, 0, _PAGE_GLOBAL);
^
arch/mips/include/asm/cmpxchg.h:220:2: note: expanded from macro 'cmpxchg64'
cmpxchg((ptr), (o), (n)); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from fs/udf/super.c:41:
In file included from fs/udf/udfdecl.h:12:
In file included from include/linux/buffer_head.h:14:
In file included from include/linux/pagemap.h:8:
In file included from include/linux/mm.h:33:
In file included from include/linux/pgtable.h:6:
arch/mips/include/asm/pgtable.h:202:3: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/cmpxchg.h:220:2: note: expanded from macro 'cmpxchg64'
cmpxchg((ptr), (o), (n)); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
>> fs/udf/super.c:716:64: error: extraneous ')' before ';'
sector_offset = (loff_t)sbi->s_session << sb->s_blocksize_bits);
^
12 warnings and 1 error generated.
vim +716 fs/udf/super.c
693
694 /*
695 * Check Volume Structure Descriptors (ECMA 167 2/9.1)
696 * We also check any "CD-ROM Volume Descriptor Set" (ECMA 167 2/8.3.1)
697 * @return 1 if NSR02 or NSR03 found,
698 * -1 if first sector read error, 0 otherwise
699 */
700 static int udf_check_vsd(struct super_block *sb)
701 {
702 struct volStructDesc *vsd = NULL;
703 loff_t sector = VSD_FIRST_SECTOR_OFFSET;
704 int sectorsize;
705 struct buffer_head *bh = NULL;
706 int nsr = 0;
707 struct udf_sb_info *sbi;
708 loff_t sector_offset;
709
710 sbi = UDF_SB(sb);
711 if (sb->s_blocksize < sizeof(struct volStructDesc))
712 sectorsize = sizeof(struct volStructDesc);
713 else
714 sectorsize = sb->s_blocksize;
715
> 716 sector_offset = (loff_t)sbi->s_session << sb->s_blocksize_bits);
717 sector += sector_offset;
718
719 udf_debug("Starting at sector %u (%lu byte sectors)\n",
720 (unsigned int)(sector >> sb->s_blocksize_bits),
721 sb->s_blocksize);
722 /* Process the sequence (if applicable). The hard limit on the sector
723 * offset is arbitrary, hopefully large enough so that all valid UDF
724 * filesystems will be recognised. There is no mention of an upper
725 * bound to the size of the volume recognition area in the standard.
726 * The limit will prevent the code to read all the sectors of a
727 * specially crafted image (like a bluray disc full of CD001 sectors),
728 * potentially causing minutes or even hours of uninterruptible I/O
729 * activity. This actually happened with uninitialised SSD partitions
730 * (all 0xFF) before the check for the limit and all valid IDs were
731 * added */
732 for (; !nsr && sector < VSD_MAX_SECTOR_OFFSET; sector += sectorsize) {
733 /* Read a block */
734 bh = udf_tread(sb, sector >> sb->s_blocksize_bits);
735 if (!bh)
736 break;
737
738 vsd = (struct volStructDesc *)(bh->b_data +
739 (sector & (sb->s_blocksize - 1)));
740 nsr = identify_vsd(vsd);
741 /* Found NSR or end? */
742 if (nsr) {
743 brelse(bh);
744 break;
745 }
746 /*
747 * Special handling for improperly formatted VRS (e.g., Win10)
748 * where components are separated by 2048 bytes even though
749 * sectors are 4K
750 */
751 if (sb->s_blocksize == 4096) {
752 nsr = identify_vsd(vsd + 1);
753 /* Ignore unknown IDs... */
754 if (nsr < 0)
755 nsr = 0;
756 }
757 brelse(bh);
758 }
759
760 if (nsr > 0)
761 return 1;
762 else if (!bh && sector - sector_offset == VSD_FIRST_SECTOR_OFFSET)
763 return -1;
764 else
765 return 0;
766 }
767
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[linux-stable-rc:linux-4.19.y 974/2851] drivers/ata/libata-scsi.c:2423:30: error: 'SECTOR_SHIFT' undeclared; did you mean
by kernel test robot
Hi Tejun,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 675cc038067f0e530471c56a7442935f84669d95
commit: a8bb7740aa313994bfa4c21cba399f65985a8a35 [974/2851] libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks
config: powerpc64-randconfig-r032-20210113 (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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout a8bb7740aa313994bfa4c21cba399f65985a8a35
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
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 >>):
include/linux/log2.h:162:23: note: in definition of macro 'ilog2'
162 | __builtin_constant_p(n) ? \
| ^
In file included from include/scsi/scsi_cmnd.h:7,
from drivers/ata/libata-scsi.c:43:
include/linux/t10-pi.h:48:9: error: implicit declaration of function 'blk_rq_pos' [-Werror=implicit-function-declaration]
48 | return blk_rq_pos(rq) >> (shift - SECTOR_SHIFT) & 0xffffffff;
| ^~~~~~~~~~
include/linux/t10-pi.h:48:36: error: 'SECTOR_SHIFT' undeclared (first use in this function); did you mean 'SOFTIRQ_SHIFT'?
48 | return blk_rq_pos(rq) >> (shift - SECTOR_SHIFT) & 0xffffffff;
| ^~~~~~~~~~~~
| SOFTIRQ_SHIFT
In file included from include/scsi/scsi_cmnd.h:12,
from drivers/ata/libata-scsi.c:43:
include/scsi/scsi_device.h: At top level:
include/scsi/scsi_device.h:435:4: error: unknown type name 'req_flags_t'; did you mean 'vm_flags_t'?
435 | req_flags_t rq_flags, int *resid);
| ^~~~~~~~~~~
| vm_flags_t
include/scsi/scsi_device.h: In function 'scsi_execute_req':
include/scsi/scsi_device.h:442:2: error: implicit declaration of function '__scsi_execute'; did you mean 'scsi_execute'? [-Werror=implicit-function-declaration]
442 | __scsi_execute(sdev, cmd, data_direction, buffer, bufflen, \
| ^~~~~~~~~~~~~~
include/scsi/scsi_device.h:451:9: note: in expansion of macro 'scsi_execute'
451 | return scsi_execute(sdev, cmd, data_direction, buffer,
| ^~~~~~~~~~~~
In file included from drivers/ata/libata-scsi.c:43:
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:214:9: error: implicit declaration of function 'blk_bidi_rq' [-Werror=implicit-function-declaration]
214 | return blk_bidi_rq(cmd->request) &&
| ^~~~~~~~~~~
In file included from include/linux/writeback.h:13,
from include/linux/memcontrol.h:31,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from drivers/ata/libata-scsi.c:51:
include/linux/blk_types.h: At top level:
include/linux/blk_types.h:29:22: error: conflicting types for 'blk_status_t'
29 | typedef u8 __bitwise blk_status_t;
| ^~~~~~~~~~~~
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-scsi.c:42:
include/linux/blk-mq.h:100:9: note: previous declaration of 'blk_status_t' was here
100 | typedef blk_status_t (queue_rq_fn)(struct blk_mq_hw_ctx *,
| ^~~~~~~~~~~~
drivers/ata/libata-scsi.c: In function 'ata_scsi_qc_new':
drivers/ata/libata-scsi.c:871:32: error: 'RQF_QUIET' undeclared (first use in this function); did you mean 'BIO_QUIET'?
871 | if (cmd->request->rq_flags & RQF_QUIET)
| ^~~~~~~~~
| BIO_QUIET
In file included from include/asm-generic/bug.h:5,
from arch/powerpc/include/asm/bug.h:128,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/ata/libata-scsi.c:36:
drivers/ata/libata-scsi.c: In function 'atapi_drain_needed':
drivers/ata/libata-scsi.c:1255:14: error: implicit declaration of function 'blk_rq_is_passthrough' [-Werror=implicit-function-declaration]
1255 | if (likely(!blk_rq_is_passthrough(rq)))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
drivers/ata/libata-scsi.c:1258:7: error: implicit declaration of function 'blk_rq_bytes' [-Werror=implicit-function-declaration]
1258 | if (!blk_rq_bytes(rq) || op_is_write(req_op(rq)))
| ^~~~~~~~~~~~
drivers/ata/libata-scsi.c: In function 'ata_scsi_dev_config':
drivers/ata/libata-scsi.c:1273:2: error: implicit declaration of function 'blk_queue_max_hw_sectors' [-Werror=implicit-function-declaration]
1273 | blk_queue_max_hw_sectors(q, dev->max_sectors);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1281:3: error: implicit declaration of function 'blk_queue_update_dma_pad' [-Werror=implicit-function-declaration]
1281 | blk_queue_update_dma_pad(q, ATA_DMA_PAD_SZ - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1284:35: error: dereferencing pointer to incomplete type 'struct request_queue'
1284 | buf = kmalloc(ATAPI_MAX_DRAIN, q->bounce_gfp | GFP_KERNEL);
| ^~
drivers/ata/libata-scsi.c:1290:3: error: implicit declaration of function 'blk_queue_dma_drain' [-Werror=implicit-function-declaration]
1290 | blk_queue_dma_drain(q, atapi_drain_needed, buf, ATAPI_MAX_DRAIN);
| ^~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1308:2: error: implicit declaration of function 'blk_queue_update_dma_alignment' [-Werror=implicit-function-declaration]
1308 | blk_queue_update_dma_alignment(q, sdev->sector_size - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1321:2: error: implicit declaration of function 'blk_queue_flush_queueable' [-Werror=implicit-function-declaration]
1321 | blk_queue_flush_queueable(q, false);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/fs.h:39,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:499,
from include/linux/scatterlist.h:8,
from include/scsi/scsi.h:10,
from drivers/ata/libata-scsi.c:41:
drivers/ata/libata-scsi.c: In function 'ata_scsi_rw_xlat':
drivers/ata/libata-scsi.c:1844:32: error: implicit declaration of function 'req_get_ioprio' [-Werror=implicit-function-declaration]
1844 | int class = IOPRIO_PRIO_CLASS(req_get_ioprio(rq));
| ^~~~~~~~~~~~~~
include/linux/ioprio.h:15:35: note: in definition of macro 'IOPRIO_PRIO_CLASS'
15 | #define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)
| ^~~~
drivers/ata/libata-scsi.c: In function 'ata_scsiop_inq_b0':
>> drivers/ata/libata-scsi.c:2423:30: error: 'SECTOR_SHIFT' undeclared (first use in this function); did you mean 'SOFTIRQ_SHIFT'?
2423 | max_blocks = 128 << (20 - SECTOR_SHIFT);
| ^~~~~~~~~~~~
| SOFTIRQ_SHIFT
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ATA
Depends on HAS_IOMEM && BLOCK
Selected by
- AKEBONO && PPC_47x
WARNING: unmet direct dependencies detected for NETDEVICES
Depends on NET
Selected by
- AKEBONO && PPC_47x
WARNING: unmet direct dependencies detected for ETHERNET
Depends on NETDEVICES && NET
Selected by
- AKEBONO && PPC_47x
WARNING: unmet direct dependencies detected for GRO_CELLS
Depends on NET
Selected by
- RMNET && NETDEVICES && ETHERNET && NET_VENDOR_QUALCOMM
WARNING: unmet direct dependencies detected for FAILOVER
Depends on NET
Selected by
- NET_FAILOVER && NETDEVICES
vim +2423 drivers/ata/libata-scsi.c
2391
2392 static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
2393 {
2394 struct ata_device *dev = args->dev;
2395 u16 min_io_sectors;
2396
2397 rbuf[1] = 0xb0;
2398 rbuf[3] = 0x3c; /* required VPD size with unmap support */
2399
2400 /*
2401 * Optimal transfer length granularity.
2402 *
2403 * This is always one physical block, but for disks with a smaller
2404 * logical than physical sector size we need to figure out what the
2405 * latter is.
2406 */
2407 min_io_sectors = 1 << ata_id_log2_per_physical_sector(args->id);
2408 put_unaligned_be16(min_io_sectors, &rbuf[6]);
2409
2410 /*
2411 * Optimal unmap granularity.
2412 *
2413 * The ATA spec doesn't even know about a granularity or alignment
2414 * for the TRIM command. We can leave away most of the unmap related
2415 * VPD page entries, but we have specifify a granularity to signal
2416 * that we support some form of unmap - in thise case via WRITE SAME
2417 * with the unmap bit set.
2418 */
2419 if (ata_id_has_trim(args->id)) {
2420 u64 max_blocks = 65535 * ATA_MAX_TRIM_RNUM;
2421
2422 if (dev->horkage & ATA_HORKAGE_MAX_TRIM_128M)
> 2423 max_blocks = 128 << (20 - SECTOR_SHIFT);
2424
2425 put_unaligned_be64(max_blocks, &rbuf[36]);
2426 put_unaligned_be32(1, &rbuf[28]);
2427 }
2428
2429 return 0;
2430 }
2431
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH v6 11/16] scripts: kernel-doc: validate kernel-doc markup with the actual names
by kernel test robot
Hi Mauro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210113]
[also build test WARNING on v5.11-rc3]
[cannot apply to lwn/docs-next kees/for-next/pstore mac80211-next/master mac80211/master pza/reset/next linus/master v5.11-rc3 v5.11-rc2 v5.11-rc1]
[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/Mauro-Carvalho-Chehab/Fix-severa...
base: aa515cdce7a151dcc14b7600d33f1414c6fa32c9
config: mips-nlm_xlp_defconfig (attached as .config)
compiler: mips64-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/1e9159b3640012fc5fab8508b1c5635ac...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mauro-Carvalho-Chehab/Fix-several-bad-kernel-doc-markups/20210114-161010
git checkout 1e9159b3640012fc5fab8508b1c5635ac13a55e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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 >>):
arch/mips/kernel/module.c:289: warning: Function parameter or member 'reloc_handler' not described in 'int'
>> arch/mips/kernel/module.c:289: warning: expecting prototype for reloc_handler(). Prototype was for int() instead
--
arch/mips/kernel/kprobes.c:196: warning: Function parameter or member 'p' not described in 'evaluate_branch_instruction'
arch/mips/kernel/kprobes.c:196: warning: Function parameter or member 'regs' not described in 'evaluate_branch_instruction'
arch/mips/kernel/kprobes.c:196: warning: Function parameter or member 'kcb' not described in 'evaluate_branch_instruction'
>> arch/mips/kernel/kprobes.c:196: warning: expecting prototype for evaluate_branch_instrucion(). Prototype was for evaluate_branch_instruction() instead
vim +289 arch/mips/kernel/module.c
5d3c792583b60406 Paul Burton 2016-02-04 272
430d0b88943afffd Paul Burton 2017-03-30 273 /**
430d0b88943afffd Paul Burton 2017-03-30 274 * reloc_handler() - Apply a particular relocation to a module
430d0b88943afffd Paul Burton 2017-03-30 275 * @me: the module to apply the reloc to
430d0b88943afffd Paul Burton 2017-03-30 276 * @location: the address at which the reloc is to be applied
430d0b88943afffd Paul Burton 2017-03-30 277 * @base: the existing value at location for REL-style; 0 for RELA-style
430d0b88943afffd Paul Burton 2017-03-30 278 * @v: the value of the reloc, with addend for RELA-style
430d0b88943afffd Paul Burton 2017-03-30 279 *
430d0b88943afffd Paul Burton 2017-03-30 280 * Each implemented reloc_handler function applies a particular type of
430d0b88943afffd Paul Burton 2017-03-30 281 * relocation to the module @me. Relocs that may be found in either REL or RELA
430d0b88943afffd Paul Burton 2017-03-30 282 * variants can be handled by making use of the @base & @v parameters which are
430d0b88943afffd Paul Burton 2017-03-30 283 * set to values which abstract the difference away from the particular reloc
430d0b88943afffd Paul Burton 2017-03-30 284 * implementations.
430d0b88943afffd Paul Burton 2017-03-30 285 *
430d0b88943afffd Paul Burton 2017-03-30 286 * Return: 0 upon success, else -ERRNO
430d0b88943afffd Paul Burton 2017-03-30 287 */
430d0b88943afffd Paul Burton 2017-03-30 288 typedef int (*reloc_handler)(struct module *me, u32 *location,
430d0b88943afffd Paul Burton 2017-03-30 @289 u32 base, Elf_Addr v, bool rela);
430d0b88943afffd Paul Burton 2017-03-30 290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[freescale-fslc:5.4-2.3.x-imx 15209/16543] drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_sta_event.c:984:33: warning: cast from pointer to integer of different size
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: 56bffa9cd6e18bde860875596038622757f58a98 [15209/16543] MLK-24995 net: wireless: nxp: mxm_wifiex: upgrade to mxm5x16207 release
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://github.com/Freescale/linux-fslc/commit/56bffa9cd6e18bde8608755960...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 56bffa9cd6e18bde860875596038622757f58a98
# 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 warnings (new ones prefixed by >>):
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_sta_event.c: In function 'wlan_ops_sta_process_event':
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_sta_event.c:984:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
984 | *(t_u64 *)pevent->event_buf = (t_u64)pmadapter->ssu_buf->pbuf +
| ^
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_sta_event.c:40:
At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_pcie.h:529:37: warning: 'mlan_card_info_pcie8997' defined but not used [-Wunused-const-variable=]
529 | static const struct _mlan_card_info mlan_card_info_pcie8997 = {
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_pcie.h:499:41: warning: 'mlan_reg_pcie8997' defined but not used [-Wunused-const-variable=]
499 | static const struct _mlan_pcie_card_reg mlan_reg_pcie8997 = {
| ^~~~~~~~~~~~~~~~~
--
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:558:7: warning: no previous prototype for 'wlan_get_rsn_cap' [-Wmissing-prototypes]
558 | t_u16 wlan_get_rsn_cap(t_u8 *data)
| ^~~~~~~~~~~~~~~~
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:592:6: warning: no previous prototype for 'wlan_use_mfp' [-Wmissing-prototypes]
592 | t_u8 wlan_use_mfp(mlan_private *pmpriv, BSSDescriptor_t *pbss_desc)
| ^~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:627:5: warning: no previous prototype for 'wlan_update_rsn_ie' [-Wmissing-prototypes]
627 | int wlan_update_rsn_ie(mlan_private *pmpriv,
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:819:6: warning: no previous prototype for 'wlan_find_ie' [-Wmissing-prototypes]
819 | t_u8 wlan_find_ie(t_u8 *ie, t_u8 ie_len, t_u8 ie_type)
| ^~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c: In function 'wlan_cmd_802_11_associate':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:882:7: warning: variable 'ft_akm' set but not used [-Wunused-but-set-variable]
882 | t_u8 ft_akm = 0;
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GPIO_MXC
Depends on GPIOLIB && HAS_IOMEM && ARCH_MXC
Selected by
- GPIO_MXC_PAD_WAKEUP && GPIOLIB && HAS_IOMEM && IMX_SCU
vim +984 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_sta_event.c
353
354 /**
355 * @brief This function handles events generated by firmware
356 *
357 * @param priv A pointer to mlan_private structure
358 *
359 * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
360 */
361 mlan_status wlan_ops_sta_process_event(t_void *priv)
362 {
363 pmlan_private pmpriv = (pmlan_private)priv;
364 pmlan_adapter pmadapter = pmpriv->adapter;
365 mlan_status ret = MLAN_STATUS_SUCCESS;
366 t_u32 eventcause = pmadapter->event_cause;
367 t_u8 *event_buf = MNULL;
368 t_u8 *evt_buf = MNULL;
369 pmlan_buffer pmbuf = pmadapter->pmlan_buffer_event;
370 t_u16 reason_code;
371 pmlan_callbacks pcb = &pmadapter->callbacks;
372 mlan_event *pevent = MNULL;
373 chan_band_info *pchan_band_info = MNULL;
374 t_u8 radar_chan;
375 t_u16 enable = 0;
376
377 ENTER();
378
379 if (!pmbuf) {
380 LEAVE();
381 return MLAN_STATUS_FAILURE;
382 }
383
384 /* Event length check */
385 if ((pmbuf->data_len - sizeof(eventcause)) > MAX_EVENT_SIZE) {
386 pmbuf->status_code = MLAN_ERROR_PKT_SIZE_INVALID;
387 LEAVE();
388 return MLAN_STATUS_FAILURE;
389 }
390
391 /* Allocate memory for event buffer */
392 ret = pcb->moal_malloc(pmadapter->pmoal_handle,
393 MAX_EVENT_SIZE + sizeof(mlan_event),
394 MLAN_MEM_DEF, &event_buf);
395 if ((ret != MLAN_STATUS_SUCCESS) || !event_buf) {
396 PRINTM(MERROR, "Could not allocate buffer for event buf\n");
397 if (pmbuf)
398 pmbuf->status_code = MLAN_ERROR_NO_MEM;
399 goto done;
400 }
401 pevent = (pmlan_event)event_buf;
402 memset(pmadapter, event_buf, 0, MAX_EVENT_SIZE);
403
404 if (eventcause != EVENT_PS_SLEEP && eventcause != EVENT_PS_AWAKE &&
405 pmbuf->data_len > sizeof(eventcause))
406 DBG_HEXDUMP(MEVT_D, "EVENT", pmbuf->pbuf + pmbuf->data_offset,
407 pmbuf->data_len);
408
409 switch (eventcause) {
410 case EVENT_DUMMY_HOST_WAKEUP_SIGNAL:
411 PRINTM(MERROR,
412 "Invalid EVENT: DUMMY_HOST_WAKEUP_SIGNAL, ignoring it\n");
413 break;
414 case EVENT_LINK_SENSED:
415 PRINTM(MEVENT, "EVENT: LINK_SENSED\n");
416 pmpriv->adhoc_is_link_sensed = MTRUE;
417 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_ADHOC_LINK_SENSED,
418 MNULL);
419 break;
420
421 case EVENT_DEAUTHENTICATED:
422 if (pmpriv->wps.session_enable) {
423 PRINTM(MMSG,
424 "wlan: Receive deauth event in wps session\n");
425 break;
426 }
427 reason_code = wlan_le16_to_cpu(*(t_u16 *)(pmbuf->pbuf +
428 pmbuf->data_offset +
429 sizeof(eventcause)));
430 PRINTM(MMSG, "wlan: EVENT: Deauthenticated (reason 0x%x)\n",
431 reason_code);
432 wlan_print_disconnect_reason(reason_code);
433 pmpriv->disconnect_reason_code = reason_code;
434 pmadapter->dbg.num_event_deauth++;
435 wlan_handle_disconnect_event(pmpriv);
436
437 break;
438
439 case EVENT_DISASSOCIATED:
440 if (pmpriv->wps.session_enable) {
441 PRINTM(MMSG,
442 "wlan: Receive disassociate event in wps session\n");
443 break;
444 }
445 reason_code = wlan_le16_to_cpu(*(t_u16 *)(pmbuf->pbuf +
446 pmbuf->data_offset +
447 sizeof(eventcause)));
448 PRINTM(MMSG, "wlan: EVENT: Disassociated (reason 0x%x)\n",
449 reason_code);
450 wlan_print_disconnect_reason(reason_code);
451 pmpriv->disconnect_reason_code = reason_code;
452 pmadapter->dbg.num_event_disassoc++;
453 wlan_handle_disconnect_event(pmpriv);
454 break;
455
456 case EVENT_LINK_LOST:
457 reason_code = wlan_le16_to_cpu(*(t_u16 *)(pmbuf->pbuf +
458 pmbuf->data_offset +
459 sizeof(eventcause)));
460 PRINTM(MMSG, "wlan: EVENT: Link lost (reason 0x%x)\n",
461 reason_code);
462 pmpriv->disconnect_reason_code = reason_code;
463 pmadapter->dbg.num_event_link_lost++;
464 wlan_handle_disconnect_event(pmpriv);
465 break;
466
467 case EVENT_PS_SLEEP:
468 PRINTM(MINFO, "EVENT: SLEEP\n");
469 PRINTM_NETINTF(MEVENT, pmpriv);
470 PRINTM(MEVENT, "_");
471
472 /* Handle unexpected PS SLEEP event */
473 if (pmadapter->ps_state == PS_STATE_SLEEP_CFM)
474 break;
475 pmadapter->ps_state = PS_STATE_PRE_SLEEP;
476
477 wlan_check_ps_cond(pmadapter);
478 break;
479
480 case EVENT_PS_AWAKE:
481 PRINTM(MINFO, "EVENT: AWAKE\n");
482 PRINTM_NETINTF(MEVENT, pmpriv);
483 PRINTM(MEVENT, "|");
484 if (!pmadapter->pps_uapsd_mode && pmpriv->media_connected &&
485 (pmpriv->port_open || !pmpriv->port_ctrl_mode) &&
486 pmadapter->sleep_period.period) {
487 pmadapter->pps_uapsd_mode = MTRUE;
488 PRINTM(MEVENT, "PPS/UAPSD mode activated\n");
489 }
490 /* Handle unexpected PS AWAKE event */
491 if (pmadapter->ps_state == PS_STATE_SLEEP_CFM)
492 break;
493 pmadapter->tx_lock_flag = MFALSE;
494 if (pmadapter->pps_uapsd_mode && pmadapter->gen_null_pkt) {
495 if (MTRUE ==
496 wlan_check_last_packet_indication(pmpriv)) {
497 if (!pmadapter->data_sent) {
498 if (wlan_send_null_packet(
499 pmpriv,
500 MRVDRV_TxPD_POWER_MGMT_NULL_PACKET |
501 MRVDRV_TxPD_POWER_MGMT_LAST_PACKET) ==
502 MLAN_STATUS_SUCCESS) {
503 LEAVE();
504 return MLAN_STATUS_SUCCESS;
505 }
506 }
507 }
508 }
509 pmadapter->ps_state = PS_STATE_AWAKE;
510 pmadapter->pm_wakeup_card_req = MFALSE;
511 pmadapter->pm_wakeup_fw_try = MFALSE;
512 break;
513
514 case EVENT_HS_ACT_REQ:
515 PRINTM(MEVENT, "EVENT: HS_ACT_REQ\n");
516 ret = wlan_prepare_cmd(priv, HostCmd_CMD_802_11_HS_CFG_ENH, 0,
517 0, MNULL, MNULL);
518 break;
519 case EVENT_MIC_ERR_UNICAST:
520 PRINTM(MEVENT, "EVENT: UNICAST MIC ERROR\n");
521 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_MIC_ERR_UNI, MNULL);
522 break;
523
524 case EVENT_MIC_ERR_MULTICAST:
525 PRINTM(MEVENT, "EVENT: MULTICAST MIC ERROR\n");
526 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_MIC_ERR_MUL, MNULL);
527 break;
528 case EVENT_MIB_CHANGED:
529 case EVENT_INIT_DONE:
530 break;
531
532 case EVENT_ADHOC_BCN_LOST:
533 PRINTM(MEVENT, "EVENT: ADHOC_BCN_LOST\n");
534 pmpriv->adhoc_is_link_sensed = MFALSE;
535 wlan_clean_txrx(pmpriv);
536 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_ADHOC_LINK_LOST,
537 MNULL);
538 break;
539
540 case EVENT_FW_DEBUG_INFO:
541 pevent->bss_index = pmpriv->bss_index;
542 pevent->event_id = MLAN_EVENT_ID_FW_DEBUG_INFO;
543 pevent->event_len = pmbuf->data_len - sizeof(eventcause);
544 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
545 pmbuf->pbuf + pmbuf->data_offset +
546 sizeof(eventcause),
547 pevent->event_len, pevent->event_len);
548 PRINTM(MEVENT, "EVENT: FW Debug Info %s\n",
549 (t_u8 *)pevent->event_buf);
550 wlan_recv_event(pmpriv, pevent->event_id, pevent);
551 break;
552
553 case EVENT_BG_SCAN_REPORT:
554 PRINTM(MEVENT, "EVENT: BGS_REPORT\n");
555 pmadapter->bgscan_reported = MTRUE;
556 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_BG_SCAN, MNULL);
557 break;
558 case EVENT_BG_SCAN_STOPPED:
559 PRINTM(MEVENT, "EVENT: BGS_STOPPED\n");
560 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_BG_SCAN_STOPPED,
561 MNULL);
562 break;
563
564 case EVENT_PORT_RELEASE:
565 PRINTM(MEVENT, "EVENT: PORT RELEASE\n");
566 /* Open the port for e-supp mode */
567 if (pmpriv->port_ctrl_mode == MTRUE) {
568 PRINTM(MINFO, "PORT_REL: port_status = OPEN\n");
569 pmpriv->port_open = MTRUE;
570 }
571 pmadapter->scan_block = MFALSE;
572 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_PORT_RELEASE, MNULL);
573 break;
574
575 case EVENT_STOP_TX:
576 PRINTM(MEVENT, "EVENT: Stop Tx (%#x)\n", eventcause);
577 wlan_11h_tx_disable(pmpriv); /* this fn will send event up to
578 MOAL */
579 break;
580 case EVENT_START_TX:
581 PRINTM(MEVENT, "EVENT: Start Tx (%#x)\n", eventcause);
582 wlan_11h_tx_enable(pmpriv); /* this fn will send event up to
583 MOAL */
584 break;
585 case EVENT_CHANNEL_SWITCH:
586 PRINTM(MEVENT, "EVENT: Channel Switch (%#x)\n", eventcause);
587 if (pmadapter->ecsa_enable) {
588 MrvlIEtypes_channel_band_t *pchan_info =
589 (MrvlIEtypes_channel_band_t
590 *)(pmadapter->event_body);
591 t_u8 channel = pchan_info->channel;
592 chan_freq_power_t *cfp = MNULL;
593 DBG_HEXDUMP(MCMD_D, "chan band config",
594 (t_u8 *)pchan_info,
595 sizeof(MrvlIEtypes_channel_band_t));
596 PRINTM(MEVENT, "Switch to channel %d success!\n",
597 channel);
598 #define MAX_CHANNEL_BAND_B 14
599 if (channel <= MAX_CHANNEL_BAND_B)
600 cfp = wlan_find_cfp_by_band_and_channel(
601 pmadapter, BAND_B, channel);
602 else
603 cfp = wlan_find_cfp_by_band_and_channel(
604 pmadapter, BAND_A, channel);
605 pmpriv->curr_bss_params.bss_descriptor.channel =
606 channel;
607 if (cfp)
608 pmpriv->curr_bss_params.bss_descriptor.freq =
609 cfp->freq;
610 else
611 pmpriv->curr_bss_params.bss_descriptor.freq = 0;
612 if (pmpriv->adapter->state_rdh.stage ==
613 RDH_SET_CUSTOM_IE) {
614 pmadapter->state_rdh.stage =
615 RDH_RESTART_TRAFFIC;
616 wlan_11h_radar_detected_handling(pmadapter,
617 pmpriv);
618 }
619 pmadapter->state_rdh.tx_block = MFALSE;
620 /* Setup event buffer */
621 pevent->bss_index = pmpriv->bss_index;
622 pevent->event_id =
623 MLAN_EVENT_ID_FW_CHAN_SWITCH_COMPLETE;
624 pevent->event_len = sizeof(chan_band_info);
625 pchan_band_info = (chan_band_info *)pevent->event_buf;
626 /* Copy event data */
627 memcpy_ext(pmadapter, (t_u8 *)&pchan_band_info->bandcfg,
628 (t_u8 *)&pchan_info->bandcfg,
629 sizeof(pchan_info->bandcfg),
630 sizeof(pchan_band_info->bandcfg));
631 pchan_band_info->channel = pchan_info->channel;
632 if (pchan_band_info->bandcfg.chanWidth == CHAN_BW_80MHZ)
633 pchan_band_info->center_chan =
634 wlan_get_center_freq_idx(
635 priv, BAND_AAC,
636 pchan_info->channel,
637 CHANNEL_BW_80MHZ);
638 wlan_recv_event(pmpriv,
639 MLAN_EVENT_ID_FW_CHAN_SWITCH_COMPLETE,
640 pevent);
641 }
642 break;
643 case EVENT_CHANNEL_SWITCH_ANN:
644 PRINTM_NETINTF(MEVENT, pmpriv);
645 PRINTM(MEVENT, "EVENT: Channel Switch Announcement\n");
646 /* Here, pass up event first, as handling will send deauth */
647 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_CHANNEL_SWITCH_ANN,
648 MNULL);
649 wlan_11h_handle_event_chanswann(pmpriv);
650 break;
651 case EVENT_RADAR_DETECTED:
652 PRINTM_NETINTF(MEVENT, pmpriv);
653 PRINTM(MEVENT, "EVENT: Radar Detected\n");
654
655 /* Send as passthru first, this event can cause other events */
656 pevent->bss_index = pmpriv->bss_index;
657 pevent->event_id = MLAN_EVENT_ID_DRV_PASSTHRU;
658 pevent->event_len = pmbuf->data_len;
659 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
660 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
661 pevent->event_len);
662 wlan_recv_event(pmpriv, pevent->event_id, pevent);
663
664 if (pmadapter->state_rdh.stage == RDH_OFF) {
665 pmadapter->state_rdh.stage = RDH_CHK_INTFS;
666 wlan_11h_radar_detected_handling(pmadapter, pmpriv);
667 } else {
668 PRINTM(MEVENT, "Ignore Event Radar Detected - handling"
669 " already in progress.\n");
670 }
671
672 break;
673
674 case EVENT_CHANNEL_REPORT_RDY:
675 PRINTM_NETINTF(MEVENT, pmpriv);
676 PRINTM(MEVENT, "EVENT: Channel Report Ready\n");
677 pevent->bss_index = pmpriv->bss_index;
678 pevent->event_id = MLAN_EVENT_ID_FW_CHANNEL_REPORT_RDY;
679 pevent->event_len = pmbuf->data_len - sizeof(eventcause);
680 /* Copy event data */
681 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
682 pmbuf->pbuf + pmbuf->data_offset +
683 sizeof(eventcause),
684 pevent->event_len, pevent->event_len);
685 /* Handle / pass event data */
686 ret = wlan_11h_handle_event_chanrpt_ready(pmpriv, pevent,
687 &radar_chan);
688 /* Also send this event as passthru */
689 pevent->event_id = MLAN_EVENT_ID_DRV_PASSTHRU;
690 pevent->event_len = pmbuf->data_len;
691 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
692 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
693 pevent->event_len);
694 wlan_recv_event(pmpriv, pevent->event_id, pevent);
695 /* Send up this Event to unblock MOAL waitqueue */
696 wlan_recv_event(pmpriv, MLAN_EVENT_ID_DRV_MEAS_REPORT, MNULL);
697 break;
698 case EVENT_EXT_SCAN_REPORT:
699 PRINTM(MEVENT, "EVENT: EXT_SCAN Report (%d)\n",
700 pmbuf->data_len);
701 if (pmadapter->pscan_ioctl_req && pmadapter->ext_scan)
702 ret = wlan_handle_event_ext_scan_report(priv, pmbuf);
703 break;
704 case EVENT_EXT_SCAN_STATUS_REPORT:
705 PRINTM(MEVENT, "EVENT: EXT_SCAN status report (%d)\n",
706 pmbuf->data_len);
707 pmadapter->ext_scan_timeout = MFALSE;
708 ret = wlan_handle_event_ext_scan_status(priv, pmbuf);
709 break;
710 case EVENT_MEAS_REPORT_RDY:
711 PRINTM(MEVENT, "EVENT: Measurement Report Ready (%#x)\n",
712 eventcause);
713 ret = wlan_prepare_cmd(priv, HostCmd_CMD_MEASUREMENT_REPORT,
714 HostCmd_ACT_GEN_SET, 0, 0, MNULL);
715 break;
716 case EVENT_WMM_STATUS_CHANGE:
717 if (pmbuf &&
718 pmbuf->data_len >
719 sizeof(eventcause) + sizeof(MrvlIEtypesHeader_t)) {
720 PRINTM(MEVENT, "EVENT: WMM status changed: %d\n",
721 pmbuf->data_len);
722
723 evt_buf = (pmbuf->pbuf + pmbuf->data_offset +
724 sizeof(eventcause));
725
726 wlan_ret_wmm_get_status(pmpriv, evt_buf,
727 pmbuf->data_len -
728 sizeof(eventcause));
729 } else {
730 PRINTM(MEVENT, "EVENT: WMM status changed\n");
731 ret = wlan_cmd_wmm_status_change(pmpriv);
732 }
733 break;
734
735 case EVENT_RSSI_LOW:
736 PRINTM(MEVENT, "EVENT: Beacon RSSI_LOW\n");
737 pevent->bss_index = pmpriv->bss_index;
738 pevent->event_id = MLAN_EVENT_ID_FW_BCN_RSSI_LOW;
739 pevent->event_len = sizeof(t_u16);
740 /** Fw send bcnRssi low value in event reason field*/
741 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
742 (t_u8 *)&pmadapter->event_body, pevent->event_len,
743 pevent->event_len);
744 wlan_recv_event(pmpriv, pevent->event_id, pevent);
745 break;
746 case EVENT_SNR_LOW:
747 PRINTM(MEVENT, "EVENT: Beacon SNR_LOW\n");
748 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_BCN_SNR_LOW, MNULL);
749 break;
750 case EVENT_MAX_FAIL:
751 PRINTM(MEVENT, "EVENT: MAX_FAIL\n");
752 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_MAX_FAIL, MNULL);
753 break;
754 case EVENT_RSSI_HIGH:
755 PRINTM(MEVENT, "EVENT: Beacon RSSI_HIGH\n");
756 pevent->bss_index = pmpriv->bss_index;
757 pevent->event_id = MLAN_EVENT_ID_FW_BCN_RSSI_HIGH;
758 pevent->event_len = sizeof(t_u16);
759 /** Fw send bcnRssi high value in event reason field*/
760 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
761 (t_u8 *)&pmadapter->event_body, pevent->event_len,
762 pevent->event_len);
763 wlan_recv_event(pmpriv, pevent->event_id, pevent);
764 break;
765 case EVENT_SNR_HIGH:
766 PRINTM(MEVENT, "EVENT: Beacon SNR_HIGH\n");
767 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_BCN_SNR_HIGH, MNULL);
768 break;
769 case EVENT_DATA_RSSI_LOW:
770 PRINTM(MEVENT, "EVENT: Data RSSI_LOW\n");
771 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_DATA_RSSI_LOW, MNULL);
772 break;
773 case EVENT_DATA_SNR_LOW:
774 PRINTM(MEVENT, "EVENT: Data SNR_LOW\n");
775 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_DATA_SNR_LOW, MNULL);
776 break;
777 case EVENT_DATA_RSSI_HIGH:
778 PRINTM(MEVENT, "EVENT: Data RSSI_HIGH\n");
779 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_DATA_RSSI_HIGH, MNULL);
780 break;
781 case EVENT_DATA_SNR_HIGH:
782 PRINTM(MEVENT, "EVENT: Data SNR_HIGH\n");
783 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_DATA_SNR_HIGH, MNULL);
784 break;
785 case EVENT_LINK_QUALITY:
786 PRINTM(MEVENT, "EVENT: Link Quality\n");
787 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_LINK_QUALITY, MNULL);
788 break;
789 case EVENT_PRE_BEACON_LOST:
790 PRINTM(MEVENT, "EVENT: Pre-Beacon Lost\n");
791 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_PRE_BCN_LOST, MNULL);
792 break;
793 case EVENT_IBSS_COALESCED:
794 PRINTM(MEVENT, "EVENT: IBSS_COALESCED\n");
795 ret = wlan_prepare_cmd(
796 pmpriv, HostCmd_CMD_802_11_IBSS_COALESCING_STATUS,
797 HostCmd_ACT_GEN_GET, 0, MNULL, MNULL);
798 break;
799 case EVENT_ADDBA:
800 PRINTM(MEVENT, "EVENT: ADDBA Request\n");
801 if (pmpriv->media_connected == MTRUE)
802 ret = wlan_prepare_cmd(pmpriv,
803 HostCmd_CMD_11N_ADDBA_RSP,
804 HostCmd_ACT_GEN_SET, 0, MNULL,
805 pmadapter->event_body);
806 else
807 PRINTM(MERROR,
808 "Ignore ADDBA Request event in disconnected state\n");
809 break;
810 case EVENT_DELBA:
811 PRINTM(MEVENT, "EVENT: DELBA Request\n");
812 if (pmpriv->media_connected == MTRUE)
813 wlan_11n_delete_bastream(pmpriv, pmadapter->event_body);
814 else
815 PRINTM(MERROR,
816 "Ignore DELBA Request event in disconnected state\n");
817 break;
818 case EVENT_BA_STREAM_TIMEOUT:
819 PRINTM(MEVENT, "EVENT: BA Stream timeout\n");
820 if (pmpriv->media_connected == MTRUE)
821 wlan_11n_ba_stream_timeout(
822 pmpriv, (HostCmd_DS_11N_BATIMEOUT *)
823 pmadapter->event_body);
824 else
825 PRINTM(MERROR,
826 "Ignore BA Stream timeout event in disconnected state\n");
827 break;
828 case EVENT_RXBA_SYNC:
829 PRINTM(MEVENT, "EVENT: RXBA_SYNC\n");
830 wlan_11n_rxba_sync_event(pmpriv, pmadapter->event_body,
831 pmbuf->data_len - sizeof(eventcause));
832 break;
833 case EVENT_AMSDU_AGGR_CTRL:
834 PRINTM(MEVENT, "EVENT: AMSDU_AGGR_CTRL %d\n",
835 *(t_u16 *)pmadapter->event_body);
836 pmadapter->tx_buf_size =
837 MIN(pmadapter->curr_tx_buf_size,
838 wlan_le16_to_cpu(*(t_u16 *)pmadapter->event_body));
839 if (pmbuf->data_len == sizeof(eventcause) + sizeof(t_u32)) {
840 enable = wlan_le16_to_cpu(
841 *(t_u16 *)(pmadapter->event_body +
842 sizeof(t_u16)));
843 if (enable)
844 pmpriv->amsdu_disable = MFALSE;
845 else
846 pmpriv->amsdu_disable = MTRUE;
847 PRINTM(MEVENT, "amsdu_disable=%d\n",
848 pmpriv->amsdu_disable);
849 }
850 PRINTM(MEVENT, "tx_buf_size %d\n", pmadapter->tx_buf_size);
851 break;
852
853 case EVENT_WEP_ICV_ERR:
854 PRINTM(MEVENT, "EVENT: WEP ICV error\n");
855 pevent->bss_index = pmpriv->bss_index;
856 pevent->event_id = MLAN_EVENT_ID_FW_WEP_ICV_ERR;
857 pevent->event_len = sizeof(Event_WEP_ICV_ERR);
858 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
859 pmadapter->event_body, pevent->event_len,
860 pevent->event_len);
861 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_WEP_ICV_ERR, pevent);
862 break;
863
864 case EVENT_BW_CHANGE:
865 PRINTM(MEVENT, "EVENT: BW Change\n");
866 pevent->bss_index = pmpriv->bss_index;
867 pevent->event_id = MLAN_EVENT_ID_FW_BW_CHANGED;
868 pevent->event_len = sizeof(t_u8);
869 /* Copy event body from the event buffer */
870 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
871 pmadapter->event_body, pevent->event_len,
872 pevent->event_len);
873 #ifdef UAP_SUPPORT
874 if (pmadapter->dfs_repeater)
875 wlan_dfs_rep_bw_change(pmadapter);
876 #endif
877 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_BW_CHANGED, pevent);
878 break;
879
880 #ifdef WIFI_DIRECT_SUPPORT
881 case EVENT_WIFIDIRECT_GENERIC_EVENT:
882 PRINTM(MEVENT, "EVENT: WIFIDIRECT event %d\n", eventcause);
883 pevent->bss_index = pmpriv->bss_index;
884 pevent->event_id = MLAN_EVENT_ID_DRV_PASSTHRU;
885 pevent->event_len = pmbuf->data_len;
886 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
887 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
888 pevent->event_len);
889 wlan_recv_event(pmpriv, pevent->event_id, pevent);
890 break;
891 case EVENT_WIFIDIRECT_SERVICE_DISCOVERY:
892 PRINTM(MEVENT, "EVENT: WIFIDIRECT service discovery event %d\n",
893 eventcause);
894 pevent->bss_index = pmpriv->bss_index;
895 pevent->event_id = MLAN_EVENT_ID_DRV_PASSTHRU;
896 pevent->event_len = pmbuf->data_len;
897 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
898 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
899 pevent->event_len);
900 wlan_recv_event(pmpriv, pevent->event_id, pevent);
901 break;
902 #endif /* WIFI_DIRECT_SUPPORT */
903 case EVENT_REMAIN_ON_CHANNEL_EXPIRED:
904 PRINTM_NETINTF(MEVENT, pmpriv);
905 PRINTM(MEVENT, "EVENT: REMAIN_ON_CHANNEL_EXPIRED reason=%d\n",
906 *(t_u16 *)pmadapter->event_body);
907 wlan_recv_event(pmpriv, MLAN_EVENT_ID_DRV_FLUSH_RX_WORK, MNULL);
908 wlan_recv_event(pmpriv, MLAN_EVENT_ID_FW_REMAIN_ON_CHAN_EXPIRED,
909 MNULL);
910 break;
911
912 case EVENT_TX_DATA_PAUSE:
913 PRINTM(MEVENT, "EVENT: TX_DATA_PAUSE\n");
914 wlan_process_sta_tx_pause_event(priv, pmbuf);
915 break;
916
917 case EVENT_IBSS_STATION_CONNECT:
918 break;
919 case EVENT_IBSS_STATION_DISCONNECT:
920 break;
921 case EVENT_SAD_REPORT: {
922 #ifdef DEBUG_LEVEL1
923 t_u8 *pevt_dat =
924 pmbuf->pbuf + pmbuf->data_offset + sizeof(t_u32);
925 #endif
926 PRINTM(MEVENT,
927 "EVENT: Antenna Diversity %d (%d, %d, %d, %d)\n",
928 eventcause, pevt_dat[0] + 1, pevt_dat[1] + 1,
929 pevt_dat[2], pevt_dat[3]);
930 } break;
931
932 case EVENT_FW_DUMP_INFO:
933 PRINTM(MEVENT, "EVENT: Dump FW info\n");
934 pevent->bss_index = pmpriv->bss_index;
935 pevent->event_id = MLAN_EVENT_ID_FW_DUMP_INFO;
936 pevent->event_len = pmbuf->data_len;
937 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
938 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
939 pevent->event_len);
940 wlan_recv_event(pmpriv, pevent->event_id, pevent);
941 break;
942 case EVENT_TX_STATUS_REPORT:
943 PRINTM(MINFO, "EVENT: TX_STATUS\n");
944 pevent->bss_index = pmpriv->bss_index;
945 pevent->event_id = MLAN_EVENT_ID_FW_TX_STATUS;
946 pevent->event_len = pmbuf->data_len;
947 memcpy_ext(pmadapter, (t_u8 *)pevent->event_buf,
948 pmbuf->pbuf + pmbuf->data_offset, pevent->event_len,
949 pevent->event_len);
950
951 wlan_recv_event(pmpriv, pevent->event_id, pevent);
952 break;
953 case EVENT_BT_COEX_WLAN_PARA_CHANGE:
954 PRINTM(MEVENT, "EVENT: BT coex wlan param update\n");
955 wlan_bt_coex_wlan_param_update_event(pmpriv, pmbuf);
956 break;
957
958 #if defined(PCIE)
959 case EVENT_SSU_DUMP_DMA:
960 PRINTM(MEVENT, "EVENT: EVENT_SSU_DUMP_DMA\n");
961 if (!pmadapter->ssu_buf || !pmadapter->ssu_buf->pbuf)
962 break;
963
964 /* If ADMA is supported, SSU header could not be received with
965 * SSU data. Instead, SSU header is received through this event.
966 * So, copy the header into the buffer before passing the buffer
967 * to upper layer for file writting
968 */
969 memcpy_ext(pmadapter,
970 (t_u8 *)pmadapter->ssu_buf->pbuf +
971 pmadapter->ssu_buf->data_offset,
972 pmbuf->pbuf + pmbuf->data_offset +
973 sizeof(eventcause),
974 (pmbuf->data_len - sizeof(eventcause)),
975 (pmbuf->data_len - sizeof(eventcause)));
976
977 DBG_HEXDUMP(MEVT_D, "SSU data",
978 (t_u8 *)pmadapter->ssu_buf->pbuf +
979 pmadapter->ssu_buf->data_offset,
980 512);
981 pevent->bss_index = pmpriv->bss_index;
982 pevent->event_id = MLAN_EVENT_ID_SSU_DUMP_FILE;
983 pevent->event_len = MLAN_SSU_BUF_SIZE;
> 984 *(t_u64 *)pevent->event_buf = (t_u64)pmadapter->ssu_buf->pbuf +
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH v6 11/16] scripts: kernel-doc: validate kernel-doc markup with the actual names
by kernel test robot
Hi Mauro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210113]
[also build test WARNING on v5.11-rc3]
[cannot apply to lwn/docs-next kees/for-next/pstore mac80211-next/master mac80211/master pza/reset/next linus/master v5.11-rc3 v5.11-rc2 v5.11-rc1]
[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/Mauro-Carvalho-Chehab/Fix-severa...
base: aa515cdce7a151dcc14b7600d33f1414c6fa32c9
config: arm64-alldefconfig (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://github.com/0day-ci/linux/commit/1e9159b3640012fc5fab8508b1c5635ac...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mauro-Carvalho-Chehab/Fix-several-bad-kernel-doc-markups/20210114-161010
git checkout 1e9159b3640012fc5fab8508b1c5635ac13a55e9
# 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 >>):
kernel/seccomp.c:126: warning: Function parameter or member 'list' not described in 'seccomp_kaddfd'
kernel/seccomp.c:390: warning: Function parameter or member 'ret' not described in 'ACTION_ONLY'
>> kernel/seccomp.c:390: warning: expecting prototype for seccomp_run_filters(). Prototype was for ACTION_ONLY() instead
kernel/seccomp.c:553: warning: Function parameter or member 'tsk' not described in 'seccomp_filter_release'
kernel/seccomp.c:573: warning: Function parameter or member 'flags' not described in 'seccomp_sync_threads'
--
drivers/base/platform-msi.c:336: warning: Function parameter or member 'is_tree' not described in '__platform_msi_create_device_domain'
>> drivers/base/platform-msi.c:336: warning: expecting prototype for platform_msi_create_device_domain(). Prototype was for __platform_msi_create_device_domain() instead
--
>> drivers/iommu/iommu.c:956: warning: expecting prototype for iommu_group_for_each_dev(). Prototype was for __iommu_group_for_each_dev() instead
drivers/iommu/iommu.c:2976: warning: Function parameter or member 'drvdata' not described in 'iommu_sva_bind_device'
--
>> kernel/irq/msi.c:534: warning: expecting prototype for __msi_domain_free_irqs(). Prototype was for msi_domain_free_irqs() instead
--
>> kernel/irq/ipi.c:264: warning: expecting prototype for ipi_send_mask(). Prototype was for __ipi_send_mask() instead
vim +390 kernel/seccomp.c
f9d480b6ffbeb336 YiFei Zhu 2020-10-11 380
e2cfabdfd0756482 Will Drewry 2012-04-12 381 /**
285fdfc5d9959a21 Mickaël Salaün 2016-09-20 382 * seccomp_run_filters - evaluates all seccomp filters against @sd
285fdfc5d9959a21 Mickaël Salaün 2016-09-20 383 * @sd: optional seccomp data to be passed to filters
deb4de8b31bc5bf2 Kees Cook 2017-08-02 384 * @match: stores struct seccomp_filter that resulted in the return value,
deb4de8b31bc5bf2 Kees Cook 2017-08-02 385 * unless filter returned SECCOMP_RET_ALLOW, in which case it will
deb4de8b31bc5bf2 Kees Cook 2017-08-02 386 * be unchanged.
e2cfabdfd0756482 Will Drewry 2012-04-12 387 *
e2cfabdfd0756482 Will Drewry 2012-04-12 388 * Returns valid seccomp BPF response codes.
e2cfabdfd0756482 Will Drewry 2012-04-12 389 */
0466bdb99e8744bc Kees Cook 2017-08-11 @390 #define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL)))
deb4de8b31bc5bf2 Kees Cook 2017-08-02 391 static u32 seccomp_run_filters(const struct seccomp_data *sd,
deb4de8b31bc5bf2 Kees Cook 2017-08-02 392 struct seccomp_filter **match)
e2cfabdfd0756482 Will Drewry 2012-04-12 393 {
acf3b2c71ed20c53 Will Drewry 2012-04-12 394 u32 ret = SECCOMP_RET_ALLOW;
8225d3853f34f6cf Pranith Kumar 2014-11-21 395 /* Make sure cross-thread synced filter points somewhere sane. */
8225d3853f34f6cf Pranith Kumar 2014-11-21 396 struct seccomp_filter *f =
506458efaf153c1e Will Deacon 2017-10-24 397 READ_ONCE(current->seccomp.filter);
acf3b2c71ed20c53 Will Drewry 2012-04-12 398
acf3b2c71ed20c53 Will Drewry 2012-04-12 399 /* Ensure unexpected behavior doesn't result in failing open. */
0d42d73a37ff9102 Igor Stoppa 2018-09-05 400 if (WARN_ON(f == NULL))
4d3b0b05aae9ee9c Kees Cook 2017-08-11 401 return SECCOMP_RET_KILL_PROCESS;
acf3b2c71ed20c53 Will Drewry 2012-04-12 402
f9d480b6ffbeb336 YiFei Zhu 2020-10-11 403 if (seccomp_cache_check_allow(f, sd))
f9d480b6ffbeb336 YiFei Zhu 2020-10-11 404 return SECCOMP_RET_ALLOW;
f9d480b6ffbeb336 YiFei Zhu 2020-10-11 405
e2cfabdfd0756482 Will Drewry 2012-04-12 406 /*
e2cfabdfd0756482 Will Drewry 2012-04-12 407 * All filters in the list are evaluated and the lowest BPF return
acf3b2c71ed20c53 Will Drewry 2012-04-12 408 * value always takes priority (ignoring the DATA).
e2cfabdfd0756482 Will Drewry 2012-04-12 409 */
3ba2530cc06eb4ae Kees Cook 2014-06-27 410 for (; f; f = f->prev) {
3d9f773cf2876c01 David Miller 2020-02-24 411 u32 cur_ret = bpf_prog_run_pin_on_cpu(f->prog, sd);
8f577cadf7181243 Alexei Starovoitov 2014-05-13 412
0466bdb99e8744bc Kees Cook 2017-08-11 413 if (ACTION_ONLY(cur_ret) < ACTION_ONLY(ret)) {
acf3b2c71ed20c53 Will Drewry 2012-04-12 414 ret = cur_ret;
deb4de8b31bc5bf2 Kees Cook 2017-08-02 415 *match = f;
deb4de8b31bc5bf2 Kees Cook 2017-08-02 416 }
e2cfabdfd0756482 Will Drewry 2012-04-12 417 }
e2cfabdfd0756482 Will Drewry 2012-04-12 418 return ret;
e2cfabdfd0756482 Will Drewry 2012-04-12 419 }
1f41b450416e689b Kees Cook 2014-06-25 420 #endif /* CONFIG_SECCOMP_FILTER */
1f41b450416e689b Kees Cook 2014-06-25 421
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[morimoto-linux:fw-cleanup-2021-01-14-v1 97/97] sound/soc/generic/audio-graph-card2.c:577:23: error: implicit declaration of function 'snd_soc_dai_fmt_master_fliped'; did you mean
by kernel test robot
tree: https://github.com/morimoto/linux fw-cleanup-2021-01-14-v1
head: f4a51f1bc100f5010571f4473625f5f506940ba9
commit: f4a51f1bc100f5010571f4473625f5f506940ba9 [97/97] hoge
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://github.com/morimoto/linux/commit/f4a51f1bc100f5010571f4473625f5f5...
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux fw-cleanup-2021-01-14-v1
git checkout f4a51f1bc100f5010571f4473625f5f506940ba9
# 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 >>):
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:8: error: stray '\212' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:9: error: stray '\346' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:10: error: stray '\233' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:11: error: stray '\270' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:12: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:13: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:14: error: stray '\215' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:15: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:16: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:17: error: stray '\225' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:18: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:19: error: stray '\202' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:20: error: stray '\214' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:21: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:22: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:23: error: stray '\246' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:24: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:25: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:26: error: stray '\227' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:27: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:28: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:29: error: stray '\276' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:30: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:31: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:32: error: stray '\206' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:335:3: error: implicit declaration of function '__graph_parse_daifmt'; did you mean 'graph_parse_daifmt'? [-Werror=implicit-function-declaration]
335 | __graph_parse_daifmt(ports, dai_link);
| ^~~~~~~~~~~~~~~~~~~~
| graph_parse_daifmt
sound/soc/generic/audio-graph-card2.c:322:15: warning: unused variable 'fmt' [-Wunused-variable]
322 | unsigned int fmt;
| ^~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_init':
sound/soc/generic/audio-graph-card2.c:416:17: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
416 | printk("1----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
sound/soc/generic/audio-graph-card2.c:418:17: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
418 | printk("2----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
sound/soc/generic/audio-graph-card2.c: In function 'asoc_graph2_link_dpcm':
>> sound/soc/generic/audio-graph-card2.c:577:23: error: implicit declaration of function 'snd_soc_dai_fmt_master_fliped'; did you mean 'snd_soc_daifmt_master_fliped'? [-Werror=implicit-function-declaration]
577 | dai_link->dai_fmt = snd_soc_dai_fmt_master_fliped(dai_link->dai_fmt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_daifmt_master_fliped
sound/soc/generic/audio-graph-card2.c:578:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
578 | printk("3----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
At top level:
sound/soc/generic/audio-graph-card2.c:301:13: warning: 'graph_daifmt_update' defined but not used [-Wunused-function]
301 | static void graph_daifmt_update(struct snd_soc_dai_link *dai_link,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +577 sound/soc/generic/audio-graph-card2.c
404
405 static int graph_link_init(struct asoc_simple_priv *priv,
406 struct device_node *link_ep,
407 struct device_node *target_ep,
408 struct link_info *li,
409 char *name)
410 {
411 struct device *dev = simple_priv_to_dev(priv);
412 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
413
414 if (link_ep)
415 graph_parse_daifmt(link_ep, dai_link);
416 printk("1----%lx\n", dai_link->dai_fmt);
417 graph_parse_daifmt(target_ep, dai_link);
> 418 printk("2----%lx\n", dai_link->dai_fmt);
419
420 dai_link->init = graph_dai_init;
421 if (priv->ops)
422 dai_link->ops = priv->ops;
423 else
424 dai_link->ops = &graph_ops;
425
426 return asoc_simple_set_dailink_name(dev, dai_link, name);
427 }
428
429 int asoc_graph2_link_normal(struct asoc_simple_priv *priv,
430 struct device_node *lnk,
431 struct link_info *li)
432 {
433 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
434 struct device_node *cpu_port = lnk;
435 struct device_node *cpu_ep = port_to_endpoint(cpu_port);
436 struct device_node *codec_ep = of_graph_get_remote_endpoint(cpu_ep);
437 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
438 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
439 char dai_name[64];
440 int ret;
441
442 ret = graph_parse_node(priv, cpu_ep, li, 0, 1);
443 if (ret < 0)
444 goto err;
445
446 ret = graph_parse_node(priv, codec_ep, li, 0, 0);
447 if (ret < 0)
448 goto err;
449
450 sprintf(dai_name, "%s-%s", cpus->dai_name,
451 codecs->dai_name);
452
453 ret = graph_link_init(priv, NULL, cpu_ep, li, dai_name);
454 if (ret < 0)
455 goto err;
456
457 err:
458 of_node_put(cpu_ep);
459 of_node_put(codec_ep);
460
461 return ret;
462 }
463 EXPORT_SYMBOL_GPL(asoc_graph2_link_normal);
464
465 int asoc_graph2_link_dpcm(struct asoc_simple_priv *priv,
466 struct device_node *lnk,
467 struct link_info *li)
468 {
469 struct device *dev = simple_priv_to_dev(priv);
470 struct device_node *ep = port_to_endpoint(lnk);
471 struct device_node *rep = of_graph_get_remote_endpoint(ep);
472 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
473 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
474 char dai_name[64];
475 int ret;
476
477 if (asoc_graph_is_ports0(lnk)) {
478 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
479
480 /*
481 * DSP {
482 * compatible = "audio-graph-card2-dsp";
483 *
484 * // Front-End
485 * ports@0 {
486 * => lnk: port@0 { ep: endpoint { remote-endpoint = <&rep>; }; };
487 * ...
488 * };
489 * // Back-End
490 * ports@0 {
491 * ...
492 * };
493 * };
494 *
495 * CPU {
496 * rports: ports {
497 * rport: port@0 { rep: endpoint { ... }; };
498 * }
499 * }
500 */
501 /*
502 * setup CPU here, Codec is already set as dummy.
503 * see
504 * asoc_simple_init_priv()
505 */
506 dai_link->dynamic = 1;
507 dai_link->dpcm_merged_format = 1;
508
509 ret = graph_parse_node(priv, rep, li, 0, 1);
510 if (ret)
511 goto err;
512
513 sprintf(dai_name, "fe.%pOFP.%s",
514 cpus->of_node,
515 cpus->dai_name);
516 printk("------fe\n");
517 ret = graph_link_init(priv, ep, rep, li, dai_name);
518 if (ret < 0)
519 goto err;
520 } else {
521 struct device_node *rport = of_get_parent(rep);
522 struct device_node *rports = of_get_parent(rport);
523 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
524 struct snd_soc_codec_conf *cconf = simple_props_to_codec_conf(dai_props, 0);
525
526 /*
527 * DSP {
528 * compatible = "audio-graph-card2-dsp";
529 *
530 * // Front-End
531 * ports@0 {
532 * ...
533 * };
534 * // Back-End
535 * ports@0 {
536 * => lnk: port@0 { ep: endpoint { remote-endpoint = <&rep>; }; };
537 * ...
538 * };
539 * };
540 *
541 * Codec {
542 * rports: ports {
543 * rport: port@0 { rep: endpoint { ... }; };
544 * }
545 * }
546 */
547 /*
548 * setup Codec here, CPU is already set as dummy.
549 * see
550 * asoc_simple_init_priv()
551 */
552
553 /* BE settings */
554 dai_link->no_pcm = 1;
555 dai_link->be_hw_params_fixup = asoc_simple_be_hw_params_fixup;
556
557 /* check "prefix" from top node */
558 snd_soc_of_parse_node_prefix(rports, cconf, codecs->of_node, "prefix");
559 snd_soc_of_parse_node_prefix(rport, cconf, codecs->of_node, "prefix");
560
561 of_node_put(rport);
562 of_node_put(rports);
563
564 ret = graph_parse_node(priv, rep, li, 0, 0);
565 if (ret < 0)
566 goto err;
567
568 sprintf(dai_name, "be.%pOFP.%s",
569 codecs->of_node,
570 codecs->dai_name);
571 printk("------be\n");
572 ret = graph_link_init(priv, ep, rep, li, dai_name);
573 if (ret < 0)
574 goto err;
575
576 /* We need to flip master, since It is CPU base dai_fmt */
> 577 dai_link->dai_fmt = snd_soc_dai_fmt_master_fliped(dai_link->dai_fmt);
578 printk("3----%lx\n", dai_link->dai_fmt);
579 }
580
581 graph_parse_convert(dev, rep, &dai_props->adata);
582
583 snd_soc_dai_link_set_capabilities(dai_link);
584
585 err:
586 of_node_put(ep);
587 of_node_put(rep);
588
589 return ret;
590 }
591 EXPORT_SYMBOL_GPL(asoc_graph2_link_dpcm);
592
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for 'kvm_get_kimage_voffset'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: 68b824e428c5fb5c3dc5ef80b1543e767534b58e KVM: arm64: Patch kimage_voffset instead of loading the EL1 value
date: 7 weeks ago
config: arm64-randconfig-r005-20210113 (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/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 68b824e428c5fb5c3dc5ef80b1543e767534b58e
# 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 >>):
arch/arm64/kvm/va_layout.c:138:6: warning: no previous prototype for 'kvm_patch_vector_branch' [-Wmissing-prototypes]
138 | void kvm_patch_vector_branch(struct alt_instr *alt,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/va_layout.c:249:6: warning: no previous prototype for 'kvm_update_kimg_phys_offset' [-Wmissing-prototypes]
249 | void kvm_update_kimg_phys_offset(struct alt_instr *alt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for 'kvm_get_kimage_voffset' [-Wmissing-prototypes]
255 | void kvm_get_kimage_voffset(struct alt_instr *alt,
| ^~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NVMEM_IMX_OCOTP
Depends on NVMEM && (ARCH_MXC || COMPILE_TEST && HAS_IOMEM
Selected by
- ARM_IMX6Q_CPUFREQ && CPU_FREQ && (ARM || ARM64 && ARCH_MXC && REGULATOR_ANATOP
vim +/kvm_get_kimage_voffset +255 arch/arm64/kvm/va_layout.c
254
> 255 void kvm_get_kimage_voffset(struct alt_instr *alt,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[freescale-fslc:5.4-2.3.x-imx 12732/16543] drivers/usb/typec/tcpm/tcpm.c:4726:7: warning: variable 'ret' is used uninitialized whenever switch case is taken
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: 7801f9a5347345b16fc4039c7b5b612403af0234 [12732/16543] MLK-24507-3 usb: typec: tcpm: add BC charger types if power type is usb
config: x86_64-randconfig-a004-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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/Freescale/linux-fslc/commit/7801f9a5347345b16fc4039c7b...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout 7801f9a5347345b16fc4039c7b5b612403af0234
# 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 >>):
>> drivers/usb/typec/tcpm/tcpm.c:4726:7: warning: variable 'ret' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
case POWER_SUPPLY_PROP_USB_TYPE:
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tcpm/tcpm.c:4734:9: note: uninitialized use occurs here
return ret;
^~~
drivers/usb/typec/tcpm/tcpm.c:4707:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning generated.
vim +/ret +4726 drivers/usb/typec/tcpm/tcpm.c
4701
4702 static int tcpm_psy_set_prop(struct power_supply *psy,
4703 enum power_supply_property psp,
4704 const union power_supply_propval *val)
4705 {
4706 struct tcpm_port *port = power_supply_get_drvdata(psy);
4707 int ret;
4708
4709 switch (psp) {
4710 case POWER_SUPPLY_PROP_ONLINE:
4711 ret = tcpm_psy_set_online(port, val);
4712 break;
4713 case POWER_SUPPLY_PROP_VOLTAGE_NOW:
4714 if (val->intval < port->pps_data.min_volt * 1000 ||
4715 val->intval > port->pps_data.max_volt * 1000)
4716 ret = -EINVAL;
4717 else
4718 ret = tcpm_pps_set_out_volt(port, val->intval / 1000);
4719 break;
4720 case POWER_SUPPLY_PROP_CURRENT_NOW:
4721 if (val->intval > port->pps_data.max_curr * 1000)
4722 ret = -EINVAL;
4723 else
4724 ret = tcpm_pps_set_op_curr(port, val->intval / 1000);
4725 break;
> 4726 case POWER_SUPPLY_PROP_USB_TYPE:
4727 port->usb_type = val->intval;
4728 break;
4729 default:
4730 ret = -EINVAL;
4731 break;
4732 }
4733
4734 return ret;
4735 }
4736
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months