Re: [PATCH 1/8] drm/i915/gem: Break out some shmem backend utils
by kernel test robot
Hi Matthew,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-tip/drm-tip]
[also build test WARNING on drm-exynos/exynos-drm-next linus/master v5.15-rc1 next-20210913]
[cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next drm/drm-next]
[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/Matthew-Auld/drm-i915-gem-Break-...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a015-20210913 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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/94ccd9fd87e302b0435e60b7fe7747c0d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Auld/drm-i915-gem-Break-out-some-shmem-backend-utils/20210914-021041
git checkout 94ccd9fd87e302b0435e60b7fe7747c0d0599133
# 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/gpu/drm/i915/gem/i915_gem_shmem.c:273:20: warning: variable 'mapping' is uninitialized when used here [-Wuninitialized]
shmem_free_st(st, mapping, false, false);
^~~~~~~
drivers/gpu/drm/i915/gem/i915_gem_shmem.c:201:31: note: initialize the variable 'mapping' to silence this warning
struct address_space *mapping;
^
= NULL
1 warning generated.
vim +/mapping +273 drivers/gpu/drm/i915/gem/i915_gem_shmem.c
195
196 static int shmem_get_pages(struct drm_i915_gem_object *obj)
197 {
198 struct drm_i915_private *i915 = to_i915(obj->base.dev);
199 struct intel_memory_region *mem = obj->mm.region;
200 const unsigned long page_count = obj->base.size / PAGE_SIZE;
201 struct address_space *mapping;
202 struct sg_table *st;
203 struct sgt_iter sgt_iter;
204 struct page *page;
205 unsigned int max_segment = i915_sg_segment_size();
206 int ret;
207
208 /*
209 * Assert that the object is not currently in any GPU domain. As it
210 * wasn't in the GTT, there shouldn't be any way it could have been in
211 * a GPU cache
212 */
213 GEM_BUG_ON(obj->read_domains & I915_GEM_GPU_DOMAINS);
214 GEM_BUG_ON(obj->write_domain & I915_GEM_GPU_DOMAINS);
215
216 rebuild_st:
217 st = shmem_alloc_st(i915, obj->base.size, mem,
218 obj->base.filp->f_mapping, max_segment);
219 if (IS_ERR(st)) {
220 ret = PTR_ERR(st);
221 goto err_st;
222 }
223
224 ret = i915_gem_gtt_prepare_pages(obj, st);
225 if (ret) {
226 /*
227 * DMA remapping failed? One possible cause is that
228 * it could not reserve enough large entries, asking
229 * for PAGE_SIZE chunks instead may be helpful.
230 */
231 if (max_segment > PAGE_SIZE) {
232 for_each_sgt_page(page, sgt_iter, st)
233 put_page(page);
234 sg_free_table(st);
235 kfree(st);
236
237 max_segment = PAGE_SIZE;
238 goto rebuild_st;
239 } else {
240 dev_warn(i915->drm.dev,
241 "Failed to DMA remap %lu pages\n",
242 page_count);
243 goto err_pages;
244 }
245 }
246
247 if (i915_gem_object_needs_bit17_swizzle(obj))
248 i915_gem_object_do_bit_17_swizzle(obj, st);
249
250 /*
251 * EHL and JSL add the 'Bypass LLC' MOCS entry, which should make it
252 * possible for userspace to bypass the GTT caching bits set by the
253 * kernel, as per the given object cache_level. This is troublesome
254 * since the heavy flush we apply when first gathering the pages is
255 * skipped if the kernel thinks the object is coherent with the GPU. As
256 * a result it might be possible to bypass the cache and read the
257 * contents of the page directly, which could be stale data. If it's
258 * just a case of userspace shooting themselves in the foot then so be
259 * it, but since i915 takes the stance of always zeroing memory before
260 * handing it to userspace, we need to prevent this.
261 *
262 * By setting cache_dirty here we make the clflush in set_pages
263 * unconditional on such platforms.
264 */
265 if (IS_JSL_EHL(i915) && obj->flags & I915_BO_ALLOC_USER)
266 obj->cache_dirty = true;
267
268 __i915_gem_object_set_pages(obj, st, i915_sg_dma_sizes(st->sgl));
269
270 return 0;
271
272 err_pages:
> 273 shmem_free_st(st, mapping, false, false);
274 /*
275 * shmemfs first checks if there is enough memory to allocate the page
276 * and reports ENOSPC should there be insufficient, along with the usual
277 * ENOMEM for a genuine allocation failure.
278 *
279 * We use ENOSPC in our driver to mean that we have run out of aperture
280 * space and so want to translate the error from shmemfs back to our
281 * usual understanding of ENOMEM.
282 */
283 err_st:
284 if (ret == -ENOSPC)
285 ret = -ENOMEM;
286
287 return ret;
288 }
289
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH] ath10k: Fix device boot error
by kernel test robot
Hi Jouni,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on ath6kl/ath-next]
[also build test ERROR on wireless-drivers-next/master wireless-drivers/master v5.15-rc1 next-20210913]
[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/Jouni-Malinen/ath10k-Fix-device-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next
config: x86_64-randconfig-a013-20210913 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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/06d0afd6a0864795a6750173f7959430d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jouni-Malinen/ath10k-Fix-device-boot-error/20210914-015303
git checkout 06d0afd6a0864795a6750173f7959430da2def78
# 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 error/warnings (new ones prefixed by >>):
>> drivers/net/wireless/ath/ath10k/core.c:2693:11: error: implicit declaration of function 'ath10k_coredump_get_hw_mem_layout' [-Werror,-Wimplicit-function-declaration]
hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
^
drivers/net/wireless/ath/ath10k/core.c:2693:11: note: did you mean 'ath10k_coredump_get_mem_layout'?
drivers/net/wireless/ath/ath10k/coredump.h:213:1: note: 'ath10k_coredump_get_mem_layout' declared here
ath10k_coredump_get_mem_layout(struct ath10k *ar)
^
>> drivers/net/wireless/ath/ath10k/core.c:2693:9: warning: incompatible integer to pointer conversion assigning to 'const struct ath10k_hw_mem_layout *' from 'int' [-Wint-conversion]
hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/ath10k_coredump_get_hw_mem_layout +2693 drivers/net/wireless/ath/ath10k/core.c
2682
2683 static int ath10k_core_copy_target_iram(struct ath10k *ar)
2684 {
2685 const struct ath10k_hw_mem_layout *hw_mem;
2686 const struct ath10k_mem_region *tmp, *mem_region = NULL;
2687 dma_addr_t paddr;
2688 void *vaddr = NULL;
2689 u8 num_read_itr;
2690 int i, ret;
2691 u32 len, remaining_len;
2692
> 2693 hw_mem = ath10k_coredump_get_hw_mem_layout(ar);
2694 if (!hw_mem)
2695 return -ENOMEM;
2696
2697 for (i = 0; i < hw_mem->region_table.size; i++) {
2698 tmp = &hw_mem->region_table.regions[i];
2699 if (tmp->type == ATH10K_MEM_REGION_TYPE_REG) {
2700 mem_region = tmp;
2701 break;
2702 }
2703 }
2704
2705 if (!mem_region)
2706 return -ENOMEM;
2707
2708 for (i = 0; i < ar->wmi.num_mem_chunks; i++) {
2709 if (ar->wmi.mem_chunks[i].req_id ==
2710 WMI_IRAM_RECOVERY_HOST_MEM_REQ_ID) {
2711 vaddr = ar->wmi.mem_chunks[i].vaddr;
2712 len = ar->wmi.mem_chunks[i].len;
2713 break;
2714 }
2715 }
2716
2717 if (!vaddr || !len) {
2718 ath10k_warn(ar, "No allocated memory for IRAM back up");
2719 return -ENOMEM;
2720 }
2721
2722 len = (len < mem_region->len) ? len : mem_region->len;
2723 paddr = mem_region->start;
2724 num_read_itr = len / TGT_IRAM_READ_PER_ITR;
2725 remaining_len = len % TGT_IRAM_READ_PER_ITR;
2726 for (i = 0; i < num_read_itr; i++) {
2727 ret = ath10k_hif_diag_read(ar, paddr, vaddr,
2728 TGT_IRAM_READ_PER_ITR);
2729 if (ret) {
2730 ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
2731 ret);
2732 return ret;
2733 }
2734
2735 paddr += TGT_IRAM_READ_PER_ITR;
2736 vaddr += TGT_IRAM_READ_PER_ITR;
2737 }
2738
2739 if (remaining_len) {
2740 ret = ath10k_hif_diag_read(ar, paddr, vaddr, remaining_len);
2741 if (ret) {
2742 ath10k_warn(ar, "failed to copy firmware IRAM contents: %d",
2743 ret);
2744 return ret;
2745 }
2746 }
2747
2748 ath10k_dbg(ar, ATH10K_DBG_BOOT, "target IRAM back up completed\n");
2749
2750 return 0;
2751 }
2752
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[jimc:dd-drm-next 3/16] include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'}
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: bf8f0832d11f09c546179ca6a2c5432706ea3d32
commit: 221a341c10ebb8545beac6ee3937859d26ddcc60 [3/16] dyndbg: rationalize verbosity
config: alpha-allyesconfig (attached as .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/jimc/linux/commit/221a341c10ebb8545beac6ee3937859d26dd...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 221a341c10ebb8545beac6ee3937859d26ddcc60
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha
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/printk.h:7,
from include/linux/kernel.h:19,
from lib/dynamic_debug.c:16:
lib/dynamic_debug.c: In function 'ddebug_proc_write':
>> include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
include/linux/printk.h:420:16: note: in expansion of macro 'KERN_INFO'
420 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
lib/dynamic_debug.c:116:17: note: in expansion of macro 'pr_info'
116 | pr_info(fmt, ##__VA_ARGS__); \
| ^~~~~~~
lib/dynamic_debug.c:120:33: note: in expansion of macro 'vnpr_info'
120 | #define v2pr_info(fmt, ...) vnpr_info(2, fmt, ##__VA_ARGS__)
| ^~~~~~~~~
lib/dynamic_debug.c:786:9: note: in expansion of macro 'v2pr_info'
786 | v2pr_info("read %u bytes from userspace <\n%s>\n", len, tmpbuf);
| ^~~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [Intel-gfx] [PATCH 07/14] drm/i915/hdcp: Use HDCP helpers for i915
by kernel test robot
Hi Sean,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.15-rc1 next-20210913]
[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/Sean-Paul/drm-hdcp-Pull-HDCP-aut...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-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/0day-ci/linux/commit/995396b306d5f83dea2943ecc2718f344...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Paul/drm-hdcp-Pull-HDCP-auth-exchange-check-into/20210914-020004
git checkout 995396b306d5f83dea2943ecc2718f344a80d46e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
>> drivers/gpu/drm/i915/display/intel_dp_hdcp.c:658:43: error: 'intel_dp_mst_hdcp_helper_funcs' defined but not used [-Werror=unused-const-variable=]
658 | static const struct drm_hdcp_helper_funcs intel_dp_mst_hdcp_helper_funcs = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/intel_dp_mst_hdcp_helper_funcs +658 drivers/gpu/drm/i915/display/intel_dp_hdcp.c
657
> 658 static const struct drm_hdcp_helper_funcs intel_dp_mst_hdcp_helper_funcs = {
659 .setup = intel_hdcp_setup,
660 .load_keys = intel_hdcp_load_keys,
661 .hdcp2_capable = intel_dp_hdcp2_capable,
662 .hdcp2_enable = intel_hdcp2_enable,
663 .hdcp2_check_link = intel_hdcp2_check_link,
664 .hdcp2_disable = intel_hdcp2_disable,
665 .hdcp1_send_an_aksv = intel_dp_hdcp1_send_an_aksv,
666 .hdcp1_store_receiver_info = intel_hdcp1_store_receiver_info,
667 .hdcp1_enable_encryption = intel_hdcp1_enable_encryption,
668 .hdcp1_wait_for_r0 = intel_hdcp1_wait_for_r0,
669 .hdcp1_match_ri = intel_hdcp1_match_ri,
670 .hdcp1_post_encryption = intel_dp_mst_hdcp1_post_encryption,
671 .hdcp1_store_ksv_fifo = intel_hdcp1_store_ksv_fifo,
672 .hdcp1_disable = intel_dp_mst_hdcp1_disable,
673 };
674
675
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH v2] Staging:wlan-ng:cfg80211: A better fix for: Lines should end with a '('
by kernel test robot
Hi Tawah,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Tawah-Peggy/Staging-wlan-ng-cfg8...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 8757f705d936ad9579110aa621995172539aa16b
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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/0day-ci/linux/commit/d94af532d09e347e4e331da138f658a49...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tawah-Peggy/Staging-wlan-ng-cfg80211-A-better-fix-for-Lines-should-end-with-a/20210914-020515
git checkout d94af532d09e347e4e331da138f658a49199354f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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 drivers/staging/wlan-ng/p80211netdev.c:92:
drivers/staging/wlan-ng/cfg80211.c: In function 'prism2_scan':
>> drivers/staging/wlan-ng/cfg80211.c:331:25: error: implicit declaration of function 'ieee80211_freq_to_channel'; did you mean 'ieee80211_freq_khz_to_channel'? [-Werror=implicit-function-declaration]
331 | ieee80211_freq_to_channel(request->channels[i]->center_freq);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| ieee80211_freq_khz_to_channel
cc1: all warnings being treated as errors
vim +331 drivers/staging/wlan-ng/cfg80211.c
271
272 static int prism2_scan(struct wiphy *wiphy,
273 struct cfg80211_scan_request *request)
274 {
275 struct net_device *dev;
276 struct prism2_wiphy_private *priv = wiphy_priv(wiphy);
277 struct wlandevice *wlandev;
278 struct p80211msg_dot11req_scan msg1;
279 struct p80211msg_dot11req_scan_results *msg2;
280 struct cfg80211_bss *bss;
281 struct cfg80211_scan_info info = {};
282
283 int result;
284 int err = 0;
285 int numbss = 0;
286 int i = 0;
287 u8 ie_buf[46];
288 int ie_len;
289
290 if (!request)
291 return -EINVAL;
292
293 dev = request->wdev->netdev;
294 wlandev = dev->ml_priv;
295
296 if (priv->scan_request && priv->scan_request != request)
297 return -EBUSY;
298
299 if (wlandev->macmode == WLAN_MACMODE_ESS_AP) {
300 netdev_err(dev, "Can't scan in AP mode\n");
301 return -EOPNOTSUPP;
302 }
303
304 msg2 = kzalloc(sizeof(*msg2), GFP_KERNEL);
305 if (!msg2)
306 return -ENOMEM;
307
308 priv->scan_request = request;
309
310 memset(&msg1, 0x00, sizeof(msg1));
311 msg1.msgcode = DIDMSG_DOT11REQ_SCAN;
312 msg1.bsstype.data = P80211ENUM_bsstype_any;
313
314 memset(&msg1.bssid.data.data, 0xFF, sizeof(msg1.bssid.data.data));
315 msg1.bssid.data.len = 6;
316
317 if (request->n_ssids > 0) {
318 msg1.scantype.data = P80211ENUM_scantype_active;
319 msg1.ssid.data.len = request->ssids->ssid_len;
320 memcpy(msg1.ssid.data.data,
321 request->ssids->ssid, request->ssids->ssid_len);
322 } else {
323 msg1.scantype.data = 0;
324 }
325 msg1.probedelay.data = 0;
326
327 for (i = 0;
328 (i < request->n_channels) && i < ARRAY_SIZE(prism2_channels);
329 i++)
330 msg1.channellist.data.data[i] =
> 331 ieee80211_freq_to_channel(request->channels[i]->center_freq);
332 msg1.channellist.data.len = request->n_channels;
333
334 msg1.maxchanneltime.data = 250;
335 msg1.minchanneltime.data = 200;
336
337 result = p80211req_dorequest(wlandev, (u8 *)&msg1);
338 if (result) {
339 err = prism2_result2err(msg1.resultcode.data);
340 goto exit;
341 }
342 /* Now retrieve scan results */
343 numbss = msg1.numbss.data;
344
345 for (i = 0; i < numbss; i++) {
346 int freq;
347
348 msg2->msgcode = DIDMSG_DOT11REQ_SCAN_RESULTS;
349 msg2->bssindex.data = i;
350
351 result = p80211req_dorequest(wlandev, (u8 *)&msg2);
352 if ((result != 0) ||
353 (msg2->resultcode.data != P80211ENUM_resultcode_success)) {
354 break;
355 }
356
357 ie_buf[0] = WLAN_EID_SSID;
358 ie_buf[1] = msg2->ssid.data.len;
359 ie_len = ie_buf[1] + 2;
360 memcpy(&ie_buf[2], &msg2->ssid.data.data, msg2->ssid.data.len);
361 freq = ieee80211_channel_to_frequency(msg2->dschannel.data,
362 NL80211_BAND_2GHZ);
363 bss = cfg80211_inform_bss(wiphy,
364 ieee80211_get_channel(wiphy, freq),
365 CFG80211_BSS_FTYPE_UNKNOWN,
366 (const u8 *)&msg2->bssid.data.data,
367 msg2->timestamp.data, msg2->capinfo.data,
368 msg2->beaconperiod.data,
369 ie_buf,
370 ie_len,
371 (msg2->signal.data - 65536) * 100, /* Conversion to signed type */
372 GFP_KERNEL);
373
374 if (!bss) {
375 err = -ENOMEM;
376 goto exit;
377 }
378
379 cfg80211_put_bss(wiphy, bss);
380 }
381
382 if (result)
383 err = prism2_result2err(msg2->resultcode.data);
384
385 exit:
386 info.aborted = !!(err);
387 cfg80211_scan_done(request, &info);
388 priv->scan_request = NULL;
389 kfree(msg2);
390 return err;
391 }
392
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[brauner:pidfd.pidfd_get_task 2/2] mm/madvise.c:1241:22: error: unused variable 'f_flags'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git pidfd.pidfd_get_task
head: fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61
commit: fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61 [2/2] mm: use pidfd_get_task()
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/commit/...
git remote add brauner https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git
git fetch --no-tags brauner pidfd.pidfd_get_task
git checkout fd3fd0b4eb17f0ef3605d7bfd85ef7c97b93ec61
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
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 >>):
mm/madvise.c: In function '__do_sys_process_madvise':
>> mm/madvise.c:1241:22: error: unused variable 'f_flags' [-Werror=unused-variable]
1241 | unsigned int f_flags;
| ^~~~~~~
cc1: all warnings being treated as errors
vim +/f_flags +1241 mm/madvise.c
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1230
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1231 SYSCALL_DEFINE5(process_madvise, int, pidfd, const struct iovec __user *, vec,
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1232 size_t, vlen, int, behavior, unsigned int, flags)
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1233 {
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1234 ssize_t ret;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1235 struct iovec iovstack[UIO_FASTIOV], iovec;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1236 struct iovec *iov = iovstack;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1237 struct iov_iter iter;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1238 struct task_struct *task;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1239 struct mm_struct *mm;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 1240 size_t total_len;
ecb8ac8b1f1469 Minchan Kim 2020-10-17 @1241 unsigned int f_flags;
:::::: The code at line 1241 was first introduced by commit
:::::: ecb8ac8b1f146915aa6b96449b66dd48984caacc mm/madvise: introduce process_madvise() syscall: an external memory hinting API
:::::: TO: Minchan Kim <minchan(a)kernel.org>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [PATCH v3 2/6] futex2: Implement vectorized wait
by kernel test robot
Hi "André,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc1 next-20210913]
[cannot apply to tip/locking/core arm64/for-next/core tip/x86/asm]
[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/Andr-Almeida/futex2-Add-wait-on-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/0day-ci/linux/commit/2c9e2ad691d5346e16d0ee338c5a1dc59...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/futex2-Add-wait-on-multiple-futexes-syscall/20210914-015504
git checkout 2c9e2ad691d5346e16d0ee338c5a1dc593733000
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 prepare
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 arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from arch/arm64/include/asm/seccomp.h:11,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:44: error: macro "__SC_COMP" requires 3 arguments, but only 2 given
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
include/uapi/asm-generic/unistd.h:29: note: macro "__SC_COMP" defined here
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
|
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/arm64/include/asm/seccomp.h:20,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:44: error: macro "__SC_COMP" requires 3 arguments, but only 2 given
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
include/uapi/asm-generic/unistd.h:29: note: macro "__SC_COMP" defined here
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
|
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from arch/arm64/include/asm/seccomp.h:11,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:1: error: unknown type name '__SC_COMP'
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^~~~~~~~~
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/arm64/include/asm/seccomp.h:20,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
>> include/uapi/asm-generic/unistd.h:884:10: error: expected ';' before 'static'
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
| ;
make[2]: *** [scripts/Makefile.build:121: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1225: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from arch/arm64/include/asm/seccomp.h:11,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:44: error: macro "__SC_COMP" requires 3 arguments, but only 2 given
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
include/uapi/asm-generic/unistd.h:29: note: macro "__SC_COMP" defined here
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
|
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/arm64/include/asm/seccomp.h:20,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:44: error: macro "__SC_COMP" requires 3 arguments, but only 2 given
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
include/uapi/asm-generic/unistd.h:29: note: macro "__SC_COMP" defined here
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
|
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from arch/arm64/include/asm/seccomp.h:11,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:884:1: error: unknown type name '__SC_COMP'
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^~~~~~~~~
In file included from arch/arm64/include/uapi/asm/unistd.h:25,
from arch/arm64/include/asm/unistd.h:47,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/arm64/include/asm/seccomp.h:20,
from include/linux/seccomp.h:21,
from include/linux/sched.h:21,
from arch/arm64/include/asm/compat.h:19,
from arch/arm64/include/asm/stat.h:13,
from include/linux/stat.h:6,
from include/linux/sysfs.h:22,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
>> include/uapi/asm-generic/unistd.h:884:10: error: expected ';' before 'static'
884 | __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
| ^
| ;
make[2]: *** [scripts/Makefile.build:121: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1225: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +884 include/uapi/asm-generic/unistd.h
882
883 #define __NR_futex_waitv 449
> 884 __SC_COMP(__NR_futex_waitv, sys_futex_waitv)
885
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[cifs:for-next 1/1] fs/smbfs/ioctl.c:324:10: warning: variable 'caps' set but not used
by kernel test robot
Hi Steve,
First bad commit (maybe != root cause):
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: bba805a46c91e7a8a1d04704e5409f890acf8b66
commit: bba805a46c91e7a8a1d04704e5409f890acf8b66 [1/1] cifs: rename fs/cifs directory to fs/smbfs
config: hexagon-randconfig-r045-20210913 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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
git remote add cifs git://git.samba.org/sfrench/cifs-2.6.git
git fetch --no-tags cifs for-next
git checkout bba805a46c91e7a8a1d04704e5409f890acf8b66
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
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 >>):
>> fs/smbfs/ioctl.c:324:10: warning: variable 'caps' set but not used [-Wunused-but-set-variable]
__u64 caps;
^
1 warning generated.
--
>> fs/smbfs/connect.c:1093: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Returns true if srcaddr isn't specified and rhs isn't specified, or
fs/smbfs/connect.c:1558: warning: Function parameter or member 'ses' not described in 'cifs_setup_ipc'
fs/smbfs/connect.c:1558: warning: Function parameter or member 'ctx' not described in 'cifs_setup_ipc'
fs/smbfs/connect.c:1618: warning: Function parameter or member 'ses' not described in 'cifs_free_ipc'
fs/smbfs/connect.c:1864: warning: Function parameter or member 'server' not described in 'cifs_get_smb_ses'
fs/smbfs/connect.c:1864: warning: Function parameter or member 'ctx' not described in 'cifs_get_smb_ses'
fs/smbfs/connect.c:2087: warning: Function parameter or member 'ses' not described in 'cifs_get_tcon'
fs/smbfs/connect.c:2087: warning: Function parameter or member 'ctx' not described in 'cifs_get_tcon'
fs/smbfs/connect.c:3046: warning: Function parameter or member 'xid' not described in 'expand_dfs_referral'
fs/smbfs/connect.c:3046: warning: Function parameter or member 'ses' not described in 'expand_dfs_referral'
fs/smbfs/connect.c:3046: warning: Function parameter or member 'ctx' not described in 'expand_dfs_referral'
fs/smbfs/connect.c:3046: warning: Function parameter or member 'cifs_sb' not described in 'expand_dfs_referral'
fs/smbfs/connect.c:3046: warning: Function parameter or member 'ref_path' not described in 'expand_dfs_referral'
vim +/caps +324 fs/smbfs/ioctl.c
7ba3d1cdb7988c fs/cifs/ioctl.c Steve French 2021-05-02 312
f9ddcca4cf7d95 fs/cifs/ioctl.c Steve French 2008-05-15 313 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
^1da177e4c3f41 fs/cifs/ioctl.c Linus Torvalds 2005-04-16 314 {
496ad9aa8ef448 fs/cifs/ioctl.c Al Viro 2013-01-23 315 struct inode *inode = file_inode(filep);
7e7db86c7e1088 fs/cifs/ioctl.c Steve French 2019-09-19 316 struct smb3_key_debug_info pkey_inf;
^1da177e4c3f41 fs/cifs/ioctl.c Linus Torvalds 2005-04-16 317 int rc = -ENOTTY; /* strange error - but the precedent */
6d5786a34d98bf fs/cifs/ioctl.c Pavel Shilovsky 2012-06-20 318 unsigned int xid;
ba00ba64cf0895 fs/cifs/ioctl.c Jeff Layton 2010-09-20 319 struct cifsFileInfo *pSMBFile = filep->private_data;
96daf2b09178d8 fs/cifs/ioctl.c Steve French 2011-05-27 320 struct cifs_tcon *tcon;
a77592a70081ed fs/cifs/ioctl.c Ronnie Sahlberg 2020-07-09 321 struct tcon_link *tlink;
d26c2ddd335696 fs/cifs/ioctl.c Steve French 2020-02-06 322 struct cifs_sb_info *cifs_sb;
f654bac2227adc fs/cifs/ioctl.c Steve French 2005-04-28 323 __u64 ExtAttrBits = 0;
618763958b2291 fs/cifs/ioctl.c Jeff Layton 2010-11-08 @324 __u64 caps;
:::::: The code at line 324 was first introduced by commit
:::::: 618763958b2291a09057dbfa553da6ded93dcfad cifs: make cifs_ioctl handle NULL filp->private_data correctly
:::::: TO: Jeff Layton <jlayton(a)redhat.com>
:::::: CC: Steve French <sfrench(a)us.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year