[radeon-alex:amd-staging-4.9 5/30] drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:782:23: warning: initialization makes integer from pointer without a cast

kbuild test robot fengguang.wu at intel.com
Tue Jan 24 13:18:41 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.9
head:   efa90756f6e447a7e4133b271e10597078fb58fc
commit: e234d654948d67d206f265906513b8f6876dc554 [5/30] drm/amd/display: Disable Modules at Runtime
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout e234d654948d67d206f265906513b8f6876dc554
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c: In function 'mod_freesync_add_stream':
   drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:219:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     int persistent_freesync_enable = 0;
     ^~~
   drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c: In function 'mod_freesync_get_state':
>> drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c:782:23: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
     unsigned int index = NULL;
                          ^

vim +782 drivers/gpu/drm/amd/amdgpu/../display/modules/freesync/freesync.c

   766			case FREESYNC_STATE_NONE:
   767				/* handle here to avoid warning */
   768				break;
   769			}
   770		}
   771	
   772		if (freesync_program_required)
   773			/* Program freesync according to current state*/
   774			set_freesync_on_streams(core_freesync, streams, num_streams);
   775	}
   776	
   777	
   778	bool mod_freesync_get_state(struct mod_freesync *mod_freesync,
   779			const struct dc_stream *stream,
   780			struct mod_freesync_params *freesync_params)
   781	{
 > 782		unsigned int index = NULL;
   783		struct core_freesync *core_freesync = NULL;
   784	
   785		if (mod_freesync == NULL)
   786			return false;
   787	
   788		core_freesync = MOD_FREESYNC_TO_CORE(mod_freesync);
   789		index = map_index_from_stream(core_freesync, stream);
   790	

---
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/gzip
Size: 56227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170124/fc32785e/attachment-0001.gz>


More information about the dri-devel mailing list