mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
drm/amd: append missing includes
This fixes warnings caused by global functions lacking prototypes:, such as:
warning: no previous prototype for 'dcn303_hw_sequencer_construct'
[-Wmissing-prototypes]
12 | void dcn303_hw_sequencer_construct(struct dc *dc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
warning: no previous prototype for ‘amdgpu_has_atpx’
[-Wmissing-prototypes]
76 | bool amdgpu_has_atpx(void) {
| ^~~~~~~~~~~~~~~
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Isabella Basso <isabbasso@riseup.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ded331a071
commit
64cf26f04a
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/pci.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include "amdgpu.h"
|
||||
#include "amd_acpi.h"
|
||||
|
||||
#define AMDGPU_PX_QUIRK_FORCE_ATPX (1 << 0)
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
#include "reg_helper.h"
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include "rv1_clk_mgr_vbios_smu.h"
|
||||
|
||||
#define MAX_INSTANCE 5
|
||||
#define MAX_SEGMENT 5
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@
|
|||
#include "mp/mp_12_0_0_offset.h"
|
||||
#include "mp/mp_12_0_0_sh_mask.h"
|
||||
|
||||
#include "rn_clk_mgr_vbios_smu.h"
|
||||
|
||||
#define REG(reg_name) \
|
||||
(MP0_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@
|
|||
|
||||
#include "dcn10/dcn10_hw_sequencer.h"
|
||||
|
||||
#include "dce110_hw_sequencer.h"
|
||||
|
||||
#define GAMMA_HW_POINTS_NUM 256
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@
|
|||
#include "dcn10/dcn10_hw_sequencer.h"
|
||||
#include "dcn20_hwseq.h"
|
||||
|
||||
#include "dcn20_init.h"
|
||||
|
||||
static const struct hw_sequencer_funcs dcn20_funcs = {
|
||||
.program_gamut_remap = dcn10_program_gamut_remap,
|
||||
.init_hw = dcn10_init_hw,
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@
|
|||
#include "dcn20/dcn20_hwseq.h"
|
||||
#include "dcn21_hwseq.h"
|
||||
|
||||
#include "dcn21_init.h"
|
||||
|
||||
static const struct hw_sequencer_funcs dcn21_funcs = {
|
||||
.program_gamut_remap = dcn10_program_gamut_remap,
|
||||
.init_hw = dcn10_init_hw,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
#include "dcn21/dcn21_hwseq.h"
|
||||
#include "dcn30_hwseq.h"
|
||||
|
||||
#include "dcn30_init.h"
|
||||
|
||||
static const struct hw_sequencer_funcs dcn30_funcs = {
|
||||
.program_gamut_remap = dcn10_program_gamut_remap,
|
||||
.init_hw = dcn30_init_hw,
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@
|
|||
#include "dcn30/dcn30_hwseq.h"
|
||||
#include "dcn301_hwseq.h"
|
||||
|
||||
#include "dcn301_init.h"
|
||||
|
||||
static const struct hw_sequencer_funcs dcn301_funcs = {
|
||||
.program_gamut_remap = dcn10_program_gamut_remap,
|
||||
.init_hw = dcn10_init_hw,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
#include "dc.h"
|
||||
|
||||
#include "dcn302_init.h"
|
||||
|
||||
void dcn302_hw_sequencer_construct(struct dc *dc)
|
||||
{
|
||||
dcn30_hw_sequencer_construct(dc);
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
#include "dcn30/dcn30_init.h"
|
||||
#include "dc.h"
|
||||
|
||||
#include "dcn303_init.h"
|
||||
|
||||
void dcn303_hw_sequencer_construct(struct dc *dc)
|
||||
{
|
||||
dcn30_hw_sequencer_construct(dc);
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
#include "dcn301/dcn301_hwseq.h"
|
||||
#include "dcn31/dcn31_hwseq.h"
|
||||
|
||||
#include "dcn31_init.h"
|
||||
|
||||
static const struct hw_sequencer_funcs dcn31_funcs = {
|
||||
.program_gamut_remap = dcn10_program_gamut_remap,
|
||||
.init_hw = dcn31_init_hw,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user