Received: by 10.192.165.156 with SMTP id m28csp416815imm; Fri, 13 Apr 2018 01:13:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Hut8Rjla+o7RfiiHf+HqRKM0dkVYFGYJlQ2hHULzt4ZQcCVCoCh81NLWkrrTh9yqEhiNf X-Received: by 10.98.58.129 with SMTP id v1mr10599085pfj.231.1523607200076; Fri, 13 Apr 2018 01:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523607200; cv=none; d=google.com; s=arc-20160816; b=GnKrya9bsonR6NC5AkaxYNYFsp11aSF2VU2ZEkwJKXI2+sfsgyMdNwPnmUvX2XgOlo 3oROZoKT6wIPpR0IBYlxljPO3Wp6XLseD4D9EoQpYPvJeoz60Evqq+vT1qD1AmjuzIMb Fk4vV/2/9Xrdlo/lhY79vItLcoV9x4vearXgQn3ZqE04mNoz/GPbISQJmjGmPO/6xzFC XZHkWqerRm7D5U0mb7Y+g0O4raspKGhQfuoqKaBaiZON7KEjvgHjOBm4nfLSczVquakV 0UzSUppQi7yX/4RPInMlSAH/I3riwh4aDNONgpg9fs63mrhLAIGN6Klm8sSG0+gbwBMr V08g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=yK6J//95S0ctIZ6YE+iYlths9dHR0nsZcNzKz4Fk3lc=; b=YXeRhfM7nTtvwn/bojTCM+OzRYOMqVGyB8/NYsOdReSloD5OUWf3QZD3wcvBWmDhin VkE5TQtthX6pmKQhkbQ5mw2mRlcFjp1ii5jqMbIvmp3gL9kZyVLlpxIJQI32QfhLp1F8 tDatYEbjGr3MZpAKvd8BJcKutOQug8q9SjquaOQbgZDkWVYXt3+Wa5VTIp/hmUwRmVmK dgE7mwcWaLfOEEKYylqqCjeVtKISfK0f0sfMK5wGPX0dAEOwH8B8hMtDSHL74TDO6KxL 6ruQz/Dvl7S9DSJ479pJpYFfRwyrQChlaZOQ+UVFv8ZEyngd+xPqp+Wk7+PnbF+2KF35 rwdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=0oTq/4to; 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 l7-v6si5199828plg.82.2018.04.13.01.13.06; Fri, 13 Apr 2018 01:13:20 -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=neutral (body hash did not verify) header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=0oTq/4to; 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 S1753478AbeDMH7v (ORCPT + 99 others); Fri, 13 Apr 2018 03:59:51 -0400 Received: from mail-by2nam03on0060.outbound.protection.outlook.com ([104.47.42.60]:11715 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750960AbeDMH7t (ORCPT ); Fri, 13 Apr 2018 03:59:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=g3g6DNU5mmg4T2mnj3gqWn0obO5kwo9vNgp1ajfnWx0=; b=0oTq/4toTlKGpvdyzhgQ5HmUAIJUPPdyytkBSy5R4loGK8n0w6jAtsCuopI/SV9iOHa/liEA5rBf2kZz/PCpchFQ5KB8LDXXs8HdwfQQ6bEhmBdAxx4VOv/o4k2rCUZWrbP4srkSWp3cNxKQB/kyVCvZQjhUj5sBq676aNQyu2Y= Received: from DM3PR12CA0101.namprd12.prod.outlook.com (2603:10b6:0:55::21) by DM5PR12MB2421.namprd12.prod.outlook.com (2603:10b6:4:b4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Fri, 13 Apr 2018 07:59:47 +0000 Received: from BY2NAM03FT017.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::204) by DM3PR12CA0101.outlook.office365.com (2603:10b6:0:55::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.675.10 via Frontend Transport; Fri, 13 Apr 2018 07:59:47 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; linux.ie; dkim=none (message not signed) header.d=none;linux.ie; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT017.mail.protection.outlook.com (10.152.84.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.8 via Frontend Transport; Fri, 13 Apr 2018 07:59:46 +0000 Received: from hr-amur2 (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.382.0; Fri, 13 Apr 2018 02:59:45 -0500 Date: Fri, 13 Apr 2018 16:04:38 +0800 From: Huang Rui To: Mathieu Malaterre CC: Alex Deucher , "David (ChunMing) Zhou" , , , David Airlie , , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH] drm/radeon: change function signature to pass full range Message-ID: <20180413080437.GB10330@hr-amur2> References: <20180412193333.4951-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180412193333.4951-1-malat@debian.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39380400002)(346002)(396003)(39860400002)(2980300002)(428003)(199004)(189003)(305945005)(77096007)(33896004)(478600001)(76176011)(186003)(8676002)(26005)(72206003)(59450400001)(47136003)(106466001)(2906002)(68736007)(48336001)(58126008)(5660300001)(54906003)(316002)(33656002)(966005)(2870700001)(356003)(23696002)(486006)(126002)(55016002)(50466002)(47776003)(81156014)(53936002)(81166006)(97736004)(426003)(9686003)(476003)(6306002)(446003)(11346002)(8936002)(229853002)(105586002)(6666003)(6916009)(33716001)(336012)(4326008)(6246003)(104016004)(86362001)(1076002)(18370500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2421;H:SATLEXCHOV02.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2NAM03FT017;1:gYSWmok4/FK2uyn2UH2wnEOCg2Gei867cu177xkxXmUcwH0WVdCFtUw8iTbIIdKLAaI4UESA0xFOG1H3JcDg8/x8krb1Mo6abRVc7W73UOW6VTa1z63d+c5YCHnkBf2i X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:DM5PR12MB2421; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB2421;3:9m3Z9VFt3tmmJ4nWDE+cShXYiCKJi3dWGp4iQ6GMKyx+yPa1G2FUKthWFcwfF1Pq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U0fVQ3oaHt8C/8X4qgEB2F+mrsc3GPXIYVWVVDuyQFv5LI1cPyLlnzhGNkEx/y33Yg9LHbIX2ActogHBZWv0se6jcMw1A6vR+SNTe4VUxtSNNjO8Pg7gj2TbrR2ixxsUGw1e3KP/b+UE0a7RcBzATZYn7CQqdtQwKT5HcxH/gRrSWHimv/s7ZS/ysuK3mmCzAW3ceynmYZbI5e6mZTaG8lE1nEHJvrnTeM50wlNsVSJlO7CeeMqKmpAgtJmwzuzOiIoYCcV5ppNQvd+CHnBhMv+IW049J7/TX05QALryi4JUmsg4E1RaS7Go//srEjBLgfw7ItM2DaCEn67cyCq1vL5A0kTnEfjZp9z4s8e9t9qG2bp+3FFN2UwYa3vzTnecFKRT1u X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(217544274631240); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231232)(944501327)(52105095)(10201501046)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR12MB2421;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB2421; X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB2421;4:SmCrgdIUvZGgOG9flA7kq2+aZKkdtjYQ89IOMDwccpxLbs0xDslcayWx2JCdEhDmtUso3oHbjsReB4shl6v6oJvMCKWmBLqNcmsR11x/oJ4+Am9I31sriCXVJtM6w/pppwYJ/kYa08JEaqrQsD8sBDyiuYJP71hLDfb+lt6F9r+Lz/mqJEqBL8faNllNbJxy4kw+6aXKy7Ji+nacIrVa+aIlqOhcw9/0dKf3eKGAqZVgzem+MGFPov2KTeZ3PxRbJyMPrfUAZfqxG7FrSmBXSuG4+NTA72znrkZdlvFiJEzobbmEQK5BaJN2OXpPrvgH3fo5jlcGjXi3w64Dq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igHCICvIzp6AnlQtS5vX+7T2lhoE=;24:wBY0B6PBrOl6bCjBw982sA2lw07v8UJLpkby+3IPzRvDvQIQL0Pd0v6a4oWL/82Pg/v+jQ+Jiduysy7f9laVyAQuQ+t0BdnzMW9eo55kzzc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR12MB2421;7:iw/Fitx8++2qvhWu5xFzEbJPihLNI9pj8XBuogEyvB8G8KAWPbadIwWieYo8mJ15Op9IIB2feohy26wnm6lw3SvxMNMLUrhoQX/xwI8v5b1eGZwmJQpIm7QQobP/SYfuhPvpSu4c6wdMoF4utC1p8t74jYG2kWOWvGyRRmSK8BhzFbBN97wQDNt/v97uy7k1zNPBBLDD2wLtVsLVWlTohUH1sha/JSDStDFmNfpvH5ZD9CsEo3kJVMUofta93lhP;20:S++a1sRBxRvPDG5DizfT/DHqTYDn1AonDJonA1TT1G5TVQq5pn/WSdvUdp8vLkRFoCKkSvVCnH04na2rOVLd16jXM0r608zbCP8R4BG+HfiZtaLSdB/ukKj3zcpBRM5rZhfDutdFHZQ4ahEf+tPYxn7Vd1FnlGz1hqx7iZpKxFSOt8XonA8caCVsR0ZggIfPvby8H9J+P3yfFJbNEWEtnX8MFZLwENVXGwA9ZdoCIBNnFd70xI+7pW28BPfb9IZW X-MS-Office365-Filtering-Correlation-Id: c72e5f2e-8040-4a32-229e-08d5a1148676 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2018 07:59:46.8537 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c72e5f2e-8040-4a32-229e-08d5a1148676 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2421 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 12, 2018 at 09:33:33PM +0200, Mathieu Malaterre wrote: > In function ??radeon_process_i2c_ch?? 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=1: > > CC [M] drivers/gpu/drm/radeon/atombios_i2c.o > drivers/gpu/drm/radeon/atombios_i2c.c: In function ??radeon_process_i2c_ch??: > 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 > --- > 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/radeon/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 = chan->dev; > struct radeon_device *rdev = dev->dev_private; > -- > 2.11.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx