linux-next: build failure after merge of the net-next tree
Subsystems (7)
Hi all,
After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask = CLOCKSOURCE_MASK(48);
^drivers/net/ethernet/mellanox/mlx4/en_clock.c:257:3: error: implicit declaration of function 'clocksource_khz2mult' [-Werror=implicit-function-declaration]
clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift);
^drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c: In function 'ixgbe_ptp_start_cyclecounter':drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c:796:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
adapter->cc.mask = CLOCKSOURCE_MASK(64);
^
Presumably caused by commit 74d23cc704d1 ("time: move the timecounter/cyclecounter code into its own file").
I added the following commit for today:
From: Stephen Rothwell <[email protected]>
Date: Sat, 3 Jan 2015 09:07:21 +1100
Subject: [PATCH] ixgbe_ptp, mlx4: Include clocksource.h to get CLOCKSOURCE_MASK
--- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 1 + drivers/net/ethernet/mellanox/mlx4/en_clock.c | 1 + 2 files changed, 2 insertions(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +1 -0
@@ -25,6 +25,7 @@Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 *******************************************************************************/ +#include <linux/clocksource.h> #include "ixgbe.h" #include <linux/ptp_classify.h>
drivers/net/ethernet/mellanox/mlx4/en_clock.c +1 -0
@@ -31,6 +31,7 @@* */ +#include <linux/clocksource.h> #include <linux/mlx4/device.h> #include "mlx4_en.h"
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
Quoted 12 lines · Stephen Rothwell
Hi all,
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask=CLOCKSOURCE_MASK(48);
^drivers/net/ethernet/mellanox/mlx4/en_clock.c:257:3: error: implicit declaration of function 'clocksource_khz2mult' [-Werror=implicit-function-declaration]clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift); ^
Quoted 8 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c: In function 'ixgbe_ptp_start_cyclecounter':drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c:796:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
adapter->cc.mask=CLOCKSOURCE_MASK(64);
^Presumably caused by commit
74d23cc704d1("time: move the timecounter/cyclecounter code into its own file").
Happy new 2015 Stephen...
[ The last days I revived my linux-next build-script inspired by willing to test block-loop-mq v3 patchset against next-20141231 ]
Just FYI...
Richard posted a new patch-series "[PATCH net-next 0/7] Fixing the "Time Counter fixes and improvements" on linux-nextdev fixing this.
- Sedat -
[1] https://lkml.org/lkml/2015/1/1/27
Quoted 42 lines
I added the following commit for today:
From: Stephen Rothwell <[email protected]>
Date: Sat, 3 Jan 2015 09:07:21 +1100
Subject: [PATCH]ixgbe_ptp, mlx4: Includeclocksource.hto getCLOCKSOURCE_MASKSigned-off-by Stephen Rothwell <[email protected]>--- drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 1 + drivers/net/ethernet/mellanox/mlx4/en_clock.c | 1 + 2 files changed, 2 insertions(+)drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +1
-0@@ -25,6 +25,7 @@Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 *******************************************************************************/ +#include <linux/clocksource.h> #include "ixgbe.h" #include <linux/ptp_classify.h> drivers/net/ethernet/mellanox/mlx4/en_clock.c +1
-1@@ -31,6 +31,7 @@* */ +#include <linux/clocksource.h> #include <linux/mlx4/device.h> #include "mlx4_en.h" --2.1.4
--
Cheers,
Stephen Rothwell [email protected]
Hi Sedat,
Quoted 21 lines · On Fri, 2 Jan 2015 23:21:05 +0100 Sedat Dilek <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask=CLOCKSOURCE_MASK(48);
^drivers/net/ethernet/mellanox/mlx4/en_clock.c:257:3: error: implicit declaration of function 'clocksource_khz2mult' [-Werror=implicit-function-declaration]clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift); ^Quoted 7 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c: In function 'ixgbe_ptp_start_cyclecounter':drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c:796:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
adapter->cc.mask=CLOCKSOURCE_MASK(64);
^Presumably caused by commit
74d23cc704d1("time: move the timecounter/cyclecounter code into its own file").
Quoted 8 lines
Just FYI...
Richard posted a new patch-series "[PATCH net-next 0/7] Fixing the "Time Counter fixes and improvements" on linux-nextdev fixing this.
- Sedat -
Thanks, so hopefully I won't need my patch for very long.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hi all,
Quoted 9 lines · On Sat, 3 Jan 2015 09:11:01 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask=CLOCKSOURCE_MASK(48);
^drivers/net/ethernet/mellanox/mlx4/en_clock.c:257:3: error: implicit declaration of function 'clocksource_khz2mult' [-Werror=implicit-function-declaration]
Quoted 7 lines
clocksource_khz2mult(1000 * dev->caps.hca_core_clock, mdev->cycles.shift); ^
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c: In function 'ixgbe_ptp_start_cyclecounter':drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c:796:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
adapter->cc.mask=CLOCKSOURCE_MASK(64);
^
My powerpc allyesconfig build also produced this:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c: In function 'bnx2x_init_cyclecounter':drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:14613:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
bp->cyclecounter.mask = CLOCKSOURCE_MASK(64);
^
So I added this patch:
From: Stephen Rothwell <[email protected]>
Date: Sat, 3 Jan 2015 12:15:37 +1100
Subject: [PATCH] bnx2x: Include clocksource.h to get CLOCKSOURCE_MASK
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +1 -0
@@ -57,6 +57,7 @@#include <linux/semaphore.h> #include <linux/stringify.h> #include <linux/vmalloc.h> +#include <linux/clocksource.h> #include "bnx2x.h" #include "bnx2x_init.h"
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
David Miller
maintainerFrom: Stephen Rothwell <[email protected]>
Date: Sat, 3 Jan 2015 09:11:01 +1100
Quoted 6 lines
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask=CLOCKSOURCE_MASK(48);
Stephen please let me know if this failure is persisting.
Hi David,
Quoted 4 lines · On Sat, 03 Jan 2015 14:45:30 -0500 (EST) David Miller <[email protected]>…
From: Stephen Rothwell <[email protected]>
Date: Sat, 3 Jan 2015 09:11:01 +1100
Quoted 8 lines
Quoted 6 lines
After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp':drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function 'CLOCKSOURCE_MASK' [-Werror=implicit-function-declaration]
mdev->cycles.mask=CLOCKSOURCE_MASK(48);Stephen please let me know if this failure is persisting.
All the ones I reported are fixed, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]