[intel-tdx:tdx/guest-rebased 55/133] arch/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr'
by kernel test robot
tree: https://github.com/intel/tdx.git tdx/guest-rebased
head: e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: eff3229d99a6ea4b75fa0656fca38ac6db67ca7d [55/133] x86/tdx: Add SetupEventNotifyInterrupt TDX hypercall support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201140147.8KQUVLdd-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/eff3229d99a6ea4b75fa0656fca38ac6db67ca7d
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx tdx/guest-rebased
git checkout eff3229d99a6ea4b75fa0656fca38ac6db67ca7d
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
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/x86/kernel/tdx.c:224:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
224 | int tdx_hcall_set_notify_intr(u8 vector)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/tdx_hcall_set_notify_intr +224 arch/x86/kernel/tdx.c
216
217 /*
218 * tdx_hcall_set_notify_intr() - Setup Event Notify Interrupt Vector.
219 *
220 * @vector : Vector address to be used for notification.
221 *
222 * return 0 on success or failure error number.
223 */
> 224 int tdx_hcall_set_notify_intr(u8 vector)
225 {
226 u64 ret;
227
228 /* Minimum vector value allowed is 32 */
229 if (vector < 32)
230 return -EINVAL;
231
232 /*
233 * Register callback vector address with VMM. More details
234 * about the ABI can be found in TDX Guest-Host-Communication
235 * Interface (GHCI), sec 3.5.
236 */
237 ret = _trace_tdx_hypercall(TDVMCALL_SETUP_NOTIFY_INTR, vector, 0, 0, 0,
238 NULL);
239
240 if (ret == TDVMCALL_SUCCESS)
241 return 0;
242 else if (ret == TDCALL_INVALID_OPERAND)
243 return -EINVAL;
244
245 return -EIO;
246 }
247
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 455e73a07f6e288b0061dfcf4fcf54fa9fe06458
commit: 57cbdbe65e5f9ba9bfd67b66bc3ce24ef1c54643 drm/nouveau/kms/nv140-: Use hard-coded wndws or core channel for CRC channel
date: 9 weeks ago
config: sparc64-randconfig-s032-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140142.b2CYChpW-lk...)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 57cbdbe65e5f9ba9bfd67b66bc3ce24ef1c54643
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/gpu/drm/
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/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:41:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:41:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:43:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:43:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:44:17: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:44:17: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +40 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c
12
13 static int crcc57d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source,
14 struct nv50_crc_notifier_ctx *ctx)
15 {
16 struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
17 const int i = head->base.index;
18 u32 crc_args = NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) |
19 NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
20 NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, SECONDARY_CRC, NONE) |
21 NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CRC_DURING_SNOOZE, DISABLE);
22 int ret;
23
24 switch (source) {
25 case NV50_CRC_SOURCE_TYPE_SOR:
26 crc_args |= NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, PRIMARY_CRC, SOR(or));
27 break;
28 case NV50_CRC_SOURCE_TYPE_SF:
29 crc_args |= NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, PRIMARY_CRC, SF);
30 break;
31 default:
32 break;
33 }
34
35 ret = PUSH_WAIT(push, 4);
36 if (ret)
37 return ret;
38
39 if (source) {
> 40 PUSH_MTHD(push, NVC57D, HEAD_SET_CONTEXT_DMA_CRC(i), ctx->ntfy.handle);
41 PUSH_MTHD(push, NVC57D, HEAD_SET_CRC_CONTROL(i), crc_args);
42 } else {
43 PUSH_MTHD(push, NVC57D, HEAD_SET_CRC_CONTROL(i), 0);
44 PUSH_MTHD(push, NVC57D, HEAD_SET_CONTEXT_DMA_CRC(i), 0);
45 }
46
47 return 0;
48 }
49
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH] ALSA: pcm: accept the OPEN state for snd_pcm_stop()
by kernel test robot
Hi Jaroslav,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tiwai-sound/for-next]
[also build test WARNING on v5.16 next-20220113]
[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/Jaroslav-Kysela/ALSA-pcm-accept-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: hexagon-randconfig-r013-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140042.ARpH6f9U-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d1021978b8e7e35dcc30201ca1731d64b5a602a8)
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/18b89b55d815ee4e4f78fa96507d2ad7a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jaroslav-Kysela/ALSA-pcm-accept-the-OPEN-state-for-snd_pcm_stop/20220113-193304
git checkout 18b89b55d815ee4e4f78fa96507d2ad7a03c9c8c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash sound/core/
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 >>):
>> sound/core/pcm_native.c:691:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
case SNDRV_PCM_STATE_SETUP:
^
sound/core/pcm_native.c:691:2: note: insert 'break;' to avoid fall-through
case SNDRV_PCM_STATE_SETUP:
^
break;
1 warning generated.
vim +691 sound/core/pcm_native.c
60f96aaecb19ca2 Takashi Sakamoto 2017-06-09 674
877211f5e1b1196 Takashi Iwai 2005-11-17 675 static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
877211f5e1b1196 Takashi Iwai 2005-11-17 676 struct snd_pcm_hw_params *params)
^1da177e4c3f415 Linus Torvalds 2005-04-16 677 {
877211f5e1b1196 Takashi Iwai 2005-11-17 678 struct snd_pcm_runtime *runtime;
9442e691e4aec85 Takashi Iwai 2006-09-30 679 int err, usecs;
^1da177e4c3f415 Linus Torvalds 2005-04-16 680 unsigned int bits;
^1da177e4c3f415 Linus Torvalds 2005-04-16 681 snd_pcm_uframes_t frames;
^1da177e4c3f415 Linus Torvalds 2005-04-16 682
7eaa943c8ed8e91 Takashi Iwai 2008-08-08 683 if (PCM_RUNTIME_CHECK(substream))
7eaa943c8ed8e91 Takashi Iwai 2008-08-08 684 return -ENXIO;
^1da177e4c3f415 Linus Torvalds 2005-04-16 685 runtime = substream->runtime;
^1da177e4c3f415 Linus Torvalds 2005-04-16 686 snd_pcm_stream_lock_irq(substream);
^1da177e4c3f415 Linus Torvalds 2005-04-16 687 switch (runtime->status->state) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 688 case SNDRV_PCM_STATE_OPEN:
18b89b55d815ee4 Jaroslav Kysela 2022-01-13 689 if (atomic_read(&substream->queued_hw_free))
18b89b55d815ee4 Jaroslav Kysela 2022-01-13 690 goto __badfd;
^1da177e4c3f415 Linus Torvalds 2005-04-16 @691 case SNDRV_PCM_STATE_SETUP:
^1da177e4c3f415 Linus Torvalds 2005-04-16 692 case SNDRV_PCM_STATE_PREPARED:
^1da177e4c3f415 Linus Torvalds 2005-04-16 693 break;
^1da177e4c3f415 Linus Torvalds 2005-04-16 694 default:
18b89b55d815ee4 Jaroslav Kysela 2022-01-13 695 __badfd:
^1da177e4c3f415 Linus Torvalds 2005-04-16 696 snd_pcm_stream_unlock_irq(substream);
^1da177e4c3f415 Linus Torvalds 2005-04-16 697 return -EBADFD;
^1da177e4c3f415 Linus Torvalds 2005-04-16 698 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 699 snd_pcm_stream_unlock_irq(substream);
8eeaa2f9e06dcfb Takashi Iwai 2014-02-10 700 #if IS_ENABLED(CONFIG_SND_PCM_OSS)
^1da177e4c3f415 Linus Torvalds 2005-04-16 701 if (!substream->oss.oss)
^1da177e4c3f415 Linus Torvalds 2005-04-16 702 #endif
9c323fcbc51493f Takashi Iwai 2006-04-28 703 if (atomic_read(&substream->mmap_count))
^1da177e4c3f415 Linus Torvalds 2005-04-16 704 return -EBADFD;
^1da177e4c3f415 Linus Torvalds 2005-04-16 705
29bb274e9497466 Takashi Iwai 2021-02-06 706 snd_pcm_sync_stop(substream, true);
1e850beea2781d3 Takashi Iwai 2019-11-17 707
^1da177e4c3f415 Linus Torvalds 2005-04-16 708 params->rmask = ~0U;
^1da177e4c3f415 Linus Torvalds 2005-04-16 709 err = snd_pcm_hw_refine(substream, params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 710 if (err < 0)
^1da177e4c3f415 Linus Torvalds 2005-04-16 711 goto _error;
^1da177e4c3f415 Linus Torvalds 2005-04-16 712
^1da177e4c3f415 Linus Torvalds 2005-04-16 713 err = snd_pcm_hw_params_choose(substream, params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 714 if (err < 0)
^1da177e4c3f415 Linus Torvalds 2005-04-16 715 goto _error;
^1da177e4c3f415 Linus Torvalds 2005-04-16 716
f9a076bff053100 Takashi Sakamoto 2017-06-09 717 err = fixup_unreferenced_params(substream, params);
f9a076bff053100 Takashi Sakamoto 2017-06-09 718 if (err < 0)
f9a076bff053100 Takashi Sakamoto 2017-06-09 719 goto _error;
f9a076bff053100 Takashi Sakamoto 2017-06-09 720
0dba808eae2627f Takashi Iwai 2019-11-17 721 if (substream->managed_buffer_alloc) {
0dba808eae2627f Takashi Iwai 2019-11-17 722 err = snd_pcm_lib_malloc_pages(substream,
0dba808eae2627f Takashi Iwai 2019-11-17 723 params_buffer_bytes(params));
0dba808eae2627f Takashi Iwai 2019-11-17 724 if (err < 0)
0dba808eae2627f Takashi Iwai 2019-11-17 725 goto _error;
0dba808eae2627f Takashi Iwai 2019-11-17 726 runtime->buffer_changed = err > 0;
0dba808eae2627f Takashi Iwai 2019-11-17 727 }
0dba808eae2627f Takashi Iwai 2019-11-17 728
^1da177e4c3f415 Linus Torvalds 2005-04-16 729 if (substream->ops->hw_params != NULL) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 730 err = substream->ops->hw_params(substream, params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 731 if (err < 0)
^1da177e4c3f415 Linus Torvalds 2005-04-16 732 goto _error;
^1da177e4c3f415 Linus Torvalds 2005-04-16 733 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 734
^1da177e4c3f415 Linus Torvalds 2005-04-16 735 runtime->access = params_access(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 736 runtime->format = params_format(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 737 runtime->subformat = params_subformat(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 738 runtime->channels = params_channels(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 739 runtime->rate = params_rate(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 740 runtime->period_size = params_period_size(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 741 runtime->periods = params_periods(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 742 runtime->buffer_size = params_buffer_size(params);
^1da177e4c3f415 Linus Torvalds 2005-04-16 743 runtime->info = params->info;
^1da177e4c3f415 Linus Torvalds 2005-04-16 744 runtime->rate_num = params->rate_num;
^1da177e4c3f415 Linus Torvalds 2005-04-16 745 runtime->rate_den = params->rate_den;
ab69a4904b5dd4d Clemens Ladisch 2010-11-15 746 runtime->no_period_wakeup =
ab69a4904b5dd4d Clemens Ladisch 2010-11-15 747 (params->info & SNDRV_PCM_INFO_NO_PERIOD_WAKEUP) &&
ab69a4904b5dd4d Clemens Ladisch 2010-11-15 748 (params->flags & SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP);
^1da177e4c3f415 Linus Torvalds 2005-04-16 749
^1da177e4c3f415 Linus Torvalds 2005-04-16 750 bits = snd_pcm_format_physical_width(runtime->format);
^1da177e4c3f415 Linus Torvalds 2005-04-16 751 runtime->sample_bits = bits;
^1da177e4c3f415 Linus Torvalds 2005-04-16 752 bits *= runtime->channels;
^1da177e4c3f415 Linus Torvalds 2005-04-16 753 runtime->frame_bits = bits;
^1da177e4c3f415 Linus Torvalds 2005-04-16 754 frames = 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16 755 while (bits % 8 != 0) {
^1da177e4c3f415 Linus Torvalds 2005-04-16 756 bits *= 2;
^1da177e4c3f415 Linus Torvalds 2005-04-16 757 frames *= 2;
^1da177e4c3f415 Linus Torvalds 2005-04-16 758 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 759 runtime->byte_align = bits / 8;
^1da177e4c3f415 Linus Torvalds 2005-04-16 760 runtime->min_align = frames;
^1da177e4c3f415 Linus Torvalds 2005-04-16 761
^1da177e4c3f415 Linus Torvalds 2005-04-16 762 /* Default sw params */
^1da177e4c3f415 Linus Torvalds 2005-04-16 763 runtime->tstamp_mode = SNDRV_PCM_TSTAMP_NONE;
^1da177e4c3f415 Linus Torvalds 2005-04-16 764 runtime->period_step = 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16 765 runtime->control->avail_min = runtime->period_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 766 runtime->start_threshold = 1;
^1da177e4c3f415 Linus Torvalds 2005-04-16 767 runtime->stop_threshold = runtime->buffer_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 768 runtime->silence_threshold = 0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 769 runtime->silence_size = 0;
ead4046b2fdfd69 Clemens Ladisch 2010-05-21 770 runtime->boundary = runtime->buffer_size;
ead4046b2fdfd69 Clemens Ladisch 2010-05-21 771 while (runtime->boundary * 2 <= LONG_MAX - runtime->buffer_size)
ead4046b2fdfd69 Clemens Ladisch 2010-05-21 772 runtime->boundary *= 2;
^1da177e4c3f415 Linus Torvalds 2005-04-16 773
add9d56d7b37815 Takashi Iwai 2019-12-11 774 /* clear the buffer for avoiding possible kernel info leaks */
618de0f4ef11acd Takashi Iwai 2020-12-18 775 if (runtime->dma_area && !substream->ops->copy_user) {
618de0f4ef11acd Takashi Iwai 2020-12-18 776 size_t size = runtime->dma_bytes;
618de0f4ef11acd Takashi Iwai 2020-12-18 777
618de0f4ef11acd Takashi Iwai 2020-12-18 778 if (runtime->info & SNDRV_PCM_INFO_MMAP)
618de0f4ef11acd Takashi Iwai 2020-12-18 779 size = PAGE_ALIGN(size);
618de0f4ef11acd Takashi Iwai 2020-12-18 780 memset(runtime->dma_area, 0, size);
618de0f4ef11acd Takashi Iwai 2020-12-18 781 }
add9d56d7b37815 Takashi Iwai 2019-12-11 782
^1da177e4c3f415 Linus Torvalds 2005-04-16 783 snd_pcm_timer_resolution_change(substream);
9b0573c07f278e9 Takashi Iwai 2012-10-12 784 snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP);
9442e691e4aec85 Takashi Iwai 2006-09-30 785
5371a79be97caac Rafael J. Wysocki 2020-02-12 786 if (cpu_latency_qos_request_active(&substream->latency_pm_qos_req))
5371a79be97caac Rafael J. Wysocki 2020-02-12 787 cpu_latency_qos_remove_request(&substream->latency_pm_qos_req);
137c171cf7ecf62 Takashi Iwai 2021-06-08 788 usecs = period_to_usecs(runtime);
137c171cf7ecf62 Takashi Iwai 2021-06-08 789 if (usecs >= 0)
5371a79be97caac Rafael J. Wysocki 2020-02-12 790 cpu_latency_qos_add_request(&substream->latency_pm_qos_req,
5371a79be97caac Rafael J. Wysocki 2020-02-12 791 usecs);
^1da177e4c3f415 Linus Torvalds 2005-04-16 792 return 0;
^1da177e4c3f415 Linus Torvalds 2005-04-16 793 _error:
25985edcedea639 Lucas De Marchi 2011-03-30 794 /* hardware might be unusable from this time,
^1da177e4c3f415 Linus Torvalds 2005-04-16 795 so we force application to retry to set
^1da177e4c3f415 Linus Torvalds 2005-04-16 796 the correct hardware parameter settings */
9b0573c07f278e9 Takashi Iwai 2012-10-12 797 snd_pcm_set_state(substream, SNDRV_PCM_STATE_OPEN);
^1da177e4c3f415 Linus Torvalds 2005-04-16 798 if (substream->ops->hw_free != NULL)
^1da177e4c3f415 Linus Torvalds 2005-04-16 799 substream->ops->hw_free(substream);
0dba808eae2627f Takashi Iwai 2019-11-17 800 if (substream->managed_buffer_alloc)
0dba808eae2627f Takashi Iwai 2019-11-17 801 snd_pcm_lib_free_pages(substream);
^1da177e4c3f415 Linus Torvalds 2005-04-16 802 return err;
^1da177e4c3f415 Linus Torvalds 2005-04-16 803 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 804
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[tobetter:odroid-5.16.y 36/39] drivers/gpu/drm/tiny/ili9488_pio.c:335:36: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
Hi Dongjin,
First bad commit (maybe != root cause):
tree: https://github.com/tobetter/linux odroid-5.16.y
head: cb59f7f629212302d4136a919ef9822aa9c84aac
commit: d5c3ea72c0e7fde4122fa642dc8c5169ac68fb01 [36/39] ODROID-COMMON: Revert "drm/dbi: Print errors for mipi_dbi_command()"
config: csky-randconfig-s032-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140003.Wboc0MzQ-lk...)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/tobetter/linux/commit/d5c3ea72c0e7fde4122fa642dc8c5169...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout d5c3ea72c0e7fde4122fa642dc8c5169ac68fb01
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash drivers/gpu/drm/tiny/
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/gpu/drm/tiny/ili9488_pio.c:335:36: sparse: sparse: Using plain integer as NULL pointer
drivers/gpu/drm/tiny/ili9488_pio.c:336:47: sparse: sparse: Using plain integer as NULL pointer
drivers/gpu/drm/tiny/ili9488_pio.c: note: in included file (through arch/csky/include/asm/io.h, include/linux/io.h, include/linux/dma-buf-map.h, ...):
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
vim +335 drivers/gpu/drm/tiny/ili9488_pio.c
2ce4016e1804ca Dongjin Kim 2021-02-09 333
2ce4016e1804ca Dongjin Kim 2021-02-09 334 static const struct of_device_id ili9488_dt_ids[] = {
2ce4016e1804ca Dongjin Kim 2021-02-09 @335 { .compatible = "ili9488", 0 },
2ce4016e1804ca Dongjin Kim 2021-02-09 336 { .compatible = "hardkernel,ili9488", 0 },
2ce4016e1804ca Dongjin Kim 2021-02-09 337 { },
2ce4016e1804ca Dongjin Kim 2021-02-09 338 };
2ce4016e1804ca Dongjin Kim 2021-02-09 339
:::::: The code at line 335 was first introduced by commit
:::::: 2ce4016e1804ca6fb2285e3164d848d6975bad07 ODROID-COMMON: gpu/drm: Add new Tiny DRM driver with Ili9488
:::::: TO: Dongjin Kim <tobetter(a)gmail.com>
:::::: CC: Dongjin Kim <tobetter(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
include/linux/compiler_types.h:319:45: error: call to '__compiletime_assert_221' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
by kernel test robot
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 455e73a07f6e288b0061dfcf4fcf54fa9fe06458
commit: 6e799cb69a70eedbb41561b750f7180c12cff280 mm/highmem: Provide and use CONFIG_DEBUG_KMAP_LOCAL
date: 1 year, 2 months ago
config: arc-randconfig-r024-20220113 (https://download.01.org/0day-ci/archive/20220113/202201132244.7zrKls77-lk...)
compiler: arceb-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/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 6e799cb69a70eedbb41561b750f7180c12cff280
# 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 arch/arc/mm/
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 <command-line>:
arch/arc/mm/highmem.c: In function 'kmap_init':
>> include/linux/compiler_types.h:319:45: error: call to '__compiletime_assert_221' declared with attribute error: BUILD_BUG_ON failed: FIX_KMAP_SLOTS > PTRS_PER_PTE
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:300:25: note: in definition of macro '__compiletime_assert'
300 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:319:9: note: in expansion of macro '_compiletime_assert'
319 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/arc/mm/highmem.c:69:9: note: in expansion of macro 'BUILD_BUG_ON'
69 | BUILD_BUG_ON(FIX_KMAP_SLOTS > PTRS_PER_PTE);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_221 +319 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 305
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @319 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320
:::::: The code at line 319 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [wpan-next v2 19/27] net: ieee802154: Full PAN management
by kernel test robot
Hi Miquel,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16 next-20220112]
[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/Miquel-Raynal/IEEE-802-15-4-scan...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git daadb3bd0e8d3e317e36bc2c1542e86c528665e5
config: riscv-randconfig-r042-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130436.44AM2OXA-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/9c8fbd918a704432bbf6cdce1d111e900...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Miquel-Raynal/IEEE-802-15-4-scan-support/20220113-013731
git checkout 9c8fbd918a704432bbf6cdce1d111e9002c756b4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/ieee802154/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> net/ieee802154/nl802154.c:1613:8: error: implicit declaration of function 'nl802154_prepare_wpan_dev_dump' [-Werror,-Wimplicit-function-declaration]
err = nl802154_prepare_wpan_dev_dump(skb, cb, &rdev, &wpan_dev);
^
>> net/ieee802154/nl802154.c:1637:2: error: implicit declaration of function 'nl802154_finish_wpan_dev_dump' [-Werror,-Wimplicit-function-declaration]
nl802154_finish_wpan_dev_dump(rdev);
^
net/ieee802154/nl802154.c:1637:2: note: did you mean 'nl802154_prepare_wpan_dev_dump'?
net/ieee802154/nl802154.c:1613:8: note: 'nl802154_prepare_wpan_dev_dump' declared here
err = nl802154_prepare_wpan_dev_dump(skb, cb, &rdev, &wpan_dev);
^
2 errors generated.
vim +/nl802154_prepare_wpan_dev_dump +1613 net/ieee802154/nl802154.c
1605
1606 static int nl802154_dump_pans(struct sk_buff *skb, struct netlink_callback *cb)
1607 {
1608 struct cfg802154_registered_device *rdev;
1609 struct cfg802154_internal_pan *pan;
1610 struct wpan_dev *wpan_dev;
1611 int err;
1612
> 1613 err = nl802154_prepare_wpan_dev_dump(skb, cb, &rdev, &wpan_dev);
1614 if (err)
1615 return err;
1616
1617 spin_lock_bh(&rdev->pan_lock);
1618
1619 if (cb->args[2])
1620 goto out;
1621
1622 cb->seq = rdev->pan_generation;
1623
1624 ieee802154_for_each_pan(pan, rdev) {
1625 err = nl802154_send_pan_info(skb, cb, cb->nlh->nlmsg_seq,
1626 NLM_F_MULTI, rdev, wpan_dev, pan);
1627 if (err < 0)
1628 goto out_err;
1629 }
1630
1631 cb->args[2] = 1;
1632 out:
1633 err = skb->len;
1634 out_err:
1635 spin_unlock_bh(&rdev->pan_lock);
1636
> 1637 nl802154_finish_wpan_dev_dump(rdev);
1638
1639 return err;
1640 }
1641
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week