public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: wfg@linux.intel.com
To: kernel-janitors@vger.kernel.org
Subject: [clk:hb_3.5 11/12] drivers/ata/ahci_platform.c:129:2: warning: initialization discards 'const' quali
Date: Sun, 08 Jul 2012 17:17:51 +0000	[thread overview]
Message-ID: <20120708171751.GA19344@localhost> (raw)

Hi Rob,

There are new compile warnings show up in

tree:   git://sources.calxeda.com/kernel/linux.git hb_3.5
head:   67e0749b2f1c5908346485f5cb54af9f3a01e047
commit: df55ea8b7785fb704475ad562d445ac402719dc0 [11/12] ahci_platform: add custom hard reset for Calxeda ahci ctrlr

All warnings:

        drivers/ata/ahci_platform.c:129:67: sparse: incorrect type in initializer (different modifiers)
        drivers/ata/ahci_platform.c:129:67:    expected void *data
        drivers/ata/ahci_platform.c:129:67:    got struct ata_port_info static const [toplevel] *
        drivers/ata/ahci_platform.c:125:9: sparse: Initializer entry defined twice
        drivers/ata/ahci_platform.c:125:9:   also defined here
        drivers/ata/ahci_platform.c:129:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]

vim +129 drivers/ata/ahci_platform.c
   126	};
   127	
   128	static const struct of_device_id ahci_of_match[] = {
 > 129		{ .compatible = "calxeda,hb-ahci", .data = &ahci_port_info[CALXEDA_AHCI], },
   130		{},
   131	};
   132	MODULE_DEVICE_TABLE(of, ahci_of_match);

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

             reply	other threads:[~2012-07-08 17:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 17:17 wfg [this message]
2012-07-09  2:08 ` [clk:hb_3.5 11/12] drivers/ata/ahci_platform.c:129:2: warning: initialization discards 'const' q Fengguang Wu
2012-07-09  2:44 ` Rob Herring

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=20120708171751.GA19344@localhost \
    --to=wfg@linux.intel.com \
    --cc=kernel-janitors@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