public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* docbook: fix fatal error in linux/input.h
@ 2010-10-26 18:45 Randy Dunlap
  2010-10-26 19:13 ` Mauro Carvalho Chehab
  2010-10-29 17:56 ` [PATCH] scripts/kernel-doc: escape special characters for xml struct output Randy Dunlap
  0 siblings, 2 replies; 12+ messages in thread
From: Randy Dunlap @ 2010-10-26 18:45 UTC (permalink / raw)
  To: lkml; +Cc: Mauro Carvalho Chehab, Dmitry Torokhov

Hi,

Recent commit 8613e4c2872a87cc309a42de2c7091744dc54d0e:
Author: Mauro Carvalho Chehab <mchehab@redhat.com>
Date:   Thu Sep 9 21:54:22 2010 -0700
    Input: add support for large scancodes

causes a fatal error in docbook generation:

linux-2.6.36-git8/DOC1/Documentation/DocBook/device-drivers.xml:40690: parser error : StartTag: invalid element name
#define INPUT_KEYMAP_BY_INDEX	(1 << 0)
                             	    ^

I think that this message comes from xsltproc, but I'm not positive about that.
I also don't know of a really good fix for it.  However, I did find 2 ways to
work around the error:

a/ move the #define value to after the end of the struct input_keymap_entry, like:

/* flags bits: */
#define INPUT_KEYMAP_BY_INDEX	(1 << 0)

or
b/ don't use the "<< 0" (can leave the #define where it is in this case):
#define INPUT_KEYMAP_BY_INDEX	(1)

I have tested both of these patches and they work OK.
Are you OK with either of them?  or want to choose one?

thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-10-29 17:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-26 18:45 docbook: fix fatal error in linux/input.h Randy Dunlap
2010-10-26 19:13 ` Mauro Carvalho Chehab
2010-10-26 19:17   ` Randy Dunlap
2010-10-26 20:08     ` Mauro Carvalho Chehab
2010-10-26 20:15     ` Mauro Carvalho Chehab
2010-10-26 20:51       ` Randy Dunlap
2010-10-26 20:59       ` Randy Dunlap
2010-10-26 21:07         ` Randy Dunlap
2010-10-26 21:32           ` Randy Dunlap
2010-10-26 21:41             ` Dmitry Torokhov
2010-10-26 21:58               ` Randy Dunlap
2010-10-29 17:56 ` [PATCH] scripts/kernel-doc: escape special characters for xml struct output Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox