All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 1/1] drivers/gpu/drm/evdi/evdi_painter.c:686:12: sparse: sparse: symbol 'dpms_str' was not declared. Should it be static?
@ 2021-11-13 18:40 kernel test robot
  2021-11-13 18:40 ` [RFC PATCH chrome-os] CHROMIUM: dpms_str[] can be static kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-11-13 18:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2430 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   ae25dd46c5c2fecb4868af3a91418dea519deac9
commit: ae25dd46c5c2fecb4868af3a91418dea519deac9 [1/1] CHROMIUM: Import latest evdi driver
config: i386-randconfig-s002-20211113 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.10
        git checkout ae25dd46c5c2fecb4868af3a91418dea519deac9
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/evdi/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/evdi/evdi_painter.c:686:12: sparse: sparse: symbol 'dpms_str' was not declared. Should it be static?
   drivers/gpu/drm/evdi/evdi_painter.c:965:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const [noderef] __user *edid_data @@     got unsigned char const *[noderef] edid @@
   drivers/gpu/drm/evdi/evdi_painter.c:965:49: sparse:     expected void const [noderef] __user *edid_data
   drivers/gpu/drm/evdi/evdi_painter.c:965:49: sparse:     got unsigned char const *[noderef] edid
   drivers/gpu/drm/evdi/evdi_painter.c:1333:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const [noderef] __user *from @@     got unsigned char const *[noderef] buffer @@
   drivers/gpu/drm/evdi/evdi_painter.c:1333:54: sparse:     expected void const [noderef] __user *from
   drivers/gpu/drm/evdi/evdi_painter.c:1333:54: sparse:     got unsigned char const *[noderef] buffer
   drivers/gpu/drm/evdi/evdi_painter.c:965:46: sparse: sparse: dereference of noderef expression
   drivers/gpu/drm/evdi/evdi_painter.c:1333:51: sparse: sparse: dereference of noderef expression
   drivers/gpu/drm/evdi/evdi_painter.c:1333:51: sparse: sparse: dereference of noderef expression

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33036 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH chrome-os] CHROMIUM: dpms_str[] can be static
  2021-11-13 18:40 [chrome-os:chromeos-5.10 1/1] drivers/gpu/drm/evdi/evdi_painter.c:686:12: sparse: sparse: symbol 'dpms_str' was not declared. Should it be static? kernel test robot
@ 2021-11-13 18:40 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-13 18:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

drivers/gpu/drm/evdi/evdi_painter.c:686:12: warning: symbol 'dpms_str' was not declared. Should it be static?

Fixes: ae25dd46c5c2 ("CHROMIUM: Import latest evdi driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 evdi_painter.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/evdi/evdi_painter.c b/drivers/gpu/drm/evdi/evdi_painter.c
index 03c8f33b4298f..dd318512844a2 100644
--- a/drivers/gpu/drm/evdi/evdi_painter.c
+++ b/drivers/gpu/drm/evdi/evdi_painter.c
@@ -683,7 +683,7 @@ void evdi_painter_send_update_ready_if_needed(struct evdi_painter *painter)
 	}
 }
 
-const char *dpms_str[] = { "on", "standby", "suspend", "off" };
+static const char *dpms_str[] = { "on", "standby", "suspend", "off" };
 
 void evdi_painter_dpms_notify(struct evdi_device *evdi, int mode)
 {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-13 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13 18:40 [chrome-os:chromeos-5.10 1/1] drivers/gpu/drm/evdi/evdi_painter.c:686:12: sparse: sparse: symbol 'dpms_str' was not declared. Should it be static? kernel test robot
2021-11-13 18:40 ` [RFC PATCH chrome-os] CHROMIUM: dpms_str[] can be static kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.