mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: kbuild-all@01.org, devel@linuxdriverproject.org,
	Olaf Hering <olaf@aepfle.de>, Radim Krcmar <rkrcmar@redhat.com>,
	Haiyang Zhang <haiyangz@microsoft.com>,
	Alex Ng <alexng@microsoft.com>,
	linux-kernel@vger.kernel.org,
	John Stultz <john.stultz@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Richard Cochran <richardcochran@gmail.com>
Subject: Re: [PATCH v4 2/2] hv_utils: implement Hyper-V PTP source
Date: Fri, 20 Jan 2017 02:01:24 +0800	[thread overview]
Message-ID: <201701200149.nxSn81op%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170119141636.3970-3-vkuznets@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2211 bytes --]

Hi Vitaly,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Vitaly-Kuznetsov/hv_util-adjust-system-time-smoothly/20170120-011342
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/hv/hv_util.c: In function 'hv_timesync_init':
>> drivers/hv/hv_util.c:561:36: warning: passing argument 1 of 'ptp_clock_register' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     hv_ptp_clock = ptp_clock_register(&ptp_hyperv_info, NULL);
                                       ^
   In file included from drivers/hv/hv_util.c:30:0:
   include/linux/ptp_clock_kernel.h:172:26: note: expected 'struct ptp_clock_info *' but argument is of type 'const struct ptp_clock_info *'
    extern struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
                             ^~~~~~~~~~~~~~~~~~

vim +561 drivers/hv/hv_util.c

   545		.gettime64      = hv_ptp_gettime,
   546		.settime64      = hv_ptp_settime,
   547		.owner		= THIS_MODULE,
   548	};
   549	
   550	static struct ptp_clock *hv_ptp_clock;
   551	
   552	static int hv_timesync_init(struct hv_util_service *srv)
   553	{
   554		INIT_WORK(&wrk.work, hv_set_host_time);
   555	
   556		/*
   557		 * ptp_clock_register() returns NULL when CONFIG_PTP_1588_CLOCK is
   558		 * disabled but the driver is still useful without the PTP device
   559		 * as it still handles the ICTIMESYNCFLAG_SYNC case.
   560		 */
 > 561		hv_ptp_clock = ptp_clock_register(&ptp_hyperv_info, NULL);
   562		if (IS_ERR_OR_NULL(hv_ptp_clock)) {
   563			pr_err("cannot register PTP clock: %ld\n",
   564			       PTR_ERR(hv_ptp_clock));
   565			hv_ptp_clock = NULL;
   566		}
   567	
   568		return 0;
   569	}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38264 bytes --]

  reply	other threads:[~2017-01-19 18:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 14:16 [PATCH v4 0/2] hv_util: adjust system time smoothly Vitaly Kuznetsov
2017-01-19 14:16 ` [PATCH v4 1/2] hv_util: switch to using timespec64 Vitaly Kuznetsov
2017-01-19 14:16 ` [PATCH v4 2/2] hv_utils: implement Hyper-V PTP source Vitaly Kuznetsov
2017-01-19 18:01   ` kbuild test robot [this message]
2017-01-20 11:06     ` Vitaly Kuznetsov
2017-01-20 16:28   ` Radim Krcmar
2017-01-23 16:36     ` Vitaly Kuznetsov
2017-01-28 19:04   ` KY Srinivasan
2017-01-30  9:19     ` Vitaly Kuznetsov

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=201701200149.nxSn81op%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alexng@microsoft.com \
    --cc=devel@linuxdriverproject.org \
    --cc=haiyangz@microsoft.com \
    --cc=john.stultz@linaro.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olaf@aepfle.de \
    --cc=richardcochran@gmail.com \
    --cc=rkrcmar@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=vkuznets@redhat.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 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®