From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 1476/2340] kernel/power/wakelock.c:57:11: error: implicit declaration of function 'sysfs_emit_at'
Date: Thu, 24 Feb 2022 11:43:11 +0800 [thread overview]
Message-ID: <202202241133.jDlh5h9y-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 97c5eeb4de3ad324ed2a4656b46465299cfd010a
commit: b6a38a38fb2817f6575f45302405e6cfae374b4e [1476/2340] headers/deps: kobject: Use <linux/sysfs_types.h> in <linux/kobject.h>, remove <linux/sysfs.h> inclusion
config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20220224/202202241133.jDlh5h9y-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=b6a38a38fb2817f6575f45302405e6cfae374b4e
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout b6a38a38fb2817f6575f45302405e6cfae374b4e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the mingo-tip/sched/headers HEAD 97c5eeb4de3ad324ed2a4656b46465299cfd010a builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> kernel/power/wakelock.c:57:11: error: implicit declaration of function 'sysfs_emit_at' [-Werror,-Wimplicit-function-declaration]
len += sysfs_emit_at(buf, len, "%s ", wl->name);
^
kernel/power/wakelock.c:60:9: error: implicit declaration of function 'sysfs_emit_at' [-Werror,-Wimplicit-function-declaration]
len += sysfs_emit_at(buf, len, "\n");
^
2 errors generated.
vim +/sysfs_emit_at +57 kernel/power/wakelock.c
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 45
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 46 ssize_t pm_show_wakelocks(char *buf, bool show_active)
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 47 {
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 48 struct rb_node *node;
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 49 struct wakelock *wl;
c9d967b2ce40d7 Greg Kroah-Hartman 2022-01-13 50 int len = 0;
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 51
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 52 mutex_lock(&wakelocks_lock);
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 53
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 54 for (node = rb_first(&wakelocks_tree); node; node = rb_next(node)) {
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 55 wl = rb_entry(node, struct wakelock, node);
2434aea58e652a Tri Vo 2019-08-06 56 if (wl->ws->active == show_active)
c9d967b2ce40d7 Greg Kroah-Hartman 2022-01-13 @57 len += sysfs_emit_at(buf, len, "%s ", wl->name);
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 58 }
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 59
c9d967b2ce40d7 Greg Kroah-Hartman 2022-01-13 60 len += sysfs_emit_at(buf, len, "\n");
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 61
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 62 mutex_unlock(&wakelocks_lock);
c9d967b2ce40d7 Greg Kroah-Hartman 2022-01-13 63 return len;
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 64 }
b86ff9820fd5df Rafael J. Wysocki 2012-04-29 65
:::::: The code at line 57 was first introduced by commit
:::::: c9d967b2ce40d71e968eb839f36c936b8a9cf1ea PM: wakeup: simplify the output logic of pm_show_wakelocks()
:::::: TO: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-24 3:44 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=202202241133.jDlh5h9y-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mingo@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®