Re: [PATCH 2/3] clk: Introduce 'critical-clocks' property
by kernel test robot
Hi Marek,
I love your patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on v5.17-rc4 next-20220214]
[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-Vasut/dt-bindings-clk-Intr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: nds32-allnoconfig (https://download.01.org/0day-ci/archive/20220215/202202151824.QGNvG2R8-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/aded04bc3dec13df3f940621d94d84e32...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Vasut/dt-bindings-clk-Introduce-critical-clocks-property/20220215-164757
git checkout aded04bc3dec13df3f940621d94d84e32ff8a5ea
# 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/clk/
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/clk/clk.c: In function '__clk_register_critical_clock':
>> drivers/clk/clk.c:3881:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
3881 | int ret, i, index;
| ^~~
vim +/ret +3881 drivers/clk/clk.c
3874
3875 static void
3876 __clk_register_critical_clock(struct device_node *np, struct clk_core *core,
3877 struct clk_hw *hw)
3878 {
3879 struct of_phandle_args clkspec;
3880 u32 clksize, clktotal;
> 3881 int ret, i, index;
3882
3883 if (!np)
3884 return;
3885
3886 if (!core->ops->match_clkspec)
3887 return;
3888
3889 if (of_property_read_u32(np, "#clock-cells", &clksize))
3890 return;
3891
3892 /* Clock node with #clock-cells = <0> uses critical-clocks; */
3893 if (clksize == 0) {
3894 if (of_property_read_bool(np, "critical-clocks") &&
3895 !core->ops->match_clkspec(hw, &clkspec))
3896 core->flags |= CLK_IS_CRITICAL;
3897 return;
3898 }
3899
3900 clkspec.np = np;
3901 clktotal = of_property_count_u32_elems(np, "critical-clocks");
3902 clktotal /= clksize;
3903 for (index = 0; index < clktotal; index++) {
3904 for (i = 0; i < clksize; i++) {
3905 ret = of_property_read_u32_index(np, "critical-clocks",
3906 (index * clksize) + i,
3907 &(clkspec.args[i]));
3908 }
3909 if (!core->ops->match_clkspec(hw, &clkspec))
3910 core->flags |= CLK_IS_CRITICAL;
3911 }
3912 }
3913
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[cel:nfsd-courteous-server 32/34] fs/nfsd/nfs4state.c:5893:9: error: implicit declaration of function 'nfsd4_get_client_reaplist'; did you mean 'nfs4_get_client_reaplist'?
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux nfsd-courteous-server
head: 4b14f83e0bc79cb49f28fdc63a370c19637e2bfc
commit: 2fb4c8cd9a292bbee4428e9c6d33be28ca5775c6 [32/34] NFSD: Refactor nfsd4_laundromat()
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202151804.8Tf5mieQ-lk...)
compiler: arceb-elf-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/cel/linux.git/commit/?id=...
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel nfsd-courteous-server
git checkout 2fb4c8cd9a292bbee4428e9c6d33be28ca5775c6
# 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=arc 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 >>):
fs/nfsd/nfs4state.c: In function 'nfs4_laundromat':
>> fs/nfsd/nfs4state.c:5893:9: error: implicit declaration of function 'nfsd4_get_client_reaplist'; did you mean 'nfs4_get_client_reaplist'? [-Werror=implicit-function-declaration]
5893 | nfsd4_get_client_reaplist(nn, &reaplist, <);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| nfs4_get_client_reaplist
At top level:
fs/nfsd/nfs4state.c:5841:1: warning: 'nfs4_get_client_reaplist' defined but not used [-Wunused-function]
5841 | nfs4_get_client_reaplist(struct nfsd_net *nn, struct list_head *reaplist,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +5893 fs/nfsd/nfs4state.c
5860
5861 static time64_t
5862 nfs4_laundromat(struct nfsd_net *nn)
5863 {
5864 struct nfs4_client *clp;
5865 struct nfs4_openowner *oo;
5866 struct nfs4_delegation *dp;
5867 struct nfs4_ol_stateid *stp;
5868 struct nfsd4_blocked_lock *nbl;
5869 struct list_head *pos, *next, reaplist;
5870 struct laundry_time lt = {
5871 .cutoff = ktime_get_boottime_seconds() - nn->nfsd4_lease,
5872 .new_timeo = nn->nfsd4_lease
5873 };
5874 struct nfs4_cpntf_state *cps;
5875 copy_stateid_t *cps_t;
5876 int i;
5877
5878 if (clients_still_reclaiming(nn)) {
5879 lt.new_timeo = 0;
5880 goto out;
5881 }
5882 nfsd4_end_grace(nn);
5883
5884 spin_lock(&nn->s2s_cp_lock);
5885 idr_for_each_entry(&nn->s2s_cp_stateids, cps_t, i) {
5886 cps = container_of(cps_t, struct nfs4_cpntf_state, cp_stateid);
5887 if (cps->cp_stateid.sc_type == NFS4_COPYNOTIFY_STID &&
5888 state_expired(<, cps->cpntf_time))
5889 _free_cpntf_state_locked(nn, cps);
5890 }
5891 spin_unlock(&nn->s2s_cp_lock);
5892
> 5893 nfsd4_get_client_reaplist(nn, &reaplist, <);
5894 list_for_each_safe(pos, next, &reaplist) {
5895 clp = list_entry(pos, struct nfs4_client, cl_lru);
5896 trace_nfsd_clid_purged(&clp->cl_clientid);
5897 list_del_init(&clp->cl_lru);
5898 expire_client(clp);
5899 }
5900 spin_lock(&state_lock);
5901 list_for_each_safe(pos, next, &nn->del_recall_lru) {
5902 dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru);
5903 if (!state_expired(<, dp->dl_time))
5904 break;
5905 WARN_ON(!unhash_delegation_locked(dp));
5906 list_add(&dp->dl_recall_lru, &reaplist);
5907 }
5908 spin_unlock(&state_lock);
5909 while (!list_empty(&reaplist)) {
5910 dp = list_first_entry(&reaplist, struct nfs4_delegation,
5911 dl_recall_lru);
5912 list_del_init(&dp->dl_recall_lru);
5913 revoke_delegation(dp);
5914 }
5915
5916 spin_lock(&nn->client_lock);
5917 while (!list_empty(&nn->close_lru)) {
5918 oo = list_first_entry(&nn->close_lru, struct nfs4_openowner,
5919 oo_close_lru);
5920 if (!state_expired(<, oo->oo_time))
5921 break;
5922 list_del_init(&oo->oo_close_lru);
5923 stp = oo->oo_last_closed_stid;
5924 oo->oo_last_closed_stid = NULL;
5925 spin_unlock(&nn->client_lock);
5926 nfs4_put_stid(&stp->st_stid);
5927 spin_lock(&nn->client_lock);
5928 }
5929 spin_unlock(&nn->client_lock);
5930
5931 /*
5932 * It's possible for a client to try and acquire an already held lock
5933 * that is being held for a long time, and then lose interest in it.
5934 * So, we clean out any un-revisited request after a lease period
5935 * under the assumption that the client is no longer interested.
5936 *
5937 * RFC5661, sec. 9.6 states that the client must not rely on getting
5938 * notifications and must continue to poll for locks, even when the
5939 * server supports them. Thus this shouldn't lead to clients blocking
5940 * indefinitely once the lock does become free.
5941 */
5942 BUG_ON(!list_empty(&reaplist));
5943 spin_lock(&nn->blocked_locks_lock);
5944 while (!list_empty(&nn->blocked_locks_lru)) {
5945 nbl = list_first_entry(&nn->blocked_locks_lru,
5946 struct nfsd4_blocked_lock, nbl_lru);
5947 if (!state_expired(<, nbl->nbl_time))
5948 break;
5949 list_move(&nbl->nbl_lru, &reaplist);
5950 list_del_init(&nbl->nbl_list);
5951 }
5952 spin_unlock(&nn->blocked_locks_lock);
5953
5954 while (!list_empty(&reaplist)) {
5955 nbl = list_first_entry(&reaplist,
5956 struct nfsd4_blocked_lock, nbl_lru);
5957 list_del_init(&nbl->nbl_lru);
5958 free_blocked_lock(nbl);
5959 }
5960 #ifdef CONFIG_NFSD_V4_2_INTER_SSC
5961 /* service the server-to-server copy delayed unmount list */
5962 nfsd4_ssc_expire_umount(nn);
5963 #endif
5964 out:
5965 return max_t(time64_t, lt.new_timeo, NFSD_LAUNDROMAT_MINTIMEOUT);
5966 }
5967
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[tobetter:odroid-5.17.y 9/41] drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.17.y
head: 992855288ffabfafb16c8ed7ce9a81fc64cfc89a
commit: 5129b4258d6570b94abc714f4ac79508f8b7645b [9/41] ODROID-COMMON: power:reset: Add odroid support
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220215/202202151819.zUcA2HQK-lk...)
compiler: arm-linux-gnueabi-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/tobetter/linux/commit/5129b4258d6570b94abc714f4ac79508...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.17.y
git checkout 5129b4258d6570b94abc714f4ac79508f8b7645b
# 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=arm SHELL=/bin/bash drivers/power/reset/
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/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset' [-Wmissing-prototypes]
63 | void odroid_card_reset(void)
| ^~~~~~~~~~~~~~~~~
drivers/power/reset/odroid-reboot.c: In function 'odroid_restart_probe':
drivers/power/reset/odroid-reboot.c:141:17: error: 'arm_pm_restart' undeclared (first use in this function); did you mean 'alarm_restart'?
141 | arm_pm_restart = do_odroid_restart;
| ^~~~~~~~~~~~~~
| alarm_restart
drivers/power/reset/odroid-reboot.c:141:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/odroid_card_reset +63 drivers/power/reset/odroid-reboot.c
62
> 63 void odroid_card_reset(void)
64 {
65 int ret = 0;
66
67 if ((sd_vqsw == 0) && (sd_vmmc == 0))
68 return;
69
70 if (sd_vqen == 0) {
71 gpio_free(sd_vqsw);
72 gpio_free(sd_vmmc);
73 ret = gpio_request_one(sd_vqsw,
74 GPIOF_OUT_INIT_LOW, "REBOOT");
75 CHECK_RET(ret);
76 mdelay(10);
77 ret = gpio_direction_output(sd_vqsw, 1);
78 CHECK_RET(ret);
79 ret = gpio_request_one(sd_vmmc,
80 GPIOF_OUT_INIT_LOW, "REBOOT");
81 CHECK_RET(ret);
82 mdelay(10);
83 ret = gpio_direction_output(sd_vqsw, 0);
84 CHECK_RET(ret);
85 ret = gpio_direction_output(sd_vmmc, 1);
86 CHECK_RET(ret);
87 mdelay(5);
88 gpio_free(sd_vqsw);
89 gpio_free(sd_vmmc);
90 } else {
91 gpio_free(sd_vqsw);
92 gpio_free(sd_vqen);
93 gpio_free(sd_vmmc);
94
95 ret = gpio_request_one(sd_vqsw,
96 GPIOF_OUT_INIT_LOW, "REBOOT");
97 CHECK_RET(ret);
98 ret = gpio_request_one(sd_vqen,
99 GPIOF_OUT_INIT_LOW, "REBOOT");
100 CHECK_RET(ret);
101 ret = gpio_request_one(sd_vmmc,
102 GPIOF_OUT_INIT_LOW, "REBOOT");
103 CHECK_RET(ret);
104 mdelay(100);
105 ret = gpio_direction_input(sd_vqen);
106 CHECK_RET(ret);
107 ret = gpio_direction_input(sd_vmmc);
108 CHECK_RET(ret);
109 ret = gpio_direction_input(sd_vqsw);
110 CHECK_RET(ret);
111 mdelay(5);
112 gpio_free(sd_vqen);
113 gpio_free(sd_vmmc);
114 gpio_free(sd_vqsw);
115 }
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[agd5f:drm-next 25/34] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:991:3: error: implicit declaration of function 'DC_FP_START'
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 076172cdc7ab4983ed7596a53b95851849269e5a
commit: af45a5fe4f0af159db23e8bf851115b61031c648 [25/34] drm/amd/display: Protect update_bw_bounding_box FPU code.
config: riscv-randconfig-r033-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151850.04BAOxth-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout af45a5fe4f0af159db23e8bf851115b61031c648
# 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=riscv 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/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:64:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
uint64_t temp;
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:991:3: error: implicit declaration of function 'DC_FP_START' [-Werror,-Wimplicit-function-declaration]
DC_FP_START();
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:993:3: error: implicit declaration of function 'DC_FP_END' [-Werror,-Wimplicit-function-declaration]
DC_FP_END();
^
1 warning and 2 errors generated.
vim +/DC_FP_START +991 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c
989
990 if (dc->res_pool->funcs->update_bw_bounding_box) {
> 991 DC_FP_START();
992 dc->res_pool->funcs->update_bw_bounding_box(dc, dc->clk_mgr->bw_params);
> 993 DC_FP_END();
994 }
995
996 /* Creation of current_state must occur after dc->dml
997 * is initialized in dc_create_resource_pool because
998 * on creation it copies the contents of dc->dml
999 */
1000
1001 dc->current_state = dc_create_state(dc);
1002
1003 if (!dc->current_state) {
1004 dm_error("%s: failed to create validate ctx\n", __func__);
1005 goto fail;
1006 }
1007
1008 if (!create_links(dc, init_params->num_virtual_links))
1009 goto fail;
1010
1011 /* Create additional DIG link encoder objects if fewer than the platform
1012 * supports were created during link construction.
1013 */
1014 if (!create_link_encoders(dc))
1015 goto fail;
1016
1017 dc_resource_state_construct(dc, dc->current_state);
1018
1019 return true;
1020
1021 fail:
1022 return false;
1023 }
1024
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH 3/8] sched: Move rt_period/runtime sysctls to rt.c
by kernel test robot
Hi Zhen,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/sched/core]
[also build test ERROR on linus/master kees/for-next/pstore v5.17-rc4]
[cannot apply to next-20220214]
[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/Zhen-Ni/sched-Move-a-series-of-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3624ba7b5e2acc02b01301ea5fd3534971eb9896
config: hexagon-randconfig-r033-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151705.Uez40mBM-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/f93266963b3b3629980fa3384a5e37fd1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zhen-Ni/sched-Move-a-series-of-sysctls-starting-with-sys-kernel-sched_/20220215-132416
git checkout f93266963b3b3629980fa3384a5e37fd13f4c350
# 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 kernel/rcu/
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 >>):
kernel/rcu/rcutorture.c:380:16: warning: variable 'started' set but not used [-Wunused-but-set-variable]
unsigned long started;
^
kernel/rcu/rcutorture.c:381:16: warning: variable 'completed' set but not used [-Wunused-but-set-variable]
unsigned long completed;
^
kernel/rcu/rcutorture.c:384:21: warning: variable 'ts' set but not used [-Wunused-but-set-variable]
unsigned long long ts;
^
>> kernel/rcu/rcutorture.c:921:19: error: use of undeclared identifier 'sysctl_sched_rt_runtime'; did you mean 'sysctl_sched_rr_timeslice'?
old_rt_runtime = sysctl_sched_rt_runtime;
^~~~~~~~~~~~~~~~~~~~~~~
sysctl_sched_rr_timeslice
include/linux/sched/sysctl.h:37:12: note: 'sysctl_sched_rr_timeslice' declared here
extern int sysctl_sched_rr_timeslice;
^
kernel/rcu/rcutorture.c:922:2: error: use of undeclared identifier 'sysctl_sched_rt_runtime'
sysctl_sched_rt_runtime = -1;
^
kernel/rcu/rcutorture.c:930:2: error: use of undeclared identifier 'sysctl_sched_rt_runtime'
sysctl_sched_rt_runtime = old_rt_runtime;
^
kernel/rcu/rcutorture.c:1620:21: warning: variable 'ts' set but not used [-Wunused-but-set-variable]
unsigned long long ts;
^
4 warnings and 3 errors generated.
vim +921 kernel/rcu/rcutorture.c
450efca7182a516 Joel Fernandes (Google 2018-06-10 909)
450efca7182a516 Joel Fernandes (Google 2018-06-10 910) static void rcu_torture_disable_rt_throttle(void)
450efca7182a516 Joel Fernandes (Google 2018-06-10 911) {
450efca7182a516 Joel Fernandes (Google 2018-06-10 912) /*
450efca7182a516 Joel Fernandes (Google 2018-06-10 913) * Disable RT throttling so that rcutorture's boost threads don't get
450efca7182a516 Joel Fernandes (Google 2018-06-10 914) * throttled. Only possible if rcutorture is built-in otherwise the
450efca7182a516 Joel Fernandes (Google 2018-06-10 915) * user should manually do this by setting the sched_rt_period_us and
450efca7182a516 Joel Fernandes (Google 2018-06-10 916) * sched_rt_runtime sysctls.
450efca7182a516 Joel Fernandes (Google 2018-06-10 917) */
450efca7182a516 Joel Fernandes (Google 2018-06-10 918) if (!IS_BUILTIN(CONFIG_RCU_TORTURE_TEST) || old_rt_runtime != -1)
450efca7182a516 Joel Fernandes (Google 2018-06-10 919) return;
450efca7182a516 Joel Fernandes (Google 2018-06-10 920)
450efca7182a516 Joel Fernandes (Google 2018-06-10 @921) old_rt_runtime = sysctl_sched_rt_runtime;
450efca7182a516 Joel Fernandes (Google 2018-06-10 922) sysctl_sched_rt_runtime = -1;
450efca7182a516 Joel Fernandes (Google 2018-06-10 923) }
450efca7182a516 Joel Fernandes (Google 2018-06-10 924)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.15 225/924] drivers/net/ethernet/xilinx/xilinx_axienet.h:973:2: error: implicit declaration of function 'writeq'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 66bb31d008b55b6ae2ca9e41f7a4ff21816dded3
commit: ee94241b2118ddd38a456b2b805fc584b57de58f [225/924] net: axienet: added multichannel DMA support
config: i386-randconfig-a005-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151714.yArZWj6O-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/Xilinx/linux-xlnx/commit/ee94241b2118ddd38a456b2b805fc...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout ee94241b2118ddd38a456b2b805fc584b57de58f
# 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/net/ethernet/xilinx/xilinx_axienet_main.c:48:
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
writeq(value, (q->dma_regs + reg));
^
1 error generated.
vim +/writeq +973 drivers/net/ethernet/xilinx/xilinx_axienet.h
959
960 /**
961 * axienet_dma_bdout - Memory mapped Axi DMA register Buffer Descriptor write.
962 * @q: Pointer to DMA queue structure
963 * @reg: Address offset from the base address of the Axi DMA core
964 * @value: Value to be written into the Axi DMA register
965 *
966 * This function writes the desired value into the corresponding Axi DMA
967 * register.
968 */
969 static inline void axienet_dma_bdout(struct axienet_dma_q *q,
970 off_t reg, dma_addr_t value)
971 {
972 #if defined(CONFIG_PHYS_ADDR_T_64BIT)
> 973 writeq(value, (q->dma_regs + reg));
974 #else
975 writel(value, (q->dma_regs + reg));
976 #endif
977 }
978 /* Function prototypes visible in xilinx_axienet_mdio.c for other files */
979 int axienet_mdio_enable(struct axienet_local *lp);
980 void axienet_mdio_disable(struct axienet_local *lp);
981 int axienet_mdio_setup(struct axienet_local *lp);
982 void axienet_mdio_teardown(struct axienet_local *lp);
983 int axienet_mdio_wait_until_ready(struct axienet_local *lp);
984 void __maybe_unused axienet_bd_free(struct net_device *ndev,
985 struct axienet_dma_q *q);
986 int __maybe_unused axienet_dma_q_init(struct net_device *ndev,
987 struct axienet_dma_q *q);
988 void axienet_dma_err_handler(unsigned long data);
989 irqreturn_t __maybe_unused axienet_tx_irq(int irq, void *_ndev);
990 irqreturn_t __maybe_unused axienet_rx_irq(int irq, void *_ndev);
991 void axienet_start_xmit_done(struct net_device *ndev, struct axienet_dma_q *q);
992 void axienet_dma_bd_release(struct net_device *ndev);
993 void __axienet_device_reset(struct axienet_dma_q *q);
994 void axienet_set_mac_address(struct net_device *ndev, const void *address);
995 void axienet_set_multicast_list(struct net_device *ndev);
996 int xaxienet_rx_poll(struct napi_struct *napi, int quota);
997
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week