From: kernel test robot <lkp@intel.com>
To: Yicong Yang <yangyicong@hisilicon.com>,
gregkh@linuxfoundation.org, helgaas@kernel.org,
alexander.shishkin@linux.intel.com, lorenzo.pieralisi@arm.com,
will@kernel.org, mark.rutland@arm.com,
mathieu.poirier@linaro.org, suzuki.poulose@arm.com,
mike.leach@linaro.org, leo.yan@linaro.org,
jonathan.cameron@huawei.com, daniel.thompson@linaro.org,
joro@8bytes.org, john.garry@huawei.com,
shameerali.kolothum.thodi@huawei.com, robin.murphy@arm.com,
peterz@infradead.org, mingo@redhat.com, acme@kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org,
linux-pci@vger.kernel.org, linux-perf-users@vger.kernel.org,
iommu@lists.linux-foundation.org
Cc: kbuild-all@lists.01.org, prime.zeng@huawei.com,
liuqi115@huawei.com, zhangshaokun@hisilicon.com,
linuxarm@huawei.com, yangyicong@hisilicon.com
Subject: Re: [PATCH v6 4/7] hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device
Date: Thu, 7 Apr 2022 12:28:05 +0800 [thread overview]
Message-ID: <202204071201.AcePULOR-lkp@intel.com> (raw)
In-Reply-To: <20220406071730.41031-5-yangyicong@hisilicon.com>
Hi Yicong,
I love your patch! Perhaps something to improve:
[auto build test WARNING on joro-iommu/next]
[also build test WARNING on linus/master linux/master v5.18-rc1 next-20220406]
[cannot apply to tip/perf/core]
[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/intel-lab-lkp/linux/commits/Yicong-Yang/Add-support-for-HiSilicon-PCIe-Tune-and-Trace-device/20220406-200044
base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220407/202204071201.AcePULOR-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/9400668b70cbcd5ec74a52f043c3a333b80135f8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Yicong-Yang/Add-support-for-HiSilicon-PCIe-Tune-and-Trace-device/20220406-200044
git checkout 9400668b70cbcd5ec74a52f043c3a333b80135f8
# 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=alpha SHELL=/bin/bash drivers/hwtracing/ptt/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/hwtracing/ptt/hisi_ptt.c: In function 'hisi_ptt_tune_data_get':
>> drivers/hwtracing/ptt/hisi_ptt.c:46:16: warning: conversion from 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295' [-Woverflow]
46 | writel(~0UL, hisi_ptt->iobase + HISI_PTT_TUNING_DATA);
| ^~~~
drivers/hwtracing/ptt/hisi_ptt.c: At top level:
drivers/hwtracing/ptt/hisi_ptt.c:1131:6: warning: no previous prototype for 'hisi_ptt_remove' [-Wmissing-prototypes]
1131 | void hisi_ptt_remove(struct pci_dev *pdev)
| ^~~~~~~~~~~~~~~
vim +46 drivers/hwtracing/ptt/hisi_ptt.c
33
34 static int hisi_ptt_tune_data_get(struct hisi_ptt *hisi_ptt,
35 u32 event, u16 *data)
36 {
37 u32 reg;
38
39 reg = readl(hisi_ptt->iobase + HISI_PTT_TUNING_CTRL);
40 reg &= ~(HISI_PTT_TUNING_CTRL_CODE | HISI_PTT_TUNING_CTRL_SUB);
41 reg |= FIELD_PREP(HISI_PTT_TUNING_CTRL_CODE | HISI_PTT_TUNING_CTRL_SUB,
42 event);
43 writel(reg, hisi_ptt->iobase + HISI_PTT_TUNING_CTRL);
44
45 /* Write all 1 to indicates it's the read process */
> 46 writel(~0UL, hisi_ptt->iobase + HISI_PTT_TUNING_DATA);
47
48 if (!hisi_ptt_wait_tuning_finish(hisi_ptt))
49 return -ETIMEDOUT;
50
51 reg = readl(hisi_ptt->iobase + HISI_PTT_TUNING_DATA);
52 reg &= HISI_PTT_TUNING_DATA_VAL_MASK;
53 *data = FIELD_GET(HISI_PTT_TUNING_DATA_VAL_MASK, reg);
54
55 return 0;
56 }
57
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-04-07 4:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 7:17 [PATCH v6 0/7] Add support for HiSilicon PCIe Tune and Trace device Yicong Yang
2022-04-06 7:17 ` [PATCH v6 1/7] iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity Yicong Yang
2022-04-06 7:17 ` [PATCH v6 2/7] hwtracing: Add trace function support for HiSilicon PCIe Tune and Trace device Yicong Yang
2022-04-06 7:17 ` [PATCH v6 3/7] hisi_ptt: Add support for dynamically updating the filter list Yicong Yang
2022-04-06 7:17 ` [PATCH v6 4/7] hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device Yicong Yang
2022-04-07 4:28 ` kernel test robot [this message]
2022-04-07 8:42 ` Yicong Yang
2022-04-06 7:17 ` [PATCH v6 5/7] perf tool: Add support for HiSilicon PCIe Tune and Trace device driver Yicong Yang
2022-04-06 7:17 ` [PATCH v6 6/7] docs: Add HiSilicon PTT device driver documentation Yicong Yang
2022-04-06 7:17 ` [PATCH v6 7/7] MAINTAINERS: Add maintainer for HiSilicon PTT driver Yicong Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204071201.AcePULOR-lkp@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=daniel.thompson@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=helgaas@kernel.org \
--cc=iommu@lists.linux-foundation.org \
--cc=john.garry@huawei.com \
--cc=jonathan.cameron@huawei.com \
--cc=joro@8bytes.org \
--cc=kbuild-all@lists.01.org \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=liuqi115@huawei.com \
--cc=lorenzo.pieralisi@arm.com \
--cc=mark.rutland@arm.com \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=prime.zeng@huawei.com \
--cc=robin.murphy@arm.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yangyicong@hisilicon.com \
--cc=zhangshaokun@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).