[toke:xdp-queueing-02 5/11] ld.lld: error: duplicate symbol: pifo_map_dequeue
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-02
head: 26dde94b299bc277f7a99a99ba64b4363964e833
commit: 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 [5/11] Add a PIFO map type for queueing packets
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220214/202202140559.L2j44zUI-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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/toke/linux.git/commit/?id...
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-02
git checkout 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37
# 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 net/
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 >>):
In file included from net/socket.c:55:
In file included from include/linux/bpf-cgroup.h:5:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/socket.c:2206:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
int max_optlen;
^
2 warnings generated.
--
In file included from net/core/sock.c:133:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
1 warning generated.
--
In file included from net/core/dev.c:95:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/core/dev.c:4971:1: warning: unused function 'sch_handle_ingress' [-Wunused-function]
sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret,
^
net/core/dev.c:5120:19: warning: unused function 'nf_ingress' [-Wunused-function]
static inline int nf_ingress(struct sk_buff *skb, struct packet_type **pt_prev,
^
3 warnings generated.
--
In file included from net/core/net-traces.c:35:
In file included from include/trace/events/tcp.h:12:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
In file included from net/core/net-traces.c:50:
In file included from include/trace/events/neigh.h:255:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:873:
include/trace/events/neigh.h:42:20: warning: variable 'pin6' set but not used [-Wunused-but-set-variable]
struct in6_addr *pin6;
^
In file included from net/core/net-traces.c:50:
In file included from include/trace/events/neigh.h:255:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:107:
include/trace/events/neigh.h:42:20: warning: variable 'pin6' set but not used [-Wunused-but-set-variable]
struct in6_addr *pin6;
^
3 warnings generated.
--
In file included from net/ipv4/route.c:95:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/ipv4/route.c:869:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
int log_martians;
^
2 warnings generated.
--
In file included from net/ipv4/tcp_output.c:40:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/ipv4/tcp_output.c:188:3: warning: result of comparison of constant -1 with expression of type 'u8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPACKCOMPRESSED,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/ip.h:292:41: note: expanded from macro 'NET_ADD_STATS'
#define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/net/snmp.h:143:4: note: expanded from macro 'SNMP_ADD_STATS'
this_cpu_add(mib->mibs[field], addend)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:509:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
<scratch space>:148:1: note: expanded from here
this_cpu_add_4
^
arch/x86/include/asm/percpu.h:268:34: note: expanded from macro 'this_cpu_add_4'
#define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:127:31: note: expanded from macro 'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~~~ ^ ~~
2 warnings generated.
--
In file included from net/netfilter/ipvs/ip_vs_core.c:34:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/netfilter/ipvs/ip_vs_core.c:1596:8: warning: variable 'outer_proto' set but not used [-Wunused-but-set-variable]
char *outer_proto = "IPIP";
^
2 warnings generated.
--
In file included from net/netfilter/ipvs/ip_vs_xmit.c:33:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/netfilter/ipvs/ip_vs_xmit.c:107:1: warning: unused function '__mtu_check_toobig_v6' [-Wunused-function]
__mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu)
^
2 warnings generated.
--
In file included from net/mptcp/options.c:11:
In file included from include/net/tcp.h:35:
In file included from include/net/sock_reuseport.h:5:
In file included from include/linux/filter.h:9:
>> include/linux/bpf.h:1966:19: warning: no previous prototype for function 'pifo_map_dequeue' [-Wmissing-prototypes]
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
include/linux/bpf.h:1966:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct xdp_frame *pifo_map_dequeue(struct bpf_map *map, u64 flags)
^
static
net/mptcp/options.c:554:21: warning: parameter 'remaining' set but not used [-Wunused-but-set-parameter]
unsigned int remaining,
^
2 warnings generated.
--
>> ld.lld: error: duplicate symbol: pifo_map_dequeue
>>> defined in net/bluetooth/bluetooth.o(l2cap_core.o)
>>> defined in net/bluetooth/bluetooth.o(l2cap_sock.o)
--
>> ld.lld: error: duplicate symbol: pifo_map_dequeue
>>> defined in net/netfilter/ipset/ip_set.o(ip_set_getport.o)
>>> defined in net/netfilter/ipset/ip_set.o(pfxlen.o)
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[boqun:dev/arm64 1/3] drivers/pci/controller/pci-hyperv.c:769:13: error: 'hv_set_msi_entry_from_desc' defined but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git dev/arm64
head: 715cdf131dd8fcb33591dc7143d193050368ecc1
commit: 39649970d5e2d161268189e1dcb9b3cb7a6ee03b [1/3] PCI: hv: Avoid the retarget interrupt hypercall in irq_unmask() on ARM64
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220214/202202140532.7tKzn8ca-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
# https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git/commit/?i...
git remote add boqun https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git
git fetch --no-tags boqun dev/arm64
git checkout 39649970d5e2d161268189e1dcb9b3cb7a6ee03b
# 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 arch/arm64/ drivers/pci/ kernel//
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/pci/controller/pci-hyperv.c:769:13: error: 'hv_set_msi_entry_from_desc' defined but not used [-Werror=unused-function]
769 | static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/hv_set_msi_entry_from_desc +769 drivers/pci/controller/pci-hyperv.c
d9932b46915664 Sunil Muthuswamy 2022-01-05 768
d9932b46915664 Sunil Muthuswamy 2022-01-05 @769 static void hv_set_msi_entry_from_desc(union hv_msi_entry *msi_entry,
d9932b46915664 Sunil Muthuswamy 2022-01-05 770 struct msi_desc *msi_desc)
d9932b46915664 Sunil Muthuswamy 2022-01-05 771 {
d9932b46915664 Sunil Muthuswamy 2022-01-05 772 msi_entry->address = ((u64)msi_desc->msg.address_hi << 32) |
d9932b46915664 Sunil Muthuswamy 2022-01-05 773 msi_desc->msg.address_lo;
d9932b46915664 Sunil Muthuswamy 2022-01-05 774 msi_entry->data = msi_desc->msg.data;
d9932b46915664 Sunil Muthuswamy 2022-01-05 775 }
d9932b46915664 Sunil Muthuswamy 2022-01-05 776
:::::: The code at line 769 was first introduced by commit
:::::: d9932b46915664c88709d59927fa67e797adec56 PCI: hv: Add arm64 Hyper-V vPCI support
:::::: TO: Sunil Muthuswamy <sunilmut(a)microsoft.com>
:::::: CC: Bjorn Helgaas <bhelgaas(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[toke:xdp-queueing-02 5/11] kernel/bpf/pifomap.c:197:6: warning: no previous prototype for 'pifo_set_bit'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-02
head: 26dde94b299bc277f7a99a99ba64b4363964e833
commit: 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 [5/11] Add a PIFO map type for queueing packets
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220214/202202140539.izxJMSE3-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git/commit/?id...
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-02
git checkout 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37
# save the config file to linux build tree
mkdir build_dir
make 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 warnings (new ones prefixed by >>):
>> kernel/bpf/pifomap.c:197:6: warning: no previous prototype for 'pifo_set_bit' [-Wmissing-prototypes]
197 | void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank)
| ^~~~~~~~~~~~
>> kernel/bpf/pifomap.c:208:6: warning: no previous prototype for 'pifo_clear_bit' [-Wmissing-prototypes]
208 | void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank)
| ^~~~~~~~~~~~~~
vim +/pifo_set_bit +197 kernel/bpf/pifomap.c
196
> 197 void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank)
198 {
199 u32 i;
200
201 for (i = queue->levels; i > 0; i--) {
202 unsigned long *bitmap = queue->lvl_bitmap[i-1];
203 set_bit(rank, bitmap);
204 rank /= BITS_PER_TYPE(long);
205 }
206 }
207
> 208 void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank)
209 {
210 u32 i;
211
212 for (i = queue->levels; i > 0; i--) {
213 unsigned long *bitmap = queue->lvl_bitmap[i-1];
214 clear_bit(rank, bitmap);
215 rank /= BITS_PER_TYPE(long);
216
217 // another bit is set in this word, don't clear bit in higher
218 // level
219 if (*(bitmap + rank))
220 break;
221 }
222 }
223
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[toke:xdp-queueing-02 5/11] kernel/bpf/pifomap.c:197:6: warning: no previous prototype for function 'pifo_set_bit'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-02
head: 26dde94b299bc277f7a99a99ba64b4363964e833
commit: 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37 [5/11] Add a PIFO map type for queueing packets
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220214/202202140517.jN2jJhHH-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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/toke/linux.git/commit/?id...
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-02
git checkout 34cc5abfbae0dfcb6967c54cb80f7595bc9c5c37
# 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 kernel/bpf/
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 >>):
>> kernel/bpf/pifomap.c:197:6: warning: no previous prototype for function 'pifo_set_bit' [-Wmissing-prototypes]
void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank)
^
kernel/bpf/pifomap.c:197:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank)
^
static
>> kernel/bpf/pifomap.c:208:6: warning: no previous prototype for function 'pifo_clear_bit' [-Wmissing-prototypes]
void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank)
^
kernel/bpf/pifomap.c:208:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank)
^
static
2 warnings generated.
vim +/pifo_set_bit +197 kernel/bpf/pifomap.c
196
> 197 void pifo_set_bit(struct bpf_pifo_queue *queue, u32 rank)
198 {
199 u32 i;
200
201 for (i = queue->levels; i > 0; i--) {
202 unsigned long *bitmap = queue->lvl_bitmap[i-1];
203 set_bit(rank, bitmap);
204 rank /= BITS_PER_TYPE(long);
205 }
206 }
207
> 208 void pifo_clear_bit(struct bpf_pifo_queue *queue, u32 rank)
209 {
210 u32 i;
211
212 for (i = queue->levels; i > 0; i--) {
213 unsigned long *bitmap = queue->lvl_bitmap[i-1];
214 clear_bit(rank, bitmap);
215 rank /= BITS_PER_TYPE(long);
216
217 // another bit is set in this word, don't clear bit in higher
218 // level
219 if (*(bitmap + rank))
220 break;
221 }
222 }
223
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[boqun:dev/arm64 3/3] drivers/hv/hv_balloon.c:1750: undefined reference to `memory_block_size_bytes'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git dev/arm64
head: 715cdf131dd8fcb33591dc7143d193050368ecc1
commit: 715cdf131dd8fcb33591dc7143d193050368ecc1 [3/3] Drivers: hv: balloon: Support memory hot add for larger page sizes
config: i386-randconfig-a002-20220105 (https://download.01.org/0day-ci/archive/20220214/202202140519.Djv5mqzC-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git/commit/?i...
git remote add boqun https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git
git fetch --no-tags boqun dev/arm64
git checkout 715cdf131dd8fcb33591dc7143d193050368ecc1
# save the config file to linux build tree
mkdir build_dir
make 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 >>):
ld: drivers/hv/hv_balloon.o: in function `balloon_connect_vsp':
>> drivers/hv/hv_balloon.c:1750: undefined reference to `memory_block_size_bytes'
vim +1750 drivers/hv/hv_balloon.c
1664
1665 static int balloon_connect_vsp(struct hv_device *dev)
1666 {
1667 struct dm_version_request version_req;
1668 struct dm_capabilities cap_msg;
1669 unsigned long t;
1670 int ret;
1671
1672 /*
1673 * max_pkt_size should be large enough for one vmbus packet header plus
1674 * our receive buffer size. Hyper-V sends messages up to
1675 * HV_HYP_PAGE_SIZE bytes long on balloon channel.
1676 */
1677 dev->channel->max_pkt_size = HV_HYP_PAGE_SIZE * 2;
1678
1679 ret = vmbus_open(dev->channel, dm_ring_size, dm_ring_size, NULL, 0,
1680 balloon_onchannelcallback, dev);
1681 if (ret)
1682 return ret;
1683
1684 /*
1685 * Initiate the hand shake with the host and negotiate
1686 * a version that the host can support. We start with the
1687 * highest version number and go down if the host cannot
1688 * support it.
1689 */
1690 memset(&version_req, 0, sizeof(struct dm_version_request));
1691 version_req.hdr.type = DM_VERSION_REQUEST;
1692 version_req.hdr.size = sizeof(struct dm_version_request);
1693 version_req.hdr.trans_id = atomic_inc_return(&trans_id);
1694 version_req.version.version = DYNMEM_PROTOCOL_VERSION_WIN10;
1695 version_req.is_last_attempt = 0;
1696 dm_device.version = version_req.version.version;
1697
1698 ret = vmbus_sendpacket(dev->channel, &version_req,
1699 sizeof(struct dm_version_request),
1700 (unsigned long)NULL, VM_PKT_DATA_INBAND, 0);
1701 if (ret)
1702 goto out;
1703
1704 t = wait_for_completion_timeout(&dm_device.host_event, 5*HZ);
1705 if (t == 0) {
1706 ret = -ETIMEDOUT;
1707 goto out;
1708 }
1709
1710 /*
1711 * If we could not negotiate a compatible version with the host
1712 * fail the probe function.
1713 */
1714 if (dm_device.state == DM_INIT_ERROR) {
1715 ret = -EPROTO;
1716 goto out;
1717 }
1718
1719 pr_info("Using Dynamic Memory protocol version %u.%u\n",
1720 DYNMEM_MAJOR_VERSION(dm_device.version),
1721 DYNMEM_MINOR_VERSION(dm_device.version));
1722
1723 /*
1724 * Now submit our capabilities to the host.
1725 */
1726 memset(&cap_msg, 0, sizeof(struct dm_capabilities));
1727 cap_msg.hdr.type = DM_CAPABILITIES_REPORT;
1728 cap_msg.hdr.size = sizeof(struct dm_capabilities);
1729 cap_msg.hdr.trans_id = atomic_inc_return(&trans_id);
1730
1731 /*
1732 * When hibernation (i.e. virtual ACPI S4 state) is enabled, the host
1733 * currently still requires the bits to be set, so we have to add code
1734 * to fail the host's hot-add and balloon up/down requests, if any.
1735 */
1736 cap_msg.caps.cap_bits.balloon = 1;
1737 cap_msg.caps.cap_bits.hot_add = 1;
1738
1739 /*
1740 * Specify our alignment requirements as it relates
1741 * memory hot-add. The alignment should be the same as the memory block
1742 * size, and Hyper-V expects 2 ^ hot_add_alignment * 1MB is the
1743 * alignment in bytes.
1744 */
1745 /*
1746 * XXX: memory_block_size_bytes() for ARM64 only is only implemented
1747 * when CONFIG_MEMORY_HOTPLUG=y, and for x86, it doesn't get exported
1748 */
1749 cap_msg.caps.cap_bits.hot_add_alignment =
> 1750 count_trailing_zeros(memory_block_size_bytes() / 0x100000);
1751
1752 /*
1753 * Currently the host does not use these
1754 * values and we set them to what is done in the
1755 * Windows driver.
1756 */
1757 cap_msg.min_page_cnt = 0;
1758 cap_msg.max_page_number = -1;
1759
1760 ret = vmbus_sendpacket(dev->channel, &cap_msg,
1761 sizeof(struct dm_capabilities),
1762 (unsigned long)NULL, VM_PKT_DATA_INBAND, 0);
1763 if (ret)
1764 goto out;
1765
1766 t = wait_for_completion_timeout(&dm_device.host_event, 5*HZ);
1767 if (t == 0) {
1768 ret = -ETIMEDOUT;
1769 goto out;
1770 }
1771
1772 /*
1773 * If the host does not like our capabilities,
1774 * fail the probe function.
1775 */
1776 if (dm_device.state == DM_INIT_ERROR) {
1777 ret = -EPROTO;
1778 goto out;
1779 }
1780
1781 return 0;
1782 out:
1783 vmbus_close(dev->channel);
1784 return ret;
1785 }
1786
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1148:26: error: variable 'priv' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c5d714aa6dce262482992cccc0ab01383294f7ac
commit: 167dac97eb46c7b8a15b2195080e191bb0c9ce35 drm/msm/dp: Modify prototype of encoder based API
date: 4 months ago
config: arm-randconfig-r006-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140432.v7pvcbKc-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 478c237e21b2c3a83e46f26fcbeb3876682f9b14)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 167dac97eb46c7b8a15b2195080e191bb0c9ce35
# 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=arm 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 errors (new ones prefixed by >>):
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1148:26: error: variable 'priv' set but not used [-Werror,-Wunused-but-set-variable]
struct msm_drm_private *priv;
^
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1197:26: error: variable 'priv' set but not used [-Werror,-Wunused-but-set-variable]
struct msm_drm_private *priv;
^
2 errors generated.
vim +/priv +1148 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1143
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1144 static void dpu_encoder_virt_enable(struct drm_encoder *drm_enc)
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1145 {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1146 struct dpu_encoder_virt *dpu_enc = NULL;
86b89080368b46 Jeykumar Sankaran 2018-09-05 1147 int ret = 0;
c943b4948b5848 Chandan Uddaraju 2020-08-27 @1148 struct msm_drm_private *priv;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1149 struct drm_display_mode *cur_mode = NULL;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1150
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1151 if (!drm_enc) {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1152 DPU_ERROR("invalid encoder\n");
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1153 return;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1154 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1155 dpu_enc = to_dpu_encoder_virt(drm_enc);
fba7427eb59496 Sean Paul 2018-11-16 1156
fba7427eb59496 Sean Paul 2018-11-16 1157 mutex_lock(&dpu_enc->enc_lock);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1158 cur_mode = &dpu_enc->base.crtc->state->adjusted_mode;
c943b4948b5848 Chandan Uddaraju 2020-08-27 1159 priv = drm_enc->dev->dev_private;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1160
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1161 trace_dpu_enc_enable(DRMID(drm_enc), cur_mode->hdisplay,
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1162 cur_mode->vdisplay);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1163
86b89080368b46 Jeykumar Sankaran 2018-09-05 1164 /* always enable slave encoder before master */
86b89080368b46 Jeykumar Sankaran 2018-09-05 1165 if (dpu_enc->cur_slave && dpu_enc->cur_slave->ops.enable)
86b89080368b46 Jeykumar Sankaran 2018-09-05 1166 dpu_enc->cur_slave->ops.enable(dpu_enc->cur_slave);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1167
86b89080368b46 Jeykumar Sankaran 2018-09-05 1168 if (dpu_enc->cur_master && dpu_enc->cur_master->ops.enable)
86b89080368b46 Jeykumar Sankaran 2018-09-05 1169 dpu_enc->cur_master->ops.enable(dpu_enc->cur_master);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1170
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1171 ret = dpu_encoder_resource_control(drm_enc, DPU_ENC_RC_EVENT_KICKOFF);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1172 if (ret) {
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1173 DPU_ERROR_ENC(dpu_enc, "dpu resource control failed: %d\n",
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1174 ret);
fba7427eb59496 Sean Paul 2018-11-16 1175 goto out;
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1176 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1177
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1178 _dpu_encoder_virt_enable_helper(drm_enc);
fba7427eb59496 Sean Paul 2018-11-16 1179
167dac97eb46c7 Bjorn Andersson 2021-10-16 1180 if (drm_enc->encoder_type == DRM_MODE_ENCODER_TMDS) {
167dac97eb46c7 Bjorn Andersson 2021-10-16 1181 ret = msm_dp_display_enable(dpu_enc->dp, drm_enc);
c943b4948b5848 Chandan Uddaraju 2020-08-27 1182 if (ret) {
c943b4948b5848 Chandan Uddaraju 2020-08-27 1183 DPU_ERROR_ENC(dpu_enc, "dp display enable failed: %d\n",
c943b4948b5848 Chandan Uddaraju 2020-08-27 1184 ret);
c943b4948b5848 Chandan Uddaraju 2020-08-27 1185 goto out;
c943b4948b5848 Chandan Uddaraju 2020-08-27 1186 }
c943b4948b5848 Chandan Uddaraju 2020-08-27 1187 }
fba7427eb59496 Sean Paul 2018-11-16 1188 dpu_enc->enabled = true;
fba7427eb59496 Sean Paul 2018-11-16 1189
fba7427eb59496 Sean Paul 2018-11-16 1190 out:
fba7427eb59496 Sean Paul 2018-11-16 1191 mutex_unlock(&dpu_enc->enc_lock);
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1192 }
25fdd5933e4c0f Jeykumar Sankaran 2018-06-27 1193
:::::: The code at line 1148 was first introduced by commit
:::::: c943b4948b5848fc0e07f875edbd35a973879e22 drm/msm/dp: add displayPort driver support
:::::: TO: Chandan Uddaraju <chandanu(a)codeaurora.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
7 months, 1 week