CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Manasi Navare <[email protected]>
TO: [email protected]
TO: [email protected]
CC: Bhanuprakash Modem <[email protected]>

Hi Manasi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip drm-exynos/exynos-drm-next 
linus/master next-20200613]
[cannot apply to tegra-drm/drm/tegra/for-next drm/drm-next v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    
https://github.com/0day-ci/linux/commits/Manasi-Navare/VRR-capable-attach-prop-in-i915-DPCD-helper-VRR-debugfs/20200613-070517
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
:::::: branch date: 22 hours ago
:::::: commit date: 22 hours ago
config: x86_64-randconfig-s021-20200614 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2247:13: sparse: 
sparse: Expected ) in function declarator
   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2247:13: sparse: 
sparse: got (
>> drivers/gpu/drm/i915/display/intel_display_debugfs.c:2247:9: sparse: sparse: 
>> Trying to use reserved word 'if' as identifier
>> drivers/gpu/drm/i915/display/intel_display_debugfs.c:2257:9: sparse: sparse: 
>> Trying to use reserved word 'return' as identifier
   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2257:16: sparse: 
sparse: Expected ; at end of declaration
   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2257:16: sparse: 
sparse: got 0
   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2258:1: sparse: sparse: 
Expected ; at the end of type declaration
   drivers/gpu/drm/i915/display/intel_display_debugfs.c:2258:1: sparse: sparse: 
got }

# 
https://github.com/0day-ci/linux/commit/670af3cf7a3a36bb87776fbfd7f913cd33681bbc
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 670af3cf7a3a36bb87776fbfd7f913cd33681bbc
vim +/if +2247 drivers/gpu/drm/i915/display/intel_display_debugfs.c

670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2202  
926b005cd8c4e32 Jani Nikula        2020-02-11  2203  /**
926b005cd8c4e32 Jani Nikula        2020-02-11  2204   * 
intel_connector_debugfs_add - add i915 specific connector debugfs files
926b005cd8c4e32 Jani Nikula        2020-02-11  2205   * @connector: pointer to 
a registered drm_connector
926b005cd8c4e32 Jani Nikula        2020-02-11  2206   *
926b005cd8c4e32 Jani Nikula        2020-02-11  2207   * Cleanup will be done by 
drm_connector_unregister() through a call to
926b005cd8c4e32 Jani Nikula        2020-02-11  2208   * 
drm_debugfs_connector_remove().
926b005cd8c4e32 Jani Nikula        2020-02-11  2209   *
926b005cd8c4e32 Jani Nikula        2020-02-11  2210   * Returns 0 on success, 
negative error codes on error.
926b005cd8c4e32 Jani Nikula        2020-02-11  2211   */
926b005cd8c4e32 Jani Nikula        2020-02-11  2212  int 
intel_connector_debugfs_add(struct drm_connector *connector)
926b005cd8c4e32 Jani Nikula        2020-02-11  2213  {
926b005cd8c4e32 Jani Nikula        2020-02-11  2214     struct dentry *root = 
connector->debugfs_entry;
926b005cd8c4e32 Jani Nikula        2020-02-11  2215     struct drm_i915_private 
*dev_priv = to_i915(connector->dev);
926b005cd8c4e32 Jani Nikula        2020-02-11  2216  
926b005cd8c4e32 Jani Nikula        2020-02-11  2217     /* The connector must 
have been registered beforehands. */
926b005cd8c4e32 Jani Nikula        2020-02-11  2218     if (!root)
926b005cd8c4e32 Jani Nikula        2020-02-11  2219             return -ENODEV;
926b005cd8c4e32 Jani Nikula        2020-02-11  2220  
926b005cd8c4e32 Jani Nikula        2020-02-11  2221     if 
(connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
926b005cd8c4e32 Jani Nikula        2020-02-11  2222             
debugfs_create_file("i915_panel_timings", S_IRUGO, root,
926b005cd8c4e32 Jani Nikula        2020-02-11  2223                             
    connector, &i915_panel_fops);
926b005cd8c4e32 Jani Nikula        2020-02-11  2224             
debugfs_create_file("i915_psr_sink_status", S_IRUGO, root,
926b005cd8c4e32 Jani Nikula        2020-02-11  2225                             
    connector, &i915_psr_sink_status_fops);
926b005cd8c4e32 Jani Nikula        2020-02-11  2226     }
926b005cd8c4e32 Jani Nikula        2020-02-11  2227  
926b005cd8c4e32 Jani Nikula        2020-02-11  2228     if 
(connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
926b005cd8c4e32 Jani Nikula        2020-02-11  2229         
connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
926b005cd8c4e32 Jani Nikula        2020-02-11  2230         
connector->connector_type == DRM_MODE_CONNECTOR_HDMIB) {
926b005cd8c4e32 Jani Nikula        2020-02-11  2231             
debugfs_create_file("i915_hdcp_sink_capability", S_IRUGO, root,
926b005cd8c4e32 Jani Nikula        2020-02-11  2232                             
    connector, &i915_hdcp_sink_capability_fops);
926b005cd8c4e32 Jani Nikula        2020-02-11  2233     }
926b005cd8c4e32 Jani Nikula        2020-02-11  2234  
926b005cd8c4e32 Jani Nikula        2020-02-11  2235     if (INTEL_GEN(dev_priv) 
>= 10 &&
926b005cd8c4e32 Jani Nikula        2020-02-11  2236         
(connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
926b005cd8c4e32 Jani Nikula        2020-02-11  2237          
connector->connector_type == DRM_MODE_CONNECTOR_eDP))
926b005cd8c4e32 Jani Nikula        2020-02-11  2238             
debugfs_create_file("i915_dsc_fec_support", S_IRUGO, root,
926b005cd8c4e32 Jani Nikula        2020-02-11  2239                             
    connector, &i915_dsc_fec_support_fops);
926b005cd8c4e32 Jani Nikula        2020-02-11  2240  
670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2241             if 
(INTEL_GEN(dev_priv) >= 12)
670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2242                     
debugfs_create_file("vrr_range", S_IRUGO,
670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2243                             
            root, connector, &vrr_range_fops);
670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2244     }
670af3cf7a3a36b Bhanuprakash Modem 2020-06-12  2245  
8806211fe7b3069 Anshuman Gupta     2020-04-15  2246     /* Legacy panels 
doesn't lpsp on any platform */
8806211fe7b3069 Anshuman Gupta     2020-04-15 @2247     if 
((INTEL_GEN(dev_priv) >= 9 || IS_HASWELL(dev_priv) ||
8806211fe7b3069 Anshuman Gupta     2020-04-15  2248          
IS_BROADWELL(dev_priv)) &&
8806211fe7b3069 Anshuman Gupta     2020-04-15  2249          
(connector->connector_type == DRM_MODE_CONNECTOR_DSI ||
8806211fe7b3069 Anshuman Gupta     2020-04-15  2250          
connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
8806211fe7b3069 Anshuman Gupta     2020-04-15  2251          
connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
8806211fe7b3069 Anshuman Gupta     2020-04-15  2252          
connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
8806211fe7b3069 Anshuman Gupta     2020-04-15  2253          
connector->connector_type == DRM_MODE_CONNECTOR_HDMIB))
8806211fe7b3069 Anshuman Gupta     2020-04-15  2254             
debugfs_create_file("i915_lpsp_capability", 0444, root,
8806211fe7b3069 Anshuman Gupta     2020-04-15  2255                             
    connector, &i915_lpsp_capability_fops);
8806211fe7b3069 Anshuman Gupta     2020-04-15  2256  
926b005cd8c4e32 Jani Nikula        2020-02-11 @2257     return 0;

:::::: The code at line 2247 was first introduced by commit
:::::: 8806211fe7b30696c1fcae54b73c94abfdf55893 drm/i915: Add 
i915_lpsp_capability debugfs

:::::: TO: Anshuman Gupta <[email protected]>
:::::: CC: Uma Shankar <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to