oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 35/633] drivers/hwtracing/coresight/coresight-etm4x-core.c:987:48: error: 'dev' undeclared; did you mean 'cdev'?
@ 2023-03-03  6:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-03  6:25 UTC (permalink / raw)
  To: Bhupesh Sharma; +Cc: oe-kbuild-all

Hi Bhupesh,

FYI, the error/warning still remains.

tree:   https://github.com/krzk/linux n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
head:   06abd4f3cf4c58289447483d11d566d20fd3f3db
commit: 08c5e3278b418c5a4f7f98e4357208deff68a8da [35/633] coresight: etm4x: Fix crash observed on Qcom ETM parts with 'Low power override'
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230303/202303031417.W6jxl9nE-lkp@intel.com/config)
compiler: aarch64-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://github.com/krzk/linux/commit/08c5e3278b418c5a4f7f98e4357208deff68a8da
        git remote add krzk-github https://github.com/krzk/linux
        git fetch --no-tags krzk-github n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
        git checkout 08c5e3278b418c5a4f7f98e4357208deff68a8da
        # 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=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/

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/202303031417.W6jxl9nE-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/hwtracing/coresight/coresight-etm4x-core.c: In function 'etm4_init_sysreg_access':
>> drivers/hwtracing/coresight/coresight-etm4x-core.c:987:48: error: 'dev' undeclared (first use in this function); did you mean 'cdev'?
     987 |         if (fwnode_property_present(dev_fwnode(dev), "qcom,skip-power-up"))
         |                                                ^~~
         |                                                cdev
   drivers/hwtracing/coresight/coresight-etm4x-core.c:987:48: note: each undeclared identifier is reported only once for each function it appears in


vim +987 drivers/hwtracing/coresight/coresight-etm4x-core.c

   971	
   972	static bool etm4_init_sysreg_access(struct etmv4_drvdata *drvdata,
   973					    struct csdev_access *csa)
   974	{
   975		u32 devarch;
   976	
   977		if (!cpu_supports_sysreg_trace())
   978			return false;
   979	
   980		/*
   981		 * Some Qualcomm implementations require skipping powering up the trace unit,
   982		 * as the ETMs are in the same power domain as their CPU cores.
   983		 *
   984		 * Since the 'skip_power_up' flag is used inside 'etm4_init_arch_data' function,
   985		 * initialize it before the function is called.
   986		 */
 > 987		if (fwnode_property_present(dev_fwnode(dev), "qcom,skip-power-up"))
   988			drvdata->skip_power_up = true;
   989	
   990		/*
   991		 * ETMs implementing sysreg access must implement TRCDEVARCH.
   992		 */
   993		devarch = read_etm4x_sysreg_const_offset(TRCDEVARCH);
   994		switch (devarch & ETM_DEVARCH_ID_MASK) {
   995		case ETM_DEVARCH_ETMv4x_ARCH:
   996			*csa = (struct csdev_access) {
   997				.io_mem	= false,
   998				.read	= etm4x_sysreg_read,
   999				.write	= etm4x_sysreg_write,
  1000			};
  1001			break;
  1002		case ETM_DEVARCH_ETE_ARCH:
  1003			*csa = (struct csdev_access) {
  1004				.io_mem	= false,
  1005				.read	= ete_sysreg_read,
  1006				.write	= ete_sysreg_write,
  1007			};
  1008			break;
  1009		default:
  1010			return false;
  1011		}
  1012	
  1013		drvdata->arch = etm_devarch_to_arch(devarch);
  1014		return true;
  1015	}
  1016	

-- 
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-03-03  6:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03  6:25 [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 35/633] drivers/hwtracing/coresight/coresight-etm4x-core.c:987:48: error: 'dev' undeclared; did you mean 'cdev'? 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).