Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4474751imm; Mon, 17 Sep 2018 14:46:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaiEOvUnpKOg+v3pMwSGCJT4VTOhvoawRfSB0AYdWJbRXisdA4Cryw6ExbUzbBM8GlUWJFf X-Received: by 2002:a63:5261:: with SMTP id s33-v6mr24970026pgl.313.1537220779562; Mon, 17 Sep 2018 14:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537220779; cv=none; d=google.com; s=arc-20160816; b=IrbTZFnqnhUNe5+tEI64RakI5bEZF418vjnZlXXJVxeOMENPnBdcRzQggZvmlKfS/9 uRWWDgpHCPnuplhUJ4uxG6LPAhmvHQjMeYEltiIUHxfecvA5qpyxi2mbmpuvy/Jv5On0 IMwYt4QGre7D48P25eFFoB+MfpQAMccyzlu3b7kaME7tebLy6nIY6hjb5X0RfVHaf16M IOg8L7S3/XaFsPtpZvAzxMwAWju9qwkBXiQ1JRCEr4j0HXtbvxalL/IvSIfjowR1Su4H H9Wt65wlFZ00K86XCKuH1XPJOkTfm7ISo1k25jNG+frW8piEnFWdZWiZgL2W2VAs8ywp jSwQ== 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=si9mQzR+wtfu0/5r6hUBAxdZUnNfo5vSMKmPD7leZy4=; b=AWrfEh7EJliWeokFm8IUm7ZIVPhAbdFQi4QKtw9ONoukb+pxj/wp40wMtKQCyeoHvt R5WXa/y1NtOm0C1GfWtjAAKnba+RwPD0awcym4znYu5sIS8yV1gQj5jyM4lETB+i1V4K k2Ylr8za3nbrV1Qb0tjVpV17tpLevg/piNwm6VBxwqwfukvXn0Q1ptsk15n1zecPsXHg pbMHC0G03xan6PE1eXJQUEcaSYBpj0FcFyuUrotimO31ebWBDO5aOz3oDnlckvSKd3V8 rl6bVX/b0+lqNJ3TILP+JQJ40KdXNWTuDUYkeS5qXL/sKBfM0ZA66A3/KladDFaAG6ew ZDGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KywZbo6M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si15807676pld.402.2018.09.17.14.46.03; Mon, 17 Sep 2018 14:46: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=@gmail.com header.s=20161025 header.b=KywZbo6M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728495AbeIRDPH (ORCPT + 99 others); Mon, 17 Sep 2018 23:15:07 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37151 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728023AbeIRDPH (ORCPT ); Mon, 17 Sep 2018 23:15:07 -0400 Received: by mail-wm1-f68.google.com with SMTP id n11-v6so276897wmc.2 for ; Mon, 17 Sep 2018 14:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=si9mQzR+wtfu0/5r6hUBAxdZUnNfo5vSMKmPD7leZy4=; b=KywZbo6MV9H9G9QRPbOPFKBA9TXLw7y3DaJKjg7uwJ0MZBLGIeCntgoUuTlvb+P9gh LkPHjSCXx0H1EpFEWL0cSsvOCEZdEQpuJnsn/2lhvwmbbztJeHBPqn1nmJidxJlCzg5U nSm+MHa5fYhQhm/Wy2pI3UJjSkzNCa2Ue4JuJPfM6dzP1nDKUNL4fD9HdeqXdJrFVUkK b7So6Vmpydx5wiR7DVp+6kAmMYIFIQXMoMTAghGuo4Sd0j04ZygIiqNdd1pbxNxKzJDe JDpY8zpIC2KyYgioRIVPTnenFNkl/swgKjdae+hOQv7SBqai+adidMd4obgUyInoMc4Q HoSg== 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=si9mQzR+wtfu0/5r6hUBAxdZUnNfo5vSMKmPD7leZy4=; b=aSGAkUanqEh2968sj4p2xZF3mh9kMe8Au1b5ToQ3O+5vpnRQESg1mIyInm393gg+O7 ttEysFafCZNpO1ERRcDdSW7++4Qa3hLNog6yKnOc7ggornH1XEqHIx1x/ny4a2KSENHv M+WthILQcbeucZaMHzxSj90bSglDLa2sbmUEWoVjwehjhUtuBUWQ7Ff0ZgEeca8I8Xw2 k5Rhibh9NxQkpmxDtvSFSZd/wak/jebSJv7KgNe5xhVSvJ/ryo/Ju2tVUNh9aOY1tS69 nUFaF4Alb/yXx8XVwU63PAR6Wk09vkOWShJmuuisWTMzJNFSnt0QUG4D4eKS+uzgV7fQ lsuA== X-Gm-Message-State: APzg51BSiNwXLAgLK2ZGIORGGzZC8ntjifZiMVNDHjFSNHkoZVOJHjvT 1VsNgZ5vDAWnG2BvtmRJrHEPpf/1yqY5AruyOkQ= X-Received: by 2002:a1c:e3d5:: with SMTP id a204-v6mr6771169wmh.20.1537220755072; Mon, 17 Sep 2018 14:45:55 -0700 (PDT) MIME-Version: 1.0 References: <20180412193333.4951-1-malat@debian.org> <20180413080437.GB10330@hr-amur2> In-Reply-To: From: Alex Deucher Date: Mon, 17 Sep 2018 17:45:42 -0400 Message-ID: Subject: Re: [PATCH] drm/radeon: change function signature to pass full range To: Mathieu Malaterre Cc: Huang Rui , Chunming Zhou , Dave Airlie , LKML , amd-gfx list , Maling list - DRI developers , "Deucher, Alexander" , Christian Koenig 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 Mon, Sep 17, 2018 at 4:29 PM Mathieu Malaterre wrote: > > > > On Fri, Apr 13, 2018 at 9:59 AM Huang Rui wrote: >> >> On Thu, Apr 12, 2018 at 09:33:33PM +0200, Mathieu Malaterre wrote: >> > In function =E2=80=98radeon_process_i2c_ch=E2=80=99 a comparison of a = u8 value against >> > 255 is done. Since it is always false, change the signature of this >> > function to use an `int` instead, which match the type used in caller: >> > `radeon_atom_hw_i2c_xfer`. >> > >> > Fix the following warning triggered with W=3D1: >> > >> > CC [M] drivers/gpu/drm/radeon/atombios_i2c.o >> > drivers/gpu/drm/radeon/atombios_i2c.c: In function =E2=80=98radeon_p= rocess_i2c_ch=E2=80=99: >> > drivers/gpu/drm/radeon/atombios_i2c.c:71:11: warning: comparison is = always false due to limited range of data type [-Wtype-limits] >> > if (num > ATOM_MAX_HW_I2C_READ) { >> > ^ >> > >> > Signed-off-by: Mathieu Malaterre >> >> Reviewed-by: Huang Rui >> > > Any chance to be included in the next pull request ? thanks Applied. thanks for the reminder. Alex > >> >> > --- >> > drivers/gpu/drm/radeon/atombios_i2c.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/drivers/gpu/drm/radeon/atombios_i2c.c b/drivers/gpu/drm/r= adeon/atombios_i2c.c >> > index 4157780585a0..9022e9af11a0 100644 >> > --- a/drivers/gpu/drm/radeon/atombios_i2c.c >> > +++ b/drivers/gpu/drm/radeon/atombios_i2c.c >> > @@ -35,7 +35,7 @@ >> > >> > static int radeon_process_i2c_ch(struct radeon_i2c_chan *chan, >> > u8 slave_addr, u8 flags, >> > - u8 *buf, u8 num) >> > + u8 *buf, int num) >> > { >> > struct drm_device *dev =3D chan->dev; >> > struct radeon_device *rdev =3D dev->dev_private; >> > -- >> > 2.11.0 >> > >> > _______________________________________________ >> > amd-gfx mailing list >> > amd-gfx@lists.freedesktop.org >> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx