mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com>
Cc: kbuild-all@01.org,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"arve@android.com" <arve@android.com>,
	"riandrews@android.com" <riandrews@android.com>,
	"robin.murphy@arm.com" <robin.murphy@arm.com>,
	"tixy@linaro.org" <tixy@linaro.org>,
	"sriram@marirs.net.in" <sriram@marirs.net.in>,
	"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: android: ion: use the manged version of DMA memory allocation
Date: Wed, 3 Feb 2016 13:49:54 +0800	[thread overview]
Message-ID: <201602031317.T5nvNLln%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160203052541.GA24772@IND12F0122>

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

Hi Hari,

[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.5-rc2 next-20160202]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Gujulan-Elango-Hari-Prasath-H/staging-android-ion-use-the-manged-version-of-DMA-memory-allocation/20160203-132744
config: x86_64-randconfig-x009-201605 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/staging/android/ion/ion_cma_heap.c: In function 'ion_cma_free':
>> drivers/staging/android/ion/ion_cma_heap.c:94:17: warning: unused variable 'dev' [-Wunused-variable]
     struct device *dev = cma_heap->dev;
                    ^

vim +/dev +94 drivers/staging/android/ion/ion_cma_heap.c

349c9e13 Benjamin Gaignard 2013-12-13   78  		goto free_table;
349c9e13 Benjamin Gaignard 2013-12-13   79  	/* keep this for memory release */
349c9e13 Benjamin Gaignard 2013-12-13   80  	buffer->priv_virt = info;
349c9e13 Benjamin Gaignard 2013-12-13   81  	dev_dbg(dev, "Allocate buffer %p\n", buffer);
349c9e13 Benjamin Gaignard 2013-12-13   82  	return 0;
349c9e13 Benjamin Gaignard 2013-12-13   83  
349c9e13 Benjamin Gaignard 2013-12-13   84  free_table:
349c9e13 Benjamin Gaignard 2013-12-13   85  	kfree(info->table);
349c9e13 Benjamin Gaignard 2013-12-13   86  err:
349c9e13 Benjamin Gaignard 2013-12-13   87  	kfree(info);
349c9e13 Benjamin Gaignard 2013-12-13   88  	return ION_CMA_ALLOCATE_FAILED;
349c9e13 Benjamin Gaignard 2013-12-13   89  }
349c9e13 Benjamin Gaignard 2013-12-13   90  
349c9e13 Benjamin Gaignard 2013-12-13   91  static void ion_cma_free(struct ion_buffer *buffer)
349c9e13 Benjamin Gaignard 2013-12-13   92  {
349c9e13 Benjamin Gaignard 2013-12-13   93  	struct ion_cma_heap *cma_heap = to_cma_heap(buffer->heap);
349c9e13 Benjamin Gaignard 2013-12-13  @94  	struct device *dev = cma_heap->dev;
349c9e13 Benjamin Gaignard 2013-12-13   95  	struct ion_cma_buffer_info *info = buffer->priv_virt;
349c9e13 Benjamin Gaignard 2013-12-13   96  
349c9e13 Benjamin Gaignard 2013-12-13   97  	/* release sg table */
349c9e13 Benjamin Gaignard 2013-12-13   98  	sg_free_table(info->table);
349c9e13 Benjamin Gaignard 2013-12-13   99  	kfree(info->table);
349c9e13 Benjamin Gaignard 2013-12-13  100  	kfree(info);
349c9e13 Benjamin Gaignard 2013-12-13  101  }
349c9e13 Benjamin Gaignard 2013-12-13  102  

:::::: The code at line 94 was first introduced by commit
:::::: 349c9e13855109df99c5205a4e8d53d9fa169490 gpu: ion: add CMA heap

:::::: TO: Benjamin Gaignard <benjamin.gaignard@linaro.org>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 25532 bytes --]

      reply	other threads:[~2016-02-03  5:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03  5:24 Gujulan Elango, Hari Prasath (H.)
2016-02-03  5:49 ` kbuild 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=201602031317.T5nvNLln%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=arve@android.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hgujulan@visteon.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riandrews@android.com \
    --cc=robin.murphy@arm.com \
    --cc=sriram@marirs.net.in \
    --cc=tixy@linaro.org \
    /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®