All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Daniel Lezcano <daniel.lezcano@kernel.org>,
	Sachin Gupta <sachin.gupta@oss.qualcomm.com>,
	Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: [thermal:thermal/linux-next 14/26] drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET'
Date: Sat, 08 Aug 2026 09:16:38 +0800	[thread overview]
Message-ID: <202608080800.RfxKb9uR-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/linux-next
head:   55c16e15ff9f91bc994a20124b83faf27f0e3690
commit: c3dce117333c0e2fbdb35228d4960442d2b1ef54 [14/26] thermal/drivers/qcom: Add support for Qualcomm MBG thermal monitoring
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260808/202608080800.RfxKb9uR-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/202608080800.RfxKb9uR-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608080800.RfxKb9uR-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/thermal/qcom/qcom-spmi-mbg-tm.c: In function 'mbg_tm_isr':
>> drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
     184 |                 if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR)
         |                     ^~~~~~~~~


vim +/FIELD_GET +184 drivers/thermal/qcom/qcom-spmi-mbg-tm.c

   174	
   175	static irqreturn_t mbg_tm_isr(int irq, void *data)
   176	{
   177		struct mbg_tm_chip *chip = data;
   178		int ret, val;
   179	
   180		scoped_guard(mutex, &chip->lock) {
   181			ret = regmap_read(chip->map, chip->base + MBG_TEMP_MON2_FAULT_STATUS, &val);
   182			if (ret < 0)
   183				return IRQ_HANDLED;
 > 184			if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR)
   185				chip->last_thres_crossed = true;
   186		}
   187	
   188		if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR) {
   189			dev_dbg(chip->dev, "Notifying Thermal, fault status=%d\n", val);
   190			thermal_zone_device_update(chip->tz_dev, THERMAL_TRIP_VIOLATED);
   191		} else {
   192			dev_dbg(chip->dev, "Lvl1 upper threshold not violated, ignoring interrupt\n");
   193		}
   194	
   195		return IRQ_HANDLED;
   196	}
   197	

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

                 reply	other threads:[~2026-08-08  1:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202608080800.RfxKb9uR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=quic_skakitap@quicinc.com \
    --cc=sachin.gupta@oss.qualcomm.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.