Thread (19 messages) flat view 19 messages, 3 authors, 2021-02-15

Re: [PATCH net-next 12/12] net: dsa: tag_ocelot_8021q: add support for PTP timestamping

From: kernel test robot <hidden>
Date: 2021-02-13 07:55:47
Also in: oe-kbuild-all

Hi Vladimir,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Vladimir-Oltean/PTP-for-DSA-tag_ocelot_8021q/20210213-081857
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 3c5a2fd042d0bfac71a2dfb99515723d318df47b
config: i386-randconfig-a011-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/252148a7a654decce0740262c5425991fd53156e
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Vladimir-Oltean/PTP-for-DSA-tag_ocelot_8021q/20210213-081857
        git checkout 252148a7a654decce0740262c5425991fd53156e
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>

All errors (new ones prefixed by >>):

   ld: net/dsa/tag_ocelot_8021q.o: in function `ocelot_xmit_ptp':
quoted
net/dsa/tag_ocelot_8021q.c:34: undefined reference to `ocelot_port_inject_frame'

vim +34 net/dsa/tag_ocelot_8021q.c

    15	
    16	static struct sk_buff *ocelot_xmit_ptp(struct dsa_port *dp,
    17					       struct sk_buff *skb,
    18					       struct sk_buff *clone)
    19	{
    20		struct ocelot *ocelot = dp->ds->priv;
    21		struct ocelot_port *ocelot_port;
    22		int port = dp->index;
    23		u32 rew_op;
    24	
    25		ocelot_port = ocelot->ports[port];
    26		rew_op = ocelot_port->ptp_cmd;
    27	
    28		/* Retrieve timestamp ID populated inside skb->cb[0] of the
    29		 * clone by ocelot_port_add_txtstamp_skb
    30		 */
    31		if (ocelot_port->ptp_cmd == IFH_REW_OP_TWO_STEP_PTP)
    32			rew_op |= clone->cb[0] << 3;
    33	
  > 34		ocelot_port_inject_frame(ocelot, port, 0, rew_op, skb);
    35	
    36		return NULL;
    37	}
    38	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help