mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Compile warning in fs/partitions/check.c
@ 2002-07-12 22:46 Thunder from the hill
  2002-07-12 23:05 ` Thunder from the hill
  2002-07-13  3:16 ` Patrick Mochel
  0 siblings, 2 replies; 6+ messages in thread
From: Thunder from the hill @ 2002-07-12 22:46 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Richard Gooch

Hi,

Compiling fs/partitions/check.c, I get a couple of warnings of "pointer to 
integer of different size":


kdev is a kdev_t here, driverfs_dev is a struct device.

	kdev.value=(int)driverfs_dev->driver_data;

Is it okay to replace this with

	kdev.value=(unsigned short)driverfs_dev->driver_data;

to make the warnings go away?

Also, struct driver_file_entry->show gets initialized here:

	show: partition_device_kdev_read,

show being (ssize_t *)(struct device *driverfs_dev, char *page, size_t 
		       count, loff_t off);
but expecting (ssize_t *)(void *, char *page, size_t count, loff_t off);

Is it okay to ignore this one?

							Regards,
							Thunder
-- 
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o?  K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y- 
------END GEEK CODE BLOCK------


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

end of thread, other threads:[~2002-07-13  3:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-12 22:46 Compile warning in fs/partitions/check.c Thunder from the hill
2002-07-12 23:05 ` Thunder from the hill
2002-07-12 23:14   ` Greg KH
2002-07-12 23:20     ` Thunder from the hill
2002-07-13  3:17       ` Patrick Mochel
2002-07-13  3:16 ` Patrick Mochel

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

all inboxes | Powered by JetHome®