mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sui Jingfeng <15330273260@189.cn>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Roland Scheidegger <sroland@vmware.com>,
	Zack Rusin <zackr@vmware.com>,
	Christian Gmeiner <christian.gmeiner@gmail.com>,
	David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	Rob Herring <robh+dt@kernel.org>,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Dan Carpenter <error27@gmail.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>,
	Sam Ravnborg <sam@ravnborg.org>,
	"David S . Miller" <davem@davemloft.net>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Lucas Stach <l.stach@pengutronix.de>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Ilia Mirkin <imirkin@alum.mit.edu>,
	Qing Zhang <zhangqing@loongson.cn>,
	suijingfeng <suijingfeng@loongson.cn>
Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org,
	linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v14 5/6] drm/loongson: add drm driver for loongson display controller
Date: Sat, 2 Apr 2022 13:49:02 +0800	[thread overview]
Message-ID: <202204021321.5sYDUPbx-lkp@intel.com> (raw)
In-Reply-To: <20220401162251.1665081-6-15330273260@189.cn>

Hi Sui,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on robh/for-next linus/master v5.17 next-20220401]
[cannot apply to mripard/sunxi/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Sui-Jingfeng/drm-loongson-add-drm-driver-for-loongson-display-controller/20220402-003557
base:   git://anongit.freedesktop.org/drm/drm drm-next
config: sparc-randconfig-r012-20220402 (https://download.01.org/0day-ci/archive/20220402/202204021321.5sYDUPbx-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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/intel-lab-lkp/linux/commit/b52cc469ed1a99a0803faef886f81607b1f7f5c0
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Sui-Jingfeng/drm-loongson-add-drm-driver-for-loongson-display-controller/20220402-003557
        git checkout b52cc469ed1a99a0803faef886f81607b1f7f5c0
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/gpu/drm/loongson/

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/loongson/lsdc_i2c.c: In function 'ls7a_gpio_i2c_set':
>> drivers/gpu/drm/loongson/lsdc_i2c.c:37:23: error: implicit declaration of function 'readb' [-Werror=implicit-function-declaration]
      37 |                 val = readb(li2c->dir_reg);
         |                       ^~~~~
>> drivers/gpu/drm/loongson/lsdc_i2c.c:39:17: error: implicit declaration of function 'writeb' [-Werror=implicit-function-declaration]
      39 |                 writeb(val, li2c->dir_reg);
         |                 ^~~~~~
   cc1: some warnings being treated as errors


vim +/readb +37 drivers/gpu/drm/loongson/lsdc_i2c.c

    19	
    20	/*
    21	 * ls7a_gpio_i2c_set - set the state of a gpio pin, either high or low.
    22	 * @mask: gpio pin mask indicate which pin to set
    23	 */
    24	static void ls7a_gpio_i2c_set(struct lsdc_i2c * const li2c, int mask, int state)
    25	{
    26		unsigned long flags;
    27		u8 val;
    28	
    29		spin_lock_irqsave(&li2c->reglock, flags);
    30	
    31		if (state) {
    32			/*
    33			 * The high state is achieved by setting the direction as
    34			 * input, because the GPIO is open drained with external
    35			 * pull up resistance.
    36			 */
  > 37			val = readb(li2c->dir_reg);
    38			val |= mask;
  > 39			writeb(val, li2c->dir_reg);
    40		} else {
    41			/* First, set this pin as output */
    42			val = readb(li2c->dir_reg);
    43			val &= ~mask;
    44			writeb(val, li2c->dir_reg);
    45	
    46			/* Then, set the state to it */
    47			val = readb(li2c->dat_reg);
    48			val &= ~mask;
    49			writeb(val, li2c->dat_reg);
    50		}
    51	
    52		spin_unlock_irqrestore(&li2c->reglock, flags);
    53	}
    54	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  reply	other threads:[~2022-04-02  5:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-01 16:22 [PATCH v14 0/6] " Sui Jingfeng
2022-04-01 16:22 ` [PATCH v14 1/6] MIPS: Loongson64: dts: update the display controller device node Sui Jingfeng
2022-04-01 16:22 ` [PATCH v14 2/6] MIPS: Loongson64: introduce board specific dts and add model property Sui Jingfeng
2022-04-01 16:22 ` [PATCH v14 3/6] dt-bindings: display: Add Loongson display controller Sui Jingfeng
2022-04-01 16:22 ` [PATCH v14 4/6] MIPS: Loongson64: defconfig: enable display bridge drivers Sui Jingfeng
2022-04-01 16:22 ` [PATCH v14 5/6] drm/loongson: add drm driver for loongson display controller Sui Jingfeng
2022-04-02  5:49   ` kernel test robot [this message]
2022-04-01 16:22 ` [PATCH v14 6/6] MAINTAINERS: add maintainers for DRM LOONGSON driver Sui Jingfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204021321.5sYDUPbx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=15330273260@189.cn \
    --cc=airlied@linux.ie \
    --cc=andrey.zhizhikin@leica-geosystems.com \
    --cc=christian.gmeiner@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=error27@gmail.com \
    --cc=imirkin@alum.mit.edu \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=krzk@kernel.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sam@ravnborg.org \
    --cc=sroland@vmware.com \
    --cc=suijingfeng@loongson.cn \
    --cc=tsbogend@alpha.franken.de \
    --cc=tzimmermann@suse.de \
    --cc=zackr@vmware.com \
    --cc=zhangqing@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®