[radeon-alex:amd-staging-4.7 1/1127] drivers/dma-buf/sync_file.c:85:60: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64 {aka long long unsigned int}'

kbuild test robot fengguang.wu at intel.com
Tue Aug 16 19:27:52 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.7
head:   10423439fa96a45bea44c8a1a237cf78ea898df2
commit: d23f001fa55c71c5514b9f2b0e55257fa4ca867d [1/1127] dma-buf/fence: make fence context 64 bit v2
config: i386-randconfig-s0-201633 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout d23f001fa55c71c5514b9f2b0e55257fa4ca867d
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/dma-buf/sync_file.c: In function 'sync_file_create':
>> drivers/dma-buf/sync_file.c:85:60: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64 {aka long long unsigned int}' [-Wformat=]
     snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d",
                                                               ^

vim +85 drivers/dma-buf/sync_file.c

d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  69   * @fence:	fence to add to the sync_fence
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  70   *
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  71   * Creates a sync_file containg @fence. Once this is called, the sync_file
c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  72   * takes ownership of @fence. The sync_file can be released with
c240a714 drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  73   * fput(sync_file->file). Returns the sync_file or NULL in case of error.
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  74   */
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  75  struct sync_file *sync_file_create(struct fence *fence)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  76  {
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  77  	struct sync_file *sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  78  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  79  	sync_file = sync_file_alloc(offsetof(struct sync_file, cbs[1]));
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  80  	if (!sync_file)
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  81  		return NULL;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  82  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  83  	sync_file->num_fences = 1;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  84  	atomic_set(&sync_file->status, 1);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28 @85  	snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d",
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  86  		 fence->ops->get_driver_name(fence),
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  87  		 fence->ops->get_timeline_name(fence), fence->context,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  88  		 fence->seqno);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  89  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  90  	sync_file->cbs[0].fence = fence;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  91  	sync_file->cbs[0].sync_file = sync_file;
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  92  	if (fence_add_callback(fence, &sync_file->cbs[0].cb,
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  93  			       fence_check_cb_func))

:::::: The code at line 85 was first introduced by commit
:::::: d4cab38e153d62ecd502645390c0289c1b8337df staging/android: prepare sync_file for de-staging

:::::: TO: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
:::::: CC: Greg Kroah-Hartman <gregkh at linuxfoundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 31352 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160817/c38fe047/attachment-0001.obj>


More information about the dri-devel mailing list