linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eric Anholt <eric@anholt.net>,
	dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org,
	freedreno@lists.freedesktop.org, Rob Clark <robdclark@gmail.com>,
	Sean Paul <sean@poorly.run>,
	Jordan Crouse <jcrouse@codeaurora.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] drm/msm: Quiet error during failure in optional resource mappings.
Date: Sat, 4 Jul 2020 00:13:03 +0800	[thread overview]
Message-ID: <202007040017.04w9JIb6%lkp@intel.com> (raw)
In-Reply-To: <20200629181921.3019271-2-eric@anholt.net>

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

Hi Eric,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8-rc3 next-20200703]
[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/Eric-Anholt/drm-msm-Garbage-collect-unused-resource-_len-fields/20200630-022449
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm64-randconfig-r031-20200703 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project ca464639a1c9dd3944eb055ffd2796e8c2e7639f)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/msm_drv.c:123:15: warning: no previous prototype for function '_msm_ioremap' [-Wmissing-prototypes]
   void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name,
                 ^
   drivers/gpu/drm/msm/msm_drv.c:123:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name,
   ^
   static 
   1 warning generated.

vim +/_msm_ioremap +123 drivers/gpu/drm/msm/msm_drv.c

   122	
 > 123	void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name,
   124				   const char *dbgname, bool quiet)
   125	{
   126		struct resource *res;
   127		unsigned long size;
   128		void __iomem *ptr;
   129	
   130		if (name)
   131			res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
   132		else
   133			res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   134	
   135		if (!res) {
   136			if (!quiet)
   137				DRM_DEV_ERROR(&pdev->dev, "failed to get memory resource: %s\n", name);
   138			return ERR_PTR(-EINVAL);
   139		}
   140	
   141		size = resource_size(res);
   142	
   143		ptr = devm_ioremap(&pdev->dev, res->start, size);
   144		if (!ptr) {
   145			if (!quiet)
   146				DRM_DEV_ERROR(&pdev->dev, "failed to ioremap: %s\n", name);
   147			return ERR_PTR(-ENOMEM);
   148		}
   149	
   150		if (reglog)
   151			printk(KERN_DEBUG "IO:region %s %p %08lx\n", dbgname, ptr, size);
   152	
   153		return ptr;
   154	}
   155	

---
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: 35556 bytes --]

      parent reply	other threads:[~2020-07-03 16:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 18:19 [PATCH 1/2] drm/msm: Garbage collect unused resource _len fields Eric Anholt
2020-06-29 18:19 ` [PATCH 2/2] drm/msm: Quiet error during failure in optional resource mappings Eric Anholt
2020-06-29 19:57   ` Rob Clark
2020-07-03 16:13   ` kernel test robot [this message]

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=202007040017.04w9JIb6%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eric@anholt.net \
    --cc=freedreno@lists.freedesktop.org \
    --cc=jcrouse@codeaurora.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    /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;
as well as URLs for NNTP newsgroup(s).