Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static

Fixes the following W=1 kernel build warning(s):

drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:342:6: warning: no previous prototype for ‘dce_i2c_sw_engine_set_speed’ [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:356:6: warning: no previous prototype for ‘dce_i2c_sw_engine_acquire_engine’ [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:400:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_channel_request’ [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:443:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_payload’ [-Wmissing-prototypes]

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lee Jones and committed by
Alex Deucher
d56631c5 e57b7ed4

+5 -4
+5 -4
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c
··· 339 339 return false; 340 340 } 341 341 342 - void dce_i2c_sw_engine_set_speed( 342 + static void dce_i2c_sw_engine_set_speed( 343 343 struct dce_i2c_sw *engine, 344 344 uint32_t speed) 345 345 { ··· 353 353 engine->clock_delay = 12; 354 354 } 355 355 356 - bool dce_i2c_sw_engine_acquire_engine( 356 + static bool dce_i2c_sw_engine_acquire_engine( 357 357 struct dce_i2c_sw *engine, 358 358 struct ddc *ddc) 359 359 { ··· 397 397 398 398 399 399 400 - void dce_i2c_sw_engine_submit_channel_request( 400 + static void dce_i2c_sw_engine_submit_channel_request( 401 401 struct dce_i2c_sw *engine, 402 402 struct i2c_request_transaction_data *req) 403 403 { ··· 440 440 I2C_CHANNEL_OPERATION_SUCCEEDED : 441 441 I2C_CHANNEL_OPERATION_FAILED; 442 442 } 443 - bool dce_i2c_sw_engine_submit_payload( 443 + 444 + static bool dce_i2c_sw_engine_submit_payload( 444 445 struct dce_i2c_sw *engine, 445 446 struct i2c_payload *payload, 446 447 bool middle_of_transaction)