oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:queue/6.1 94/569] drivers/net/ethernet/intel/igc/igc_base.h:92:41: error: implicit declaration of function 'FIELD_PREP'
@ 2023-05-06 18:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-06 18:12 UTC (permalink / raw)
  To: Song Yoong Siang
  Cc: oe-kbuild-all, Sasha Levin, Jacob Keller, Jesper Dangaard Brouer,
	Tony Nguyen, Leon Romanovsky, Greg Kroah-Hartman

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/6.1
head:   fc034f9e231eee5b1ffa449131efc3edd5c2768a
commit: 88f3b991b93262602baa9a7c57497ec20c009237 [94/569] igc: read before write to SRRCTL register
config: riscv-buildonly-randconfig-r004-20230502 (https://download.01.org/0day-ci/archive/20230507/202305070251.2Tcd9gNl-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=88f3b991b93262602baa9a7c57497ec20c009237
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc queue/6.1
        git checkout 88f3b991b93262602baa9a7c57497ec20c009237
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305070251.2Tcd9gNl-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/intel/igc/igc_hw.h:17,
                    from drivers/net/ethernet/intel/igc/igc.h:17,
                    from drivers/net/ethernet/intel/igc/igc_main.c:19:
   drivers/net/ethernet/intel/igc/igc_main.c: In function 'igc_configure_rx_ring':
>> drivers/net/ethernet/intel/igc/igc_base.h:92:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      92 | #define IGC_SRRCTL_BSIZEHDR(x)          FIELD_PREP(IGC_SRRCTL_BSIZEHDR_MASK, \
         |                                         ^~~~~~~~~~
   drivers/net/ethernet/intel/igc/igc_main.c:647:19: note: in expansion of macro 'IGC_SRRCTL_BSIZEHDR'
     647 |         srrctl |= IGC_SRRCTL_BSIZEHDR(IGC_RX_HDR_LEN);
         |                   ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +92 drivers/net/ethernet/intel/igc/igc_base.h

    86	
    87	/* SRRCTL bit definitions */
    88	#define IGC_SRRCTL_BSIZEPKT_MASK	GENMASK(6, 0)
    89	#define IGC_SRRCTL_BSIZEPKT(x)		FIELD_PREP(IGC_SRRCTL_BSIZEPKT_MASK, \
    90						(x) / 1024) /* in 1 KB resolution */
    91	#define IGC_SRRCTL_BSIZEHDR_MASK	GENMASK(13, 8)
  > 92	#define IGC_SRRCTL_BSIZEHDR(x)		FIELD_PREP(IGC_SRRCTL_BSIZEHDR_MASK, \
    93						(x) / 64) /* in 64 bytes resolution */
    94	#define IGC_SRRCTL_DESCTYPE_MASK	GENMASK(27, 25)
    95	#define IGC_SRRCTL_DESCTYPE_ADV_ONEBUF	FIELD_PREP(IGC_SRRCTL_DESCTYPE_MASK, 1)
    96	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-06 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-06 18:12 [linux-stable-rc:queue/6.1 94/569] drivers/net/ethernet/intel/igc/igc_base.h:92:41: error: implicit declaration of function 'FIELD_PREP' kernel test robot

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).