* [linux-next:master 10123/10830] include/linux/dpll.h:179:1: warning: control reaches end of non-void function
@ 2024-02-28 16:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-28 16:24 UTC (permalink / raw)
To: Eric Dumazet
Cc: oe-kbuild-all, Linux Memory Management List, Jakub Kicinski, Jiri Pirko
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 20af1ca418d2c0b11bc2a1fe8c0c88f67bcc2a7e
commit: 0d60d8df6f493bb46bf5db40d39dd60a1bafdd4e [10123/10830] dpll: rely on rcu for netdev_dpll_pin()
config: i386-randconfig-141-20240228 (https://download.01.org/0day-ci/archive/20240229/202402290000.tX1Ed1x7-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402290000.tX1Ed1x7-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402290000.tX1Ed1x7-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/rbtree.h:24:0,
from include/linux/mm_types.h:11,
from include/linux/mmzone.h:22,
from include/linux/gfp.h:7,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:17,
from net/core/rtnetlink.c:17:
include/linux/dpll.h: In function 'netdev_dpll_pin':
include/linux/rcupdate.h:439:9: error: dereferencing pointer to incomplete type 'struct dpll_pin'
typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
^
include/linux/rcupdate.h:587:2: note: in expansion of macro '__rcu_dereference_check'
__rcu_dereference_check((p), __UNIQUE_ID(rcu), \
^~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtnetlink.h:70:2: note: in expansion of macro 'rcu_dereference_check'
rcu_dereference_check(p, lockdep_rtnl_is_held())
^~~~~~~~~~~~~~~~~~~~~
include/linux/dpll.h:175:9: note: in expansion of macro 'rcu_dereference_rtnl'
return rcu_dereference_rtnl(dev->dpll_pin);
^~~~~~~~~~~~~~~~~~~~
In file included from net/core/rtnetlink.c:60:0:
>> include/linux/dpll.h:179:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +179 include/linux/dpll.h
171
172 static inline struct dpll_pin *netdev_dpll_pin(const struct net_device *dev)
173 {
174 #if IS_ENABLED(CONFIG_DPLL)
175 return rcu_dereference_rtnl(dev->dpll_pin);
176 #else
177 return NULL;
178 #endif
> 179 }
180
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-28 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 16:24 [linux-next:master 10123/10830] include/linux/dpll.h:179:1: warning: control reaches end of non-void function kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox