public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/i915/display/intel_gmbus.c:144:6: sparse: sparse: symbol 'intel_gmbus_ddc_reserve_for_mipi' was not declared. Should it be static?
@ 2021-09-18  7:19 kernel test robot
  2021-09-18  7:19 ` [RFC PATCH] drm/i915/dsi: intel_gmbus_ddc_reserve_for_mipi() can be static kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-09-18  7:19 UTC (permalink / raw)
  To: Lee Shawn C; +Cc: kbuild-all, linux-kernel, 0day robot

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210916-220656/Lee-Shawn-C/drm-i915-dsi-unregister-gmbus-if-LFP-display-was-MIPI-panel/20210916-181936
head:   37a6b71c76cc745b62b40e77e7f882ff7ceeadb0
commit: 37a6b71c76cc745b62b40e77e7f882ff7ceeadb0 drm/i915/dsi: do not register gmbus if it was reserved for MIPI display
date:   2 days ago
config: x86_64-rhel-8.3-kselftests (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
        # https://github.com/0day-ci/linux/commit/37a6b71c76cc745b62b40e77e7f882ff7ceeadb0
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210916-220656/Lee-Shawn-C/drm-i915-dsi-unregister-gmbus-if-LFP-display-was-MIPI-panel/20210916-181936
        git checkout 37a6b71c76cc745b62b40e77e7f882ff7ceeadb0
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

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/i915/display/intel_gmbus.c:144:6: sparse: sparse: symbol 'intel_gmbus_ddc_reserve_for_mipi' was not declared. Should it be static?

Please review and possibly fold the followup patch.

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

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

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

* [RFC PATCH] drm/i915/dsi: intel_gmbus_ddc_reserve_for_mipi() can be static
  2021-09-18  7:19 drivers/gpu/drm/i915/display/intel_gmbus.c:144:6: sparse: sparse: symbol 'intel_gmbus_ddc_reserve_for_mipi' was not declared. Should it be static? kernel test robot
@ 2021-09-18  7:19 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-18  7:19 UTC (permalink / raw)
  To: Lee Shawn C; +Cc: kbuild-all, linux-kernel, 0day robot

drivers/gpu/drm/i915/display/intel_gmbus.c:144:6: warning: symbol 'intel_gmbus_ddc_reserve_for_mipi' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 drivers/gpu/drm/i915/display/intel_gmbus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c
index 8d2dcc4a6a533..d9bbb8bbaf02f 100644
--- a/drivers/gpu/drm/i915/display/intel_gmbus.c
+++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
@@ -141,8 +141,8 @@ bool intel_gmbus_is_valid_pin(struct drm_i915_private *dev_priv,
 	return pin < size && get_gmbus_pin(dev_priv, pin)->name;
 }
 
-bool intel_gmbus_ddc_reserve_for_mipi(struct drm_i915_private *dev_priv,
-				      unsigned int pin)
+static bool intel_gmbus_ddc_reserve_for_mipi(struct drm_i915_private *dev_priv,
+					     unsigned int pin)
 {
 	enum port port;
 
diff --git a/scripts/spdxcheck-test.sh b/scripts/spdxcheck-test.sh
old mode 100644
new mode 100755

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

end of thread, other threads:[~2021-09-18  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-18  7:19 drivers/gpu/drm/i915/display/intel_gmbus.c:144:6: sparse: sparse: symbol 'intel_gmbus_ddc_reserve_for_mipi' was not declared. Should it be static? kernel test robot
2021-09-18  7:19 ` [RFC PATCH] drm/i915/dsi: intel_gmbus_ddc_reserve_for_mipi() can be static kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox