Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6024750ybe; Tue, 17 Sep 2019 18:21:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs/MfMtzDm88EfFDQ4RUR/H1R9F0vV6nzSaWg+JwF5HeZhveQXTkW/CipbiBMILPbf227x X-Received: by 2002:a17:906:770d:: with SMTP id q13mr7409374ejm.260.1568769679497; Tue, 17 Sep 2019 18:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568769679; cv=none; d=google.com; s=arc-20160816; b=FhOmdgf4hmBrcx3RrduFua/oR2yxUuY51LiUSveuSpCZ2M4GWcopOJAbHLjCPTmXjI E1e7S3Vles79ZAEfTgUe57SlvfEYAcJ2YiBYWDNqwDTLKRCetC+pk13T/vHKZ4lCjNNi 4465spUcqjwpL7mxwXvlClLYfZjNdmP5cxzmXehymiOActSG8ewwUA3H8pXM+c14DH3K UnG9RCh7xPvG7Mwh57EIkNrvinc2z9S3ibEiGqMxpsmk2mz2gZM4hZksP3RlBfO26Er/ imTEBoh3xkoWl+ulNKXNroE72ITcO9hfFmAlfrWrcB82l0kiiX2XgUg0nT+5rHiVx7/f plPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=f9Ic2nh0M3eSfguu2IBsLH1I2cap5zIzcYSHxECOH6g=; b=nzZ4023EmzAE/gAG6DAhu24XpbNyYFubiQRuq2N9WPi9KDwPKVE5XzU3xifM1yUIp8 CJTcGIMszPk3jM4eYl1d5eWJ8femgzzIBFSI+HseJHJp68iPecxkbBi8OiNDMkyC8o7R ki/JBWcbu5ZMLTeiXUdjz2QjVgQE6c9Rd31+mmRcX7Tt0dqCtu6OeDurM0D+VxMSCIn1 voutg6boyrXQ4LqgLv6jsU2wMEWrZFq9ozQ1YR0WLCVohaNDWaH0zYy1h6PJ1TjiCLCy FDgFy4WfjCgF6aYKvWTEg8rOOcYX4RciLB9TIdf6D5OK3rLelYscTGjYe4oGUczLanN5 aB/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="at/Rzl+N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si1984176eje.85.2019.09.17.18.20.43; Tue, 17 Sep 2019 18:21:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="at/Rzl+N"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbfIQN6t (ORCPT + 99 others); Tue, 17 Sep 2019 09:58:49 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44387 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbfIQN6s (ORCPT ); Tue, 17 Sep 2019 09:58:48 -0400 Received: by mail-ot1-f66.google.com with SMTP id 21so3082644otj.11 for ; Tue, 17 Sep 2019 06:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=f9Ic2nh0M3eSfguu2IBsLH1I2cap5zIzcYSHxECOH6g=; b=at/Rzl+NdRusFIQ8yF3troxz7j2whbeKM80wozcNr+jELmelX6Th+zVmVgj58lN2vE pVHUBCTZfN+m8IoZndVKmYTgBAPqMbGg2CjCTIGu/k7ePJRw/uDX0qqCBvW/deSUvVB9 bcWRmnKB6bvMEkGj47IIA3EVwqeO1aqccscV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=f9Ic2nh0M3eSfguu2IBsLH1I2cap5zIzcYSHxECOH6g=; b=T4tys1tW62IEtzq7ucei4MRABkB3g2IsGN6cVK/up10tv+QQLGmFbADjSep4P69gLb LSW807i5EFodJ+epWqXQ+PgyVnWC7dLa4FhFL/bCxqW7AivUUcDrY33jyeLzWRBET/Jb C6aCB8lbk1DKu/ZLw78tPFdKO4kzqPkBwGfY4cmvGiWbOXY2m810WQ3EEL4qxter1A+k sYRluQGdUj19JSpxNBNCrz3lyotmpehJeA5VmY7/mLvuolY2c1v16RKLeoKoHeWJtAbu i/dsLjMM5SqaSrS0D2z9TNia0PygtDrfkOtl6SWoJNkzgkt5Lh06wRprv1B+VKhBiETi kmOA== X-Gm-Message-State: APjAAAVwOLfb4AbM7hsKM1vRSq3JWBuuxKrriMz0N6iJFV793eM6QC/u YToDSLOUM1QfvpZuIcZUmkCGnJ7m991NZ2VlPowEcQ== X-Received: by 2002:a05:6830:10d8:: with SMTP id z24mr2946326oto.281.1568728727367; Tue, 17 Sep 2019 06:58:47 -0700 (PDT) MIME-Version: 1.0 References: <20190909101254.24191-1-benjamin.gaignard@st.com> <20190917124635.GP3958@phenom.ffwll.local> In-Reply-To: From: Daniel Vetter Date: Tue, 17 Sep 2019 15:58:35 +0200 Message-ID: Subject: Re: [PATCH] drm: sti: fix W=1 warnings To: Benjamin Gaignard Cc: Dave Airlie , Maarten Lankhorst , Sean Paul , Maxime Ripard , Benjamin Gaignard , David Airlie , ML dri-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 3:40 PM Benjamin Gaignard wrote: > > Le mar. 17 sept. 2019 =C3=A0 14:46, Daniel Vetter a =C3= =A9crit : > > > > On Mon, Sep 16, 2019 at 03:16:49PM +0200, Benjamin Gaignard wrote: > > > Le lun. 9 sept. 2019 =C3=A0 12:29, Benjamin Gaignard > > > a =C3=A9crit : > > > > > > > > Fix warnings when W=3D1. > > > > No code changes, only clean up in sti internal structures and funct= ions > > > > descriptions. > > > > > > > > Signed-off-by: Benjamin Gaignard > > > > > > For my own reference, applied on drm-misc-next > > > > Dude seriously no: > > > > Signed-off-by: Benjamin Gaignard > > Reviewed-by: Benjamin Gaignard > > Signed-off-by: Benjamin Gaignard > > Link: https://patchwork.freedesktop.org/patch/msgid/20190909101254.2419= 1-1-benjamin.gaignard@st.com > > > > Self-review ain't ok in drm-misc, you need someone to > > ack/double-check/have a look. And given that you had to fabricate your > > self-review yourself somehow (the tools really don't do that for you) t= his > > doesn't look like an accident. > > > > Adding other maintainers. > > -Daniel > > > > All my apologies, I have taken a shortcut for this STI patch... > I will ask to Philippe or Yannick to formally review STI related > patches on mailing and not only on internal one. Note we don't require full formal review, that's just overkill. But a quick ack shouldn't bee too much for any driver with more than 1 person working on it. Also pls no internal review, because review is about learning and sharing knowledge, and code correctness only secondary. If you do that behind closed doors you forgoe most of the benefits. -Daniel > > Benjamin > > > > > > > > --- > > > > drivers/gpu/drm/sti/sti_cursor.c | 2 +- > > > > drivers/gpu/drm/sti/sti_dvo.c | 2 +- > > > > drivers/gpu/drm/sti/sti_gdp.c | 2 +- > > > > drivers/gpu/drm/sti/sti_hda.c | 2 +- > > > > drivers/gpu/drm/sti/sti_hdmi.c | 4 ++-- > > > > drivers/gpu/drm/sti/sti_tvout.c | 10 +++++----- > > > > drivers/gpu/drm/sti/sti_vtg.c | 2 +- > > > > 7 files changed, 12 insertions(+), 12 deletions(-) > > > > > > > > diff --git a/drivers/gpu/drm/sti/sti_cursor.c b/drivers/gpu/drm/sti= /sti_cursor.c > > > > index 0bf7c332cf0b..ea64c1dcaf63 100644 > > > > --- a/drivers/gpu/drm/sti/sti_cursor.c > > > > +++ b/drivers/gpu/drm/sti/sti_cursor.c > > > > @@ -47,7 +47,7 @@ struct dma_pixmap { > > > > void *base; > > > > }; > > > > > > > > -/** > > > > +/* > > > > * STI Cursor structure > > > > * > > > > * @sti_plane: sti_plane structure > > > > diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/st= i_dvo.c > > > > index 9e6d5d8b7030..c33d0aaee82b 100644 > > > > --- a/drivers/gpu/drm/sti/sti_dvo.c > > > > +++ b/drivers/gpu/drm/sti/sti_dvo.c > > > > @@ -65,7 +65,7 @@ static struct dvo_config rgb_24bit_de_cfg =3D { > > > > .awg_fwgen_fct =3D sti_awg_generate_code_data_enable_mode, > > > > }; > > > > > > > > -/** > > > > +/* > > > > * STI digital video output structure > > > > * > > > > * @dev: driver device > > > > diff --git a/drivers/gpu/drm/sti/sti_gdp.c b/drivers/gpu/drm/sti/st= i_gdp.c > > > > index 8e926cd6a1c8..11595c748844 100644 > > > > --- a/drivers/gpu/drm/sti/sti_gdp.c > > > > +++ b/drivers/gpu/drm/sti/sti_gdp.c > > > > @@ -103,7 +103,7 @@ struct sti_gdp_node_list { > > > > dma_addr_t btm_field_paddr; > > > > }; > > > > > > > > -/** > > > > +/* > > > > * STI GDP structure > > > > * > > > > * @sti_plane: sti_plane structure > > > > diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/st= i_hda.c > > > > index 94e404f13234..3512a94a0fca 100644 > > > > --- a/drivers/gpu/drm/sti/sti_hda.c > > > > +++ b/drivers/gpu/drm/sti/sti_hda.c > > > > @@ -230,7 +230,7 @@ static const struct sti_hda_video_config hda_su= pported_modes[] =3D { > > > > AWGi_720x480p_60, NN_720x480p_60, VID_ED} > > > > }; > > > > > > > > -/** > > > > +/* > > > > * STI hd analog structure > > > > * > > > > * @dev: driver device > > > > diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/s= ti_hdmi.c > > > > index f03d617edc4c..87e34f7a6cfe 100644 > > > > --- a/drivers/gpu/drm/sti/sti_hdmi.c > > > > +++ b/drivers/gpu/drm/sti/sti_hdmi.c > > > > @@ -333,7 +333,6 @@ static void hdmi_infoframe_reset(struct sti_hdm= i *hdmi, > > > > * Helper to concatenate infoframe in 32 bits word > > > > * > > > > * @ptr: pointer on the hdmi internal structure > > > > - * @data: infoframe to write > > > > * @size: size to write > > > > */ > > > > static inline unsigned int hdmi_infoframe_subpack(const u8 *ptr, s= ize_t size) > > > > @@ -543,13 +542,14 @@ static int hdmi_vendor_infoframe_config(struc= t sti_hdmi *hdmi) > > > > return 0; > > > > } > > > > > > > > +#define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */ > > > > + > > > > /** > > > > * Software reset of the hdmi subsystem > > > > * > > > > * @hdmi: pointer on the hdmi internal structure > > > > * > > > > */ > > > > -#define HDMI_TIMEOUT_SWRESET 100 /*milliseconds */ > > > > static void hdmi_swreset(struct sti_hdmi *hdmi) > > > > { > > > > u32 val; > > > > diff --git a/drivers/gpu/drm/sti/sti_tvout.c b/drivers/gpu/drm/sti/= sti_tvout.c > > > > index e1b3c8cb7287..b1fc77b150da 100644 > > > > --- a/drivers/gpu/drm/sti/sti_tvout.c > > > > +++ b/drivers/gpu/drm/sti/sti_tvout.c > > > > @@ -157,9 +157,9 @@ static void tvout_write(struct sti_tvout *tvout= , u32 val, int offset) > > > > * > > > > * @tvout: tvout structure > > > > * @reg: register to set > > > > - * @cr_r: > > > > - * @y_g: > > > > - * @cb_b: > > > > + * @cr_r: red chroma or red order > > > > + * @y_g: y or green order > > > > + * @cb_b: blue chroma or blue order > > > > */ > > > > static void tvout_vip_set_color_order(struct sti_tvout *tvout, int= reg, > > > > u32 cr_r, u32 y_g, u32 cb_b) > > > > @@ -214,7 +214,7 @@ static void tvout_vip_set_rnd(struct sti_tvout = *tvout, int reg, u32 rnd) > > > > * @tvout: tvout structure > > > > * @reg: register to set > > > > * @main_path: main or auxiliary path > > > > - * @sel_input: selected_input (main/aux + conv) > > > > + * @video_out: selected_input (main/aux + conv) > > > > */ > > > > static void tvout_vip_set_sel_input(struct sti_tvout *tvout, > > > > int reg, > > > > @@ -251,7 +251,7 @@ static void tvout_vip_set_sel_input(struct sti_= tvout *tvout, > > > > * > > > > * @tvout: tvout structure > > > > * @reg: register to set > > > > - * @in_vid_signed: used video input format > > > > + * @in_vid_fmt: used video input format > > > > */ > > > > static void tvout_vip_set_in_vid_fmt(struct sti_tvout *tvout, > > > > int reg, u32 in_vid_fmt) > > > > diff --git a/drivers/gpu/drm/sti/sti_vtg.c b/drivers/gpu/drm/sti/st= i_vtg.c > > > > index ef4009f11396..0b17ac8a3faa 100644 > > > > --- a/drivers/gpu/drm/sti/sti_vtg.c > > > > +++ b/drivers/gpu/drm/sti/sti_vtg.c > > > > @@ -121,7 +121,7 @@ struct sti_vtg_sync_params { > > > > u32 vsync_off_bot; > > > > }; > > > > > > > > -/** > > > > +/* > > > > * STI VTG structure > > > > * > > > > * @regs: register mapping > > > > -- > > > > 2.15.0 > > > > > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch --=20 Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch