[PATCH] drm: gma500: Drop surplus include

kernel test robot lkp at intel.com
Sat Jun 27 03:20:03 UTC 2020


Hi Linus,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8-rc2 next-20200626]
[cannot apply to drm/drm-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Linus-Walleij/drm-gma500-Drop-surplus-include/20200627-060308
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project ee3620643dfc88a178fa4ca116cf83014e4ee547)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/gma500/mdfld_dsi_output.c:452:8: error: implicit declaration of function 'gpio_request' [-Werror,-Wimplicit-function-declaration]
           ret = gpio_request(gpio, "gfx");
                 ^
>> drivers/gpu/drm/gma500/mdfld_dsi_output.c:458:8: error: implicit declaration of function 'gpio_direction_output' [-Werror,-Wimplicit-function-declaration]
           ret = gpio_direction_output(gpio, 1);
                 ^
>> drivers/gpu/drm/gma500/mdfld_dsi_output.c:464:2: error: implicit declaration of function 'gpio_get_value' [-Werror,-Wimplicit-function-declaration]
           gpio_get_value(128);
           ^
>> drivers/gpu/drm/gma500/mdfld_dsi_output.c:467:6: error: implicit declaration of function 'gpio_is_valid' [-Werror,-Wimplicit-function-declaration]
           if (gpio_is_valid(gpio))
               ^
   drivers/gpu/drm/gma500/mdfld_dsi_output.c:467:6: note: did you mean 'uuid_is_valid'?
   include/linux/uuid.h:92:19: note: 'uuid_is_valid' declared here
   bool __must_check uuid_is_valid(const char *uuid);
                     ^
>> drivers/gpu/drm/gma500/mdfld_dsi_output.c:468:3: error: implicit declaration of function 'gpio_free' [-Werror,-Wimplicit-function-declaration]
                   gpio_free(gpio);
                   ^
   5 errors generated.

vim +/gpio_request +452 drivers/gpu/drm/gma500/mdfld_dsi_output.c

026abc333205c1 Kirill A. Shutemov 2012-03-08  434  
026abc333205c1 Kirill A. Shutemov 2012-03-08  435  int mdfld_dsi_panel_reset(int pipe)
026abc333205c1 Kirill A. Shutemov 2012-03-08  436  {
026abc333205c1 Kirill A. Shutemov 2012-03-08  437  	unsigned gpio;
026abc333205c1 Kirill A. Shutemov 2012-03-08  438  	int ret = 0;
026abc333205c1 Kirill A. Shutemov 2012-03-08  439  
026abc333205c1 Kirill A. Shutemov 2012-03-08  440  	switch (pipe) {
026abc333205c1 Kirill A. Shutemov 2012-03-08  441  	case 0:
026abc333205c1 Kirill A. Shutemov 2012-03-08  442  		gpio = 128;
026abc333205c1 Kirill A. Shutemov 2012-03-08  443  		break;
026abc333205c1 Kirill A. Shutemov 2012-03-08  444  	case 2:
026abc333205c1 Kirill A. Shutemov 2012-03-08  445  		gpio = 34;
026abc333205c1 Kirill A. Shutemov 2012-03-08  446  		break;
026abc333205c1 Kirill A. Shutemov 2012-03-08  447  	default:
026abc333205c1 Kirill A. Shutemov 2012-03-08  448  		DRM_ERROR("Invalid output\n");
026abc333205c1 Kirill A. Shutemov 2012-03-08  449  		return -EINVAL;
026abc333205c1 Kirill A. Shutemov 2012-03-08  450  	}
026abc333205c1 Kirill A. Shutemov 2012-03-08  451  
026abc333205c1 Kirill A. Shutemov 2012-03-08 @452  	ret = gpio_request(gpio, "gfx");
026abc333205c1 Kirill A. Shutemov 2012-03-08  453  	if (ret) {
026abc333205c1 Kirill A. Shutemov 2012-03-08  454  		DRM_ERROR("gpio_rqueset failed\n");
026abc333205c1 Kirill A. Shutemov 2012-03-08  455  		return ret;
026abc333205c1 Kirill A. Shutemov 2012-03-08  456  	}
026abc333205c1 Kirill A. Shutemov 2012-03-08  457  
026abc333205c1 Kirill A. Shutemov 2012-03-08 @458  	ret = gpio_direction_output(gpio, 1);
026abc333205c1 Kirill A. Shutemov 2012-03-08  459  	if (ret) {
026abc333205c1 Kirill A. Shutemov 2012-03-08  460  		DRM_ERROR("gpio_direction_output failed\n");
026abc333205c1 Kirill A. Shutemov 2012-03-08  461  		goto gpio_error;
026abc333205c1 Kirill A. Shutemov 2012-03-08  462  	}
026abc333205c1 Kirill A. Shutemov 2012-03-08  463  
026abc333205c1 Kirill A. Shutemov 2012-03-08 @464  	gpio_get_value(128);
026abc333205c1 Kirill A. Shutemov 2012-03-08  465  
026abc333205c1 Kirill A. Shutemov 2012-03-08  466  gpio_error:
026abc333205c1 Kirill A. Shutemov 2012-03-08 @467  	if (gpio_is_valid(gpio))
026abc333205c1 Kirill A. Shutemov 2012-03-08 @468  		gpio_free(gpio);
026abc333205c1 Kirill A. Shutemov 2012-03-08  469  
026abc333205c1 Kirill A. Shutemov 2012-03-08  470  	return ret;
026abc333205c1 Kirill A. Shutemov 2012-03-08  471  }
026abc333205c1 Kirill A. Shutemov 2012-03-08  472  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 75321 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200627/24d7f2e1/attachment-0001.gz>


More information about the dri-devel mailing list