* Unreferenced config in kernel (libata-sff.c) source (NO_ATA_LEGACY)
@ 2010-01-20 14:29 Christoph Egger
2010-01-21 0:14 ` [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY Tejun Heo
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Egger @ 2010-01-20 14:29 UTC (permalink / raw)
To: linux-kernel, htejun, linux-ide, jgarzik; +Cc: siccegge, Reinhard.Tartler
Hi all!
As part of the VAMOS[0] research project at the University of
Erlangen we're checking referential integrity between kernel KConfig
options and in-code Conditional blocks.
./drivers/ata/libata-sff.c:2948:#if defined(CONFIG_NO_ATA_LEGACY)
That's the only place where it is checked for
NO_ATA_LEGACY. As this Item does appear nowhere in KConfig and
therefor is not selectable I'm wondering whether that small Code
fragment should be dropped or a new KConfig option should be added?
Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.
Regards
Christoph Egger
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY
2010-01-20 14:29 Unreferenced config in kernel (libata-sff.c) source (NO_ATA_LEGACY) Christoph Egger
@ 2010-01-21 0:14 ` Tejun Heo
2010-01-21 0:15 ` Tejun Heo
2010-01-21 12:04 ` Alan Cox
0 siblings, 2 replies; 6+ messages in thread
From: Tejun Heo @ 2010-01-21 0:14 UTC (permalink / raw)
To: Christoph Egger; +Cc: linux-kernel, linux-ide, jgarzik, Reinhard.Tartler
CONFIG_NO_ATA_LEGACY isn't used by anyone. Drop it.
Reported-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
---
On 01/20/2010 11:29 PM, Christoph Egger wrote:
> That's the only place where it is checked for
> NO_ATA_LEGACY. As this Item does appear nowhere in KConfig and
> therefor is not selectable I'm wondering whether that small Code
> fragment should be dropped or a new KConfig option should be added?
>
> Please keep me informed of this patch getting confirmed /
> merged so we can keep track of it.
It's supposed to be set by architecture code to prevent SFF controller
attach if it's in legacy mode. There apparently is no user left.
Trying to find the last user... it seems it hasn't been unused for at
least two year. I guess it can be removed then.
Thanks!
drivers/ata/libata-sff.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 741065c..b9df435 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -2945,15 +2945,6 @@ int ata_pci_sff_activate_host(struct ata_host *host,
mask = (1 << 2) | (1 << 0);
if ((tmp8 & mask) != mask)
legacy_mode = 1;
-#if defined(CONFIG_NO_ATA_LEGACY)
- /* Some platforms with PCI limits cannot address compat
- port space. In that case we punt if their firmware has
- left a device in compatibility mode */
- if (legacy_mode) {
- printk(KERN_ERR "ata: Compatibility mode ATA is not supported on this platform, skipping.\n");
- return -EOPNOTSUPP;
- }
-#endif
}
if (!devres_open_group(dev, NULL, GFP_KERNEL))
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY
2010-01-21 0:14 ` [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY Tejun Heo
@ 2010-01-21 0:15 ` Tejun Heo
2010-01-21 4:32 ` Jeff Garzik
2010-01-21 12:04 ` Alan Cox
1 sibling, 1 reply; 6+ messages in thread
From: Tejun Heo @ 2010-01-21 0:15 UTC (permalink / raw)
To: Christoph Egger; +Cc: linux-kernel, linux-ide, jgarzik, Reinhard.Tartler
Oops, Jeff, please send this #upstream. I was thinking #upstream but
my fingers had their own mind. Thanks.
--
tejun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY
2010-01-21 0:14 ` [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY Tejun Heo
2010-01-21 0:15 ` Tejun Heo
@ 2010-01-21 12:04 ` Alan Cox
2010-01-22 0:48 ` Tejun Heo
1 sibling, 1 reply; 6+ messages in thread
From: Alan Cox @ 2010-01-21 12:04 UTC (permalink / raw)
To: Tejun Heo
Cc: Christoph Egger, linux-kernel, linux-ide, jgarzik,
Reinhard.Tartler
On Thu, 21 Jan 2010 09:14:02 +0900
Tejun Heo <htejun@gmail.com> wrote:
> CONFIG_NO_ATA_LEGACY isn't used by anyone. Drop it.
>
> Reported-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
> Signed-off-by: Tejun Heo <tj@kernel.org>
Not unless this is cleared with the FRV maintainers who were using
it and I believe may still need it.
Mr Howells ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY
2010-01-21 12:04 ` Alan Cox
@ 2010-01-22 0:48 ` Tejun Heo
0 siblings, 0 replies; 6+ messages in thread
From: Tejun Heo @ 2010-01-22 0:48 UTC (permalink / raw)
To: Alan Cox
Cc: Christoph Egger, linux-kernel, linux-ide, jgarzik,
Reinhard.Tartler, David Howells
(cc'ing David Howells, who BTW is on vacation till Feb) Hi!
On 01/21/2010 09:04 PM, Alan Cox wrote:
> On Thu, 21 Jan 2010 09:14:02 +0900
> Tejun Heo <htejun@gmail.com> wrote:
>
>> CONFIG_NO_ATA_LEGACY isn't used by anyone. Drop it.
>>
>> Reported-by: Christoph Egger <siccegge@stud.informatik.uni-erlangen.de>
>> Signed-off-by: Tejun Heo <tj@kernel.org>
>
> Not unless this is cleared with the FRV maintainers who were using
> it and I believe may still need it.
>
> Mr Howells ?
David, the patch in question is,
http://lkml.org/lkml/2010/1/20/396
Does FRV still need it?
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-01-22 0:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20 14:29 Unreferenced config in kernel (libata-sff.c) source (NO_ATA_LEGACY) Christoph Egger
2010-01-21 0:14 ` [PATCH #upstream-fixes] libata-sff: remove CONFIG_NO_ATA_LEGACY Tejun Heo
2010-01-21 0:15 ` Tejun Heo
2010-01-21 4:32 ` Jeff Garzik
2010-01-21 12:04 ` Alan Cox
2010-01-22 0:48 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).