parisc: ccio-dma: fix build failure without procfs
PATCH 1/1 parisc: ccio-dma: fix build failure without procfs
Fix this build error when CONFIG_PROC_FS is not set:drivers/parisc/ccio-dma.c:1574: error: 'ccio_proc_info_fops' undeclared
Signed-off-by Alexander Beregalov <[email protected]>
---
drivers/parisc/ccio-dma.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/parisc/ccio-dma.c +3 -2
@@ -1134,7 +1134,7 @@ static const struct file_operations ccio_proc_bitmap_fops = { .llseek = seq_lseek, .release = single_release, }; -#endif +#endif /* CONFIG_PROC_FS */ /** * ccio_find_ioc - Find the ioc in the ioc_list
@@ -1568,14 +1568,15 @@ static int __init ccio_probe(struct parisc_device *dev)/* if this fails, no I/O cards will work, so may as well bug */ BUG_ON (dev->dev.platform_data ==NULL );HBA_DATA (dev->dev.platform_data)->iommu = ioc; - + +#ifdef CONFIG_PROC_FS if (ioc_count ==0 ) {proc_create (MODULE_NAME ,0 , proc_runway_root, &ccio_proc_info_fops);proc_create (MODULE_NAME "-bitmap" ,0 , proc_runway_root, &ccio_proc_bitmap_fops); }
Kyle McMartin
AppliedQuoted 4 lines · Alexander Beregalov
Fix this build error when
CONFIG_PROC_FSis not set:drivers/parisc/ccio-dma.c:1574: error: 'ccio_proc_info_fops' undeclaredSigned-off-by Alexander Beregalov <[email protected]>
Applied to the fixes branch.
cheers, Kyle
2009/4/3 Kyle McMartin <[email protected]>:
Quoted 7 lines · Alexander Beregalov
Quoted 4 lines
Fix this build error when
CONFIG_PROC_FSis not set:drivers/parisc/ccio-dma.c:1574: error: 'ccio_proc_info_fops' undeclaredSigned-off-by Alexander Beregalov <[email protected]>Applied to the fixes branch.
Hi Kyle.
It still fails with linux-next.
Could you please send it to Linus or ask Stephen to pull different branch (with all latest changes) of your tree?
Thanks.