All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 2/8] platform/x86: ISST: Enumerate TPMI SST and create framework
Date: Wed, 8 Mar 2023 21:18:17 +0800	[thread overview]
Message-ID: <202303082101.fF7OWAtH-lkp@intel.com> (raw)
In-Reply-To: <20230308070642.1727167-3-srinivas.pandruvada@linux.intel.com>

Hi Srinivas,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.3-rc1 next-20230308]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Srinivas-Pandruvada/platform-x86-ISST-Add-support-for-MSR-0x54/20230308-150906
patch link:    https://lore.kernel.org/r/20230308070642.1727167-3-srinivas.pandruvada%40linux.intel.com
patch subject: [PATCH v2 2/8] platform/x86: ISST: Enumerate TPMI SST and create framework
config: x86_64-randconfig-a016-20230306 (https://download.01.org/0day-ci/archive/20230308/202303082101.fF7OWAtH-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/2e4ff37ca5561b5d2ff368395f8d5d043a684ca5
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Srinivas-Pandruvada/platform-x86-ISST-Add-support-for-MSR-0x54/20230308-150906
        git checkout 2e4ff37ca5561b5d2ff368395f8d5d043a684ca5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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/202303082101.fF7OWAtH-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c:245:5: error: no member named 'api_version' in 'struct isst_if_cmd_cb'
           cb.api_version = ISST_TPMI_API_VERSION;
           ~~ ^
>> drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c:246:5: error: no member named 'def_ioctl' in 'struct isst_if_cmd_cb'
           cb.def_ioctl = isst_if_def_ioctl;
           ~~ ^
>> drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c:248:30: error: use of undeclared identifier 'ISST_IF_DEV_TPMI'
           ret = isst_if_cdev_register(ISST_IF_DEV_TPMI, &cb);
                                       ^
   drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c:264:27: error: use of undeclared identifier 'ISST_IF_DEV_TPMI'
                   isst_if_cdev_unregister(ISST_IF_DEV_TPMI);
                                           ^
   4 errors generated.


vim +245 drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

   222	
   223	int tpmi_sst_init(void)
   224	{
   225		struct isst_if_cmd_cb cb;
   226		int ret = 0;
   227	
   228		mutex_lock(&isst_tpmi_dev_lock);
   229	
   230		if (isst_core_usage_count) {
   231			++isst_core_usage_count;
   232			goto init_done;
   233		}
   234	
   235		isst_common.sst_inst = kcalloc(topology_max_packages(),
   236					       sizeof(*isst_common.sst_inst),
   237					       GFP_KERNEL);
   238		if (!isst_common.sst_inst)
   239			return -ENOMEM;
   240	
   241		memset(&cb, 0, sizeof(cb));
   242		cb.cmd_size = sizeof(struct isst_if_io_reg);
   243		cb.offset = offsetof(struct isst_if_io_regs, io_reg);
   244		cb.cmd_callback = NULL;
 > 245		cb.api_version = ISST_TPMI_API_VERSION;
 > 246		cb.def_ioctl = isst_if_def_ioctl;
   247		cb.owner = THIS_MODULE;
 > 248		ret = isst_if_cdev_register(ISST_IF_DEV_TPMI, &cb);
   249		if (ret)
   250			kfree(isst_common.sst_inst);
   251	init_done:
   252		mutex_unlock(&isst_tpmi_dev_lock);
   253		return ret;
   254	}
   255	EXPORT_SYMBOL_NS_GPL(tpmi_sst_init, INTEL_TPMI_SST);
   256	

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

  parent reply	other threads:[~2023-03-08 13:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08  7:06 [PATCH v2 0/8] platform/x86: ISST: Use TPMI interface Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 1/8] platform/x86: ISST: Add support for MSR 0x54 Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 2/8] platform/x86: ISST: Enumerate TPMI SST and create framework Srinivas Pandruvada
2023-03-08 11:25   ` kernel test robot
2023-03-08 13:18   ` kernel test robot [this message]
2023-03-08  7:06 ` [PATCH v2 3/8] platform/x86: ISST: Parse SST MMIO and update instance Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 4/8] platform/x86: ISST: Add SST-CP support via TPMI Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 5/8] platform/x86: ISST: Add SST-PP " Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 6/8] platform/x86: ISST: Add SST-BF " Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 7/8] platform/x86: ISST: Add SST-TF " Srinivas Pandruvada
2023-03-08  7:06 ` [PATCH v2 8/8] platform/x86: ISST: Add suspend/resume callbacks Srinivas Pandruvada
2023-03-16 14:20 ` [PATCH v2 0/8] platform/x86: ISST: Use TPMI interface Hans de Goede

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=202303082101.fF7OWAtH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=srinivas.pandruvada@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.