public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Xiaogeng (Shawn) Jin" <xjin@redswitch.com>
To: linux-mtd@lists.infradead.org
Subject: set_user_nice() not defined on 2.4.21+
Date: Fri, 10 Jan 2003 10:21:59 -0800	[thread overview]
Message-ID: <3E1F0F47.1080606@redswitch.com> (raw)

Hi,

When compiled JFFS2 with kernel 2.4.21-pre3, the linker complains that 
the reference to set_user_nice() in function 
jffs2_garbage_collect_thread() hasn't been defined. I traced the code 
down to <linux/mtd/compatmac.h> and found that set_user_nice() is not 
defined if linux verion is equal or greater than 2.4.21. See the code 
below. Why? Does it mean that 2.4.21+ has already such a function 
defined somewhere else or that 2.4.21+ doesn't need it? Actually I 
searched 2.4.21-pre3 code and found no set_user_nice() defined except in 
<linux/mtd/compatmac.h>. I guess it's possibly a bug.

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)   /* Is this right? */
#define set_user_nice(tsk, n) do { (tsk)->priority = 20-(n); } while(0)
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21) && 
!defined(RED_HAT_LINUX_KERNEL)
#define set_user_nice(tsk, n) do { (tsk)->nice = n; } while(0)
#endif

-- 
Shawn Jin
RedSwitch Inc.

             reply	other threads:[~2003-01-10 17:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 18:21 Xiaogeng (Shawn) Jin [this message]
2003-01-10 23:04 ` set_user_nice() not defined on 2.4.21+ Joakim Tjernlund
2003-01-11  0:14   ` Xiaogeng (Shawn) Jin
2003-01-11  0:25     ` Joakim Tjernlund

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=3E1F0F47.1080606@redswitch.com \
    --to=xjin@redswitch.com \
    --cc=linux-mtd@lists.infradead.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