All of lore.kernel.org
 help / color / mirror / Atom feed
* BC47xx build errors
@ 2017-06-27 23:16 Ralf Baechle
  2017-06-28  4:46 ` Florian Fainelli
  0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2017-06-27 23:16 UTC (permalink / raw)
  To: Hauke Mehrtens, Rafał Miłecki
  Cc: linux-mips, Florian Fainelli, John Crispin

A less than smart build test system has flagged the following build error:

  CC      arch/mips/bcm47xx/irq.o
In file included from arch/mips/bcm47xx/irq.c:32:0:
./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: expected identifier
+before
+‘}’ token
 };

I don't have any .config or anything for this error.  While trying to
reproduce this error I tried to build bcm47xx_defconfig but with
CONFIG_BCM47XX_SSB and CONFIG_BCM47XX_BCMA disabled.  That resulted in
the following build error:

  CC	  arch/mips/bcm47xx/irq.o
In file included from arch/mips/bcm47xx/irq.c:32:0:
./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: empty enum is
+invalid
 };
 ^
scripts/Makefile.build:302: recipe for target 'arch/mips/bcm47xx/irq.o' failed
make[1]: *** [arch/mips/bcm47xx/irq.o] Error 1
Makefile:1663: recipe for target 'arch/mips/bcm47xx/irq.o' failed

  Ralf

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BC47xx build errors
  2017-06-27 23:16 BC47xx build errors Ralf Baechle
@ 2017-06-28  4:46 ` Florian Fainelli
  2017-06-28 21:20   ` Hauke Mehrtens
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2017-06-28  4:46 UTC (permalink / raw)
  To: Ralf Baechle, Hauke Mehrtens, Rafał Miłecki
  Cc: linux-mips, John Crispin

On 27/06/2017 16:16, Ralf Baechle wrote:
> A less than smart build test system has flagged the following build error:
> 
>   CC      arch/mips/bcm47xx/irq.o
> In file included from arch/mips/bcm47xx/irq.c:32:0:
> ./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: expected identifier
> +before
> +‘}’ token
>  };
> 
> I don't have any .config or anything for this error.  While trying to
> reproduce this error I tried to build bcm47xx_defconfig but with
> CONFIG_BCM47XX_SSB and CONFIG_BCM47XX_BCMA disabled.  That resulted in
> the following build error:

I am not sure if we should define an invalid bus type enum value just to
avoid creating an empty enum or simply making sure that neither
CONFIG_BCM47XX_SSB nor CONFIG_BCM47XX_BCMA can be disabled with
CONFIG_BCM47XX, as clearly this would not result in a functioning
kernel, Rafal, Hauke, thoughts?

> 
>   CC	  arch/mips/bcm47xx/irq.o
> In file included from arch/mips/bcm47xx/irq.c:32:0:
> ./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: empty enum is
> +invalid
>  };
>  ^
> scripts/Makefile.build:302: recipe for target 'arch/mips/bcm47xx/irq.o' failed
> make[1]: *** [arch/mips/bcm47xx/irq.o] Error 1
> Makefile:1663: recipe for target 'arch/mips/bcm47xx/irq.o' failed
> 
>   Ralf
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BC47xx build errors
  2017-06-28  4:46 ` Florian Fainelli
@ 2017-06-28 21:20   ` Hauke Mehrtens
  0 siblings, 0 replies; 3+ messages in thread
From: Hauke Mehrtens @ 2017-06-28 21:20 UTC (permalink / raw)
  To: Florian Fainelli, Ralf Baechle, Rafał Miłecki
  Cc: linux-mips, John Crispin

On 06/28/2017 06:46 AM, Florian Fainelli wrote:
> On 27/06/2017 16:16, Ralf Baechle wrote:
>> A less than smart build test system has flagged the following build error:
>>
>>   CC      arch/mips/bcm47xx/irq.o
>> In file included from arch/mips/bcm47xx/irq.c:32:0:
>> ./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: expected identifier
>> +before
>> +‘}’ token
>>  };
>>
>> I don't have any .config or anything for this error.  While trying to
>> reproduce this error I tried to build bcm47xx_defconfig but with
>> CONFIG_BCM47XX_SSB and CONFIG_BCM47XX_BCMA disabled.  That resulted in
>> the following build error:
> 
> I am not sure if we should define an invalid bus type enum value just to
> avoid creating an empty enum or simply making sure that neither
> CONFIG_BCM47XX_SSB nor CONFIG_BCM47XX_BCMA can be disabled with
> CONFIG_BCM47XX, as clearly this would not result in a functioning
> kernel, Rafal, Hauke, thoughts?
> 

What about adding a BUILD_BUG() with a message when neither SSB or BCMA
support is selected?

The kernel will be unusable anyway and you also can not test compile
anything which you could not test compile with bcma or ssb selected.

Hauke

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-28 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-27 23:16 BC47xx build errors Ralf Baechle
2017-06-28  4:46 ` Florian Fainelli
2017-06-28 21:20   ` Hauke Mehrtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.