tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 10c3d69bc60059b194dcfa816cbc1240ffb0431d
commit: 33d67f3ba68c9eb1dbeb3a1f97a7a3fbe6260426 [18529/18530] Support RPL in measurement
function.
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/intel/linux-intel-lts/commit/33d67f3ba68c9eb1dbeb3a1f9...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/yocto
git checkout 33d67f3ba68c9eb1dbeb3a1f97a7a3fbe6260426
# 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 >>):
In file included from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/tcc/tcc_buffer.c:58:
drivers/tcc/tcc_buffer.c: In function 'tcc_free_memslot':
> drivers/tcc/tcc_buffer.c:1145:45: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
1145 |
dprintk("p_memslot->vaddr @ %016llx\n", (u64)(p_memslot->vaddr));
| ^
include/linux/printk.h:306:34: note: in definition of macro 'pr_info'
306 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/tcc/tcc_buffer.c:1145:2: note: in expansion of macro 'dprintk'
1145 | dprintk("p_memslot->vaddr @ %016llx\n",
(u64)(p_memslot->vaddr));
| ^~~~~~~
drivers/tcc/tcc_buffer.c: In function 'tcc_perf_fn':
drivers/tcc/tcc_buffer.c:496:1: warning: unsupported size for integer register
496 | }
| ^
vim +1145 drivers/tcc/tcc_buffer.c
1129
1130 static void tcc_free_memslot(struct memory_slot_info *p_memslot)
1131 {
1132 struct memory_slot_info *pre_slot;
1133 struct memory_slot_info *next_slot;
1134 struct mem_s mem_info;
1135 struct psram *p_psram;
1136 u32 is_first = 0, is_last = 0;
1137
1138 mutex_lock(&tccbuffer_mutex);
1139 device_destroy(tcc_buffer_class, MKDEV(tcc_buffer_device_major,
p_memslot->minor));
1140 __set_bit(p_memslot->minor, &tcc_buffer_device_minor_avail[0]);
1141 p_memslot->status = MEM_FREE;
1142 p_memslot->minor = UNDEFINED_DEVNODE;
1143 dprintk("%s\n", "tcc_free_memslot()");
1144 dprintk("p_memslot->paddr @ %016llx\n",
(u64)(p_memslot->paddr));
1145 dprintk("p_memslot->vaddr @ %016llx\n",
(u64)(p_memslot->vaddr));
1146 dprintk("p_memslot->size @
%016llx\n", (u64)(p_memslot->size));
1147 mem_info.vaddr = p_memslot->vaddr;
1148 mem_info.size = p_memslot->size;
1149 smp_call_function_any(&(p_memslot->cpumask), clear_mem, &mem_info, 1);
1150
1151 list_for_each_entry(p_psram, &p_tcc_config->psrams, node) {
1152 if (p_psram->config.size > 0) {
1153 if (list_is_first(&p_memslot->node, &p_psram->memslots))
1154 is_first = 1;
1155 if (list_is_last(&p_memslot->node, &p_psram->memslots))
1156 is_last = 1;
1157 }
1158 }
1159
1160 if (!is_first)
1161 pre_slot = list_prev_entry(p_memslot, node);
1162
1163 if (!is_last)
1164 next_slot = list_next_entry(p_memslot, node);
1165
1166 if ((!is_first) && (pre_slot->status == MEM_FREE)) {
1167 dprintk("%s\n", "This is not FIRST slot, and pre_slot is FREE to
merge");
1168 pre_slot->size += p_memslot->size;
1169 if ((!is_last) && (next_slot->status == MEM_FREE)) {
1170 dprintk("%s\n", "AND this is not LAST slot, and next_slot is also
FREE to merge");
1171 pre_slot->size += next_slot->size;
1172 list_del(&next_slot->node);
1173 kfree(next_slot);
1174 }
1175 dprintk("paddr @ %016llx\n", (u64)(pre_slot->paddr));
1176 dprintk("size @ %016llx (extended)\n",
(u64)(pre_slot->size));
1177 list_del(&p_memslot->node);
1178 kfree(p_memslot);
1179 } else if ((!is_last) && (next_slot->status == MEM_FREE)) {
1180 dprintk("%s\n", "This is not LAST slot, and next_slot is FREE to
merge");
1181 p_memslot->size += next_slot->size;
1182 dprintk("paddr @ %016llx\n",
(u64)(p_memslot->paddr));
1183 dprintk("size @ %016llx (extended)\n",
(u64)(p_memslot->size));
1184 list_del(&next_slot->node);
1185 kfree(next_slot);
1186 } else {
1187 dprintk("%s\n", "No other attributes need to set.");
1188 }
1189
1190 mutex_unlock(&tccbuffer_mutex);
1191 }
1192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org