All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Jiri Kosina <trivial@kernel.org>,
	Linux PCMCIA team <linux-pcmcia@lists.infradead.org>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [TRIVIAL PATCH 0/3] pcmcia: Make struct pcmcia_device_id const
Date: Fri, 06 May 2011 11:04:55 -0700	[thread overview]
Message-ID: <1304705095.11874.21.camel@Joe-Laptop> (raw)
In-Reply-To: <20110506061527.GA26026@comet.dominikbrodowski.net>

On Fri, 2011-05-06 at 08:15 +0200, Dominik Brodowski wrote:
> On Tue, May 03, 2011 at 07:28:59PM -0700, Joe Perches wrote:
> > Reduces data use.
> > Staging could be applied now, but additional harmless warnings do result.
> > Joe Perches (3):
> >   pcmcia: Make declaration and uses of struct pcmcia_device_id const
> >   pcmcia: Convert pcmcia_device_id declarations to const
> >   staging: pcmcia: Convert pcmcia_device_id declarations to const
> Thanks, applied all three patches to the pcmcia git tree.

Hi Dominik, just so you're aware...

By the time your tree gets pushed, there'll likely
be conflicts with staging changes.

It might be appropriate to keep the staging patch
separate from the other 2.

There are also a couple of uses of pcmcia_device_id
in sound/ that could be modified.

$ grep -rPwn --include=*.[ch] pcmcia_device_id sound
sound/pcmcia/vx/vxpocket.c:353:static struct pcmcia_device_id vxp_ids[] = {
sound/pcmcia/pdaudiocf/pdaudiocf.c:281:static struct pcmcia_device_id snd_pdacf_ids[] = {

Here's a patch for those as well

---

Make declarations of struct pcmcia_device_id const.

Signed-off-by: Joe Perches <joe@perches.com>

---

 sound/pcmcia/pdaudiocf/pdaudiocf.c |    2 +-
 sound/pcmcia/vx/vxpocket.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c
index 8cc4733..ce33be0 100644
--- a/sound/pcmcia/pdaudiocf/pdaudiocf.c
+++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c
@@ -278,7 +278,7 @@ static int pdacf_resume(struct pcmcia_device *link)
 /*
  * Module entry points
  */
-static struct pcmcia_device_id snd_pdacf_ids[] = {
+static const struct pcmcia_device_id snd_pdacf_ids[] = {
 	/* this is too general PCMCIA_DEVICE_MANF_CARD(0x015d, 0x4c45), */
 	PCMCIA_DEVICE_PROD_ID12("Core Sound","PDAudio-CF",0x396d19d2,0x71717b49),
 	PCMCIA_DEVICE_NULL
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c
index 80000d6..d9ef21d 100644
--- a/sound/pcmcia/vx/vxpocket.c
+++ b/sound/pcmcia/vx/vxpocket.c
@@ -350,7 +350,7 @@ static void vxpocket_detach(struct pcmcia_device *link)
  * Module entry points
  */
 
-static struct pcmcia_device_id vxp_ids[] = {
+static const struct pcmcia_device_id vxp_ids[] = {
 	PCMCIA_DEVICE_MANF_CARD(0x01f1, 0x0100),
 	PCMCIA_DEVICE_NULL
 };



  reply	other threads:[~2011-05-06 18:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-04  2:28 [TRIVIAL PATCH 0/3] pcmcia: Make struct pcmcia_device_id const Joe Perches
2011-05-04  2:29 ` [TRIVIAL PATCH 1/3] pcmcia: Make declaration and uses of " Joe Perches
2011-05-04  2:29 ` [TRIVIAL PATCH 2/3] pcmcia: Convert pcmcia_device_id declarations to const Joe Perches
2011-05-04  4:07   ` Kurt Van Dijck
2011-05-04  2:29 ` [TRIVIAL PATCH 3/3] staging: " Joe Perches
2011-05-06  6:15 ` [TRIVIAL PATCH 0/3] pcmcia: Make struct pcmcia_device_id const Dominik Brodowski
2011-05-06 18:04   ` Joe Perches [this message]
2011-05-11  8:51     ` Dominik Brodowski

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=1304705095.11874.21.camel@Joe-Laptop \
    --to=joe@perches.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pcmcia@lists.infradead.org \
    --cc=linux@dominikbrodowski.net \
    --cc=trivial@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 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.