[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202008102324.weSyybZE%lkp@intel.com>
Date: Mon, 10 Aug 2020 23:20:39 +0800
From: kernel test robot <lkp@...el.com>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/video/fbdev/controlfb.c:373:13: warning: variable 'b' set
but not used
Hi Bartlomiej,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc80c51fd4b23ec007e88d4c688f2cac1b8648e7
commit: a07a63b0e24dd1316d11427601a9f83dc955bb40 video: fbdev: controlfb: add COMPILE_TEST support
date: 4 months ago
config: nds32-randconfig-r031-20200810 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a07a63b0e24dd1316d11427601a9f83dc955bb40
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from ./arch/nds32/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/nds32/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/video/fbdev/controlfb.c:34:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/nds32/include/asm/memory.h:82:32: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
82 | #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/video/fbdev/controlfb.c: In function 'controlfb_setcolreg':
>> drivers/video/fbdev/controlfb.c:373:13: warning: variable 'b' set but not used [-Wunused-but-set-variable]
373 | __u8 r, g, b;
| ^
>> drivers/video/fbdev/controlfb.c:373:10: warning: variable 'g' set but not used [-Wunused-but-set-variable]
373 | __u8 r, g, b;
| ^
>> drivers/video/fbdev/controlfb.c:373:7: warning: variable 'r' set but not used [-Wunused-but-set-variable]
373 | __u8 r, g, b;
| ^
drivers/video/fbdev/controlfb.c: In function 'control_set_hardware':
>> drivers/video/fbdev/controlfb.c:505:11: warning: variable 'cmode' set but not used [-Wunused-but-set-variable]
505 | int i, cmode;
| ^~~~~
vim +/b +373 drivers/video/fbdev/controlfb.c
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 367
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 368 static int controlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 369 u_int transp, struct fb_info *info)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 370 {
c4e423239ca7cbc drivers/video/fbdev/controlfb.c Fabian Frederick 2014-09-17 371 struct fb_info_control *p =
c4e423239ca7cbc drivers/video/fbdev/controlfb.c Fabian Frederick 2014-09-17 372 container_of(info, struct fb_info_control, info);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 @373 __u8 r, g, b;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 374
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 375 if (regno > 255)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 376 return 1;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 377
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 378 r = red >> 8;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 379 g = green >> 8;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 380 b = blue >> 8;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 381
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 382 out_8(&p->cmap_regs->addr, regno); /* tell clut what addr to fill */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 383 out_8(&p->cmap_regs->lut, r); /* send one color channel at */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 384 out_8(&p->cmap_regs->lut, g); /* a time... */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 385 out_8(&p->cmap_regs->lut, b);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 386
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 387 if (regno < 16) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 388 int i;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 389 switch (p->par.cmode) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 390 case CMODE_16:
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 391 p->pseudo_palette[regno] =
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 392 (regno << 10) | (regno << 5) | regno;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 393 break;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 394 case CMODE_32:
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 395 i = (regno << 8) | regno;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 396 p->pseudo_palette[regno] = (i << 16) | i;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 397 break;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 398 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 399 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 400
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 401 return 0;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 402 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 403
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 404
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 405 /******************** End of controlfb_ops implementation ******************/
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 406
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 407
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 408
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 409 static void set_control_clock(unsigned char *params)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 410 {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 411 #ifdef CONFIG_ADB_CUDA
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 412 struct adb_request req;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 413 int i;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 414
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 415 for (i = 0; i < 3; ++i) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 416 cuda_request(&req, NULL, 5, CUDA_PACKET, CUDA_GET_SET_IIC,
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 417 0x50, i + 1, params[i]);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 418 while (!req.complete)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 419 cuda_poll();
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 420 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 421 #endif
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 422 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 423
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 424
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 425 /*
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 426 * finish off the driver initialization and register
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 427 */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 428 static int __init init_control(struct fb_info_control *p)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 429 {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 430 int full, sense, vmode, cmode, vyres;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 431 struct fb_var_screeninfo var;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 432 int rc;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 433
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 434 printk(KERN_INFO "controlfb: ");
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 435
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 436 full = p->total_vram == 0x400000;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 437
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 438 /* Try to pick a video mode out of NVRAM if we have one. */
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 439 cmode = default_cmode;
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 440 if (IS_REACHABLE(CONFIG_NVRAM) && cmode == CMODE_NVRAM)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 441 cmode = nvram_read_byte(NV_CMODE);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 442 if (cmode < CMODE_8 || cmode > CMODE_32)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 443 cmode = CMODE_8;
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 444
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 445 vmode = default_vmode;
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 446 if (IS_REACHABLE(CONFIG_NVRAM) && vmode == VMODE_NVRAM)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 447 vmode = nvram_read_byte(NV_VMODE);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 448 if (vmode < 1 || vmode > VMODE_MAX ||
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 449 control_mac_modes[vmode - 1].m[full] < cmode) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 450 sense = read_control_sense(p);
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 451 printk(KERN_CONT "Monitor sense value = 0x%x, ", sense);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 452 vmode = mac_map_monitor_sense(sense);
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 453 if (control_mac_modes[vmode - 1].m[full] < 0)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 454 vmode = VMODE_640_480_60;
066ac5c3c4bb467 drivers/video/fbdev/controlfb.c Finn Thain 2019-01-15 455 cmode = min(cmode, control_mac_modes[vmode - 1].m[full]);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 456 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 457
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 458 /* Initialize info structure */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 459 control_init_info(&p->info, p);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 460
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 461 /* Setup default var */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 462 if (mac_vmode_to_var(vmode, cmode, &var) < 0) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 463 /* This shouldn't happen! */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 464 printk("mac_vmode_to_var(%d, %d,) failed\n", vmode, cmode);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 465 try_again:
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 466 vmode = VMODE_640_480_60;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 467 cmode = CMODE_8;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 468 if (mac_vmode_to_var(vmode, cmode, &var) < 0) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 469 printk(KERN_ERR "controlfb: mac_vmode_to_var() failed\n");
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 470 return -ENXIO;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 471 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 472 printk(KERN_INFO "controlfb: ");
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 473 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 474 printk("using video mode %d and color mode %d.\n", vmode, cmode);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 475
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 476 vyres = (p->total_vram - CTRLFB_OFF) / (var.xres << cmode);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 477 if (vyres > var.yres)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 478 var.yres_virtual = vyres;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 479
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 480 /* Apply default var */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 481 var.activate = FB_ACTIVATE_NOW;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 482 rc = fb_set_var(&p->info, &var);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 483 if (rc && (vmode != VMODE_640_480_60 || cmode != CMODE_8))
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 484 goto try_again;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 485
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 486 /* Register with fbdev layer */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 487 if (register_framebuffer(&p->info) < 0)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 488 return -ENXIO;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 489
31b6780c15a4e3a drivers/video/controlfb.c Joe Perches 2013-09-19 490 fb_info(&p->info, "control display adapter\n");
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 491
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 492 return 0;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 493 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 494
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 495 #define RADACAL_WRITE(a,d) \
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 496 out_8(&p->cmap_regs->addr, (a)); \
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 497 out_8(&p->cmap_regs->dat, (d))
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 498
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 499 /* Now how about actually saying, Make it so! */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 500 /* Some things in here probably don't need to be done each time. */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 501 static void control_set_hardware(struct fb_info_control *p, struct fb_par_control *par)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 502 {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 503 struct control_regvals *r;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 504 volatile struct preg __iomem *rp;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 @505 int i, cmode;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 506
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 507 if (PAR_EQUAL(&p->par, par)) {
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 508 /*
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 509 * check if only xoffset or yoffset differs.
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 510 * this prevents flickers in typical VT switch case.
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 511 */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 512 if (p->par.xoffset != par->xoffset ||
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 513 p->par.yoffset != par->yoffset)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 514 set_screen_start(par->xoffset, par->yoffset, p);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 515
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 516 return;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 517 }
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 518
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 519 p->par = *par;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 520 cmode = p->par.cmode;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 521 r = &par->regvals;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 522
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 523 /* Turn off display */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 524 out_le32(CNTRL_REG(p,ctrl), 0x400 | par->ctrl);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 525
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 526 set_control_clock(r->clock_params);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 527
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 528 RADACAL_WRITE(0x20, r->radacal_ctrl);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 529 RADACAL_WRITE(0x21, p->control_use_bank2 ? 0 : 1);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 530 RADACAL_WRITE(0x10, 0);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 531 RADACAL_WRITE(0x11, 0);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 532
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 533 rp = &p->control_regs->vswin;
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 534 for (i = 0; i < 16; ++i, ++rp)
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 535 out_le32(&rp->r, r->regs[i]);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 536
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 537 out_le32(CNTRL_REG(p,pitch), par->pitch);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 538 out_le32(CNTRL_REG(p,mode), r->mode);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 539 out_le32(CNTRL_REG(p,vram_attr), p->vram_attr);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 540 out_le32(CNTRL_REG(p,start_addr), par->yoffset * par->pitch
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 541 + (par->xoffset << cmode));
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 542 out_le32(CNTRL_REG(p,rfrcnt), 0x1e5);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 543 out_le32(CNTRL_REG(p,intr_ena), 0);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 544
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 545 /* Turn on display */
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 546 out_le32(CNTRL_REG(p,ctrl), par->ctrl);
^1da177e4c3f415 drivers/video/controlfb.c Linus Torvalds 2005-04-16 547
:::::: The code at line 373 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (30415 bytes)
Powered by blists - more mailing lists