public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* libata TODO: ioread/iowrite work (was Re: [PATCH libata:upstream] remove compiler warnings)
       [not found] <20050822091129.GA15373@htj.dyndns.org>
@ 2005-08-22 19:50 ` Jeff Garzik
  2005-08-22 20:39   ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2005-08-22 19:50 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide, Al Viro, Linux Kernel

Tejun Heo wrote:
>  Hello, Jeff.
> 
>  This patch removes compiler warnings which are caused by using
> ioports values (unsigned long) for the address argument of
> read/write[bwl]() functions without casting.
> 
> Signed-off-by: Tejun Heo <htejun@gmail.com>

NAK...  These warnings exist as a reminder of the remaining 
ioread/iowrite() work that must occur.  Look at the 'iomap' and 
'iomap-step1' branches of libata-dev.git for incomplete examples of this 
work.

One must:

- create a data structure to store a bunch of I/O port values, as 
returned by pci_iomap() and ioport_map()
- update legacy PCI IDE (aka looks like ISA IDE) code path to use 
ioport_map() to obtain the I/O addresses we need
- update native mode PCI IDE (aka looks like PCI) code path to use 
pci_iomap()
- update all the other drivers that use ioremap() to use pci_iomap()
- change struct ata_ioports, s/unsigned long/void __iomem */
- fix up the last few bits in each driver, such as
	* eliminating the 'unsigned long base' variable in each
	  xxx_init_one() function
	* changing the xxx_setup_port() function to indicate
	  void __iomem * rather than unsigned long
- one last check for any last s/long/void iomem */ changes to be made
- install Linus's "sparse" source checker
- run 'make C=1' in the kernel tree, and make sure libata and drivers 
don't spew warnings


So... it's not as simple as just killing the warnings ;-)



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

* Re: libata TODO: ioread/iowrite work (was Re: [PATCH libata:upstream] remove compiler warnings)
  2005-08-22 19:50 ` libata TODO: ioread/iowrite work (was Re: [PATCH libata:upstream] remove compiler warnings) Jeff Garzik
@ 2005-08-22 20:39   ` Sam Ravnborg
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2005-08-22 20:39 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Tejun Heo, linux-ide, Al Viro, Linux Kernel

> - install Linus's "sparse" source checker
> - run 'make C=1' in the kernel tree, and make sure libata and drivers 
> don't spew warnings
make C=2 will check all files. Handy so you do not need to do a make
clean.
make C=2 drivers/scsi/libata.ko to limit it to libata.

	Sam

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

end of thread, other threads:[~2005-08-22 20:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050822091129.GA15373@htj.dyndns.org>
2005-08-22 19:50 ` libata TODO: ioread/iowrite work (was Re: [PATCH libata:upstream] remove compiler warnings) Jeff Garzik
2005-08-22 20:39   ` Sam Ravnborg

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