From: Frank Davis <fdavis@si.rr.com>
To: linux-kernel@vger.kernel.org
Cc: Frank Davis <fdavis@si.rr.com>
Subject: Re: [PATCH]2.5.3-pre2: drivers/ieee1394/video1394.c
Date: Sun, 20 Jan 2002 12:56:24 -0500 [thread overview]
Message-ID: <3C4B04C8.2050403@si.rr.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0201201226270.12409-100000@localhost.localdomain>
Hello all,
fyi: The last error (line 831) is regarding
remap_page_range(struct vm_area_struct, unsigned long, unsigned long,
unsigned long, pgprot_t )
Regards,
Frank
Frank Davis wrote:
> Hello all,
> This patch fixes some of the compile errors in 2.5.3-pre2, MINOR ->
> minor
> Regards,
> Frank
>
> --- drivers/ieee1394/video1394.c.old Mon Jan 14 21:54:46 2002
> +++ drivers/ieee1394/video1394.c Sun Jan 20 12:24:41 2002
> @@ -850,7 +850,7 @@
> struct video_card *p;
> list_for_each(lh, &video1394_cards) {
> p = list_entry(lh, struct video_card, list);
> - if (p->id == MINOR(inode->i_rdev)) {
> + if (p->id == minor(inode->i_rdev)) {
> video = p;
> ohci = video->ohci;
> break;
> @@ -860,7 +860,7 @@
> spin_unlock_irqrestore(&video1394_cards_lock, flags);
>
> if (video == NULL) {
> - PRINT_G(KERN_ERR, __FUNCTION__": Unknown video card for minor %d", MINOR(inode->i_rdev));
> + PRINT_G(KERN_ERR, __FUNCTION__": Unknown video card for minor %d", minor(inode->i_rdev));
> return -EFAULT;
> }
>
> @@ -1328,7 +1328,7 @@
> struct video_card *p;
> list_for_each(lh, &video1394_cards) {
> p = list_entry(lh, struct video_card, list);
> - if (p->id == MINOR(file->f_dentry->d_inode->i_rdev)) {
> + if (p->id == minor(file->f_dentry->d_inode->i_rdev)) {
> video = p;
> break;
> }
> @@ -1338,7 +1338,7 @@
>
> if (video == NULL) {
> PRINT_G(KERN_ERR, __FUNCTION__": Unknown video card for minor %d",
> - MINOR(file->f_dentry->d_inode->i_rdev));
> + minor(file->f_dentry->d_inode->i_rdev));
> return -EFAULT;
> }
>
> @@ -1357,7 +1357,7 @@
>
> static int video1394_open(struct inode *inode, struct file *file)
> {
> - int i = MINOR(inode->i_rdev);
> + int i = minor(inode->i_rdev);
> unsigned long flags;
> struct video_card *video = NULL;
> struct list_head *lh;
> @@ -1397,7 +1397,7 @@
> struct video_card *p;
> list_for_each(lh, &video1394_cards) {
> p = list_entry(lh, struct video_card, list);
> - if (p->id == MINOR(inode->i_rdev)) {
> + if (p->id == minor(inode->i_rdev)) {
> video = p;
> break;
> }
> @@ -1407,7 +1407,7 @@
>
> if (video == NULL) {
> PRINT_G(KERN_ERR, __FUNCTION__": Unknown device for minor %d",
> - MINOR(inode->i_rdev));
> + minor(inode->i_rdev));
> return 1;
> }
>
>
>
>
>
>
>
next prev parent reply other threads:[~2002-01-20 17:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-20 17:28 [PATCH]2.5.3-pre2: drivers/ieee1394/video1394.c Frank Davis
2002-01-20 17:56 ` Frank Davis [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-20 21:41 [PATCH] 2.5.3-pre2: drivers/ieee1394/video1394.c Frank Davis
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=3C4B04C8.2050403@si.rr.com \
--to=fdavis@si.rr.com \
--cc=linux-kernel@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