lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200115120258.0e535fcb@canb.auug.org.au>
Date:   Wed, 15 Jan 2020 12:02:58 +1100
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Mark Brown <broonie@...nel.org>,
        Liam Girdwood <lgirdwood@...il.com>
Cc:     Linux Next Mailing List <linux-next@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Marek Vasut <marex@...x.de>
Subject: linux-next: build failure after merge of the sound-asoc tree

Hi all,

After merging the sound-asoc tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

In file included from include/linux/phy/phy.h:17,
                 from drivers/phy/phy-core.c:17:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/common/common.c:15:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/phy/of.c:9:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from drivers/usb/host/ohci-hcd.c:37:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from drivers/usb/host/ehci-hub.c:17,
                 from drivers/usb/host/ehci-hcd.c:305:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/amba/bus.h:19,
                 from drivers/of/platform.c:14:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
In file included from include/linux/amba/bus.h:19,
                 from drivers/of/platform.c:14:
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from drivers/usb/core/phy.c:12:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from drivers/ata/ahci.h:25,
                 from drivers/ata/ahci.c:35:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/core/usb.c:42:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/core/of.c:12:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/core/of.c:12:
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from drivers/ata/ahci.h:25,
                 from drivers/ata/libahci.c:32:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from drivers/usb/core/hcd.c:35:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from drivers/ata/sata_mv.c:50:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from include/linux/usb/of.h:12,
                 from drivers/usb/core/message.c:21:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~
In file included from include/linux/phy/phy.h:17,
                 from include/linux/usb/otg.h:13,
                 from drivers/usb/core/hub.c:26:
include/linux/regulator/consumer.h:600:1: error: expected identifier or '(' before '{' token
  600 | {
      | ^
include/linux/regulator/consumer.h:599:1: warning: 'regulator_is_equal' declared 'static' but never defined [-Wunused-function]
  599 | regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
      | ^~~~~~~~~~~~~~~~~~

Caused by commit

  b059b7e0ec32 ("regulator: core: Add regulator_is_equal() helper")

I have added the following fix patch for today.

From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Wed, 15 Jan 2020 11:58:36 +1100
Subject: [PATCH] fix for "regulator: core: Add regulator_is_equal() helper"

Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
 include/linux/regulator/consumer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 2c89d886595c..6a92fd3105a3 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -596,7 +596,7 @@ regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers,
 }
 
 static inline bool
-regulator_is_equal(struct regulator *reg1, struct regulator *reg2);
+regulator_is_equal(struct regulator *reg1, struct regulator *reg2)
 {
 	return false;
 }
-- 
2.24.0

-- 
Cheers,
Stephen Rothwell

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ