public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Robin Holt <holt@sgi.com>
To: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org,
	rth@redhat.com, bj0rn@blox.se
Subject: Can somebody with flex/bison experience help with genksyms?
Date: Mon, 19 Dec 2005 21:40:19 +0000	[thread overview]
Message-ID: <20051219214019.GA25888@lnx-holt.americas.sgi.com> (raw)

The following code fails to generate a crc when run through genksyms.

#include <linux/module.h>

struct nodepda_s {
	int	z1, z2;
}

DEFINE_PER_CPU(struct nodepda_s *, __sn_nodepda);
EXPORT_PER_CPU_SYMBOL(__sn_nodepda);

While the following works:

#include <linux/module.h>

struct nodepda_s {
        int     z1, z2;
}

typedef struct nodepda_s * nodepda_s_p;

DEFINE_PER_CPU(nodepda_s_p, __sn_nodepda);
EXPORT_PER_CPU_SYMBOL(__sn_nodepda);



This appears to be due to the way STRUCT_KEYW is handled in parse.y as
compared to TYPEOF_KEYW.  I know nothing about flex and bison.  I am
just trolling for anybody willing to help.  I believe the STRUCT_KEYW
handling would need to consume the *, but am not sure how that is
conditionally done.

Thanks,
Robin Holt

             reply	other threads:[~2005-12-19 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19 21:40 Robin Holt [this message]
2005-12-20  0:05 ` Can somebody with flex/bison experience help with genksyms? Andreas Schwab
2005-12-20  2:35   ` Robin Holt

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=20051219214019.GA25888@lnx-holt.americas.sgi.com \
    --to=holt@sgi.com \
    --cc=bj0rn@blox.se \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rth@redhat.com \
    /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