All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: John Crispin <blogic@openwrt.org>
Cc: linux-mtd@lists.infradead.org,
	Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] MTD: MIPS: lantiq: reintroduce support for cmdline partitions
Date: Fri, 09 Mar 2012 13:16:55 +0200	[thread overview]
Message-ID: <1331291815.29445.3.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <4F59E29B.50402@openwrt.org>

On Fri, 2012-03-09 at 11:59 +0100, John Crispin wrote:
> On 09/03/12 09:40, Artem Bityutskiy wrote:
> > I would like to compile-test this patch. I've got this error when
> > compiling with mips-linux-gcc-4.6.0 and the attached defconfig:
> >
> >                  from include/linux/sched.h:55,
> >                  from arch/mips/kernel/asm-offsets.c:13:
> > include/linux/bitops.h: In function 'hweight_long':
> > include/linux/bitops.h:55:26: warning: signed and unsigned type in conditional expression [-Wsign-compare]
> > arch/mips/kernel/asm-offsets.c: At top level:
> > arch/mips/kernel/asm-offsets.c:21:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:76:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:88:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:105:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:136:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:175:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:211:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:257:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes]
> > arch/mips/kernel/asm-offsets.c:295:6: warning: no previous prototype for 'output_irq_cpustat_t_defines' [-Wmissing-prototypes]
> > In file included from include/linux/kernel.h:17:0,
> >                  from arch/mips/kernel/cpu-probe.c:15:
> > include/linux/bitops.h: In function 'hweight_long':
> > include/linux/bitops.h:55:26: error: signed and unsigned type in conditional expression [-Werror=sign-compare]
> > arch/mips/kernel/cpu-probe.c: At top level:
> > arch/mips/kernel/cpu-probe.c:64:6: error: no previous prototype for 'r4k_wait_irqoff' [-Werror=missing-prototypes]
> > arch/mips/kernel/cpu-probe.c:154:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes]
> > cc1: all warnings being treated as errors
> >
> > I use W=1 when compiling. Any suggestions?
> 
> Hi,
> 
> just tried 4.5 where the same happens. The errors don't seem to have
> been introduced by 4.6.
> 
> apart from that the -Werror is set by arch/mips/ as follows
> bcm63xx/boards/Makefile:ccflags-y := -Werror
> fw/arc/Makefile:ccflags-y                       := -Werror
> jz4740/Makefile:ccflags-y := -Werror -Wall
> Kbuild:subdir-ccflags-y := -Werror
> oprofile/Makefile:ccflags-y := -Werror
> pmc-sierra/yosemite/Makefile:ccflags-y := -Werror
> powertv/asic/Makefile:ccflags-y := -Wall -Werror
> powertv/pci/Makefile:ccflags-y := -Wall -Werror
> 
> There seems to be some need to clean this up.
> I guess for now you will need to drop the W=1 to build an image.

I believe mips should either fix all warnings or remove -Werror. Indeed,
I have build-check scripts which work fine for many architectures with
W=1, but not for mips, and from my POW introducing exceptions for mips
is inconsistent.

-- 
Best Regards,
Artem Bityutskiy

  reply	other threads:[~2012-03-09 11:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 16:59 [PATCH] MTD: MIPS: lantiq: reintroduce support for cmdline partitions John Crispin
2012-03-09  8:40 ` Artem Bityutskiy
2012-03-09  8:58   ` John Crispin
2012-03-09  9:08     ` Artem Bityutskiy
2012-03-09 10:59       ` John Crispin
2012-03-09 11:16         ` Artem Bityutskiy [this message]
2012-03-09 11:09     ` Artem Bityutskiy
2012-03-09 11:27 ` Artem Bityutskiy
2012-03-09 11:29   ` John Crispin

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=1331291815.29445.3.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=blogic@openwrt.org \
    --cc=daniel.schwierzeck@googlemail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=ralf@linux-mips.org \
    /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 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.