Re: [PATCH] Bluetooth: btqca: sequential validation
by kernel test robot
Hi Sai,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linux/master linus/master v5.16-rc4 next-20211208]
[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/Sai-Teja-Aluvala/Bluetooth-btqca...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: x86_64-randconfig-a015-20211207 (https://download.01.org/0day-ci/archive/20211208/202112082116.coCA1rOT-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/1d58d86c5374c4c82aa1ec8638036667c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sai-Teja-Aluvala/Bluetooth-btqca-sequential-validation/20211208-162834
git checkout 1d58d86c5374c4c82aa1ec8638036667c114f83e
# 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=x86_64 SHELL=/bin/bash drivers/bluetooth/
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/bluetooth/btqca.c:144:5: warning: no previous prototype for function 'qca_send_patch_config_cmd' [-Wmissing-prototypes]
int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
^
drivers/bluetooth/btqca.c:144:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
^
static
1 warning generated.
vim +/qca_send_patch_config_cmd +144 drivers/bluetooth/btqca.c
143
> 144 int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
145 {
146 struct sk_buff *skb;
147 int err = 0;
148 u8 cmd[5] = {EDL_PATCH_CONFIG_CMD, 0x01, 0, 0, 0};
149 u8 rlen = 0x02;
150 struct edl_event_hdr *edl;
151 u8 rtype = EDL_PATCH_CONFIG_CMD;
152
153 bt_dev_dbg(hdev, "QCA Patch config");
154
155 skb = __hci_cmd_sync_ev(hdev, EDL_PATCH_CMD_OPCODE, EDL_PATCH_CONFIG_CMD_LEN,
156 cmd, HCI_EV_VENDOR, HCI_INIT_TIMEOUT);
157 if (IS_ERR(skb)) {
158 err = PTR_ERR(skb);
159 bt_dev_err(hdev, "Sending QCA Patch config failed (%d)", err);
160 return err;
161 }
162 if (skb->len != rlen) {
163 bt_dev_err(hdev, "QCA Patch config cmd size mismatch len %d", skb->len);
164 err = -EILSEQ;
165 goto out;
166 }
167 edl = (struct edl_event_hdr *)(skb->data);
168 if (!edl) {
169 bt_dev_err(hdev, "QCA Patch config with no header");
170 err = -EILSEQ;
171 goto out;
172 }
173 if (edl->cresp != EDL_PATCH_CONFIG_RES_EVT || edl->rtype != rtype) {
174 bt_dev_err(hdev, "QCA Wrong packet received %d %d", edl->cresp,
175 edl->rtype);
176 err = -EIO;
177 goto out;
178 }
179 out:
180 kfree(skb);
181 if (err)
182 bt_dev_err(hdev, "QCA Patch config cmd failed (%d)", err);
183
184 return err;
185 }
186
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 04/17] PCI: aardvark: Fix reading MSI interrupt number
by kernel test robot
Hi "Marek,
I love your patch! Perhaps something to improve:
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on next-20211208]
[cannot apply to v5.16-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/Marek-Beh-n/PCI-aardvark-control...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r022-20211207 (https://download.01.org/0day-ci/archive/20211208/202112082134.fNH8OE60-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# https://github.com/0day-ci/linux/commit/1d0822699fe4ce28186773b9186410166...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Beh-n/PCI-aardvark-controller-fixes-BATCH-4/20211208-141958
git checkout 1d0822699fe4ce28186773b9186410166165fd0f
# 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=arm64 SHELL=/bin/bash drivers/pci/controller/
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/pci/controller/pci-aardvark.c:1409:70: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
dev_err_ratelimited(&pcie->pdev->dev, "unexpected MSI 0x%04hx\n", msi_idx);
~~~~~ ^~~~~~~
%04x
include/linux/dev_printk.h:218:45: note: expanded from macro 'dev_err_ratelimited'
dev_level_ratelimited(dev_err, dev, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:208:25: note: expanded from macro 'dev_level_ratelimited'
dev_level(dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
1 warning generated.
vim +1409 drivers/pci/controller/pci-aardvark.c
1393
1394 static void advk_pcie_handle_msi(struct advk_pcie *pcie)
1395 {
1396 u32 msi_val, msi_mask, msi_status, msi_idx;
1397
1398 msi_mask = advk_readl(pcie, PCIE_MSI_MASK_REG);
1399 msi_val = advk_readl(pcie, PCIE_MSI_STATUS_REG);
1400 msi_status = msi_val & ((~msi_mask) & PCIE_MSI_ALL_MASK);
1401
1402 for (msi_idx = 0; msi_idx < MSI_IRQ_NUM; msi_idx++) {
1403 if (!(BIT(msi_idx) & msi_status))
1404 continue;
1405
1406 advk_writel(pcie, BIT(msi_idx), PCIE_MSI_STATUS_REG);
1407
1408 if (generic_handle_domain_irq(pcie->msi_inner_domain, msi_idx) == -EINVAL)
> 1409 dev_err_ratelimited(&pcie->pdev->dev, "unexpected MSI 0x%04hx\n", msi_idx);
1410 }
1411
1412 advk_writel(pcie, PCIE_ISR0_MSI_INT_PENDING,
1413 PCIE_ISR0_REG);
1414 }
1415
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH] Bluetooth: btqca: sequential validation
by kernel test robot
Hi Sai,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linux/master linus/master v5.16-rc4 next-20211208]
[cannot apply to bluetooth/master]
[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/Sai-Teja-Aluvala/Bluetooth-btqca...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: nds32-allyesconfig (https://download.01.org/0day-ci/archive/20211208/202112082154.jFxxuDI4-lk...)
compiler: nds32le-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/1d58d86c5374c4c82aa1ec8638036667c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sai-Teja-Aluvala/Bluetooth-btqca-sequential-validation/20211208-162834
git checkout 1d58d86c5374c4c82aa1ec8638036667c114f83e
# 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=nds32 SHELL=/bin/bash drivers/bluetooth/
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/bluetooth/btqca.c:144:5: warning: no previous prototype for 'qca_send_patch_config_cmd' [-Wmissing-prototypes]
144 | int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/qca_send_patch_config_cmd +144 drivers/bluetooth/btqca.c
143
> 144 int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
145 {
146 struct sk_buff *skb;
147 int err = 0;
148 u8 cmd[5] = {EDL_PATCH_CONFIG_CMD, 0x01, 0, 0, 0};
149 u8 rlen = 0x02;
150 struct edl_event_hdr *edl;
151 u8 rtype = EDL_PATCH_CONFIG_CMD;
152
153 bt_dev_dbg(hdev, "QCA Patch config");
154
155 skb = __hci_cmd_sync_ev(hdev, EDL_PATCH_CMD_OPCODE, EDL_PATCH_CONFIG_CMD_LEN,
156 cmd, HCI_EV_VENDOR, HCI_INIT_TIMEOUT);
157 if (IS_ERR(skb)) {
158 err = PTR_ERR(skb);
159 bt_dev_err(hdev, "Sending QCA Patch config failed (%d)", err);
160 return err;
161 }
162 if (skb->len != rlen) {
163 bt_dev_err(hdev, "QCA Patch config cmd size mismatch len %d", skb->len);
164 err = -EILSEQ;
165 goto out;
166 }
167 edl = (struct edl_event_hdr *)(skb->data);
168 if (!edl) {
169 bt_dev_err(hdev, "QCA Patch config with no header");
170 err = -EILSEQ;
171 goto out;
172 }
173 if (edl->cresp != EDL_PATCH_CONFIG_RES_EVT || edl->rtype != rtype) {
174 bt_dev_err(hdev, "QCA Wrong packet received %d %d", edl->cresp,
175 edl->rtype);
176 err = -EIO;
177 goto out;
178 }
179 out:
180 kfree(skb);
181 if (err)
182 bt_dev_err(hdev, "QCA Patch config cmd failed (%d)", err);
183
184 return err;
185 }
186
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[mptcp:export 24/34] net/mptcp/sockopt.c:1174:12: error: redefinition of 'mptcp_getsockopt_v4'
by kernel test robot
tree: https://github.com/multipath-tcp/mptcp_net-next.git export
head: 8d79e486d97bbdec3af4cf2f19d91fec433d437b
commit: 48c617e1584b3190eb02338f4ef77807f433e579 [24/34] mptcp: getsockopt: add support for IP_TOS
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20211208/202112081738.D1IpgkU6-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/multipath-tcp/mptcp_net-next/commit/48c617e1584b3190eb...
git remote add mptcp https://github.com/multipath-tcp/mptcp_net-next.git
git fetch --no-tags mptcp export
git checkout 48c617e1584b3190eb02338f4ef77807f433e579
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash
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/mptcp/sockopt.c:1174:12: error: redefinition of 'mptcp_getsockopt_v4'
1174 | static int mptcp_getsockopt_v4(struct mptcp_sock *msk, int optname,
| ^~~~~~~~~~~~~~~~~~~
net/mptcp/sockopt.c:1161:12: note: previous definition of 'mptcp_getsockopt_v4' was here
1161 | static int mptcp_getsockopt_v4(struct mptcp_sock *msk, int optname,
| ^~~~~~~~~~~~~~~~~~~
net/mptcp/sockopt.c:1161:12: warning: 'mptcp_getsockopt_v4' defined but not used [-Wunused-function]
vim +/mptcp_getsockopt_v4 +1174 net/mptcp/sockopt.c
48c617e1584b31 Florian Westphal 2021-12-08 1173
3b1e21eb60e8d4 Florian Westphal 2021-12-03 @1174 static int mptcp_getsockopt_v4(struct mptcp_sock *msk, int optname,
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1175 char __user *optval, int __user *optlen)
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1176 {
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1177 struct sock *sk = (void *)msk;
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1178
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1179 switch (optname) {
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1180 case IP_TOS:
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1181 return mptcp_put_int_option(msk, optval, optlen, inet_sk(sk)->tos);
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1182 }
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1183
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1184 return -EOPNOTSUPP;
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1185 }
3b1e21eb60e8d4 Florian Westphal 2021-12-03 1186
:::::: The code at line 1174 was first introduced by commit
:::::: 3b1e21eb60e8d4aa42474fed606a8ea8767b0120 mptcp: getsockopt: add support for IP_TOS
:::::: TO: Florian Westphal <fw(a)strlen.de>
:::::: CC: Jakub Kicinski <kuba(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[ti:ti-rt-linux-5.10.y 9988/10213] drivers/net/ethernet/ti/prueth_core.c:1053:46: warning: variable 'ssh1' set but not used
by kernel test robot
Hi Grygorii,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: 0dc2edeb42b305ab613187bef89d11f8b167d551 [9988/10213] net: ti: prueth: hsr: add support for packets timestamping
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211208/202112082000.YPPPOuH4-lk...)
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
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout 0dc2edeb42b305ab613187bef89d11f8b167d551
# 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=arm64 SHELL=/bin/bash drivers/net/ethernet/ti/ drivers/remoteproc/
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/net/ethernet/ti/prueth_core.c: In function 'prueth_hsr_ptp_ct_tx_ts_enqueue':
>> drivers/net/ethernet/ti/prueth_core.c:1053:46: warning: variable 'ssh1' set but not used [-Wunused-but-set-variable]
1053 | struct skb_shared_hwtstamps *ssh1;
| ^~~~
drivers/net/ethernet/ti/prueth_core.c:1066:110: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1066 | netdev_warn(other_emac->ndev, "Dropped cut through event waiting for tx ts. %d %x\n", event, (u32)skb);
| ^
vim +/ssh1 +1053 drivers/net/ethernet/ti/prueth_core.c
1018
1019 static int prueth_hsr_ptp_ct_tx_ts_enqueue(struct prueth_emac *emac, struct sk_buff *skb, u16 type)
1020 {
1021 struct prueth_emac *other_emac = emac->prueth->emac[other_port_id(emac->port_id) - 1];
1022 struct skb_shared_hwtstamps *red_ssh;
1023 unsigned long flags;
1024 u8 ptp_type, event;
1025 int changed = 0;
1026 u64 ns;
1027
1028 if (type == ETH_P_8021Q) {
1029 __skb_pull(skb, VLAN_HLEN);
1030 changed += VLAN_HLEN;
1031 }
1032
1033 __skb_pull(skb, ICSS_LRE_TAG_RCT_SIZE);
1034 changed += ICSS_LRE_TAG_RCT_SIZE;
1035
1036 skb_reset_mac_header(skb);
1037 event = prueth_ptp_ts_event_type(skb, &ptp_type);
1038
1039 __skb_push(skb, changed);
1040
1041 /* Store skbs for only cut through packets */
1042 if (event == PRUETH_PTP_TS_EVENTS ||
1043 (ptp_type != PTP_MSGTYPE_SYNC &&
1044 ptp_type != PTP_MSGTYPE_DELAY_REQ))
1045 return 0;
1046
1047 /* cut through packet might have already be forwarded before the rx packet has reached
1048 * the host. In this case tx irq handler ignores the interrupt as there is no skb stored.
1049 * So check if ts is already available before storing the skb.
1050 */
1051 ns = prueth_ptp_ts_get(other_emac, prueth_tx_ts_offs_get(other_emac->port_id - 1, event));
1052 if (ns || !other_emac->link) {
> 1053 struct skb_shared_hwtstamps *ssh1;
1054
1055 ssh1 = skb_hwtstamps(skb);
1056 /* Save the cut-through tx ts in skb redinfo. */
1057 red_ssh = skb_redinfo_hwtstamps(skb);
1058 memset(red_ssh, 0, sizeof(*red_ssh));
1059 red_ssh->hwtstamp = ns_to_ktime(ns);
1060 return 0;
1061 }
1062
1063 /* Store the skb so that tx irq handler will populate the ts */
1064 spin_lock_irqsave(&other_emac->ptp_skb_lock, flags);
1065 if (other_emac->ptp_ct_skb[event]) {
1066 netdev_warn(other_emac->ndev, "Dropped cut through event waiting for tx ts. %d %x\n", event, (u32)skb);
1067 dev_consume_skb_any(other_emac->ptp_ct_skb[event]);
1068 prueth_ptp_tx_ts_reset(other_emac, event);
1069 }
1070
1071 other_emac->ptp_ct_skb[event] = skb;
1072 spin_unlock_irqrestore(&other_emac->ptp_skb_lock, flags);
1073
1074 return -EAGAIN;
1075 }
1076
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[arnd-playground:randconfig-5.17-next 133/205] drivers/video/fbdev/core/fb_device.c:88:17: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-5.17-next
head: fdcc9acc26de65e7b1b8cebc3089b7666be25681
commit: f63b31214860be43eb1b2aa8052b066c6497484f [133/205] fbdev: move chrdev code into fb_device.c
config: s390-randconfig-s032-20211207 (https://download.01.org/0day-ci/archive/20211208/202112082006.su7StCAb-lk...)
compiler: s390-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/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-5.17-next
git checkout f63b31214860be43eb1b2aa8052b066c6497484f
# 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=s390 SHELL=/bin/bash drivers/video/fbdev/core/
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/video/fbdev/core/fb_device.c:88:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *src @@ got unsigned char [noderef] [usertype] __iomem *[assigned] src @@
drivers/video/fbdev/core/fb_device.c:88:17: sparse: expected void const *src
drivers/video/fbdev/core/fb_device.c:88:17: sparse: got unsigned char [noderef] [usertype] __iomem *[assigned] src
>> drivers/video/fbdev/core/fb_device.c:165:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dest @@ got unsigned char [noderef] [usertype] __iomem *[assigned] dst @@
drivers/video/fbdev/core/fb_device.c:165:17: sparse: expected void *dest
drivers/video/fbdev/core/fb_device.c:165:17: sparse: got unsigned char [noderef] [usertype] __iomem *[assigned] dst
vim +88 drivers/video/fbdev/core/fb_device.c
41
42 static ssize_t
43 fb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
44 {
45 unsigned long p = *ppos;
46 struct fb_info *info = file_fb_info(file);
47 u8 *buffer, *dst;
48 u8 __iomem *src;
49 int c, cnt = 0, err = 0;
50 unsigned long total_size;
51
52 if (!info || ! info->screen_base)
53 return -ENODEV;
54
55 if (info->state != FBINFO_STATE_RUNNING)
56 return -EPERM;
57
58 if (info->fbops->fb_read)
59 return info->fbops->fb_read(info, buf, count, ppos);
60
61 total_size = info->screen_size;
62
63 if (total_size == 0)
64 total_size = info->fix.smem_len;
65
66 if (p >= total_size)
67 return 0;
68
69 if (count >= total_size)
70 count = total_size;
71
72 if (count + p > total_size)
73 count = total_size - p;
74
75 buffer = kmalloc((count > PAGE_SIZE) ? PAGE_SIZE : count,
76 GFP_KERNEL);
77 if (!buffer)
78 return -ENOMEM;
79
80 src = (u8 __iomem *) (info->screen_base + p);
81
82 if (info->fbops->fb_sync)
83 info->fbops->fb_sync(info);
84
85 while (count) {
86 c = (count > PAGE_SIZE) ? PAGE_SIZE : count;
87 dst = buffer;
> 88 fb_memcpy_fromfb(dst, src, c);
89 dst += c;
90 src += c;
91
92 if (copy_to_user(buf, buffer, c)) {
93 err = -EFAULT;
94 break;
95 }
96 *ppos += c;
97 buf += c;
98 cnt += c;
99 count -= c;
100 }
101
102 kfree(buffer);
103
104 return (err) ? err : cnt;
105 }
106
107 static ssize_t
108 fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
109 {
110 unsigned long p = *ppos;
111 struct fb_info *info = file_fb_info(file);
112 u8 *buffer, *src;
113 u8 __iomem *dst;
114 int c, cnt = 0, err = 0;
115 unsigned long total_size;
116
117 if (!info || !info->screen_base)
118 return -ENODEV;
119
120 if (info->state != FBINFO_STATE_RUNNING)
121 return -EPERM;
122
123 if (info->fbops->fb_write)
124 return info->fbops->fb_write(info, buf, count, ppos);
125
126 total_size = info->screen_size;
127
128 if (total_size == 0)
129 total_size = info->fix.smem_len;
130
131 if (p > total_size)
132 return -EFBIG;
133
134 if (count > total_size) {
135 err = -EFBIG;
136 count = total_size;
137 }
138
139 if (count + p > total_size) {
140 if (!err)
141 err = -ENOSPC;
142
143 count = total_size - p;
144 }
145
146 buffer = kmalloc((count > PAGE_SIZE) ? PAGE_SIZE : count,
147 GFP_KERNEL);
148 if (!buffer)
149 return -ENOMEM;
150
151 dst = (u8 __iomem *) (info->screen_base + p);
152
153 if (info->fbops->fb_sync)
154 info->fbops->fb_sync(info);
155
156 while (count) {
157 c = (count > PAGE_SIZE) ? PAGE_SIZE : count;
158 src = buffer;
159
160 if (copy_from_user(src, buf, c)) {
161 err = -EFAULT;
162 break;
163 }
164
> 165 fb_memcpy_tofb(dst, src, c);
166 dst += c;
167 src += c;
168 *ppos += c;
169 buf += c;
170 cnt += c;
171 count -= c;
172 }
173
174 kfree(buffer);
175
176 return (cnt) ? cnt : err;
177 }
178
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[dlemoal-libata:ata-msg 34/61] drivers/ata/sata_fsl.c:316:17: error: passing argument 2 of '_dev_printk' from incompatible pointer type
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git ata-msg
head: 7d6ff0ace26c7e7f01d532d244de0b9811765f47
commit: efab2a8f108886fa8d2d0108941bb1ccb36f8526 [34/61] sata_fsl: move DPRINTK to ata debugging
config: powerpc-mpc837x_rdb_defconfig (https://download.01.org/0day-ci/archive/20211208/202112081937.KKQZRXYI-lk...)
compiler: powerpc-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/dlemoal/libata.git/commit...
git remote add dlemoal-libata git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git
git fetch --no-tags dlemoal-libata ata-msg
git checkout efab2a8f108886fa8d2d0108941bb1ccb36f8526
# 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=powerpc SHELL=/bin/bash
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/device.h:15,
from include/linux/platform_device.h:13,
from drivers/ata/sata_fsl.c:15:
drivers/ata/sata_fsl.c: In function 'fsl_sata_set_irq_coalescing':
>> drivers/ata/sata_fsl.c:316:17: error: passing argument 2 of '_dev_printk' from incompatible pointer type [-Werror=incompatible-pointer-types]
316 | dev_dbg(&host->dev, "interrupt coalescing, count = 0x%x, ticks = %x\n",
| ^~~~~~~~~~
| |
| struct device **
include/linux/dev_printk.h:129:36: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/ata/sata_fsl.c:316:9: note: in expansion of macro 'dev_dbg'
316 | dev_dbg(&host->dev, "interrupt coalescing, count = 0x%x, ticks = %x\n",
| ^~~~~~~
include/linux/dev_printk.h:41:58: note: expected 'const struct device *' but argument is of type 'struct device **'
41 | void _dev_printk(const char *level, const struct device *dev,
| ~~~~~~~~~~~~~~~~~~~~~^~~
drivers/ata/sata_fsl.c:318:17: error: passing argument 2 of '_dev_printk' from incompatible pointer type [-Werror=incompatible-pointer-types]
318 | dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ^~~~~~~~~~
| |
| struct device **
include/linux/dev_printk.h:129:36: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/ata/sata_fsl.c:318:9: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ^~~~~~~
include/linux/dev_printk.h:41:58: note: expected 'const struct device *' but argument is of type 'struct device **'
41 | void _dev_printk(const char *level, const struct device *dev,
| ~~~~~~~~~~~~~~~~~~~~~^~~
drivers/ata/sata_fsl.c:318:29: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'void *' [-Wformat=]
318 | dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt'
163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~~
drivers/ata/sata_fsl.c:318:9: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ^~~~~~~
drivers/ata/sata_fsl.c:318:65: note: format string is defined here
318 | dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
| ~^
| |
| unsigned int
| %p
In file included from include/linux/device.h:15,
from include/linux/platform_device.h:13,
from drivers/ata/sata_fsl.c:15:
drivers/ata/sata_fsl.c: In function 'sata_fsl_init_controller':
>> drivers/ata/sata_fsl.c:1361:22: error: 'ap' undeclared (first use in this function); did you mean 'up'?
1361 | ata_port_dbg(ap, "icc = 0x%x\n", ioread32(hcr_base + ICC));
| ^~
include/linux/dev_printk.h:129:36: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/libata.h:1502:9: note: in expansion of macro 'dev_dbg'
1502 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/sata_fsl.c:1361:9: note: in expansion of macro 'ata_port_dbg'
1361 | ata_port_dbg(ap, "icc = 0x%x\n", ioread32(hcr_base + ICC));
| ^~~~~~~~~~~~
drivers/ata/sata_fsl.c:1361:22: note: each undeclared identifier is reported only once for each function it appears in
1361 | ata_port_dbg(ap, "icc = 0x%x\n", ioread32(hcr_base + ICC));
| ^~
include/linux/dev_printk.h:129:36: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/libata.h:1502:9: note: in expansion of macro 'dev_dbg'
1502 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/sata_fsl.c:1361:9: note: in expansion of macro 'ata_port_dbg'
1361 | ata_port_dbg(ap, "icc = 0x%x\n", ioread32(hcr_base + ICC));
| ^~~~~~~~~~~~
drivers/ata/sata_fsl.c: At top level:
drivers/ata/sata_fsl.c:1399:22: warning: initialized field overwritten [-Woverride-init]
1399 | .can_queue = SATA_FSL_QUEUE_DEPTH,
| ^~~~~~~~~~~~~~~~~~~~
drivers/ata/sata_fsl.c:1399:22: note: (near initialization for 'sata_fsl_sht.can_queue')
In file included from include/linux/device.h:15,
from include/linux/platform_device.h:13,
from drivers/ata/sata_fsl.c:15:
drivers/ata/sata_fsl.c: In function 'sata_fsl_probe':
drivers/ata/sata_fsl.c:1470:22: error: 'ap' undeclared (first use in this function); did you mean 'up'?
1470 | ata_port_dbg(ap, "@reset i/o = 0x%x\n", ioread32(csr_base + TRANSCFG));
| ^~
include/linux/dev_printk.h:129:36: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/libata.h:1502:9: note: in expansion of macro 'dev_dbg'
1502 | dev_dbg(&ap->tdev, "%s: " fmt, __func__, ##__VA_ARGS__)
| ^~~~~~~
drivers/ata/sata_fsl.c:1470:9: note: in expansion of macro 'ata_port_dbg'
1470 | ata_port_dbg(ap, "@reset i/o = 0x%x\n", ioread32(csr_base + TRANSCFG));
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/_dev_printk +316 drivers/ata/sata_fsl.c
290
291 static void fsl_sata_set_irq_coalescing(struct ata_host *host,
292 unsigned int count, unsigned int ticks)
293 {
294 struct sata_fsl_host_priv *host_priv = host->private_data;
295 void __iomem *hcr_base = host_priv->hcr_base;
296 unsigned long flags;
297
298 if (count > ICC_MAX_INT_COUNT_THRESHOLD)
299 count = ICC_MAX_INT_COUNT_THRESHOLD;
300 else if (count < ICC_MIN_INT_COUNT_THRESHOLD)
301 count = ICC_MIN_INT_COUNT_THRESHOLD;
302
303 if (ticks > ICC_MAX_INT_TICKS_THRESHOLD)
304 ticks = ICC_MAX_INT_TICKS_THRESHOLD;
305 else if ((ICC_MIN_INT_TICKS_THRESHOLD == ticks) &&
306 (count > ICC_MIN_INT_COUNT_THRESHOLD))
307 ticks = ICC_SAFE_INT_TICKS;
308
309 spin_lock_irqsave(&host->lock, flags);
310 iowrite32((count << 24 | ticks), hcr_base + ICC);
311
312 intr_coalescing_count = count;
313 intr_coalescing_ticks = ticks;
314 spin_unlock_irqrestore(&host->lock, flags);
315
> 316 dev_dbg(&host->dev, "interrupt coalescing, count = 0x%x, ticks = %x\n",
317 intr_coalescing_count, intr_coalescing_ticks);
318 dev_dbg(&host->dev, "ICC register status: (hcr base: 0x%x) = 0x%x\n",
319 hcr_base, ioread32(hcr_base + ICC));
320 }
321
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[ti:ti-rt-linux-5.10.y 7552/10213] drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161 [7552/10213] media: v4l2-subdev: add subdev-wide state struct
config: i386-randconfig-s002-20211207 (https://download.01.org/0day-ci/archive/20211208/202112081946.2klPQ8aO-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash
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/media/i2c/mt9v111.c: In function '__mt9v111_get_pad_format':
>> drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared (first use in this function)
803 | return &cfg->try_fmt;
| ^~~
drivers/media/i2c/mt9v111.c:803:11: note: each undeclared identifier is reported only once for each function it appears in
vim +/cfg +803 drivers/media/i2c/mt9v111.c
aab7ed1c392703 Jacopo Mondi 2018-07-25 791
aab7ed1c392703 Jacopo Mondi 2018-07-25 792 static struct v4l2_mbus_framefmt *__mt9v111_get_pad_format(
aab7ed1c392703 Jacopo Mondi 2018-07-25 793 struct mt9v111_dev *mt9v111,
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 794 struct v4l2_subdev_state *sd_state,
aab7ed1c392703 Jacopo Mondi 2018-07-25 795 unsigned int pad,
aab7ed1c392703 Jacopo Mondi 2018-07-25 796 enum v4l2_subdev_format_whence which)
aab7ed1c392703 Jacopo Mondi 2018-07-25 797 {
aab7ed1c392703 Jacopo Mondi 2018-07-25 798 switch (which) {
aab7ed1c392703 Jacopo Mondi 2018-07-25 799 case V4L2_SUBDEV_FORMAT_TRY:
484f9b372dd8da Jacopo Mondi 2018-08-07 800 #if IS_ENABLED(CONFIG_VIDEO_V4L2_SUBDEV_API)
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 801 return v4l2_subdev_get_try_format(&mt9v111->sd, sd_state, pad);
aab7ed1c392703 Jacopo Mondi 2018-07-25 802 #else
aab7ed1c392703 Jacopo Mondi 2018-07-25 @803 return &cfg->try_fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 804 #endif
aab7ed1c392703 Jacopo Mondi 2018-07-25 805 case V4L2_SUBDEV_FORMAT_ACTIVE:
aab7ed1c392703 Jacopo Mondi 2018-07-25 806 return &mt9v111->fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 807 default:
aab7ed1c392703 Jacopo Mondi 2018-07-25 808 return NULL;
aab7ed1c392703 Jacopo Mondi 2018-07-25 809 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 810 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 811
:::::: The code at line 803 was first introduced by commit
:::::: aab7ed1c392703604fbdc5bd5005dfb61a0b32f9 media: i2c: Add driver for Aptina MT9V111
:::::: TO: Jacopo Mondi <jacopo+renesas(a)jmondi.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[andersson:wip/sm8350-next-20211118 46/51] drivers/gpu/drm/msm/dp/dp_display.c:420:6: warning: no previous prototype for function 'dp_display_oob_hotplug_event'
by kernel test robot
tree: https://github.com/andersson/kernel wip/sm8350-next-20211118
head: d4e3c3fe1bf25b7e421edef192756bee5bc1ffac
commit: 6cc13d7c2d774fa5b1c7f024ce7e1c7313af4a2f [46/51] drm/msm/dp: Wire up oob callback
config: hexagon-randconfig-r041-20211207 (https://download.01.org/0day-ci/archive/20211208/202112081851.ZhEZUbXt-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/andersson/kernel/commit/6cc13d7c2d774fa5b1c7f024ce7e1c...
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson wip/sm8350-next-20211118
git checkout 6cc13d7c2d774fa5b1c7f024ce7e1c7313af4a2f
# 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 drivers/gpu/drm/msm/
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/dp/dp_display.c:420:6: warning: no previous prototype for function 'dp_display_oob_hotplug_event' [-Wmissing-prototypes]
void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
^
drivers/gpu/drm/msm/dp/dp_display.c:420:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
^
static
1 warning generated.
vim +/dp_display_oob_hotplug_event +420 drivers/gpu/drm/msm/dp/dp_display.c
419
> 420 void dp_display_oob_hotplug_event(struct msm_dp *dp_display)
421 {
422 struct dp_display_private *dp;
423 static bool current_state;
424
425 dp = container_of(dp_display, struct dp_display_private, dp_display);
426
427 printk(KERN_ERR "=================================== %s() hpd_state: %d current_state: %d\n", __func__, dp->hpd_state, current_state);
428
429 if (!current_state) {
430 dp_display_host_init(dp, false);
431 dp_display_process_hpd_high(dp);
432 } else {
433 dp_add_event(dp, EV_USER_NOTIFICATION, false, 0);
434 }
435
436 current_state = !current_state;
437
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH V2 1/2] PCI/ASPM: Add ASPM BIOS override function
by kernel test robot
Hi "David,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.16-rc4]
[also build test ERROR on next-20211208]
[cannot apply to helgaas-pci/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/David-E-Box/PCI-ASPM-Add-ASPM-BI...
base: 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1
config: i386-randconfig-r024-20211207 (https://download.01.org/0day-ci/archive/20211208/202112081833.kaiKplAi-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/78c85417651fe465aafee7ef1841ab756...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review David-E-Box/PCI-ASPM-Add-ASPM-BIOS-override-function/20211208-082303
git checkout 78c85417651fe465aafee7ef1841ab75619b165b
# 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=i386 SHELL=/bin/bash
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/pci/controller/cadence/pci-j721e.c:23:
>> drivers/pci/controller/cadence/../../pci.h:571:82: error: expected ';' after return statement
static inline int pcie_aspm_policy_override(struct pci_dev *dev) { return -EINVAL }
^
;
1 error generated.
vim +571 drivers/pci/controller/cadence/../../pci.h
553
554 /* PCI error reporting and recovery */
555 pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
556 pci_channel_state_t state,
557 pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev));
558
559 bool pcie_wait_for_link(struct pci_dev *pdev, bool active);
560 #ifdef CONFIG_PCIEASPM
561 void pcie_aspm_init_link_state(struct pci_dev *pdev);
562 void pcie_aspm_exit_link_state(struct pci_dev *pdev);
563 void pcie_aspm_pm_state_change(struct pci_dev *pdev);
564 void pcie_aspm_powersave_config_link(struct pci_dev *pdev);
565 int pcie_aspm_policy_override(struct pci_dev *dev);
566 #else
567 static inline void pcie_aspm_init_link_state(struct pci_dev *pdev) { }
568 static inline void pcie_aspm_exit_link_state(struct pci_dev *pdev) { }
569 static inline void pcie_aspm_pm_state_change(struct pci_dev *pdev) { }
570 static inline void pcie_aspm_powersave_config_link(struct pci_dev *pdev) { }
> 571 static inline int pcie_aspm_policy_override(struct pci_dev *dev) { return -EINVAL }
572 #endif
573
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks