<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>4126</bug_id>
          
          <creation_ts>2023-02-21 11:34:55 +0000</creation_ts>
          <short_desc>drivers/gpu/drm/gma500/cdv_device.c:218 cdv_errata() warn: inconsistent indenting</short_desc>
          <delta_ts>2023-02-21 11:35:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Upstream</product>
          <component>drivers</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="abaci-robot">abaci-bugfix</reporter>
          <assigned_to name="abaci-robot">abaci-bugfix</assigned_to>
          
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13912</commentid>
    <comment_count>0</comment_count>
    <who name="abaci-robot">abaci-bugfix</who>
    <bug_when>2023-02-21 11:34:55 +0000</bug_when>
    <thetext>drivers/gpu/drm/gma500/cdv_device.c:218 cdv_errata() warn: inconsistent indenting

In the following kernel version:

name: linux-next
url: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
branch: next-20230119
commit: aa5c49149a823599764e6953229b028e4bf6e9cc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13913</commentid>
    <comment_count>1</comment_count>
    <who name="abaci-robot">abaci-bugfix</who>
    <bug_when>2023-02-21 11:35:24 +0000</bug_when>
    <thetext>WARNING: Block comments use a trailing */ on a separate line
#81: FILE: drivers/gpu/drm/gma500/cdv_device.c:81:
+                * smash PWM control as firmware will take control of it. */

WARNING: Missing a blank line after declarations
#152: FILE: drivers/gpu/drm/gma500/cdv_device.c:152:
+       struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
+       pci_write_config_dword(pci_root, 0xD0, mcr);

WARNING: Missing a blank line after declarations
#163: FILE: drivers/gpu/drm/gma500/cdv_device.c:163:
+       struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0);
+       pci_write_config_dword(pci_root, 0xD4, value);

WARNING: Missing a blank line after declarations
#199: FILE: drivers/gpu/drm/gma500/cdv_device.c:199:
+               u32 pwr_sts = inl(dev_priv-&gt;apm_base + PSB_APM_STS);
+               if ((pwr_sts &amp; PSB_PWRGT_GFX_MASK) == 0)

ERROR: code indent should use tabs where possible
#404: FILE: drivers/gpu/drm/gma500/cdv_device.c:404:
+        struct drm_psb_private *dev_priv = container_of(work, struct drm_psb_private,$

WARNING: please, no spaces at the start of a line
#404: FILE: drivers/gpu/drm/gma500/cdv_device.c:404:
+        struct drm_psb_private *dev_priv = container_of(work, struct drm_psb_private,$

ERROR: code indent should use tabs where possible
#408: FILE: drivers/gpu/drm/gma500/cdv_device.c:408:
+        /* Just fire off a uevent and let userspace tell us what to do */$

ERROR: code indent should use tabs where possible
#409: FILE: drivers/gpu/drm/gma500/cdv_device.c:409:
+        drm_helper_hpd_irq_event(dev);$

WARNING: please, no spaces at the start of a line
#409: FILE: drivers/gpu/drm/gma500/cdv_device.c:409:
+        drm_helper_hpd_irq_event(dev);$

WARNING: Block comments use * on subsequent lines
#413: FILE: drivers/gpu/drm/gma500/cdv_device.c:413:
+/* The core driver has received a hotplug IRQ. We are in IRQ context
+   so extract the needed information and kick off queued processing */

WARNING: Block comments use a trailing */ on a separate line
#413: FILE: drivers/gpu/drm/gma500/cdv_device.c:413:
+   so extract the needed information and kick off queued processing */

WARNING: Missing a blank line after declarations
#418: FILE: drivers/gpu/drm/gma500/cdv_device.c:418:
+       struct drm_psb_private *dev_priv = to_drm_psb_private(dev);
+       schedule_work(&amp;dev_priv-&gt;hotplug_work);

WARNING: Missing a blank line after declarations
#427: FILE: drivers/gpu/drm/gma500/cdv_device.c:427:
+               u32 hotplug = REG_READ(PORT_HOTPLUG_EN);
+               hotplug |= HDMIB_HOTPLUG_INT_EN | HDMIC_HOTPLUG_INT_EN |

WARNING: Missing a blank line after declarations
#552: FILE: drivers/gpu/drm/gma500/cdv_device.c:552:
+       struct drm_psb_private *dev_priv = to_drm_psb_private(dev);
+       INIT_WORK(&amp;dev_priv-&gt;hotplug_work, cdv_hotplug_work_func);</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>