[kvms390:next 4/6] drivers/video/fbdev/s1d13xxxfb.c:822:22: error: implicit declaration of function 'ioremap_nocache'; did you mean 'devm_ioremap_nocache'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git next
head:   03ef4828b20c549d5ae7dd082b157ebb51d9533a
commit: 32673fe14954013acc5004886314f5759174e90a [4/6] Kconfig : Remove HAS_IOMEM dependency for Graphics support
config: um-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 32673fe14954013acc5004886314f5759174e90a
        # save the attached .config to linux build tree
        make ARCH=um 

All error/warnings (new ones prefixed by >>):

   drivers/video/fbdev/s1d13xxxfb.c: In function 's1d13xxxfb_probe':
>> drivers/video/fbdev/s1d13xxxfb.c:822:22: error: implicit declaration of function 'ioremap_nocache'; did you mean 'devm_ioremap_nocache'? [-Werror=implicit-function-declaration]
     default_par->regs = ioremap_nocache(pdev->resource[1].start,
                         ^~~~~~~~~~~~~~~
                         devm_ioremap_nocache
>> drivers/video/fbdev/s1d13xxxfb.c:822:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     default_par->regs = ioremap_nocache(pdev->resource[1].start,
                       ^
   drivers/video/fbdev/s1d13xxxfb.c:831:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     info->screen_base = ioremap_nocache(pdev->resource[0].start,
                       ^
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
   Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata
   Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata
   Cyclomatic Complexity 1 include/linux/device.h:dev_get_platdata
   Cyclomatic Complexity 1 include/linux/platform_device.h:platform_get_drvdata
   Cyclomatic Complexity 1 include/linux/platform_device.h:platform_set_drvdata
   Cyclomatic Complexity 1 arch/um/include/asm/io.h:iounmap
   Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_readb
   Cyclomatic Complexity 1 include/asm-generic/io.h:__raw_writeb
   Cyclomatic Complexity 1 include/asm-generic/io.h:readb
   Cyclomatic Complexity 1 include/asm-generic/io.h:writeb
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_readreg
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_writereg
   Cyclomatic Complexity 8 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_runinit
   Cyclomatic Complexity 2 drivers/video/fbdev/s1d13xxxfb.c:lcd_enable
   Cyclomatic Complexity 2 drivers/video/fbdev/s1d13xxxfb.c:crt_enable
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_setup_pseudocolour
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_setup_truecolour
   Cyclomatic Complexity 6 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_set_par
   Cyclomatic Complexity 6 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_setcolreg
   Cyclomatic Complexity 6 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_blank
   Cyclomatic Complexity 4 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_pan_display
   Cyclomatic Complexity 5 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_remove
   Cyclomatic Complexity 3 drivers/video/fbdev/s1d13xxxfb.c:bltbit_wait_bitclear
   Cyclomatic Complexity 4 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_bitblt_copyarea
   Cyclomatic Complexity 2 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_bitblt_solidfill
   Cyclomatic Complexity 6 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_fetch_hw_state
   Cyclomatic Complexity 21 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_probe
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_init
   Cyclomatic Complexity 1 drivers/video/fbdev/s1d13xxxfb.c:s1d13xxxfb_exit
   cc1: some warnings being treated as errors
--
   drivers/video/fbdev/uvesafb.c: In function 'uvesafb_ioremap':
>> drivers/video/fbdev/uvesafb.c:1538:22: error: implicit declaration of function 'ioremap_wc'; did you mean 'ioremap_uc'? [-Werror=implicit-function-declaration]
     info->screen_base = ioremap_wc(info->fix.smem_start, info->fix.smem_len);
                         ^~~~~~~~~~
                         ioremap_uc
>> drivers/video/fbdev/uvesafb.c:1538:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     info->screen_base = ioremap_wc(info->fix.smem_start, info->fix.smem_len);
                       ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/bitops.h:fls_long
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/log2.h:__roundup_pow_of_two
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:list_empty
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/um/include/asm/thread_info.h:current_thread_info
   Cyclomatic Complexity 1 include/asm-generic/preempt.h:preempt_count
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_dec
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 1 include/linux/jiffies.h:_msecs_to_jiffies
   Cyclomatic Complexity 3 include/linux/jiffies.h:msecs_to_jiffies
   Cyclomatic Complexity 1 include/linux/completion.h:__init_completion
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 5 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/device.h:dev_get_drvdata
   Cyclomatic Complexity 1 include/linux/device.h:dev_set_drvdata
   Cyclomatic Complexity 1 arch/um/include/asm/io.h:iounmap
   Cyclomatic Complexity 1 include/linux/io.h:arch_phys_wc_add
   Cyclomatic Complexity 1 include/linux/io.h:arch_phys_wc_del
   Cyclomatic Complexity 2 include/net/sock.h:gfp_any
   Cyclomatic Complexity 1 include/linux/platform_device.h:platform_get_drvdata
   Cyclomatic Complexity 1 include/linux/platform_device.h:platform_set_drvdata
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_setup_var
   Cyclomatic Complexity 11 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_find_mode
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:uvesafb_pan_display
   Cyclomatic Complexity 14 drivers/video/fbdev/uvesafb.c:uvesafb_init_info
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:v86d_store
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:v86d_show
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_prep
   Cyclomatic Complexity 2 drivers/video/fbdev/uvesafb.c:uvesafb_free
   Cyclomatic Complexity 2 drivers/video/fbdev/uvesafb.c:uvesafb_remove
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_store_nocrtc
   Cyclomatic Complexity 2 drivers/video/fbdev/uvesafb.c:uvesafb_show_nocrtc
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_show_oem_string
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_show_product_rev
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_show_product_name
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_show_vendor
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_show_vbe_modes
   Cyclomatic Complexity 2 drivers/video/fbdev/uvesafb.c:uvesafb_show_vbe_ver
   Cyclomatic Complexity 71 drivers/video/fbdev/uvesafb.c:uvesafb_init_mtrr
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:uvesafb_helper_start
   Cyclomatic Complexity 11 drivers/video/fbdev/uvesafb.c:uvesafb_exec
   Cyclomatic Complexity 7 drivers/video/fbdev/uvesafb.c:uvesafb_blank
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_setpalette
   Cyclomatic Complexity 7 drivers/video/fbdev/uvesafb.c:uvesafb_setcolreg
   Cyclomatic Complexity 7 drivers/video/fbdev/uvesafb.c:uvesafb_setcmap
   Cyclomatic Complexity 5 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_state_restore
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_release
   Cyclomatic Complexity 6 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_state_save
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_open
   Cyclomatic Complexity 9 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_getinfo
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:uvesafb_reset
   Cyclomatic Complexity 21 drivers/video/fbdev/uvesafb.c:uvesafb_set_par
   Cyclomatic Complexity 12 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_getmodes
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_getstatesize
   Cyclomatic Complexity 10 drivers/video/fbdev/uvesafb.c:uvesafb_check_limits
   Cyclomatic Complexity 11 drivers/video/fbdev/uvesafb.c:uvesafb_check_var
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_is_valid_mode
   Cyclomatic Complexity 14 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_getedid
   Cyclomatic Complexity 15 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_getmonspecs
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_init
   Cyclomatic Complexity 14 drivers/video/fbdev/uvesafb.c:uvesafb_vbe_init_mode
   Cyclomatic Complexity 1 drivers/video/fbdev/uvesafb.c:uvesafb_ioremap
   Cyclomatic Complexity 11 drivers/video/fbdev/uvesafb.c:uvesafb_probe
   Cyclomatic Complexity 9 drivers/video/fbdev/uvesafb.c:uvesafb_cn_callback
   Cyclomatic Complexity 4 drivers/video/fbdev/uvesafb.c:param_set_scroll
   Cyclomatic Complexity 6 drivers/video/fbdev/uvesafb.c:uvesafb_init
   Cyclomatic Complexity 3 drivers/video/fbdev/uvesafb.c:uvesafb_exit
   cc1: some warnings being treated as errors
--
   In file included from drivers/video/fbdev/core/fbmem.c:38:0:
   arch/x86/include/asm/fb.h: In function 'fb_pgprotect':
>> arch/x86/include/asm/fb.h:14:42: error: '_PAGE_CACHE_MASK' undeclared (first use in this function); did you mean '_PAGE_CHG_MASK'?
     prot = pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK;
                                             ^~~~~~~~~~~~~~~~
                                             _PAGE_CHG_MASK
   arch/x86/include/asm/fb.h:14:42: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/include/asm/fb.h:15:19: error: 'struct cpuinfo_um' has no member named 'x86'
     if (boot_cpu_data.x86 > 3)
                      ^
>> arch/x86/include/asm/fb.h:17:11: error: implicit declaration of function 'cachemode2protval' [-Werror=implicit-function-declaration]
       prot | cachemode2protval(_PAGE_CACHE_MODE_UC_MINUS);
              ^~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/fb.h:17:29: error: '_PAGE_CACHE_MODE_UC_MINUS' undeclared (first use in this function); did you mean '_PAGE_CACHE_MASK'?
       prot | cachemode2protval(_PAGE_CACHE_MODE_UC_MINUS);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
                                _PAGE_CACHE_MASK
   cc1: some warnings being treated as errors

vim +822 drivers/video/fbdev/s1d13xxxfb.c

^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  764  
48c68c4f1 drivers/video/s1d13xxxfb.c Greg Kroah-Hartman 2012-12-21  765  static int s1d13xxxfb_probe(struct platform_device *pdev)
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  766  {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  767  	struct s1d13xxxfb_par *default_par;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  768  	struct fb_info *info;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  769  	struct s1d13xxxfb_pdata *pdata = NULL;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  770  	int ret = 0;
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  771  	int i;
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  772  	u8 revision, prod_id;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  773  
28822f22e drivers/video/s1d13xxxfb.c Stanislav Brabec   2007-11-14  774  	dbg("probe called: device is %p\n", pdev);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  775  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  776  	printk(KERN_INFO "Epson S1D13XXX FB Driver\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  777  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  778  	/* enable platform-dependent hardware glue, if any */
772ee6daf drivers/video/s1d13xxxfb.c Jingoo Han         2013-09-17  779  	if (dev_get_platdata(&pdev->dev))
772ee6daf drivers/video/s1d13xxxfb.c Jingoo Han         2013-09-17  780  		pdata = dev_get_platdata(&pdev->dev);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  781  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  782  	if (pdata && pdata->platform_init_video)
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  783  		pdata->platform_init_video();
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  784  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  785  	if (pdev->num_resources != 2) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  786  		dev_err(&pdev->dev, "invalid num_resources: %i\n",
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  787  		       pdev->num_resources);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  788  		ret = -ENODEV;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  789  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  790  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  791  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  792  	/* resource[0] is VRAM, resource[1] is registers */
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  793  	if (pdev->resource[0].flags != IORESOURCE_MEM
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  794  			|| pdev->resource[1].flags != IORESOURCE_MEM) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  795  		dev_err(&pdev->dev, "invalid resource type\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  796  		ret = -ENODEV;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  797  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  798  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  799  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  800  	if (!request_mem_region(pdev->resource[0].start,
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  801  		pdev->resource[0].end - pdev->resource[0].start +1, "s1d13xxxfb mem")) {
3ae5eaec1 drivers/video/s1d13xxxfb.c Russell King       2005-11-09  802  		dev_dbg(&pdev->dev, "request_mem_region failed\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  803  		ret = -EBUSY;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  804  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  805  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  806  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  807  	if (!request_mem_region(pdev->resource[1].start,
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  808  		pdev->resource[1].end - pdev->resource[1].start +1, "s1d13xxxfb regs")) {
3ae5eaec1 drivers/video/s1d13xxxfb.c Russell King       2005-11-09  809  		dev_dbg(&pdev->dev, "request_mem_region failed\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  810  		ret = -EBUSY;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  811  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  812  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  813  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  814  	info = framebuffer_alloc(sizeof(struct s1d13xxxfb_par) + sizeof(u32) * 256, &pdev->dev);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  815  	if (!info) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  816  		ret = -ENOMEM;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  817  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  818  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  819  
98365f5eb drivers/video/s1d13xxxfb.c Antonino A. Daplas 2006-03-11  820  	platform_set_drvdata(pdev, info);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  821  	default_par = info->par;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16 @822  	default_par->regs = ioremap_nocache(pdev->resource[1].start,
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  823  			pdev->resource[1].end - pdev->resource[1].start +1);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  824  	if (!default_par->regs) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  825  		printk(KERN_ERR PFX "unable to map registers\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  826  		ret = -ENOMEM;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  827  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  828  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  829  	info->pseudo_palette = default_par->pseudo_palette;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  830  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  831  	info->screen_base = ioremap_nocache(pdev->resource[0].start,
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  832  			pdev->resource[0].end - pdev->resource[0].start +1);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  833  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  834  	if (!info->screen_base) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  835  		printk(KERN_ERR PFX "unable to map framebuffer\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  836  		ret = -ENOMEM;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  837  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  838  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  839  
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  840  	/* production id is top 6 bits */
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  841  	prod_id = s1d13xxxfb_readreg(default_par, S1DREG_REV_CODE) >> 2;
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  842  	/* revision id is lower 2 bits */
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  843  	revision = s1d13xxxfb_readreg(default_par, S1DREG_REV_CODE) & 0x3;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  844  	ret = -ENODEV;
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  845  
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  846  	for (i = 0; i < ARRAY_SIZE(s1d13xxxfb_prod_ids); i++) {
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  847  		if (prod_id == s1d13xxxfb_prod_ids[i]) {
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  848  			/* looks like we got it in our list */
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  849  			default_par->prod_id = prod_id;
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  850  			default_par->revision = revision;
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  851  			ret = 0;
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  852  			break;
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  853  		}
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  854  	}
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  855  
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  856  	if (!ret) {
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  857  		printk(KERN_INFO PFX "chip production id %i = %s\n",
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  858  			prod_id, s1d13xxxfb_prod_names[i]);
0b178883b drivers/video/s1d13xxxfb.c Kristoffer Ericson 2008-10-15  859  		printk(KERN_INFO PFX "chip revision %i\n", revision);
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  860  	} else {
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  861  		printk(KERN_INFO PFX
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  862  			"unknown chip production id %i, revision %i\n",
afbb9d8d5 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-03-31  863  			prod_id, revision);
a895d57da drivers/video/s1d13xxxfb.c Masanari Iida      2013-04-09  864  		printk(KERN_INFO PFX "please contact maintainer\n");
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  865  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  866  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  867  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  868  	info->fix = s1d13xxxfb_fix;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  869  	info->fix.mmio_start = pdev->resource[1].start;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  870  	info->fix.mmio_len = pdev->resource[1].end - pdev->resource[1].start + 1;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  871  	info->fix.smem_start = pdev->resource[0].start;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  872  	info->fix.smem_len = pdev->resource[0].end - pdev->resource[0].start + 1;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  873  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  874  	printk(KERN_INFO PFX "regs mapped at 0x%p, fb %d KiB mapped at 0x%p\n",
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  875  	       default_par->regs, info->fix.smem_len / 1024, info->screen_base);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  876  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  877  	info->par = default_par;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  878  	info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  879  	info->fbops = &s1d13xxxfb_fbops;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  880  
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  881  	switch(prod_id) {
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  882  	case S1D13506_PROD_ID:	/* activate acceleration */
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  883  		s1d13xxxfb_fbops.fb_fillrect = s1d13xxxfb_bitblt_solidfill;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  884  		s1d13xxxfb_fbops.fb_copyarea = s1d13xxxfb_bitblt_copyarea;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  885  		info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  886  			FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  887  		break;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  888  	default:
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  889  		break;
3ed167af9 drivers/video/s1d13xxxfb.c Kristoffer Ericson 2009-06-16  890  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  891  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  892  	/* perform "manual" chip initialization, if needed */
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  893  	if (pdata && pdata->initregs)
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  894  		s1d13xxxfb_runinit(info->par, pdata->initregs, pdata->initregssize);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  895  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  896  	s1d13xxxfb_fetch_hw_state(info);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  897  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  898  	if (register_framebuffer(info) < 0) {
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  899  		ret = -EINVAL;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  900  		goto bail;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  901  	}
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  902  
31b6780c1 drivers/video/s1d13xxxfb.c Joe Perches        2013-09-19  903  	fb_info(info, "%s frame buffer device\n", info->fix.id);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  904  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  905  	return 0;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  906  
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  907  bail:
3ae5eaec1 drivers/video/s1d13xxxfb.c Russell King       2005-11-09  908  	s1d13xxxfb_remove(pdev);
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  909  	return ret;
^1da177e4 drivers/video/s1d13xxxfb.c Linus Torvalds     2005-04-16  910  

:::::: The code at line 822 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux