Re: [PATCH v4 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support
by kernel test robot
Hi Nobuhiro,
I love your patch! Yet something to improve:
[auto build test ERROR on pwm/for-next]
[also build test ERROR on robh/for-next v5.12-rc6 next-20210409]
[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/Nobuhiro-Iwamatsu/pwm-visconti-A...
base: https://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git for-next
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
# https://github.com/0day-ci/linux/commit/f3151d1bb4deddd41bc536277a89f38b7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nobuhiro-Iwamatsu/pwm-visconti-Add-Toshiba-Visconti-SoC-PWM-support/20210410-070957
git checkout f3151d1bb4deddd41bc536277a89f38b712ac23b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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/pwm/pwm-visconti.c: In function 'visconti_pwm_get_state':
>> drivers/pwm/pwm-visconti.c:109:35: error: implicit declaration of function 'chip_to_priv' [-Werror=implicit-function-declaration]
109 | struct visconti_pwm_chip *priv = chip_to_priv(chip);
| ^~~~~~~~~~~~
>> drivers/pwm/pwm-visconti.c:109:35: warning: initialization of 'struct visconti_pwm_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/chip_to_priv +109 drivers/pwm/pwm-visconti.c
105
106 static void visconti_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
107 struct pwm_state *state)
108 {
> 109 struct visconti_pwm_chip *priv = chip_to_priv(chip);
110 u32 period, duty, pwmc0, pwmc0_clk;
111
112 period = readl(priv->base + PIPGM_PCSR(pwm->hwpwm));
113 if (period)
114 state->enabled = true;
115 else
116 state->enabled = false;
117
118 duty = readl(priv->base + PIPGM_PDUT(pwm->hwpwm));
119 pwmc0 = readl(priv->base + PIPGM_PWMC(pwm->hwpwm));
120 pwmc0_clk = pwmc0 & PIPGM_PWMC_CLK_MASK;
121
122 state->period = (period << pwmc0_clk) * NSEC_PER_USEC;
123 state->duty_cycle = (duty << pwmc0_clk) * NSEC_PER_USEC;
124 if (pwmc0 & PIPGM_PWMC_POLARITY_MASK)
125 state->polarity = PWM_POLARITY_INVERSED;
126 else
127 state->polarity = PWM_POLARITY_NORMAL;
128 }
129
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[chrome-os:chromeos-5.10 45/46] net/bluetooth/hci_event.c:2714:35: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 2aafbed9832f90f66592f9055153c2e3cfcfddce
commit: bc39abd88544ee7d44a374986c944d713d130a1e [45/46] CHROMIUM: Use link policies to disallow role switches
config: m68k-randconfig-s032-20210409 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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.3-279-g6d5d9b42-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout bc39abd88544ee7d44a374986c944d713d130a1e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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 >>)
>> net/bluetooth/hci_event.c:2714:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [assigned] [usertype] policy @@ got unsigned short [usertype] link_policy @@
net/bluetooth/hci_event.c:2714:35: sparse: expected restricted __le16 [assigned] [usertype] policy
net/bluetooth/hci_event.c:2714:35: sparse: got unsigned short [usertype] link_policy
vim +2714 net/bluetooth/hci_event.c
2632
2633 static void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
2634 {
2635 struct hci_ev_conn_complete *ev = (void *) skb->data;
2636 struct hci_conn *conn;
2637
2638 BT_DBG("%s", hdev->name);
2639
2640 hci_dev_lock(hdev);
2641
2642 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr);
2643 if (!conn) {
2644 /* Connection may not exist if auto-connected. Check the bredr
2645 * allowlist to see if this device is allowed to auto connect.
2646 * If link is an ACL type, create a connection class
2647 * automatically.
2648 *
2649 * Auto-connect will only occur if the event filter is
2650 * programmed with a given address. Right now, event filter is
2651 * only used during suspend.
2652 */
2653 if (ev->link_type == ACL_LINK &&
2654 hci_bdaddr_list_lookup_with_flags(&hdev->whitelist,
2655 &ev->bdaddr,
2656 BDADDR_BREDR)) {
2657 conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr,
2658 HCI_ROLE_SLAVE);
2659 if (!conn) {
2660 bt_dev_err(hdev, "no memory for new conn");
2661 goto unlock;
2662 }
2663 } else {
2664 if (ev->link_type != SCO_LINK)
2665 goto unlock;
2666
2667 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK,
2668 &ev->bdaddr);
2669 if (!conn)
2670 goto unlock;
2671
2672 conn->type = SCO_LINK;
2673 }
2674 }
2675
2676 if (!ev->status) {
2677 int mask = hdev->link_mode;
2678 __u8 flags = 0;
2679
2680 mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type,
2681 &flags);
2682
2683 conn->handle = __le16_to_cpu(ev->handle);
2684
2685 if (conn->type == ACL_LINK) {
2686 conn->state = BT_CONFIG;
2687 hci_conn_hold(conn);
2688
2689 if (!conn->out && !hci_conn_ssp_enabled(conn) &&
2690 !hci_find_link_key(hdev, &ev->bdaddr))
2691 conn->disc_timeout = HCI_PAIRING_TIMEOUT;
2692 else
2693 conn->disc_timeout = HCI_DISCONN_TIMEOUT;
2694 } else
2695 conn->state = BT_CONNECTED;
2696
2697 hci_debugfs_create_conn(conn);
2698 hci_conn_add_sysfs(conn);
2699
2700 if (test_bit(HCI_AUTH, &hdev->flags))
2701 set_bit(HCI_CONN_AUTH, &conn->flags);
2702
2703 if (test_bit(HCI_ENCRYPT, &hdev->flags))
2704 set_bit(HCI_CONN_ENCRYPT, &conn->flags);
2705
2706 /* Attempt to remain in the central role if preferred */
2707 if ((conn->mode == HCI_ROLE_MASTER && (mask & HCI_LM_MASTER)) &&
2708 (conn->link_policy & HCI_LP_RSWITCH)) {
2709 struct hci_cp_write_link_policy cp;
2710
2711 conn->link_policy &= ~HCI_LP_RSWITCH;
2712
2713 cp.handle = ev->handle;
> 2714 cp.policy = conn->link_policy;
2715 hci_send_cmd(hdev, HCI_OP_WRITE_LINK_POLICY,
2716 sizeof(cp), &cp);
2717 }
2718
2719 /* Get remote features */
2720 if (conn->type == ACL_LINK) {
2721 struct hci_cp_read_remote_features cp;
2722 cp.handle = ev->handle;
2723 hci_send_cmd(hdev, HCI_OP_READ_REMOTE_FEATURES,
2724 sizeof(cp), &cp);
2725
2726 hci_req_update_scan(hdev);
2727 }
2728
2729 /* Set packet type for incoming connection */
2730 if (!conn->out && hdev->hci_ver < BLUETOOTH_VER_2_0) {
2731 struct hci_cp_change_conn_ptype cp;
2732 cp.handle = ev->handle;
2733 cp.pkt_type = cpu_to_le16(conn->pkt_type);
2734 hci_send_cmd(hdev, HCI_OP_CHANGE_CONN_PTYPE, sizeof(cp),
2735 &cp);
2736 }
2737 } else {
2738 conn->state = BT_CLOSED;
2739 if (conn->type == ACL_LINK)
2740 mgmt_connect_failed(hdev, &conn->dst, conn->type,
2741 conn->dst_type, ev->status);
2742 }
2743
2744 if (conn->type == ACL_LINK)
2745 hci_sco_setup(conn, ev->status);
2746
2747 if (ev->status) {
2748 hci_connect_cfm(conn, ev->status);
2749 hci_conn_del(conn);
2750 } else if (ev->link_type == SCO_LINK) {
2751 switch (conn->setting & SCO_AIRMODE_MASK) {
2752 case SCO_AIRMODE_CVSD:
2753 if (hdev->notify)
2754 hdev->notify(hdev, HCI_NOTIFY_ENABLE_SCO_CVSD);
2755 break;
2756 }
2757
2758 hci_connect_cfm(conn, ev->status);
2759 }
2760
2761 unlock:
2762 hci_dev_unlock(hdev);
2763
2764 hci_conn_check_pending(hdev);
2765 }
2766
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[drm-msm:msm-next-staging 30/67] drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c:420:11: warning: variable 'parent_name' is uninitialized when used here
by kernel test robot
tree: https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head: cdc93a6910b301c0f8f2d2b6a57faa2b330c56e8
commit: 5d13459650b3668edcd6d180787aac38d001c4ed [30/67] drm/msm/dsi: push provided clocks handling into a generic code
config: arm64-randconfig-r035-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add drm-msm https://gitlab.freedesktop.org/drm/msm.git
git fetch --no-tags drm-msm msm-next-staging
git checkout 5d13459650b3668edcd6d180787aac38d001c4ed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c:420:11: warning: variable 'parent_name' is uninitialized when used here [-Wuninitialized]
snprintf(parent_name, 32, "dsi%dvco_clk", pll_28nm->id);
^~~~~~~~~~~
drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c:380:30: note: initialize the variable 'parent_name' to silence this warning
char *clk_name, *parent_name, *vco_name;
^
= NULL
1 warning generated.
vim +/parent_name +420 drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 377
5d13459650b366 Dmitry Baryshkov 2021-03-31 378 static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **provided_clocks)
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 379 {
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 380 char *clk_name, *parent_name, *vco_name;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 381 struct clk_init_data vco_init = {
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 382 .parent_names = (const char *[]){ "pxo" },
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 383 .num_parents = 1,
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 384 .flags = CLK_IGNORE_UNUSED,
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 385 .ops = &clk_ops_dsi_pll_28nm_vco,
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 386 };
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 387 struct device *dev = &pll_28nm->pdev->dev;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 388 struct clk **clks = pll_28nm->clks;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 389 struct clk_bytediv *bytediv;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 390 struct clk_init_data bytediv_init = { };
5d13459650b366 Dmitry Baryshkov 2021-03-31 391 int num = 0;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 392
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 393 DBG("%d", pll_28nm->id);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 394
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 395 bytediv = devm_kzalloc(dev, sizeof(*bytediv), GFP_KERNEL);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 396 if (!bytediv)
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 397 return -ENOMEM;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 398
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 399 vco_name = devm_kzalloc(dev, 32, GFP_KERNEL);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 400 if (!vco_name)
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 401 return -ENOMEM;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 402
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 403 clk_name = devm_kzalloc(dev, 32, GFP_KERNEL);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 404 if (!clk_name)
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 405 return -ENOMEM;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 406
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 407 pll_28nm->bytediv = bytediv;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 408
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 409 snprintf(vco_name, 32, "dsi%dvco_clk", pll_28nm->id);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 410 vco_init.name = vco_name;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 411
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 412 pll_28nm->base.clk_hw.init = &vco_init;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 413
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 414 clks[num++] = clk_register(dev, &pll_28nm->base.clk_hw);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 415
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 416 /* prepare and register bytediv */
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 417 bytediv->hw.init = &bytediv_init;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 418 bytediv->reg = pll_28nm->mmio + REG_DSI_28nm_8960_PHY_PLL_CTRL_9;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 419
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 @420 snprintf(parent_name, 32, "dsi%dvco_clk", pll_28nm->id);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 421 snprintf(clk_name, 32, "dsi%dpllbyte", pll_28nm->id);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 422
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 423 bytediv_init.name = clk_name;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 424 bytediv_init.ops = &clk_bytediv_ops;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 425 bytediv_init.flags = CLK_SET_RATE_PARENT;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 426 bytediv_init.parent_names = (const char * const *) &parent_name;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 427 bytediv_init.num_parents = 1;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 428
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 429 /* DIV2 */
5d13459650b366 Dmitry Baryshkov 2021-03-31 430 clks[num++] = clk_register(dev, &bytediv->hw);
5d13459650b366 Dmitry Baryshkov 2021-03-31 431 provided_clocks[DSI_BYTE_PLL_CLK] = __clk_get_hw(clks[num - 1]);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 432
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 433 snprintf(clk_name, 32, "dsi%dpll", pll_28nm->id);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 434 /* DIV3 */
5d13459650b366 Dmitry Baryshkov 2021-03-31 435 clks[num++] = clk_register_divider(dev, clk_name,
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 436 parent_name, 0, pll_28nm->mmio +
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 437 REG_DSI_28nm_8960_PHY_PLL_CTRL_10,
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 438 0, 8, 0, NULL);
5d13459650b366 Dmitry Baryshkov 2021-03-31 439 provided_clocks[DSI_PIXEL_PLL_CLK] = __clk_get_hw(clks[num - 1]);
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 440
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 441 pll_28nm->num_clks = num;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 442
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 443 return 0;
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 444 }
d6d1439ec43808 Dmitry Baryshkov 2021-03-31 445
:::::: The code at line 420 was first introduced by commit
:::::: d6d1439ec43808447d25ea5c17012ca713ef7c4e drm/msm/dsi: fuse dsi_pll_* code into dsi_phy_* code
:::::: TO: Dmitry Baryshkov <dmitry.baryshkov(a)linaro.org>
:::::: CC: Rob Clark <robdclark(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 15/15] include/scsi/scsi.h:135:38: error: request for member 'b' in something not a structure or union
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: e3e8aaedcd689d1a2ae20024ed467d127bbe060a
commit: e3e8aaedcd689d1a2ae20024ed467d127bbe060a [15/15] Use struct scsi_status more widely
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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
# https://github.com/bvanassche/linux/commit/e3e8aaedcd689d1a2ae20024ed467d...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout e3e8aaedcd689d1a2ae20024ed467d127bbe060a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 include/linux/kernel.h:10,
from drivers/scsi/53c700.c:105:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from drivers/scsi/53c700.c:124:
drivers/scsi/53c700.c: In function 'process_script_interrupt':
>> include/scsi/scsi.h:135:38: error: request for member 'b' in something not a structure or union
135 | #define status_byte(result) ((result).b.status >> 1)
| ^
drivers/scsi/53c700.c:984:6: note: in expansion of macro 'status_byte'
984 | if(status_byte(hostdata->status[0]) == CHECK_CONDITION ||
| ^~~~~~~~~~~
>> include/scsi/scsi.h:135:38: error: request for member 'b' in something not a structure or union
135 | #define status_byte(result) ((result).b.status >> 1)
| ^
drivers/scsi/53c700.c:985:6: note: in expansion of macro 'status_byte'
985 | status_byte(hostdata->status[0]) == COMMAND_TERMINATED) {
| ^~~~~~~~~~~
vim +/b +135 include/scsi/scsi.h
124
125 /*
126 * Use these to separate status msg and our bytes
127 *
128 * These are set by:
129 *
130 * status byte = set from target device
131 * msg_byte = return status from host adapter itself.
132 * host_byte = set by low-level driver to indicate status.
133 * driver_byte = set by mid-level.
134 */
> 135 #define status_byte(result) ((result).b.status >> 1)
136 #define msg_byte(result) ((result).b.msg)
137 #define host_byte(result) ((result).b.host)
138 #define driver_byte(result) ((result).b.driver)
139
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v6 08/10] coresight: config: Add preloaded configurations
by kernel test robot
Hi Mike,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20210408]
[also build test ERROR on v5.12-rc6]
[cannot apply to soc/for-next lwn/docs-next linus/master v5.12-rc6 v5.12-rc5 v5.12-rc4]
[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/Mike-Leach/CoreSight-configurati...
base: 6145d80cfc62e3ed8f16ff584d6287e6d88b82b9
config: arm-randconfig-r011-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/e97fc23237355b8b816f4e4864206f91a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mike-Leach/CoreSight-configuration-management-ETM-strobing/20210409-183900
git checkout e97fc23237355b8b816f4e4864206f91a41652cc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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/hwtracing/coresight/coresight-cfg-afdo.c:8:
In file included from drivers/hwtracing/coresight/coresight-etm4x-cfg.h:10:
>> drivers/hwtracing/coresight/coresight-etm4x.h:143:10: fatal error: 'asm/sysreg.h' file not found
#include <asm/sysreg.h>
^~~~~~~~~~~~~~
1 error generated.
vim +143 drivers/hwtracing/coresight/coresight-etm4x.h
03336d0f4d0d74 Suzuki K Poulose 2021-02-01 142
03336d0f4d0d74 Suzuki K Poulose 2021-02-01 @143 #include <asm/sysreg.h>
03336d0f4d0d74 Suzuki K Poulose 2021-02-01 144 #define ETM4x_REG_NUM_TO_SYSREG(n) \
03336d0f4d0d74 Suzuki K Poulose 2021-02-01 145 sys_reg(2, 1, ETM4x_CRn(n), ETM4x_CRm(n), ETM4x_Op2(n))
03336d0f4d0d74 Suzuki K Poulose 2021-02-01 146
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 15/15] drivers/scsi/virtio_scsi.c:358:14: error: member reference base type 'int' is not a structure or union
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: e3e8aaedcd689d1a2ae20024ed467d127bbe060a
commit: e3e8aaedcd689d1a2ae20024ed467d127bbe060a [15/15] Use struct scsi_status more widely
config: powerpc-randconfig-r005-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/bvanassche/linux/commit/e3e8aaedcd689d1a2ae20024ed467d...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout e3e8aaedcd689d1a2ae20024ed467d127bbe060a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> drivers/scsi/virtio_scsi.c:358:14: error: member reference base type 'int' is not a structure or union
} else if (host_byte(result) == DID_BAD_TARGET) {
^~~~~~~~~~~~~~~~~
include/scsi/scsi.h:137:38: note: expanded from macro 'host_byte'
#define host_byte(result) ((result).b.host)
~~~~~~~~^~
1 error generated.
vim +/int +358 drivers/scsi/virtio_scsi.c
865b58c05b8419 Paolo Bonzini 2012-10-02 333
5ff843721467b4 Matt Lupfer 2019-09-05 334 static void virtscsi_rescan_hotunplug(struct virtio_scsi *vscsi)
5ff843721467b4 Matt Lupfer 2019-09-05 335 {
5ff843721467b4 Matt Lupfer 2019-09-05 336 struct scsi_device *sdev;
5ff843721467b4 Matt Lupfer 2019-09-05 337 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev);
5ff843721467b4 Matt Lupfer 2019-09-05 338 unsigned char scsi_cmd[MAX_COMMAND_SIZE];
5ff843721467b4 Matt Lupfer 2019-09-05 339 int result, inquiry_len, inq_result_len = 256;
5ff843721467b4 Matt Lupfer 2019-09-05 340 char *inq_result = kmalloc(inq_result_len, GFP_KERNEL);
5ff843721467b4 Matt Lupfer 2019-09-05 341
5ff843721467b4 Matt Lupfer 2019-09-05 342 shost_for_each_device(sdev, shost) {
5ff843721467b4 Matt Lupfer 2019-09-05 343 inquiry_len = sdev->inquiry_len ? sdev->inquiry_len : 36;
5ff843721467b4 Matt Lupfer 2019-09-05 344
5ff843721467b4 Matt Lupfer 2019-09-05 345 memset(scsi_cmd, 0, sizeof(scsi_cmd));
5ff843721467b4 Matt Lupfer 2019-09-05 346 scsi_cmd[0] = INQUIRY;
5ff843721467b4 Matt Lupfer 2019-09-05 347 scsi_cmd[4] = (unsigned char) inquiry_len;
5ff843721467b4 Matt Lupfer 2019-09-05 348
5ff843721467b4 Matt Lupfer 2019-09-05 349 memset(inq_result, 0, inq_result_len);
5ff843721467b4 Matt Lupfer 2019-09-05 350
5ff843721467b4 Matt Lupfer 2019-09-05 351 result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
5ff843721467b4 Matt Lupfer 2019-09-05 352 inq_result, inquiry_len, NULL,
5ff843721467b4 Matt Lupfer 2019-09-05 353 SD_TIMEOUT, SD_MAX_RETRIES, NULL);
5ff843721467b4 Matt Lupfer 2019-09-05 354
5ff843721467b4 Matt Lupfer 2019-09-05 355 if (result == 0 && inq_result[0] >> 5) {
5ff843721467b4 Matt Lupfer 2019-09-05 356 /* PQ indicates the LUN is not attached */
5ff843721467b4 Matt Lupfer 2019-09-05 357 scsi_remove_device(sdev);
bb2e3314687630 Maxim Levitsky 2020-07-29 @358 } else if (host_byte(result) == DID_BAD_TARGET) {
bb2e3314687630 Maxim Levitsky 2020-07-29 359 /*
bb2e3314687630 Maxim Levitsky 2020-07-29 360 * If all LUNs of a virtio-scsi device are unplugged
bb2e3314687630 Maxim Levitsky 2020-07-29 361 * it will respond with BAD TARGET on any INQUIRY
bb2e3314687630 Maxim Levitsky 2020-07-29 362 * command.
bb2e3314687630 Maxim Levitsky 2020-07-29 363 * Remove the device in this case as well.
bb2e3314687630 Maxim Levitsky 2020-07-29 364 */
bb2e3314687630 Maxim Levitsky 2020-07-29 365 scsi_remove_device(sdev);
5ff843721467b4 Matt Lupfer 2019-09-05 366 }
5ff843721467b4 Matt Lupfer 2019-09-05 367 }
5ff843721467b4 Matt Lupfer 2019-09-05 368
5ff843721467b4 Matt Lupfer 2019-09-05 369 kfree(inq_result);
5ff843721467b4 Matt Lupfer 2019-09-05 370 }
5ff843721467b4 Matt Lupfer 2019-09-05 371
:::::: The code at line 358 was first introduced by commit
:::::: bb2e33146876306d5623080e008f61e96e407590 scsi: virtio-scsi: Correctly handle the case where all LUNs are unplugged
:::::: TO: Maxim Levitsky <mlevitsk(a)redhat.com>
:::::: CC: Martin K. Petersen <martin.petersen(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 14/15] drivers/ide/ide-dma.c:491:32: error: incompatible types when assigning to type 'struct scsi_status' from type 'int'
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: e3e8aaedcd689d1a2ae20024ed467d127bbe060a
commit: 87559dd4d6d375d2a9ac620763b0643fa80bd002 [14/15] Introduce struct scsi_status
config: mips-randconfig-r031-20210409 (attached as .config)
compiler: mips64el-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
# https://github.com/bvanassche/linux/commit/87559dd4d6d375d2a9ac620763b064...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 87559dd4d6d375d2a9ac620763b0643fa80bd002
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/ide/ide-dma.c: In function 'ide_dma_timeout_retry':
>> drivers/ide/ide-dma.c:491:32: error: incompatible types when assigning to type 'struct scsi_status' from type 'int'
491 | scsi_req(hwif->rq)->result = 0;
| ^
vim +491 drivers/ide/ide-dma.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 440
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 441 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 442 * un-busy the port etc, and clear any pending DMA status. we want to
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 443 * retry the current request in pio mode instead of risking tossing it
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 444 * all away
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 445 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 446 ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error)
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 447 {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 448 ide_hwif_t *hwif = drive->hwif;
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 449 const struct ide_dma_ops *dma_ops = hwif->dma_ops;
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 450 struct ide_cmd *cmd = &hwif->cmd;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 451 ide_startstop_t ret = ide_stopped;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 452
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 453 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 454 * end current dma transaction
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 455 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 456
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 457 if (error < 0) {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 458 printk(KERN_WARNING "%s: DMA timeout error\n", drive->name);
88b4132e101e60 Bartlomiej Zolnierkiewicz 2009-03-31 459 drive->waiting_for_dma = 0;
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 460 (void)dma_ops->dma_end(drive);
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 461 ide_dma_unmap_sg(drive, cmd);
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 462 ret = ide_error(drive, "dma timeout error",
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 463 hwif->tp_ops->read_status(hwif));
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 464 } else {
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 465 printk(KERN_WARNING "%s: DMA timeout retry\n", drive->name);
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 466 if (dma_ops->dma_clear)
35c9b4daf4c94b Bartlomiej Zolnierkiewicz 2009-03-31 467 dma_ops->dma_clear(drive);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 468 printk(KERN_ERR "%s: timeout waiting for DMA\n", drive->name);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 469 if (dma_ops->dma_test_irq(drive) == 0) {
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 470 ide_dump_status(drive, "DMA timeout",
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 471 hwif->tp_ops->read_status(hwif));
88b4132e101e60 Bartlomiej Zolnierkiewicz 2009-03-31 472 drive->waiting_for_dma = 0;
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 473 (void)dma_ops->dma_end(drive);
f094d4d83bccee Bartlomiej Zolnierkiewicz 2009-03-31 474 ide_dma_unmap_sg(drive, cmd);
1cee52de28aa68 Bartlomiej Zolnierkiewicz 2009-03-31 475 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 476 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 477
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 478 /*
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 479 * disable dma for now, but remember that we did so because of
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 480 * a timeout -- we'll reenable after we finish this next request
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 481 * (or rather the first chunk of it) in pio.
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 482 */
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 483 drive->dev_flags |= IDE_DFLAG_DMA_PIO_RETRY;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 484 drive->retry_pio++;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 485 ide_dma_off_quietly(drive);
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 486
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 487 /*
dd8717da6da9b0 Tejun Heo 2010-04-08 488 * make sure request is sane
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 489 */
dd8717da6da9b0 Tejun Heo 2010-04-08 490 if (hwif->rq)
17d5363b83f8c7 Christoph Hellwig 2017-04-20 @491 scsi_req(hwif->rq)->result = 0;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 492 return ret;
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 493 }
65ca5377322c75 Bartlomiej Zolnierkiewicz 2009-03-24 494
:::::: The code at line 491 was first introduced by commit
:::::: 17d5363b83f8c73ef9109f75a4a9b578f31d842f scsi: introduce a result field in struct scsi_request
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH net-next 2/3] net: use skb_for_each_frag() helper where possible
by kernel test robot
Hi Matteo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Matteo-Croce/introduce-skb_for_e...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 4438669eb703d1a7416c2b19a8a15b0400b36738
config: um-allmodconfig (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/9a46b324d3f1ca289db31c0011a6bbfd5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matteo-Croce/introduce-skb_for_each_frag/20210410-020828
git checkout 9a46b324d3f1ca289db31c0011a6bbfd5ae06918
# save the attached .config to linux build tree
make W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
arch/um/drivers/vector_kern.c: In function 'get_bpf_flash':
arch/um/drivers/vector_kern.c:145:18: warning: ordered comparison of pointer with integer zero [-Wextra]
145 | return (allow > 0);
| ^
arch/um/drivers/vector_kern.c: In function 'prep_skb':
>> arch/um/drivers/vector_kern.c:627:11: warning: variable 'nr_frags' set but not used [-Wunused-but-set-variable]
627 | int err, nr_frags, frag;
| ^~~~~~~~
arch/um/drivers/vector_kern.c: In function 'vector_parse':
arch/um/drivers/vector_kern.c:719:9: warning: variable 'len' set but not used [-Wunused-but-set-variable]
719 | int n, len, err;
| ^~~
vim +/nr_frags +627 arch/um/drivers/vector_kern.c
49da7e64f33e80 Anton Ivanov 2017-11-20 609
49da7e64f33e80 Anton Ivanov 2017-11-20 610 /*
49da7e64f33e80 Anton Ivanov 2017-11-20 611 * We do not use the RX queue as a proper wraparound queue for now
49da7e64f33e80 Anton Ivanov 2017-11-20 612 * This is not necessary because the consumption via netif_rx()
49da7e64f33e80 Anton Ivanov 2017-11-20 613 * happens in-line. While we can try using the return code of
49da7e64f33e80 Anton Ivanov 2017-11-20 614 * netif_rx() for flow control there are no drivers doing this today.
49da7e64f33e80 Anton Ivanov 2017-11-20 615 * For this RX specific use we ignore the tail/head locks and
49da7e64f33e80 Anton Ivanov 2017-11-20 616 * just read into a prepared queue filled with skbuffs.
49da7e64f33e80 Anton Ivanov 2017-11-20 617 */
49da7e64f33e80 Anton Ivanov 2017-11-20 618
49da7e64f33e80 Anton Ivanov 2017-11-20 619 static struct sk_buff *prep_skb(
49da7e64f33e80 Anton Ivanov 2017-11-20 620 struct vector_private *vp,
49da7e64f33e80 Anton Ivanov 2017-11-20 621 struct user_msghdr *msg)
49da7e64f33e80 Anton Ivanov 2017-11-20 622 {
49da7e64f33e80 Anton Ivanov 2017-11-20 623 int linear = vp->max_packet + vp->headroom + SAFETY_MARGIN;
49da7e64f33e80 Anton Ivanov 2017-11-20 624 struct sk_buff *result;
49da7e64f33e80 Anton Ivanov 2017-11-20 625 int iov_index = 0, len;
49da7e64f33e80 Anton Ivanov 2017-11-20 626 struct iovec *iov = msg->msg_iov;
49da7e64f33e80 Anton Ivanov 2017-11-20 @627 int err, nr_frags, frag;
49da7e64f33e80 Anton Ivanov 2017-11-20 628 skb_frag_t *skb_frag;
49da7e64f33e80 Anton Ivanov 2017-11-20 629
49da7e64f33e80 Anton Ivanov 2017-11-20 630 if (vp->req_size <= linear)
49da7e64f33e80 Anton Ivanov 2017-11-20 631 len = linear;
49da7e64f33e80 Anton Ivanov 2017-11-20 632 else
49da7e64f33e80 Anton Ivanov 2017-11-20 633 len = vp->req_size;
49da7e64f33e80 Anton Ivanov 2017-11-20 634 result = alloc_skb_with_frags(
49da7e64f33e80 Anton Ivanov 2017-11-20 635 linear,
49da7e64f33e80 Anton Ivanov 2017-11-20 636 len - vp->max_packet,
49da7e64f33e80 Anton Ivanov 2017-11-20 637 3,
49da7e64f33e80 Anton Ivanov 2017-11-20 638 &err,
49da7e64f33e80 Anton Ivanov 2017-11-20 639 GFP_ATOMIC
49da7e64f33e80 Anton Ivanov 2017-11-20 640 );
49da7e64f33e80 Anton Ivanov 2017-11-20 641 if (vp->header_size > 0)
49da7e64f33e80 Anton Ivanov 2017-11-20 642 iov_index++;
49da7e64f33e80 Anton Ivanov 2017-11-20 643 if (result == NULL) {
49da7e64f33e80 Anton Ivanov 2017-11-20 644 iov[iov_index].iov_base = NULL;
49da7e64f33e80 Anton Ivanov 2017-11-20 645 iov[iov_index].iov_len = 0;
49da7e64f33e80 Anton Ivanov 2017-11-20 646 goto done;
49da7e64f33e80 Anton Ivanov 2017-11-20 647 }
49da7e64f33e80 Anton Ivanov 2017-11-20 648 skb_reserve(result, vp->headroom);
49da7e64f33e80 Anton Ivanov 2017-11-20 649 result->dev = vp->dev;
49da7e64f33e80 Anton Ivanov 2017-11-20 650 skb_put(result, vp->max_packet);
49da7e64f33e80 Anton Ivanov 2017-11-20 651 result->data_len = len - vp->max_packet;
49da7e64f33e80 Anton Ivanov 2017-11-20 652 result->len += len - vp->max_packet;
49da7e64f33e80 Anton Ivanov 2017-11-20 653 skb_reset_mac_header(result);
49da7e64f33e80 Anton Ivanov 2017-11-20 654 result->ip_summed = CHECKSUM_NONE;
49da7e64f33e80 Anton Ivanov 2017-11-20 655 iov[iov_index].iov_base = result->data;
49da7e64f33e80 Anton Ivanov 2017-11-20 656 iov[iov_index].iov_len = vp->max_packet;
49da7e64f33e80 Anton Ivanov 2017-11-20 657 iov_index++;
49da7e64f33e80 Anton Ivanov 2017-11-20 658
49da7e64f33e80 Anton Ivanov 2017-11-20 659 nr_frags = skb_shinfo(result)->nr_frags;
9a46b324d3f1ca Matteo Croce 2021-04-09 660 skb_for_each_frag(result, frag) {
49da7e64f33e80 Anton Ivanov 2017-11-20 661 skb_frag = &skb_shinfo(result)->frags[frag];
49da7e64f33e80 Anton Ivanov 2017-11-20 662 iov[iov_index].iov_base = skb_frag_address_safe(skb_frag);
49da7e64f33e80 Anton Ivanov 2017-11-20 663 if (iov[iov_index].iov_base != NULL)
49da7e64f33e80 Anton Ivanov 2017-11-20 664 iov[iov_index].iov_len = skb_frag_size(skb_frag);
49da7e64f33e80 Anton Ivanov 2017-11-20 665 else
49da7e64f33e80 Anton Ivanov 2017-11-20 666 iov[iov_index].iov_len = 0;
49da7e64f33e80 Anton Ivanov 2017-11-20 667 iov_index++;
49da7e64f33e80 Anton Ivanov 2017-11-20 668 }
49da7e64f33e80 Anton Ivanov 2017-11-20 669 done:
49da7e64f33e80 Anton Ivanov 2017-11-20 670 msg->msg_iovlen = iov_index;
49da7e64f33e80 Anton Ivanov 2017-11-20 671 return result;
49da7e64f33e80 Anton Ivanov 2017-11-20 672 }
49da7e64f33e80 Anton Ivanov 2017-11-20 673
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[intel-linux-intel-lts:4.19/android_r 20723/22631] include/linux/page-flags-layout.h:95:2: error: #error "Not enough bits in page flags"
by kernel test robot
Hi Arnd,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 072f407465e8e25a3c2c22590e1ab72ccf335151
commit: 7783c5c8ec0d6781dc180be5fd075f06f90e9cb5 [20723/22631] UPSTREAM: page flags: prioritize kasan bits over last-cpuid
config: mips-randconfig-r031-20210409 (attached as .config)
compiler: mips64el-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
# https://github.com/intel/linux-intel-lts/commit/7783c5c8ec0d6781dc180be5f...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout 7783c5c8ec0d6781dc180be5fd075f06f90e9cb5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 include/linux/mm_types.h:15,
from arch/mips/include/asm/vdso.h:14,
from arch/mips/include/asm/vdso/vdso.h:28,
from arch/mips/include/asm/vdso/gettimeofday.h:16,
from include/vdso/datapage.h:114,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
>> include/linux/page-flags-layout.h:95:2: error: #error "Not enough bits in page flags"
95 | #error "Not enough bits in page flags"
| ^~~~~
In file included from include/vdso/datapage.h:114,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_gettime_fallback':
arch/mips/include/asm/vdso/gettimeofday.h:55:31: error: '__NR_clock_gettime64' undeclared (first use in this function)
55 | register long nr asm("v0") = __NR_clock_gettime64;
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/vdso/gettimeofday.h:55:31: note: each undeclared identifier is reported only once for each function it appears in
arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_getres_fallback':
arch/mips/include/asm/vdso/gettimeofday.h:79:31: error: '__NR_clock_getres_time64' undeclared (first use in this function)
79 | register long nr asm("v0") = __NR_clock_getres_time64;
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c: At top level:
arch/mips/vdso/vgettimeofday.c:14:5: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
14 | int __vdso_clock_gettime(clockid_t clock,
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:28:5: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
28 | int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
| ^~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:36:5: warning: no previous prototype for '__vdso_clock_getres' [-Wmissing-prototypes]
36 | int __vdso_clock_getres(clockid_t clock_id,
| ^~~~~~~~~~~~~~~~~~~
arch/mips/vdso/vgettimeofday.c:42:5: warning: no previous prototype for '__vdso_clock_gettime64' [-Wmissing-prototypes]
42 | int __vdso_clock_gettime64(clockid_t clock,
| ^~~~~~~~~~~~~~~~~~~~~~
vim +95 include/linux/page-flags-layout.h
92
93 #if SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH+LAST_CPUPID_WIDTH+KASAN_TAG_WIDTH \
94 > BITS_PER_LONG - NR_PAGEFLAGS
> 95 #error "Not enough bits in page flags"
96 #endif
97
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months