From: kernel test robot <lkp@intel.com>
To: David Woodhouse <dwmw@amazon.co.uk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [dwmw2:ffclock 43/43] kernel/time/ntp_internal.h:18:26: warning: declaration of 'struct audit_ntp_data' will not be visible outside of this function
Date: Tue, 19 May 2026 06:42:45 +0800 [thread overview]
Message-ID: <202605190528.ToAWmVmo-lkp@intel.com> (raw)
tree: git://git.infradead.org/users/dwmw2/linux ffclock
head: 123146665ac9426e106557f5c14f8743b128a6b2
commit: 123146665ac9426e106557f5c14f8743b128a6b2 [43/43] kernel/time: Add /dev/vmclock_host miscdev
config: um-randconfig-002-20260519 (https://download.01.org/0day-ci/archive/20260519/202605190528.ToAWmVmo-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260519/202605190528.ToAWmVmo-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/202605190528.ToAWmVmo-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/time/vmclock_host.c:19:
>> kernel/time/ntp_internal.h:18:26: warning: declaration of 'struct audit_ntp_data' will not be visible outside of this function [-Wvisibility]
18 | s32 *time_tai, struct audit_ntp_data *ad);
| ^
kernel/time/vmclock_host.c:48:1: warning: '/*' within block comment [-Wcomment]
48 | /*
| ^
kernel/time/vmclock_host.c:65:19: warning: unused variable 'need' [-Wunused-variable]
65 | int bits_so_far, need;
| ^~~~
3 warnings generated.
vim +18 kernel/time/ntp_internal.h
aa6f9c595d8573 John Stultz 2013-03-22 4
aa6f9c595d8573 John Stultz 2013-03-22 5 extern void ntp_init(void);
123146665ac942 David Woodhouse 2026-05-17 6 extern int ntp_get_status(void);
123146665ac942 David Woodhouse 2026-05-17 7 extern int ntp_get_time_state(void);
5ffa25f573cf52 Thomas Gleixner 2025-05-19 8 extern void ntp_clear(unsigned int tkid);
aa6f9c595d8573 John Stultz 2013-03-22 9 /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */
5ffa25f573cf52 Thomas Gleixner 2025-05-19 10 extern u64 ntp_tick_length(unsigned int tkid);
62941377ae6950 David Woodhouse 2026-05-18 11 extern s64 ntp_get_skew_delta(unsigned int tkid);
62941377ae6950 David Woodhouse 2026-05-18 12 extern s64 ntp_drain_time_offset(unsigned int tkid, s64 amount);
3bb3f3d284811d David Woodhouse 2026-05-18 13 extern void ntp_set_time_offset(unsigned int tkid, s64 offset_ns);
8f592fb554b22b David Woodhouse 2026-05-15 14 extern void ntp_set_tick_length(unsigned int tkid, u64 tick_length);
5ffa25f573cf52 Thomas Gleixner 2025-05-19 15 extern ktime_t ntp_get_next_leap(unsigned int tkid);
5ffa25f573cf52 Thomas Gleixner 2025-05-19 16 extern int second_overflow(unsigned int tkid, time64_t secs);
c7ebfbc440151a Thomas Gleixner 2025-05-19 17 extern int ntp_adjtimex(unsigned int tkid, struct __kernel_timex *txc, const struct timespec64 *ts,
7e8eda734d30de Ondrej Mosnacek 2019-04-10 @18 s32 *time_tai, struct audit_ntp_data *ad);
985e695074d357 Ondrej Mosnacek 2018-07-13 19 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
c9e6189fb03123 Thomas Gleixner 2020-12-06 20
:::::: The code at line 18 was first introduced by commit
:::::: 7e8eda734d30de81d06a949c9bf9853c445ede4e ntp: Audit NTP parameters adjustment
:::::: TO: Ondrej Mosnacek <omosnace@redhat.com>
:::::: CC: Paul Moore <paul@paul-moore.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-19 2:13 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=202605190528.ToAWmVmo-lkp@intel.com \
--to=lkp@intel.com \
--cc=dwmw@amazon.co.uk \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox