Re: [drm-misc:drm-misc-next 1/15] drivers/video/fbdev/hyperv_fb.c:1033:10: error: use of undeclared identifier 'screen_info'

2023-07-09 Thread suijingfeng

Hi, Deepak and Michael


Would you like to review this trivial patch ?

Please help to push this to drm/hyperv, because kernel test robots are 
crying.



On 2023/7/10 10:57, kernel test robot wrote:

tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   70d1ace56db6c79d39dbe9c0d5244452b67e2fde
commit: 8b0d13545b091729e0aa05ff9981e2d06c1e2ee5 [1/15] efi: Do not include 
 from EFI header
config: arm64-allmodconfig 
(https://download.01.org/0day-ci/archive/20230710/202307101042.rqehuauj-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 
4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: 
(https://download.01.org/0day-ci/archive/20230710/202307101042.rqehuauj-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202307101042.rqehuauj-...@intel.com/

All errors (new ones prefixed by >>):


drivers/video/fbdev/hyperv_fb.c:1033:10: error: use of undeclared identifier 
'screen_info'

 1033 | base = screen_info.lfb_base;
  |^
drivers/video/fbdev/hyperv_fb.c:1034:10: error: use of undeclared 
identifier 'screen_info'
 1034 | size = screen_info.lfb_size;
  |^

drivers/video/fbdev/hyperv_fb.c:1080:3: error: must use 'struct' tag to refer 
to type 'screen_info'

 1080 | screen_info.lfb_size = 0;
  | ^
  | struct

drivers/video/fbdev/hyperv_fb.c:1080:14: error: expected identifier or '('

 1080 | screen_info.lfb_size = 0;
  |^
drivers/video/fbdev/hyperv_fb.c:1081:3: error: must use 'struct' tag to 
refer to type 'screen_info'
 1081 | screen_info.lfb_base = 0;
  | ^
  | struct
drivers/video/fbdev/hyperv_fb.c:1081:14: error: expected identifier or '('
 1081 | screen_info.lfb_base = 0;
  |^
drivers/video/fbdev/hyperv_fb.c:1082:3: error: must use 'struct' tag to 
refer to type 'screen_info'
 1082 | screen_info.orig_video_isVGA = 0;
  | ^
  | struct
drivers/video/fbdev/hyperv_fb.c:1082:14: error: expected identifier or '('
 1082 | screen_info.orig_video_isVGA = 0;
  |^
8 errors generated.


vim +/screen_info +1033 drivers/video/fbdev/hyperv_fb.c

3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09   
988
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
989
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
990  /* Get framebuffer memory from Hyper-V video pci space */
3546448338e76a drivers/video/fbdev/hyperv_fb.c Jake Oshins   2015-08-05   
991  static int hvfb_getmem(struct hv_device *hdev, struct fb_info *info)
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
992  {
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   993  
 struct hvfb_par *par = info->par;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
994   struct pci_dev *pdev  = NULL;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
995   void __iomem *fb_virt;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
996   int gen2vm = efi_enabled(EFI_BOOT);
81d2393485f099 drivers/video/fbdev/hyperv_fb.c Thomas Zimmermann 2022-12-19   
997   resource_size_t base, size;
3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09   
998   phys_addr_t paddr;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
999   int ret;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1000
3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09  
1001   if (!gen2vm) {
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1002   pdev = pci_get_device(PCI_VENDOR_ID_MICROSOFT,
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1003   PCI_DEVICE_ID_HYPERV_VIDEO, NULL);
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1004   if (!pdev) {
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  1005 
  pr_err("Unable to find PCI Hyper-V video\n");
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1006   return -ENODEV;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  

[drm-misc:drm-misc-next 1/15] drivers/video/fbdev/hyperv_fb.c:1033:10: error: use of undeclared identifier 'screen_info'

2023-07-09 Thread kernel test robot
tree:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head:   70d1ace56db6c79d39dbe9c0d5244452b67e2fde
commit: 8b0d13545b091729e0aa05ff9981e2d06c1e2ee5 [1/15] efi: Do not include 
 from EFI header
config: arm64-allmodconfig 
(https://download.01.org/0day-ci/archive/20230710/202307101042.rqehuauj-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 
4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: 
(https://download.01.org/0day-ci/archive/20230710/202307101042.rqehuauj-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202307101042.rqehuauj-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/hyperv_fb.c:1033:10: error: use of undeclared identifier 
>> 'screen_info'
1033 | base = screen_info.lfb_base;
 |^
   drivers/video/fbdev/hyperv_fb.c:1034:10: error: use of undeclared identifier 
'screen_info'
1034 | size = screen_info.lfb_size;
 |^
>> drivers/video/fbdev/hyperv_fb.c:1080:3: error: must use 'struct' tag to 
>> refer to type 'screen_info'
1080 | screen_info.lfb_size = 0;
 | ^
 | struct 
>> drivers/video/fbdev/hyperv_fb.c:1080:14: error: expected identifier or '('
1080 | screen_info.lfb_size = 0;
 |^
   drivers/video/fbdev/hyperv_fb.c:1081:3: error: must use 'struct' tag to 
refer to type 'screen_info'
1081 | screen_info.lfb_base = 0;
 | ^
 | struct 
   drivers/video/fbdev/hyperv_fb.c:1081:14: error: expected identifier or '('
1081 | screen_info.lfb_base = 0;
 |^
   drivers/video/fbdev/hyperv_fb.c:1082:3: error: must use 'struct' tag to 
refer to type 'screen_info'
1082 | screen_info.orig_video_isVGA = 0;
 | ^
 | struct 
   drivers/video/fbdev/hyperv_fb.c:1082:14: error: expected identifier or '('
1082 | screen_info.orig_video_isVGA = 0;
 |^
   8 errors generated.


vim +/screen_info +1033 drivers/video/fbdev/hyperv_fb.c

3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09   
988  
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
989  
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
990  /* Get framebuffer memory from Hyper-V video pci space */
3546448338e76a drivers/video/fbdev/hyperv_fb.c Jake Oshins   2015-08-05   
991  static int hvfb_getmem(struct hv_device *hdev, struct fb_info *info)
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
992  {
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
993   struct hvfb_par *par = info->par;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
994   struct pci_dev *pdev  = NULL;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29   
995   void __iomem *fb_virt;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
996   int gen2vm = efi_enabled(EFI_BOOT);
81d2393485f099 drivers/video/fbdev/hyperv_fb.c Thomas Zimmermann 2022-12-19   
997   resource_size_t base, size;
3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09   
998   phys_addr_t paddr;
9069fd54960304 drivers/video/hyperv_fb.c   Gerd Hoffmann 2014-02-26   
999   int ret;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1000  
3a6fb6c4255c38 drivers/video/fbdev/hyperv_fb.c Wei Hu2019-12-09  
1001   if (!gen2vm) {
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1002   pdev = pci_get_device(PCI_VENDOR_ID_MICROSOFT,
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1003   PCI_DEVICE_ID_HYPERV_VIDEO, NULL);
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1004   if (!pdev) {
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1005   pr_err("Unable to find PCI Hyper-V video\n");
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1006   return -ENODEV;
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1007   }
68a2d20b79b105 drivers/video/hyperv_fb.c   Haiyang Zhang 2013-04-29  
1008  
81d2393485f099 drivers/video/fbdev/hyperv_fb.c Thomas Zimmermann 2022-12-19  
1009   base =