From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751885AbdATLGY (ORCPT ); Fri, 20 Jan 2017 06:06:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbdATLGX (ORCPT ); Fri, 20 Jan 2017 06:06:23 -0500 From: Vitaly Kuznetsov To: devel@linuxdriverproject.org Cc: kbuild-all@01.org, kbuild test robot , Olaf Hering , Radim Krcmar , Haiyang Zhang , Alex Ng , linux-kernel@vger.kernel.org, John Stultz , Thomas Gleixner , Richard Cochran Subject: Re: [PATCH v4 2/2] hv_utils: implement Hyper-V PTP source References: <201701200149.nxSn81op%fengguang.wu@intel.com> Date: Fri, 20 Jan 2017 12:06:19 +0100 In-Reply-To: <201701200149.nxSn81op%fengguang.wu@intel.com> (kbuild test robot's message of "Fri, 20 Jan 2017 02:01:24 +0800") Message-ID: <87k29qyor8.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 20 Jan 2017 11:06:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kbuild test robot writes: > 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, > ^~~~~~~~~~~~~~~~~~ > It seems ptp_clock_register() could've been changed to take 'const struct ptp_clock_info *' such a change doesn't belong this series, I'll drop the 'const' qualifier in the next submission. -- Vitaly