Wrong operators for the binary.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi all.

  I am trying compile a module that contains this line:

     printk("Device: %d.%d\n", inode->i_rdev >> 8, inode->i_rdev & 0xFF);

and the result is that gcc 3.2.1 says that '>>' and '&' are wrong operators for
the binary. Why?

  This module is extracted from Ori Pomerantz's "Linux Kernel Module Programming 
Guide" http://sdn.vlsm.org/share/LDP/lkmpg from the chapter two "Character Device 
Files", the source file is named chardev.c

  I think doesn't the matter, but the kernel in the machine with the problem is
2.5.49 and i'm using the module-init-tools-0.7

  Thanks very much for the help, in advance.

  Regards.

  Jose. 

Debian GNU/Linux 'Sid' Kernel 2.4.19 Ext3.
ESware Linux 365 Kernel 2.5.49 ReiserFS.
Registered Linux User #213309.
Memories..... You are talking about memories.
Rick Deckard. Blade Runner.

_____________________________________________________________
Get your own free tiggerfan.com email address!!
DisneySites!! - http://www.disneysites.com/webmail/tiggerfan

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux