lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 15 Dec 2021 07:04:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Richard Zhu <hongxing.zhu@....com>
Cc:     kbuild-all@...ts.01.org, Vinod Koul <vkoul@...nel.org>,
        Kishon <kishon@...com>, linux-kernel@...r.kernel.org,
        Tim Harvey <tharvey@...eworks.com>
Subject: [phy:next 37/37] drivers/phy/freescale/phy-fsl-imx8m-pcie.c:41:41:
 error: implicit declaration of function 'FIELD_PREP'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
head:   1aa97b002258a190d7790a1a5c0c27829f82e569
commit: 1aa97b002258a190d7790a1a5c0c27829f82e569 [37/37] phy: freescale: pcie: Initialize the imx8 pcie standalone phy driver
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20211215/202112150757.4yrvwmKK-lkp@intel.com/config)
compiler: s390-linux-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://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git/commit/?id=1aa97b002258a190d7790a1a5c0c27829f82e569
        git remote add phy https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git
        git fetch --no-tags phy next
        git checkout 1aa97b002258a190d7790a1a5c0c27829f82e569
        # 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=s390 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/phy/freescale/phy-fsl-imx8m-pcie.c: In function 'imx8_pcie_phy_init':
>> drivers/phy/freescale/phy-fsl-imx8m-pcie.c:41:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      41 | #define IMX8MM_GPR_PCIE_REF_CLK_EXT     FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x2)
         |                                         ^~~~~~~~~~
   drivers/phy/freescale/phy-fsl-imx8m-pcie.c:85:28: note: in expansion of macro 'IMX8MM_GPR_PCIE_REF_CLK_EXT'
      85 |                            IMX8MM_GPR_PCIE_REF_CLK_EXT :
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +41 drivers/phy/freescale/phy-fsl-imx8m-pcie.c

    38	
    39	#define IMX8MM_GPR_PCIE_REF_CLK_SEL	GENMASK(25, 24)
    40	#define IMX8MM_GPR_PCIE_REF_CLK_PLL	FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x3)
  > 41	#define IMX8MM_GPR_PCIE_REF_CLK_EXT	FIELD_PREP(IMX8MM_GPR_PCIE_REF_CLK_SEL, 0x2)
    42	#define IMX8MM_GPR_PCIE_AUX_EN		BIT(19)
    43	#define IMX8MM_GPR_PCIE_CMN_RST		BIT(18)
    44	#define IMX8MM_GPR_PCIE_POWER_OFF	BIT(17)
    45	#define IMX8MM_GPR_PCIE_SSC_EN		BIT(16)
    46	#define IMX8MM_GPR_PCIE_AUX_EN_OVERRIDE	BIT(9)
    47	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ