linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pranavi Somisetty <pranavi.somisetty@xilinx.com>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org,
	Michal Simek <monstr@monstr.eu>,
	Harini Katakam <harini.katakam@xilinx.com>,
	Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Subject: [xilinx-xlnx:master 708/710] drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:46:16: error: implicit declaration of function 'in_be32'
Date: Tue, 12 Apr 2022 11:24:55 +0800	[thread overview]
Message-ID: <202204121133.QAm58IsL-lkp@intel.com> (raw)

Hi Pranavi,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx master
head:   0f679761fee0a4b81b4b9b7f7e1bed6eca1cd59e
commit: 01fee54ce6a611d5d65a5fc081dad522a0376f95 [708/710] net: xilinx: Move Xilinx TSN to staging
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220412/202204121133.QAm58IsL-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/01fee54ce6a611d5d65a5fc081dad522a0376f95
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 01fee54ce6a611d5d65a5fc081dad522a0376f95
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c: In function 'xlnx_tod_read':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:46:16: error: implicit declaration of function 'in_be32' [-Werror=implicit-function-declaration]
      46 |         nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS);
         |                ^~~~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c: In function 'xlnx_rtc_offset_write':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:58:9: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration]
      58 |         out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0);
         |         ^~~~~~~~
   cc1: some warnings being treated as errors


vim +/in_be32 +46 drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c

7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  41  
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  42  static void xlnx_tod_read(struct xlnx_ptp_timer *timer, struct timespec64 *ts)
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  43  {
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  44  	u32 sec, nsec;
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  45  
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 @46  	nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS);
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  47  	sec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_SEC_L);
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  48  
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  49  	ts->tv_sec = sec;
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  50  	ts->tv_nsec = nsec;
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  51  }
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  52  
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  53  static void xlnx_rtc_offset_write(struct xlnx_ptp_timer *timer,
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  54  				  const struct timespec64 *ts)
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  55  {
9b62852ec04b7d drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Michal Simek   2021-11-23  56  	pr_debug("%s: sec: %lld nsec: %ld\n", __func__, ts->tv_sec, ts->tv_nsec);
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  57  
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 @58  	out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0);
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  59  	out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_L),
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  60  		 (ts->tv_sec));
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  61  	out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_NS), ts->tv_nsec);
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  62  }
7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16  63  

:::::: The code at line 46 was first introduced by commit
:::::: 7d2ea3af3ed39cb50e804c1296446df306a184ba drivers: net: ethernet: TSN PTP module

:::::: TO: Saurabh Sengar <saurabh.singh@xilinx.com>
:::::: CC: Michal Simek <michal.simek@xilinx.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2022-04-12  3:26 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=202204121133.QAm58IsL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=harini.katakam@xilinx.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=monstr@monstr.eu \
    --cc=pranavi.somisetty@xilinx.com \
    --cc=radhey.shyam.pandey@xilinx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).