mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Johannes Berg <johannes.berg@intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: error: redefinition of ‘shipped_regdb_certs’
Date: Tue, 19 Dec 2017 08:44:51 +0100	[thread overview]
Message-ID: <20171219074451.GA15210@dhcp22.suse.cz> (raw)

Hi Johannes,
this is the first time I am seeing this with the current Linus
tree. 4.15-rc3 compiled fine. I have checked that you have updated the
makefile which generates the file by 715a12334764 ("wireless: don't
write C files on failures").

I am getting the following compilation error:
  CC [M]  net/wireless/shipped-certs.o
net/wireless/shipped-certs.c:686:10: error: redefinition of ‘shipped_regdb_certs’
 const u8 shipped_regdb_certs[] = {
          ^~~~~~~~~~~~~~~~~~~
net/wireless/shipped-certs.c:2:10: note: previous definition of ‘shipped_regdb_certs’ was here
 const u8 shipped_regdb_certs[] = {
          ^~~~~~~~~~~~~~~~~~~
net/wireless/shipped-certs.c:1368:14: error: redefinition of ‘shipped_regdb_certs_len’
 unsigned int shipped_regdb_certs_len = sizeof(shipped_regdb_certs);
              ^~~~~~~~~~~~~~~~~~~~~~~
net/wireless/shipped-certs.c:684:14: note: previous definition of ‘shipped_regdb_certs_len’ was here
 unsigned int shipped_regdb_certs_len = sizeof(shipped_regdb_certs);
              ^~~~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:310: recipe for target 'net/wireless/shipped-certs.o' failed
make[3]: *** [net/wireless/shipped-certs.o] Error 1
scripts/Makefile.build:569: recipe for target 'net/wireless' failed
make[2]: *** [net/wireless] Error 2
Makefile:1012: recipe for target 'net' failed
make[1]: *** [net] Error 2

I have no idea how the generated file is supposed to work but it seems
that the cleanup doesn't work properly.  Compilation succeeds if I
remove the file and it is generated again:

$ rm net/wireless/shipped-certs.c
[...]
  GEN     net/wireless/shipped-certs.c
  CC [M]  net/wireless/shipped-certs.o

I have double checked that neither make clean/distclean removed the
file. Strangely enough neither did the tree with 715a12334764 reverted.

Any idea?
-- 
Michal Hocko
SUSE Labs

             reply	other threads:[~2017-12-19  7:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-19  7:44 Michal Hocko [this message]
2017-12-19  8:36 ` Johannes Berg
2017-12-19 10:20   ` Michal Hocko

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=20171219074451.GA15210@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=johannes.berg@intel.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome