lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203041231.YHLqlCBb-lkp@intel.com>
Date:   Fri, 4 Mar 2022 13:00:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bjorn Andersson <bjorn.andersson@...aro.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [andersson:tuxsuite 9/42]
 drivers/gpu/drm/i915/display/intel_dp.c:4838:75: error: too many arguments
 to function call, expected 2, have 3

tree:   https://github.com/andersson/kernel tuxsuite
head:   0fff1d7836dde54d8a7ce2f9010fd46a40f23aee
commit: f5897d405897f092921dfbc5e00c4f3fb4172b01 [9/42] drm: Add HPD state to drm_connector_oob_hotplug_event()
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220304/202203041231.YHLqlCBb-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/andersson/kernel/commit/f5897d405897f092921dfbc5e00c4f3fb4172b01
        git remote add andersson https://github.com/andersson/kernel
        git fetch --no-tags andersson tuxsuite
        git checkout f5897d405897f092921dfbc5e00c4f3fb4172b01
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/intel_dp.c:4838:75: error: too many arguments to function call, expected 2, have 3
           if (hpd_high != test_bit(hpd_pin, &i915->hotplug.oob_hotplug_last_state, hpd_pin)) {
                           ~~~~~~~~                                                 ^~~~~~~
   include/asm-generic/bitops/instrumented-non-atomic.h:132:29: note: 'test_bit' declared here
   static __always_inline bool test_bit(long nr, const volatile unsigned long *addr)
                               ^
>> drivers/gpu/drm/i915/display/intel_dp.c:4841:64: error: use of undeclared identifier 'hpg_high'; did you mean 'hpd_high'?
                   __assign_bit(hpd_pin, &i915->hotplug.oob_hotplug_last_state, hpg_high);
                                                                                ^~~~~~~~
                                                                                hpd_high
   drivers/gpu/drm/i915/display/intel_dp.c:4833:7: note: 'hpd_high' declared here
           bool hpd_high = hpd_state == DRM_CONNECTOR_HPD_HIGH;
                ^
   2 errors generated.


vim +4838 drivers/gpu/drm/i915/display/intel_dp.c

  4827	
  4828	static void intel_dp_oob_hotplug_event(struct drm_connector *connector,
  4829					       enum drm_connector_hpd_state hpd_state)
  4830	{
  4831		struct intel_encoder *encoder = intel_attached_encoder(to_intel_connector(connector));
  4832		struct drm_i915_private *i915 = to_i915(connector->dev);
  4833		bool hpd_high = hpd_state == DRM_CONNECTOR_HPD_HIGH;
  4834		unsigned int hpd_pin = encoder->hpd_pin;
  4835		bool need_work = false;
  4836	
  4837		spin_lock_irq(&i915->irq_lock);
> 4838		if (hpd_high != test_bit(hpd_pin, &i915->hotplug.oob_hotplug_last_state, hpd_pin)) {
  4839			i915->hotplug.event_bits |= BIT(hpd_pin);
  4840	
> 4841			__assign_bit(hpd_pin, &i915->hotplug.oob_hotplug_last_state, hpg_high);
  4842			need_work = true;
  4843		}
  4844		spin_unlock_irq(&i915->irq_lock);
  4845	
  4846		if (need_work)
  4847			queue_delayed_work(system_wq, &i915->hotplug.hotplug_work, 0);
  4848	}
  4849	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ