[mchehab-edac:edac-fixes 4/6] drivers/acpi/apei/ghes.c:565:34: error: implicit declaration of function 'FIELD_GET'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac.git edac-fixes
head:   bd8a8958080eb6b4ba0d80fa822703b675aad933
commit: b2bce6cb25e5c57398220f151f9860aec97598a9 [4/6] efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs
config: x86_64-buildonly-randconfig-002-20240904 (https://download.01.org/0day-ci/archive/20240905/202409050218.tZHMvQ7x-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240905/202409050218.tZHMvQ7x-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409050218.tZHMvQ7x-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/acpi/apei/ghes.c: In function 'ghes_handle_arm_hw_error':
>> drivers/acpi/apei/ghes.c:565:34: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
     565 |                                  FIELD_GET(CPER_ARM_ERR_TYPE_MASK, err_info->type),
         |                                  ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_GET +565 drivers/acpi/apei/ghes.c

   530	
   531	static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata,
   532					     int sev, bool sync)
   533	{
   534		struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata);
   535		int flags = sync ? MF_ACTION_REQUIRED : 0;
   536		char error_type[120];
   537		bool queued = false;
   538		int sec_sev, i;
   539		char *p;
   540	
   541		sec_sev = ghes_severity(gdata->error_severity);
   542		log_arm_hw_error(err, sec_sev);
   543		if (sev != GHES_SEV_RECOVERABLE || sec_sev != GHES_SEV_RECOVERABLE)
   544			return false;
   545	
   546		p = (char *)(err + 1);
   547		for (i = 0; i < err->err_info_num; i++) {
   548			struct cper_arm_err_info *err_info = (struct cper_arm_err_info *)p;
   549			bool is_cache = err_info->type & CPER_ARM_CACHE_ERROR;
   550			bool has_pa = (err_info->validation_bits & CPER_ARM_INFO_VALID_PHYSICAL_ADDR);
   551	
   552			/*
   553			 * The field (err_info->error_info & BIT(26)) is fixed to set to
   554			 * 1 in some old firmware of HiSilicon Kunpeng920. We assume that
   555			 * firmware won't mix corrected errors in an uncorrected section,
   556			 * and don't filter out 'corrected' error here.
   557			 */
   558			if (is_cache && has_pa) {
   559				queued = ghes_do_memory_failure(err_info->physical_fault_addr, flags);
   560				p += err_info->length;
   561				continue;
   562			}
   563	
   564			cper_bits_to_str(error_type, sizeof(error_type),
 > 565					 FIELD_GET(CPER_ARM_ERR_TYPE_MASK, err_info->type),
   566					 cper_proc_error_type_strs,
   567					 ARRAY_SIZE(cper_proc_error_type_strs));
   568	
   569			pr_warn_ratelimited(FW_WARN GHES_PFX
   570					    "Unhandled processor error type 0x%02x: %s%s\n",
   571					    err_info->type, error_type,
   572					    (err_info->type & ~CPER_ARM_ERR_TYPE_MASK) ? " with reserved bit(s)" : "");
   573			p += err_info->length;
   574		}
   575	
   576		return queued;
   577	}
   578	

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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux