From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, vigneshr@ti.com, nm@ti.com,
MD Danish Anwar <danishanwar@ti.com>
Subject: [ti:ti-rt-linux-6.1.y-cicd 41/69] drivers/net/ethernet/ti/icssg_prueth.c:680:5: warning: no previous prototype for function 'prueth_tx_ts_cookie_get'
Date: Mon, 6 Nov 2023 13:27:14 +0800 [thread overview]
Message-ID: <202311061330.pQJEYjYA-lkp@intel.com> (raw)
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-6.1.y-cicd
head: 765670365233dc7ad139e5e96c437d333ae94543
commit: 4536a8709a68251b9676cbb4fdf54a01d764e76e [41/69] net: ti: icssg_prueth: Support multiple TX timestamp requests
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20231106/202311061330.pQJEYjYA-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231106/202311061330.pQJEYjYA-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/202311061330.pQJEYjYA-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/ti/icssg_prueth.c:680:5: warning: no previous prototype for function 'prueth_tx_ts_cookie_get' [-Wmissing-prototypes]
680 | int prueth_tx_ts_cookie_get(struct prueth_emac *emac)
| ^
drivers/net/ethernet/ti/icssg_prueth.c:680:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
680 | int prueth_tx_ts_cookie_get(struct prueth_emac *emac)
| ^
| static
1 warning generated.
vim +/prueth_tx_ts_cookie_get +680 drivers/net/ethernet/ti/icssg_prueth.c
679
> 680 int prueth_tx_ts_cookie_get(struct prueth_emac *emac)
681 {
682 int i;
683
684 /* search and get the next free slot */
685 for (i = 0; i < PRUETH_MAX_TX_TS_REQUESTS; i++) {
686 if (!emac->tx_ts_skb[i]) {
687 emac->tx_ts_skb[i] = ERR_PTR(-EBUSY); /* reserve slot */
688 return i;
689 }
690 }
691
692 return -EBUSY;
693 }
694
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-11-06 5:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202311061330.pQJEYjYA-lkp@intel.com \
--to=lkp@intel.com \
--cc=danishanwar@ti.com \
--cc=nm@ti.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.