Re: [PATCH 07/13] sunrpc: keep track of the xprt_class in rpc_xprt structure
by kernel test robot
Hi Olga,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on nfs/linux-next]
[also build test ERROR on nfsd/nfsd-next v5.12-rc7 next-20210414]
[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/Olga-Kornievskaia/create-sysfs-f...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: ia64-gensparse_defconfig (attached as .config)
compiler: ia64-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/eb4c4b6126d3914b950cb13c118d7b28c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Olga-Kornievskaia/create-sysfs-files-for-changing-IP-address/20210415-102946
git checkout eb4c4b6126d3914b950cb13c118d7b28ce132dc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=ia64
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/sunrpc/xprtrdma/transport.c: In function 'xprt_setup_rdma':
>> net/sunrpc/xprtrdma/transport.c:353:22: error: 'xprt_rdma' undeclared (first use in this function); did you mean 'xprt_rdma_bc'?
353 | xprt->xprt_class = &xprt_rdma;
| ^~~~~~~~~
| xprt_rdma_bc
net/sunrpc/xprtrdma/transport.c:353:22: note: each undeclared identifier is reported only once for each function it appears in
vim +353 net/sunrpc/xprtrdma/transport.c
308
309 /**
310 * xprt_setup_rdma - Set up transport to use RDMA
311 *
312 * @args: rpc transport arguments
313 */
314 static struct rpc_xprt *
315 xprt_setup_rdma(struct xprt_create *args)
316 {
317 struct rpc_xprt *xprt;
318 struct rpcrdma_xprt *new_xprt;
319 struct sockaddr *sap;
320 int rc;
321
322 if (args->addrlen > sizeof(xprt->addr))
323 return ERR_PTR(-EBADF);
324
325 if (!try_module_get(THIS_MODULE))
326 return ERR_PTR(-EIO);
327
328 xprt = xprt_alloc(args->net, sizeof(struct rpcrdma_xprt), 0,
329 xprt_rdma_slot_table_entries);
330 if (!xprt) {
331 module_put(THIS_MODULE);
332 return ERR_PTR(-ENOMEM);
333 }
334
335 xprt->timeout = &xprt_rdma_default_timeout;
336 xprt->connect_timeout = xprt->timeout->to_initval;
337 xprt->max_reconnect_timeout = xprt->timeout->to_maxval;
338 xprt->bind_timeout = RPCRDMA_BIND_TO;
339 xprt->reestablish_timeout = RPCRDMA_INIT_REEST_TO;
340 xprt->idle_timeout = RPCRDMA_IDLE_DISC_TO;
341
342 xprt->resvport = 0; /* privileged port not needed */
343 xprt->ops = &xprt_rdma_procs;
344
345 /*
346 * Set up RDMA-specific connect data.
347 */
348 sap = args->dstaddr;
349
350 /* Ensure xprt->addr holds valid server TCP (not RDMA)
351 * address, for any side protocols which peek at it */
352 xprt->prot = IPPROTO_TCP;
> 353 xprt->xprt_class = &xprt_rdma;
354 xprt->addrlen = args->addrlen;
355 memcpy(&xprt->addr, sap, xprt->addrlen);
356
357 if (rpc_get_port(sap))
358 xprt_set_bound(xprt);
359 xprt_rdma_format_addresses(xprt, sap);
360
361 new_xprt = rpcx_to_rdmax(xprt);
362 rc = rpcrdma_buffer_create(new_xprt);
363 if (rc) {
364 xprt_rdma_free_addresses(xprt);
365 xprt_free(xprt);
366 module_put(THIS_MODULE);
367 return ERR_PTR(rc);
368 }
369
370 INIT_DELAYED_WORK(&new_xprt->rx_connect_worker,
371 xprt_rdma_connect_worker);
372
373 xprt->max_payload = RPCRDMA_MAX_DATA_SEGS << PAGE_SHIFT;
374
375 return xprt;
376 }
377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[peterz-queue:mm/tlb 4/10] arch/parisc/include/asm/pgalloc.h:69:6: error: implicit declaration of function '__pmd_free'; did you mean 'pmd_free'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git mm/tlb
head: b82a5a0cacd676c4b8a41bb7fd30fa62b510e9f3
commit: f508b925b8a989de2393db2155ad9bf42c34f4ba [4/10] parisc/tlb: Fix __p*_free_tlb()
config: parisc-randconfig-r021-20210414 (attached as .config)
compiler: hppa64-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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue mm/tlb
git checkout f508b925b8a989de2393db2155ad9bf42c34f4ba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=parisc
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 include/linux/list.h:9,
from include/linux/smp.h:12,
from include/linux/kernel_stat.h:5,
from mm/memory.c:42:
mm/memory.c: In function 'free_pmd_range':
>> arch/parisc/include/asm/pgalloc.h:69:6: error: implicit declaration of function '__pmd_free'; did you mean 'pmd_free'? [-Werror=implicit-function-declaration]
69 | if (__pmd_free((tlb)->mm, (pmd))) \
| ^~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/include/asm/pgalloc.h:69:2: note: in expansion of macro 'if'
69 | if (__pmd_free((tlb)->mm, (pmd))) \
| ^~
include/asm-generic/tlb.h:638:3: note: in expansion of macro '__pmd_free_tlb'
638 | __pmd_free_tlb(tlb, pmdp, address); \
| ^~~~~~~~~~~~~~
mm/memory.c:266:2: note: in expansion of macro 'pmd_free_tlb'
266 | pmd_free_tlb(tlb, pmd, start);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +69 arch/parisc/include/asm/pgalloc.h
66
67 #define __pmd_free_tlb(tlb, pmd, addr) \
68 do { \
> 69 if (__pmd_free((tlb)->mm, (pmd))) \
70 tlb_remove_table((tlb), (pmd)); \
71 } while (0)
72
---
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 09/13] sunrpc: add a symlink from rpc-client directory to the xprt_switch
by kernel test robot
Hi Olga,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on nfsd/nfsd-next v5.12-rc7 next-20210414]
[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/Olga-Kornievskaia/create-sysfs-f...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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/a05b7df960093f762cbe85580d90bd3d0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Olga-Kornievskaia/create-sysfs-files-for-changing-IP-address/20210415-102946
git checkout a05b7df960093f762cbe85580d90bd3d0b83d54b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=xtensa
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 >>):
net/sunrpc/sysfs.c: In function 'rpc_sysfs_client_setup':
>> net/sunrpc/sysfs.c:164:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
164 | int ret;
| ^~~
vim +/ret +164 net/sunrpc/sysfs.c
151
152 void rpc_sysfs_client_setup(struct rpc_clnt *clnt,
153 struct rpc_xprt_switch *xprt_switch,
154 struct net *net)
155 {
156 struct rpc_sysfs_client *rpc_client;
157
158 rpc_client = rpc_sysfs_client_alloc(rpc_sunrpc_client_kobj,
159 net, clnt->cl_clid);
160 if (rpc_client) {
161 char name[23];
162 struct rpc_sysfs_xprt_switch *xswitch =
163 (struct rpc_sysfs_xprt_switch *)xprt_switch->xps_sysfs;
> 164 int ret;
165
166 clnt->cl_sysfs = rpc_client;
167 rpc_client->clnt = clnt;
168 rpc_client->xprt_switch = xprt_switch;
169 kobject_uevent(&rpc_client->kobject, KOBJ_ADD);
170 snprintf(name, sizeof(name), "switch-%d", xprt_switch->xps_id);
171 ret = sysfs_create_link_nowarn(&rpc_client->kobject,
172 &xswitch->kobject, name);
173 }
174 }
175
---
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 11/13] sunrpc: add dst_attr attributes to the sysfs xprt directory
by kernel test robot
Hi Olga,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on nfsd/nfsd-next v5.12-rc7 next-20210414]
[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/Olga-Kornievskaia/create-sysfs-f...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: i386-randconfig-s001-20210414 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-280-g2cd6d34e-dirty
# https://github.com/0day-ci/linux/commit/c5b3ebaffb5ca80f6c6170e8ecd2dfc94...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Olga-Kornievskaia/create-sysfs-files-for-changing-IP-address/20210415-102946
git checkout c5b3ebaffb5ca80f6c6170e8ecd2dfc9494880bf
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
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/sunrpc/sysfs.c:56:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/sunrpc/sysfs.c:56:25: sparse: struct rpc_xprt [noderef] __rcu *
>> net/sunrpc/sysfs.c:56:25: sparse: struct rpc_xprt *
>> net/sunrpc/sysfs.c:56:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/sunrpc/sysfs.c:56:25: sparse: struct rpc_xprt [noderef] __rcu *
>> net/sunrpc/sysfs.c:56:25: sparse: struct rpc_xprt *
vim +56 net/sunrpc/sysfs.c
47
48 static inline struct rpc_xprt *
49 rpc_sysfs_xprt_kobj_get_xprt(struct kobject *kobj)
50 {
51 struct rpc_sysfs_xprt_switch_xprt *x = container_of(kobj,
52 struct rpc_sysfs_xprt_switch_xprt, kobject);
53 struct rpc_xprt *xprt;
54
55 rcu_read_lock();
> 56 xprt = xprt_get(rcu_dereference(x->xprt));
57 rcu_read_unlock();
58 return xprt;
59 }
60
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[freescale-fslc:pr/308 12053/18175] drivers/gpu/drm/rockchip/cdn-dp-core.h:10:10: fatal error: drm/bridge/cdns-mhdp-common.h: No such file or directory
by kernel test robot
Hi Sandor,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/308
head: 8ad3d2ca53512dbb09a96c97d59595dea182e45a
commit: 110d5c01d3f73ef56cd4ff4eba74a45b6f2dfc63 [12053/18175] MLK-24427-3: drm: mhdp: Backporting code change from linux-nxp
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/Freescale/linux-fslc/commit/110d5c01d3f73ef56cd4ff4eba...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/308
git checkout 110d5c01d3f73ef56cd4ff4eba74a45b6f2dfc63
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
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/gpu/drm/rockchip/cdn-dp-core.c:24:
>> drivers/gpu/drm/rockchip/cdn-dp-core.h:10:10: fatal error: drm/bridge/cdns-mhdp-common.h: No such file or directory
10 | #include <drm/bridge/cdns-mhdp-common.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
vim +10 drivers/gpu/drm/rockchip/cdn-dp-core.h
1a0f7ed3abe29c Chris Zhong 2017-02-05 9
7a3d6a6e256cf5 Sandor Yu 2019-07-10 @10 #include <drm/bridge/cdns-mhdp-common.h>
7a3d6a6e256cf5 Sandor Yu 2019-07-10 11 #include <drm/drmP.h>
1a0f7ed3abe29c Chris Zhong 2017-02-05 12 #include <drm/drm_dp_helper.h>
1a0f7ed3abe29c Chris Zhong 2017-02-05 13 #include <drm/drm_panel.h>
fcd70cd36b9bf6 Daniel Vetter 2019-01-17 14 #include <drm/drm_probe_helper.h>
c2156ccd9657c9 Sam Ravnborg 2019-07-16 15
:::::: The code at line 10 was first introduced by commit
:::::: 7a3d6a6e256cf5f35a9910c68432e3ba5b491116 drm: bridge: add Cadence MHDP HDMI/DP API
:::::: TO: Sandor Yu <Sandor.yu(a)nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[android-common:android12-5.10 21/42] arch/arm64/kvm/hyp/nvhe/setup.c:133:17: warning: no previous prototype for function '__pkvm_init_finalise'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 16982b6a180aaf0bc48e5ddf024d3a031e4fec6a
commit: ae1ed8a984395ff05728ea212fde0abb93d95864 [21/42] FROMLIST: KVM: arm64: Prepare the creation of s1 mappings at EL2
config: arm64-randconfig-r001-20210414 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6a18cc23efad410db48a3ccfc233d215de7d4cb9)
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 android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout ae1ed8a984395ff05728ea212fde0abb93d95864
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):
>> arch/arm64/kvm/hyp/nvhe/setup.c:133:17: warning: no previous prototype for function '__pkvm_init_finalise' [-Wmissing-prototypes]
void __noreturn __pkvm_init_finalise(void)
^
arch/arm64/kvm/hyp/nvhe/setup.c:133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __noreturn __pkvm_init_finalise(void)
^
static
1 warning generated.
vim +/__pkvm_init_finalise +133 arch/arm64/kvm/hyp/nvhe/setup.c
132
> 133 void __noreturn __pkvm_init_finalise(void)
134 {
135 struct kvm_host_data *host_data = this_cpu_ptr(&kvm_host_data);
136 struct kvm_cpu_context *host_ctxt = &host_data->host_ctxt;
137 unsigned long nr_pages, reserved_pages, pfn;
138 int ret;
139
140 /* Now that the vmemmap is backed, install the full-fledged allocator */
141 pfn = hyp_virt_to_pfn(hyp_pgt_base);
142 nr_pages = hyp_s1_pgtable_pages();
143 reserved_pages = hyp_early_alloc_nr_used_pages();
144 ret = hyp_pool_init(&hpool, pfn, nr_pages, reserved_pages);
145 if (ret)
146 goto out;
147
148 pkvm_pgtable_mm_ops = (struct kvm_pgtable_mm_ops) {
149 .zalloc_page = hyp_zalloc_hyp_page,
150 .phys_to_virt = hyp_phys_to_virt,
151 .virt_to_phys = hyp_virt_to_phys,
152 .get_page = hyp_get_page,
153 .put_page = hyp_put_page,
154 };
155 pkvm_pgtable.mm_ops = &pkvm_pgtable_mm_ops;
156
157 out:
158 /*
159 * We tail-called to here from handle___pkvm_init() and will not return,
160 * so make sure to propagate the return value to the host.
161 */
162 cpu_reg(host_ctxt, 1) = ret;
163
164 __host_enter(host_ctxt);
165 }
166
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
drivers/bus/mhi/core/pm.c:740:6: warning: stack frame size of 3568 bytes in function 'mhi_pm_st_worker'
by kernel test robot
Hi Bhaumik,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7f75285ca572eaabc028cf78c6ab5473d0d160be
commit: 556bbb442bbb44f429dbaa9f8b48e0b4cda6e088 bus: mhi: core: Separate system error and power down handling
date: 5 months ago
config: powerpc64-randconfig-r034-20210414 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# 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 556bbb442bbb44f429dbaa9f8b48e0b4cda6e088
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc64
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 >>):
^
arch/powerpc/include/asm/io.h:522:62: note: expanded from macro '__do_outl'
#define __do_outl(val, port) writel(val,(PCI_IO_ADDR)_IO_BASE+port);
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:236:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:541:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:238:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:2:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:4:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:6:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bus/mhi/core/pm.c:10:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:8:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/bus/mhi/core/pm.c:740:6: warning: stack frame size of 3568 bytes in function 'mhi_pm_st_worker' [-Wframe-larger-than=]
void mhi_pm_st_worker(struct work_struct *work)
^
13 warnings generated.
vim +/mhi_pm_st_worker +740 drivers/bus/mhi/core/pm.c
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 738
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 739 /* Device State Transition worker */
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 @740 void mhi_pm_st_worker(struct work_struct *work)
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 741 {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 742 struct state_transition *itr, *tmp;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 743 LIST_HEAD(head);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 744 struct mhi_controller *mhi_cntrl = container_of(work,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 745 struct mhi_controller,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 746 st_worker);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 747 struct device *dev = &mhi_cntrl->mhi_dev->dev;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 748
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 749 spin_lock_irq(&mhi_cntrl->transition_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 750 list_splice_tail_init(&mhi_cntrl->transition_list, &head);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 751 spin_unlock_irq(&mhi_cntrl->transition_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 752
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 753 list_for_each_entry_safe(itr, tmp, &head, node) {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 754 list_del(&itr->node);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 755 dev_dbg(dev, "Handling state transition: %s\n",
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 756 TO_DEV_STATE_TRANS_STR(itr->state));
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 757
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 758 switch (itr->state) {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 759 case DEV_ST_TRANSITION_PBL:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 760 write_lock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 761 if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state))
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 762 mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 763 write_unlock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 764 if (MHI_IN_PBL(mhi_cntrl->ee))
560e3a045961ed Bhaumik Bhatt 2020-05-21 765 mhi_fw_load_handler(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 766 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 767 case DEV_ST_TRANSITION_SBL:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 768 write_lock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 769 mhi_cntrl->ee = MHI_EE_SBL;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 770 write_unlock_irq(&mhi_cntrl->pm_lock);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 771 /*
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 772 * The MHI devices are only created when the client
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 773 * device switches its Execution Environment (EE) to
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 774 * either SBL or AMSS states
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 775 */
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 776 mhi_create_devices(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 777 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 778 case DEV_ST_TRANSITION_MISSION_MODE:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 779 mhi_pm_mission_mode_transition(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 780 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 781 case DEV_ST_TRANSITION_READY:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 782 mhi_ready_state_transition(mhi_cntrl);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 783 break;
bc7ccce5a5192c Hemant Kumar 2020-05-21 784 case DEV_ST_TRANSITION_SYS_ERR:
556bbb442bbb44 Bhaumik Bhatt 2020-11-09 785 mhi_pm_sys_error_transition(mhi_cntrl);
bc7ccce5a5192c Hemant Kumar 2020-05-21 786 break;
3c1bd0047124f5 Hemant Kumar 2020-05-21 787 case DEV_ST_TRANSITION_DISABLE:
3c1bd0047124f5 Hemant Kumar 2020-05-21 788 mhi_pm_disable_transition
3c1bd0047124f5 Hemant Kumar 2020-05-21 789 (mhi_cntrl, MHI_PM_SHUTDOWN_PROCESS);
3c1bd0047124f5 Hemant Kumar 2020-05-21 790 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 791 default:
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 792 break;
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 793 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 794 kfree(itr);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 795 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 796 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 797
:::::: The code at line 740 was first introduced by commit
:::::: a6e2e3522f29141b95c1ef8580c665a3582b3e66 bus: mhi: core: Add support for PM state transitions
:::::: TO: Manivannan Sadhasivam <manivannan.sadhasivam(a)linaro.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[android-common:android12-5.10 51/57] drivers/hwtracing/coresight/coresight-etm4x-core.c:118:5: warning: no previous prototype for function 'ete_sysreg_read'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 04dc43bd986e351d3e20fe41ceb3d56499b7c422
commit: 82ce4a8af88d25d3f75de6e8437de3d2f049cac3 [51/57] FROMLIST: coresight: ete: Add support for ETE sysreg access
config: arm64-randconfig-r001-20210414 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6a18cc23efad410db48a3ccfc233d215de7d4cb9)
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 android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 82ce4a8af88d25d3f75de6e8437de3d2f049cac3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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/hwtracing/coresight/coresight-etm4x-core.c:118:5: warning: no previous prototype for function 'ete_sysreg_read' [-Wmissing-prototypes]
u64 ete_sysreg_read(u32 offset, bool _relaxed, bool _64bit)
^
drivers/hwtracing/coresight/coresight-etm4x-core.c:118:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 ete_sysreg_read(u32 offset, bool _relaxed, bool _64bit)
^
static
>> drivers/hwtracing/coresight/coresight-etm4x-core.c:135:6: warning: no previous prototype for function 'ete_sysreg_write' [-Wmissing-prototypes]
void ete_sysreg_write(u64 val, u32 offset, bool _relaxed, bool _64bit)
^
drivers/hwtracing/coresight/coresight-etm4x-core.c:135:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ete_sysreg_write(u64 val, u32 offset, bool _relaxed, bool _64bit)
^
static
2 warnings generated.
vim +/ete_sysreg_read +118 drivers/hwtracing/coresight/coresight-etm4x-core.c
117
> 118 u64 ete_sysreg_read(u32 offset, bool _relaxed, bool _64bit)
119 {
120 u64 res = 0;
121
122 switch (offset) {
123 ETE_READ_CASES(res)
124 default :
125 pr_warn_ratelimited("ete: trying to read unsupported register @%x\n",
126 offset);
127 }
128
129 if (!_relaxed)
130 __iormb(res); /* Imitate the !relaxed I/O helpers */
131
132 return res;
133 }
134
> 135 void ete_sysreg_write(u64 val, u32 offset, bool _relaxed, bool _64bit)
136 {
137 if (!_relaxed)
138 __iowmb(); /* Imitate the !relaxed I/O helpers */
139 if (!_64bit)
140 val &= GENMASK(31, 0);
141
142 switch (offset) {
143 ETE_WRITE_CASES(val)
144 default :
145 pr_warn_ratelimited("ete: trying to write to unsupported register @%x\n",
146 offset);
147 }
148 }
149
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months