* [linyunsheng:page_frag_cache_v3 14/16] net/sched/em_meta.c:593:50: warning: passing argument 1 of 'page_frag_cache_page_offset' discards 'const' qualifier from pointer target type
@ 2024-04-28 17:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-28 17:50 UTC (permalink / raw)
To: Yunsheng Lin; +Cc: oe-kbuild-all
tree: https://github.com/gestionlin/linux.git page_frag_cache_v3
head: 245e8a4d98fee0307884585dbeb3dbb7ee1bf8fa
commit: 49d60804ba15895c09e4b47eb20fdc8b56ed6878 [14/16] net: replace page_frag with page_frag_cache
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240429/202404290155.OnljDQEa-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240429/202404290155.OnljDQEa-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/202404290155.OnljDQEa-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/sched/em_meta.c: In function 'meta_int_sk_sendmsg_off':
>> net/sched/em_meta.c:593:50: warning: passing argument 1 of 'page_frag_cache_page_offset' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
593 | dst->value = page_frag_cache_page_offset(&sk->sk_frag);
| ^~~~~~~~~~~~
In file included from include/linux/skbuff.h:34,
from net/sched/em_meta.c:64:
include/linux/page_frag_cache.h:41:80: note: expected 'struct page_frag_cache *' but argument is of type 'const struct page_frag_cache *'
41 | static inline unsigned int page_frag_cache_page_offset(struct page_frag_cache *nc)
| ~~~~~~~~~~~~~~~~~~~~~~~~^~
vim +593 net/sched/em_meta.c
584
585 META_COLLECTOR(int_sk_sendmsg_off)
586 {
587 const struct sock *sk = skb_to_full_sk(skb);
588
589 if (!sk) {
590 *err = -1;
591 return;
592 }
> 593 dst->value = page_frag_cache_page_offset(&sk->sk_frag);
594 }
595
--
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-04-28 17:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 17:50 [linyunsheng:page_frag_cache_v3 14/16] net/sched/em_meta.c:593:50: warning: passing argument 1 of 'page_frag_cache_page_offset' discards 'const' qualifier from pointer target type 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.