Hi Qi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.9-rc6 next-20200921]
[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/Qi-Liu/coresight-etm4x-Modify-co...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ba4f184e126b751d1bffad5897f263108befc780
config: arm64-allyesconfig (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
# 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 >>):
drivers/hwtracing/coresight/coresight-etm4x.c: In function
'etm4_enable_arch_specific':
> drivers/hwtracing/coresight/coresight-etm4x.c:131:22: warning:
variable 'adev' set but not used [-Wunused-but-set-variable]
131 |
struct amba_device *adev;
| ^~~~
drivers/hwtracing/coresight/coresight-etm4x.c: In function
'etm4_disable_arch_specific':
drivers/hwtracing/coresight/coresight-etm4x.c:145:22: warning: variable 'adev'
set but not used [-Wunused-but-set-variable]
145 | struct amba_device *adev;
| ^~~~
#
https://github.com/0day-ci/linux/commit/2c290844624851d000b87ae249c5b9233...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Qi-Liu/coresight-etm4x-Modify-core-commit-of-cpu-to-avoid-the-overflow-of-HiSilicon-ETM/20200921-175357
git checkout 2c290844624851d000b87ae249c5b92330d37ece
vim +/adev +131 drivers/hwtracing/coresight/coresight-etm4x.c
127
128 static void etm4_enable_arch_specific(struct etmv4_drvdata *drvdata)
129 {
130 struct device *dev = drvdata->csdev->dev.parent;
131 struct amba_device *adev;
132
133 adev = container_of(dev, struct amba_device, dev);
134
135 /*
136 * If ETM device is HiSilicon ETM device, reduce the
137 * core-commit to avoid ETM overflow.
138 */
139 etm4_hisi_config_core_commit(1);
140 }
141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org