From: Jody Bruchon <jody@jodybruchon.com>
To: linux-8086@vger.kernel.org
Subject: [PATCH] Fix meta.c compile error
Date: Sat, 11 Feb 2012 01:39:01 -0500 [thread overview]
Message-ID: <4F360D05.5090602@jodybruchon.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
commit a29edafa1d8aaded59d5dd1037f937dbfd79095d
Author: Jody Bruchon <jody@jodybruchon.com>
Date: Sat Feb 11 01:31:13 2012 -0500
In arch/i86/drivers/char/meta.c, a struct declaration issued a
function call with a variable whose declaration was placed after
the struct declaration, causing a compile error. I have moved the
variable's declaration to be performed first, fixing the compile
error.
Signed-off-by: Jody Bruchon <jody@jodybruchon.com>
Committed-by: Jody Bruchon <jody@jodybruchon.com>
[-- Attachment #2: 0001-fix_meta_compile_error.patch --]
[-- Type: text/plain, Size: 628 bytes --]
diff --git a/elks/arch/i86/drivers/char/meta.c b/elks/arch/i86/drivers/char/meta.c
index 2535aa9..5fed196 100644
--- a/elks/arch/i86/drivers/char/meta.c
+++ b/elks/arch/i86/drivers/char/meta.c
@@ -67,11 +67,11 @@ int post_request(struct ud_driver *driver, struct ud_request *request)
static void do_meta_request(kdev_t device)
{
+ int major = MAJOR(device);
struct ud_driver *driver = get_driver(major);
struct ud_request *udr;
struct request *req;
char *buff;
- int major = MAJOR(device);
printk("do_meta_request %d %x\n", major, blk_dev[major].current_request);
if (NULL == driver) {
reply other threads:[~2012-02-11 6:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4F360D05.5090602@jodybruchon.com \
--to=jody@jodybruchon.com \
--cc=linux-8086@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;
as well as URLs for NNTP newsgroup(s).