* [linyunsheng:page_frag_cache_part2_v3_250105 6/8] net/core/sock.c:3061:20: error: implicit declaration of function 'page_frag_refill_prepare'; did you mean 'sk_page_frag_refill_prepare'?
@ 2025-01-11 6:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-11 6:51 UTC (permalink / raw)
To: Yunsheng Lin; +Cc: oe-kbuild-all
tree: https://github.com/gestionlin/linux.git page_frag_cache_part2_v3_250105
head: c94404d3ba31c8322393ffbabf85a5c98e965b4f
commit: a31c4d10239e1fde1560478359630ca9bdeb4a95 [6/8] net: replace page_frag with page_frag_cache
config: i386-randconfig-004-20250110 (https://download.01.org/0day-ci/archive/20250111/202501111449.Fbouc2PM-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501111449.Fbouc2PM-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/202501111449.Fbouc2PM-lkp@intel.com/
Note: the linyunsheng/page_frag_cache_part2_v3_250105 HEAD c94404d3ba31c8322393ffbabf85a5c98e965b4f builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from arch/x86/include/uapi/asm/swab.h:6,
from include/uapi/linux/swab.h:8,
from include/linux/swab.h:5,
from include/uapi/linux/byteorder/little_endian.h:14,
from include/linux/byteorder/little_endian.h:5,
from arch/x86/include/uapi/asm/byteorder.h:5,
from include/linux/unaligned.h:10,
from net/core/sock.c:88:
net/core/sock.c: In function 'sk_page_frag_refill_prepare':
>> net/core/sock.c:3061:20: error: implicit declaration of function 'page_frag_refill_prepare'; did you mean 'sk_page_frag_refill_prepare'? [-Werror=implicit-function-declaration]
3061 | if (likely(page_frag_refill_prepare(nc, 32U, pfrag, sk->sk_allocation)))
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:76:45: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
net/core/sock.c: In function 'sk_page_frag_alloc_refill_prepare':
>> net/core/sock.c:3076:14: error: implicit declaration of function 'page_frag_alloc_refill_prepare'; did you mean 'sk_page_frag_alloc_refill_prepare'? [-Werror=implicit-function-declaration]
3076 | va = page_frag_alloc_refill_prepare(nc, 32U, pfrag, sk->sk_allocation);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| sk_page_frag_alloc_refill_prepare
net/core/sock.c:3076:12: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
3076 | va = page_frag_alloc_refill_prepare(nc, 32U, pfrag, sk->sk_allocation);
| ^
cc1: some warnings being treated as errors
--
net/core/skbuff.c: In function 'spd_fill_linear_page':
>> net/core/skbuff.c:3093:17: error: implicit declaration of function 'page_frag_refill_commit_noref' [-Werror=implicit-function-declaration]
3093 | page_frag_refill_commit_noref(nc, pfrag, *len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/core/skbuff.c:3097:9: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
3097 | page_frag_refill_commit(nc, pfrag, *len);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
net/core/skmsg.c: In function 'sk_msg_alloc':
>> net/core/skmsg.c:62:25: error: implicit declaration of function 'page_frag_refill_commit_noref' [-Werror=implicit-function-declaration]
62 | page_frag_refill_commit_noref(nc, pfrag, use);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/core/skmsg.c:72:25: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
72 | page_frag_refill_commit(nc, pfrag, use);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
net/ipv4/ip_output.c: In function '__ip_append_data':
>> net/ipv4/ip_output.c:1254:33: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
1254 | page_frag_refill_commit(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> net/ipv4/ip_output.c:1258:33: error: implicit declaration of function 'page_frag_refill_commit_noref' [-Werror=implicit-function-declaration]
1258 | page_frag_refill_commit_noref(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
net/ipv4/tcp.c: In function 'tcp_sendmsg_locked':
>> net/ipv4/tcp.c:1234:33: error: implicit declaration of function 'page_frag_refill_commit_noref' [-Werror=implicit-function-declaration]
1234 | page_frag_refill_commit_noref(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> net/ipv4/tcp.c:1238:33: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
1238 | page_frag_refill_commit(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
net/ipv4/tcp_output.c: In function 'tcp_send_syn_data':
>> net/ipv4/tcp_output.c:3998:22: error: implicit declaration of function 'page_frag_alloc_refill_prepare'; did you mean 'sk_page_frag_alloc_refill_prepare'? [-Werror=implicit-function-declaration]
3998 | va = page_frag_alloc_refill_prepare(nc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| sk_page_frag_alloc_refill_prepare
net/ipv4/tcp_output.c:3998:20: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
3998 | va = page_frag_alloc_refill_prepare(nc,
| ^
>> net/ipv4/tcp_output.c:4022:17: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
4022 | page_frag_refill_commit(nc, pfrag, space);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
net/ipv6/ip6_output.c: In function '__ip6_append_data':
>> net/ipv6/ip6_output.c:1790:33: error: implicit declaration of function 'page_frag_refill_commit' [-Werror=implicit-function-declaration]
1790 | page_frag_refill_commit(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> net/ipv6/ip6_output.c:1794:33: error: implicit declaration of function 'page_frag_refill_commit_noref' [-Werror=implicit-function-declaration]
1794 | page_frag_refill_commit_noref(nc, pfrag, copy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +3061 net/core/sock.c
3057
3058 bool sk_page_frag_refill_prepare(struct sock *sk, struct page_frag_cache *nc,
3059 struct page_frag *pfrag)
3060 {
> 3061 if (likely(page_frag_refill_prepare(nc, 32U, pfrag, sk->sk_allocation)))
3062 return true;
3063
3064 sk_enter_memory_pressure(sk);
3065 sk_stream_moderate_sndbuf(sk);
3066 return false;
3067 }
3068 EXPORT_SYMBOL(sk_page_frag_refill_prepare);
3069
3070 void *sk_page_frag_alloc_refill_prepare(struct sock *sk,
3071 struct page_frag_cache *nc,
3072 struct page_frag *pfrag)
3073 {
3074 void *va;
3075
> 3076 va = page_frag_alloc_refill_prepare(nc, 32U, pfrag, sk->sk_allocation);
3077 if (likely(va))
3078 return va;
3079
3080 sk_enter_memory_pressure(sk);
3081 sk_stream_moderate_sndbuf(sk);
3082 return NULL;
3083 }
3084 EXPORT_SYMBOL(sk_page_frag_alloc_refill_prepare);
3085
--
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:[~2025-01-11 6:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-11 6:51 [linyunsheng:page_frag_cache_part2_v3_250105 6/8] net/core/sock.c:3061:20: error: implicit declaration of function 'page_frag_refill_prepare'; did you mean 'sk_page_frag_refill_prepare'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.