[radeon-alex:amd-staging-4.7 1/1127] drivers/dma-buf/sync_file.c:88:4: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-i1-201633 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
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:88:4: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64' [-Wformat=]
       fence->seqno);
       ^

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

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))
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  94  		atomic_dec(&sync_file->status);
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  95  
d4cab38e drivers/staging/android/sync_file.c Gustavo Padovan 2016-04-28  96  	return sync_file;

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

:::::: TO: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux