From: kernel test robot <lkp@intel.com>
To: Qais Yousef <qyousef@layalina.io>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [qais-yousef:sched-setscheduler-hide 9/9] include/linux/kthread.h:28:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function
Date: Sat, 26 Aug 2023 18:29:15 +0800 [thread overview]
Message-ID: <202308261806.y6VTMxtP-lkp@intel.com> (raw)
tree: https://github.com/qais-yousef/linux sched-setscheduler-hide
head: e586c67baa1c537a793f135e324cc56df2b6585b
commit: e586c67baa1c537a793f135e324cc56df2b6585b [9/9] kthread: Provide a mechanism to control kthread sched_attr
config: i386-randconfig-r022-20230826 (https://download.01.org/0day-ci/archive/20230826/202308261806.y6VTMxtP-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230826/202308261806.y6VTMxtP-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/202308261806.y6VTMxtP-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from kernel/trace/preemptirq_delay_test.c:14:
>> include/linux/kthread.h:28:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_policy(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:29:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_policy(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:32:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_nice(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:33:60: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_nice(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:36:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_priority(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:37:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_priority(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:40:66: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_runtime(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:41:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_runtime(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:44:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_deadline(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:45:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_deadline(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:48:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_period(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:49:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_period(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:52:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_min(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:53:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_min(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:56:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_max(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:57:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_max(char *buffer, const struct kernel_param *kp);
^
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
task = kthread_run(preemptirq_delay_run, NULL, task_name);
^
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
>> kernel/trace/preemptirq_delay_test.c:155:50: error: expected ';' at end of declaration
16 warnings and 8 errors generated.
--
In file included from kernel/trace/trace_events.c:17:
>> include/linux/kthread.h:28:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_policy(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:29:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_policy(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:32:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_nice(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:33:60: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_nice(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:36:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_priority(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:37:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_priority(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:40:66: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_runtime(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:41:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_runtime(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:44:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_deadline(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:45:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_deadline(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:48:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_period(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:49:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_period(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:52:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_min(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:53:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_min(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:56:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_max(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:57:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_max(char *buffer, const struct kernel_param *kp);
^
16 warnings generated.
--
In file included from drivers/gpu/drm/scheduler/sched_main.c:51:
>> include/linux/kthread.h:28:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_policy(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:29:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_policy(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:32:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_nice(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:33:60: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_nice(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:36:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_priority(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:37:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_priority(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:40:66: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_runtime(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:41:63: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_runtime(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:44:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_deadline(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:45:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_deadline(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:48:65: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_period(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:49:62: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_period(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:52:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_min(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:53:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_min(char *buffer, const struct kernel_param *kp);
^
include/linux/kthread.h:56:67: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_set_sched_util_max(const char *val, const struct kernel_param *kp);
^
include/linux/kthread.h:57:64: warning: declaration of 'struct kernel_param' will not be visible outside of this function [-Wvisibility]
extern int param_get_sched_util_max(char *buffer, const struct kernel_param *kp);
^
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
sched->thread = kthread_run(drm_sched_main, sched, sched->name);
^
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
>> drivers/gpu/drm/scheduler/sched_main.c:1113:53: error: expected ';' at end of declaration
16 warnings and 8 errors generated.
vim +28 include/linux/kthread.h
7
8 #define ___kthread_param(name, type, attr, perm) do { \
9 static type attr; \
10 __module_param_call("kthread." name ".", attr , ¶m_ops_##attr, &attr, perm, -1, 0); \
11 } while(0)
12
13 #define __kthread_param(name, type, attr) \
14 ___kthread_param(name, type, attr, 0644) \
15
16 #define kthread_param(name) do { \
17 __kthread_param(name, unsigned long, sched_policy); \
18 __kthread_param(name, long, sched_nice); \
19 __kthread_param(name, unsigned long, sched_priority); \
20 __kthread_param(name, unsigned long long, sched_runtime); \
21 __kthread_param(name, unsigned long long, sched_deadline); \
22 __kthread_param(name, unsigned long long, sched_period); \
23 __kthread_param(name, unsigned long, sched_util_min); \
24 __kthread_param(name, unsigned long, sched_util_max); \
25 } while (0)
26
27 extern const struct kernel_param_ops param_ops_sched_policy;
> 28 extern int param_set_sched_policy(const char *val, const struct kernel_param *kp);
29 extern int param_get_sched_policy(char *buffer, const struct kernel_param *kp);
30
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-26 10:29 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=202308261806.y6VTMxtP-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=qyousef@layalina.io \
/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.