From: kernel test robot <lkp@intel.com>
To: Cryolitia PukNgae <cryolitia@uniontech.com>
Cc: oe-kbuild-all@lists.linux.dev, Guenter Roeck <linux@roeck-us.net>
Subject: [linux-next:master 6458/11136] drivers/hwmon/gpd-fan.c:231:9: error: implicit declaration of function 'outb'
Date: Sat, 20 Sep 2025 02:34:40 +0800 [thread overview]
Message-ID: <202509200214.i2QX7iwD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 846bd2225ec3cfa8be046655e02b9457ed41973e
commit: 0ab88e2394392f475b8857ac82c0c987841217f8 [6458/11136] hwmon: add GPD devices sensor driver
config: i386-buildonly-randconfig-004-20250920 (https://download.01.org/0day-ci/archive/20250920/202509200214.i2QX7iwD-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250920/202509200214.i2QX7iwD-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/202509200214.i2QX7iwD-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/hwmon/gpd-fan.c: In function 'gpd_ecram_read':
>> drivers/hwmon/gpd-fan.c:231:9: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
231 | outb(0x2E, addr_port);
| ^~~~
>> drivers/hwmon/gpd-fan.c:244:16: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration]
244 | *val = inb(data_port);
| ^~~
cc1: some warnings being treated as errors
vim +/outb +231 drivers/hwmon/gpd-fan.c
224
225 // Helper functions to handle EC read/write
226 static void gpd_ecram_read(u16 offset, u8 *val)
227 {
228 u16 addr_port = gpd_driver_priv.drvdata->addr_port;
229 u16 data_port = gpd_driver_priv.drvdata->data_port;
230
> 231 outb(0x2E, addr_port);
232 outb(0x11, data_port);
233 outb(0x2F, addr_port);
234 outb((u8)((offset >> 8) & 0xFF), data_port);
235
236 outb(0x2E, addr_port);
237 outb(0x10, data_port);
238 outb(0x2F, addr_port);
239 outb((u8)(offset & 0xFF), data_port);
240
241 outb(0x2E, addr_port);
242 outb(0x12, data_port);
243 outb(0x2F, addr_port);
> 244 *val = inb(data_port);
245 }
246
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-09-19 18:35 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=202509200214.i2QX7iwD-lkp@intel.com \
--to=lkp@intel.com \
--cc=cryolitia@uniontech.com \
--cc=linux@roeck-us.net \
--cc=oe-kbuild-all@lists.linux.dev \
/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.