From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02D464C8E for ; Tue, 28 Jan 2025 20:35:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738096532; cv=none; b=WMT8w1PR5RslPkipQEfIuI7WB1X7Wn7rCbWji6zQxzrkFx6pyDqgcF7PW00BO/Sd2fkGJVkhILwIKxK7FTOepgzrrsBpXm0DM5ycbypiTiiqpAW2fTddOTZi8YF4laIlyId16RmmbWS3CVThnUut92YImvjgvETirl81oIN0Xoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738096532; c=relaxed/simple; bh=RK7AX4XjZFA1GmEG5hOckzU3MIOk6jlHrfYBXlY7YIE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=B0J7ufjsap6rbm6thb646iFaZDaRH8EohEOSbxwW/sEbbUhO1Wm8fSgAnw1bmMx9bg8/5C5FTwpwzQb+d5TKT+J7m0xSDRSPVUDPEmIYGUihHehHt8Q4Ig5Wy9qkmm64A6AOVoOutZZciPa4bZ6w2fpXfrAD4A+LVeaqmLvnI1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WMwcKTJe; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WMwcKTJe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738096529; x=1769632529; h=date:from:to:cc:subject:message-id:mime-version; bh=RK7AX4XjZFA1GmEG5hOckzU3MIOk6jlHrfYBXlY7YIE=; b=WMwcKTJefCpDIiBQL/9uusW0dVjxQ1a7H7h94udVa5vIvwAs0cqGl5L3 r7ER/0RZlNLDcCbsBeRlwf03VoR15aPR7usQQWh0JqwDZ4BQH73vedg1N iCOL9KgigrJLoVFNZ1gs8/JVAC13Su+s4R/oDHWX+E37YFC3ct4jsKqKU EOg+zP+n0YbM+EwjYCOf/b+aqME/2qFmVCtgtSicdmlVo9JSOKZ0jL5h2 R2AvnD7I4q83GzwumjWCFHhKJeAcXuFQ2ibAUMw6cqZ7+I4rjVSzAO/zr zx3AlGiai5udoAgjm8G+8wQQGwIfaGPyEyYl89W4AB2eRWKCfy8FLb/t7 A==; X-CSE-ConnectionGUID: p/uz/whzQ/WwcQ/02kkQ2A== X-CSE-MsgGUID: WKQVnrLxQrW+M6fq7FkBYw== X-IronPort-AV: E=McAfee;i="6700,10204,11329"; a="38737457" X-IronPort-AV: E=Sophos;i="6.13,242,1732608000"; d="scan'208";a="38737457" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2025 12:35:28 -0800 X-CSE-ConnectionGUID: Qd/TitANRv26NsswMMAlRQ== X-CSE-MsgGUID: 9aHRWJ8ZSjiYWUxVu/VHYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,242,1732608000"; d="scan'208";a="108639421" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 28 Jan 2025 12:35:27 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tcsIu-000iBT-2O; Tue, 28 Jan 2025 20:35:24 +0000 Date: Wed, 29 Jan 2025 04:34:27 +0800 From: kernel test robot To: Oliver O'Halloran Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Ellerman Subject: arch/powerpc/kernel/eeh_pe.c:261: warning: Function parameter or struct member 'pe' not described in '__eeh_pe_get' Message-ID: <202501290405.2mH8HvXm-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Oliver, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e2ee2e9b159094527ae7ad78058b1316f62fc5b7 commit: 35d64734b64315f2c5716c5a0a380ed1ba8fbe4a powerpc/eeh: Clean up PE addressing date: 4 years, 4 months ago config: powerpc64-randconfig-002-20231105 (https://download.01.org/0day-ci/archive/20250129/202501290405.2mH8HvXm-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 12.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250129/202501290405.2mH8HvXm-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202501290405.2mH8HvXm-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/powerpc/kernel/eeh_pe.c:261: warning: Function parameter or struct member 'pe' not described in '__eeh_pe_get' >> arch/powerpc/kernel/eeh_pe.c:261: warning: Function parameter or struct member 'flag' not described in '__eeh_pe_get' arch/powerpc/kernel/eeh_pe.c:516: warning: Function parameter or struct member 'root' not described in 'eeh_pe_state_mark' arch/powerpc/kernel/eeh_pe.c:516: warning: Function parameter or struct member 'state' not described in 'eeh_pe_state_mark' arch/powerpc/kernel/eeh_pe.c:516: warning: Excess function parameter 'pe' description in 'eeh_pe_state_mark' arch/powerpc/kernel/eeh_pe.c:534: warning: Function parameter or struct member 'root' not described in 'eeh_pe_mark_isolated' arch/powerpc/kernel/eeh_pe.c:534: warning: Excess function parameter 'pe' description in 'eeh_pe_mark_isolated' arch/powerpc/kernel/eeh_pe.c:567: warning: Function parameter or struct member 'mode' not described in 'eeh_pe_dev_mode_mark' arch/powerpc/kernel/eeh_pe.c:567: warning: expecting prototype for eeh_pe_dev_state_mark(). Prototype was for eeh_pe_dev_mode_mark() instead arch/powerpc/kernel/eeh_pe.c:582: warning: Function parameter or struct member 'root' not described in 'eeh_pe_state_clear' arch/powerpc/kernel/eeh_pe.c:582: warning: Excess function parameter 'data' description in 'eeh_pe_state_clear' arch/powerpc/kernel/eeh_pe.c:774: warning: Function parameter or struct member 'edev' not described in 'eeh_restore_one_device_bars' arch/powerpc/kernel/eeh_pe.c:774: warning: Excess function parameter 'data' description in 'eeh_restore_one_device_bars' Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] && PPC_XIVE_NATIVE [=y] vim +261 arch/powerpc/kernel/eeh_pe.c 9e6d2cf65e3dba arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 251 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 252 /** 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 253 * __eeh_pe_get - Check the PE address 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 254 * 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 255 * For one particular PE, it can be identified by PE address 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 256 * or tranditional BDF address. BDF address is composed of 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 257 * Bus/Device/Function number. The extra data referred by flag 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 258 * indicates which type of address should be used. 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 259 */ d6c4932fbf2421 arch/powerpc/kernel/eeh_pe.c Sam Bobroff 2018-05-25 260 static void *__eeh_pe_get(struct eeh_pe *pe, void *flag) 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 @261 { 35d64734b64315 arch/powerpc/kernel/eeh_pe.c Oliver O'Halloran 2020-09-18 262 int *target_pe = flag; 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 263 35d64734b64315 arch/powerpc/kernel/eeh_pe.c Oliver O'Halloran 2020-09-18 264 /* PHB PEs are special and should be ignored */ 5efc3ad7325d81 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-11 265 if (pe->type & EEH_PE_PHB) 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 266 return NULL; 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 267 35d64734b64315 arch/powerpc/kernel/eeh_pe.c Oliver O'Halloran 2020-09-18 268 if (*target_pe == pe->addr) 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 269 return pe; 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 270 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 271 return NULL; 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 272 } 22f4ab123f10e1 arch/powerpc/platforms/pseries/eeh_pe.c Gavin Shan 2012-09-07 273 :::::: The code at line 261 was first introduced by commit :::::: 22f4ab123f10e1862579785c73d9e60fa24afd4f powerpc/eeh: Search PE based on requirement :::::: TO: Gavin Shan :::::: CC: Benjamin Herrenschmidt -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki