Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4648543rwi; Mon, 17 Oct 2022 08:54:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7E8kHW2Ti1DQk+cgS14jrCpp9SzcGuI+N0Mp17LnqMNnU8dbufu1ir7maA/TiuULDIl+8B X-Received: by 2002:a17:906:cc5a:b0:78d:c3cf:6ff7 with SMTP id mm26-20020a170906cc5a00b0078dc3cf6ff7mr9140108ejb.383.1666022063673; Mon, 17 Oct 2022 08:54:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666022063; cv=pass; d=google.com; s=arc-20160816; b=yVLrZLeVhmFkezASFNOmIRFAKaPGirkRAM1KnwU9nsE31VAax5i4JZrAPdjAB4U3hF +HstSbo1tB9Myx8BCLTiRGDJtmhfqPxQQ3N7aHC1gdc4y5KP2k1XqshK6HZQOu+fUpG2 yZaH6o49U/zKTuulXNEhG0Zga0bsNTXQBtSOqd1K0WCH4QJyDwu7ZHHTv/qQ4zs9BWiO AG1o8CR9QmNp/1olM5/isa4yQ+LZ2bliALe3UTxzw2dLgqF+wrsjAtzisNw4CEn6ejx2 JHcK4/fviRDf9h6ESSJD9i69YCDga8IY1HceiZO94nRJUsfUvDSH+PAKFae8dUAtY6Hu PipA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding:subject :from:cc:to:content-language:user-agent:date:message-id :dkim-signature:dkim-signature; bh=81FHj3sHELP4lHPjTIxa/QeutVoogwEP3wdYOuo0K+0=; b=ZOJtT4MNvNdlSFstDMNPADydX8KuqXfP1E6QRhNcowv9/NB3xvJu4GM9M5aPDN+O0c U4qS1e9zib5MGoSp8obnIOLOJPXuX0p9ZZ7hyL2Q1MJkLGfaA82IzWDVVM8sDm4v2BGi saRahW5GM9i878trfs1HLRbNmdSoR1Fu4QVXN5XyJ6R6GW2Ic3lXz3U+aMFJwGlxjqjK 4YMDVFJrabIDqHi4YF0XKOWb5oAGsUVrXALYWrnjAkvS+Et9uKvRqM/2oVxax3DLuMHp //x0UkLMisQP3ifgcrnMvI0rroGqdKZZ+814qRdhICvwN9tt90fx74yj7S0B3YZ3veDF QgNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=BpH9CUIy; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gv62HStc; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a50e612000000b0045caa1628c6si8999037edm.216.2022.10.17.08.53.56; Mon, 17 Oct 2022 08:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=BpH9CUIy; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gv62HStc; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231557AbiJQPJB (ORCPT + 99 others); Mon, 17 Oct 2022 11:09:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbiJQPIo (ORCPT ); Mon, 17 Oct 2022 11:08:44 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C32896B653; Mon, 17 Oct 2022 08:08:27 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29HEkaVr007666; Mon, 17 Oct 2022 15:05:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : to : cc : from : subject : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=81FHj3sHELP4lHPjTIxa/QeutVoogwEP3wdYOuo0K+0=; b=BpH9CUIyWCcsk9ToodxZyWT/1jkvXOo77Bpozp+96og4tPyrUyIWBsHmItRglOaFLglM J8GRhBNO8LCnbM5gO7qTD1wZUZH8dDmJGsWko9EX/DRbJsyJqwCXEixhCiNz05HKbPG8 cLqSppmj0+eKQLbWdPPEI9mePnLzy9UflHaYwqAqCXnboZOmO+R553cyNSN7IEK98Ojf 5J4Ay6ZZ7KKP4qVZWglX5mGjDSaDP4uZZtB4/C2mVfggFHS4Rr0vMVu1zESY3bDWFt1x I9pVOsabm+VRpebOiWc6pq3uYTrUh+mJOXsn984mP2DQH5BKHq4UKjT77D7T6F3toEX0 BQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3k7mw3bqyt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Oct 2022 15:04:34 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 29HCXRfp036466; Mon, 17 Oct 2022 15:03:49 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2104.outbound.protection.outlook.com [104.47.55.104]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3k8hterkq8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Oct 2022 15:03:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cP7IjVbvH6tAJ/1ZzpqtFvj2pP8khT6zZ19HUPQTfF5fIvAyW4fYzIs5thVmvTL71qAnS9PfcB9xOZsy0/KHbsxX16ykIjm1t/1aZUT9tnNV5CcnQ9Z/619vxrX7wA1bPvL1M4QuZEMys699AMVDO1PGRlCEORhu68qiIvg5h73TGbzprMieXX6dufOsAlZm6Ie6YmVKNnNhrmYnlwQGle7OHRim4J/nTybijQZgcPcJLgwgw/AkNCpJTtVgceyE5VqjxYs5qQj3HSP4ATUoyfb+509oy2n6OCQYHy+K2qqjKGUHUsNOb60XbvfP1bjhnFMrlSDbSNqRWLm7UWEFug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=81FHj3sHELP4lHPjTIxa/QeutVoogwEP3wdYOuo0K+0=; b=FtFE5lmLGWXbieFMUqF4xTD8KXprMP/UhvJ38BvbvMOkJPbG8VOP1iQ5jyXukz8AM7/s1+GwE2phQz9E04G8R5J4jpbwI3uQJX4Zg7z8RLX+3qmi90ZQJe3Kh1WsP2rWPoa5oGNLnXdJxZJL9MxADrnzGy5536pdXTpQaM84Y+nJAs8aT05lGrT2lrewZXoqAhkXeJTvMuYZcz2vwVaRse62VNyg17w+vGg1wohwXXNH0AKp7PPASxcLikQ2huDbs7BJRUpv+CpjIeVex4hYW83FSJ4jEFfWBMm/8JwyM4sdmm8e3KQoMPjb1AK9ifMsvr97KIWwgRyMx5Z3/9mdBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=81FHj3sHELP4lHPjTIxa/QeutVoogwEP3wdYOuo0K+0=; b=gv62HStcx4C0sxzQTLrFZl2z6Pz5lwt+4sHFIfaJf1kopyn+VlcApB6niWgO4BL1dPRtcWlOEXU0yebpWZGb2HMRUrrOYRG/iXRa87tiDuAuiu9KVAG0cM+dt3ROwJOMXLm1jSqbsvquUXtxXu4rphCKM8fa9hRlBUUAZMCm32Y= Received: from PH8PR10MB6290.namprd10.prod.outlook.com (2603:10b6:510:1c1::7) by BLAPR10MB4836.namprd10.prod.outlook.com (2603:10b6:208:326::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Mon, 17 Oct 2022 15:03:47 +0000 Received: from PH8PR10MB6290.namprd10.prod.outlook.com ([fe80::452b:cff:c708:392d]) by PH8PR10MB6290.namprd10.prod.outlook.com ([fe80::452b:cff:c708:392d%9]) with mapi id 15.20.5723.033; Mon, 17 Oct 2022 15:03:46 +0000 Message-ID: <364c0959-c82f-a93c-df02-87a04e1c2cea@oracle.com> Date: Mon, 17 Oct 2022 20:33:28 +0530 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Content-Language: en-US To: macroalpha82@gmail.com, hjc@rock-chips.com, heiko@sntech.de Cc: airlied@gmail.com, Dan Carpenter , daniel@ffwll.ch, dri-devel@lists.freedesktop.org, LKML , kernel-janitors@vger.kernel.org, linux-rockchip@lists.infradead.org, Harshit Mogalapalli , harshit.m.mogalapalli@gmail.com From: Harshit Mogalapalli Subject: [bug-report] Smatch warns unsigned comparison with zero in dw_mipi_dsi_rockchip_set_lcdsel() Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2P153CA0006.APCP153.PROD.OUTLOOK.COM (2603:1096::16) To PH8PR10MB6290.namprd10.prod.outlook.com (2603:10b6:510:1c1::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR10MB6290:EE_|BLAPR10MB4836:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e8f9b2d-6559-46a4-ecad-08dab050ca57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ryETIoef3wFpqXZtete8fRoNOPE4Q98nGpwqdNa4cNCn7z/ZKsGJyKzq5SsAS6Tb1Tb7dJ+AnMt+QuHu0QARS3yObOBpxyJaMvxLon7eQOxTWq3ETDbFTiA4zICYWlar5Z6OaxBa1W+/KZhAuGZqp9C8d9ULHtC54F0fsgRA0lfAdxTTHGHibUDOa1z4Hnu1+NslKPKfliKR58vimG7K6QHwB2f0ZjI33OpAMMmArQk4oYx0TLyIix5GRcM6/iuwYGB0iqj0iEg7EzWB06dgKE9NZxRblID7yEPJ5+wp00v5qkv3AMP+Kx8TAe/8l5Xru9XhYxYWW3YTNEFNdyCs2O5izxt+3wt6a7XCGJOhuNuievG1LqQ67w2bFt8aHvRpFp/qkWHFnoVOVyl+uIsWgOPdHh9Quor7A5RrDvct8JbjRa8FtDISaJHyIbrG2p8j3TZZrlA6/Ej4Vs1KutUbhQYYcldjqJcA5alEGdHlPLoWBV73X3T4qEJZa1rIJrGp8OmRGK1Aay2c7egUKUBpq6FGP60A0ka9vYIvhq9i5NaQg6IKWbIJWaxcIMsyGi1cHPN0yi12DPNRaxonMevAEA76ttxAJitq9B1z3AQfejRNwvuLRk1wZXHt2axfC6Km8IqcAVN55kOEpLgDGaWnhFscoDUBwejhdBZ7jkX26AqdGuf4QZioZQI14aiERNqqJOCIxb34oAtqJBx+T5lz7Rb8DPafkM4BzKW7KZkK6dc2va5UT6yUPNyGQzm0JL5h6YN4NeNsOlKpMXZbOCgfw/AfaFiUghIxRkz+qInAZI0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR10MB6290.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(39860400002)(136003)(376002)(346002)(451199015)(316002)(54906003)(186003)(36756003)(2616005)(6506007)(4326008)(2906002)(8936002)(26005)(4744005)(41300700001)(7416002)(86362001)(31696002)(6512007)(66556008)(66946007)(6666004)(66476007)(8676002)(5660300002)(38100700002)(31686004)(6486002)(478600001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dTYyUEVYMXN6MDF3Zk94MGtxcWZDeVZmUThBckdBWjMzNnRjR3BJSzF1dUM0?= =?utf-8?B?QnVCRncvMk5oY1RFcXNUVGtXVkt0UmMzVmhnZ2tqMVVhSEZBYmwvVytTYnVK?= =?utf-8?B?WEtPNlNzY1pSWDUvZFlmL1lXbzIzZVBFZ2dVOHhzVDdTVytucXpmQUFwM3V3?= =?utf-8?B?dDRyNWRFTC9ySlczbjY3ZzRKMTZXaGx2aURvU25yOThyeXVnbWJOU3c2aUVX?= =?utf-8?B?TStoQSsvQ1VYY01vSHJmQXU0ZGRHcUVGTUk0eDFLM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FhPaGp0Y2x3MjRkaUdRd01PV3RleHhqQ3pld3ByaXpqaTBNS0J0c0RO?= =?utf-8?B?QnhveVlrUWlxNE5DUW0vZ1lHcC9QcUhyenN1VURZWmc5V21ITmwwMnllSXUy?= =?utf-8?Q?DoQuvaJvBj29Yk+nhnGoU1o=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e8f9b2d-6559-46a4-ecad-08dab050ca57 X-MS-Exchange-CrossTenant-AuthSource: PH8PR10MB6290.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2022 15:03:46.8259 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eOrB5CWL6E8tUEFcBs5A+QBrMEo7oEWUu8hBR4eOS4ELVUgOJw/4bYS8rwunnOsTS5oA+xkmXFypqQGzWto0lFq7ag92sKTk5ScNrqCVj1VYIcrcGIlwXKuBI6JQrBxN X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4836 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-17_12,2022-10-17_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=952 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210170087 X-Proofpoint-ORIG-GUID: jOagjt46aW9lWEgsFU_k91uIGnGJVYAK X-Proofpoint-GUID: jOagjt46aW9lWEgsFU_k91uIGnGJVYAK X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Smatch warns: drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:755 dw_mipi_dsi_rockchip_set_lcdsel() warn: unsigned 'dsi->cdata->lcdsel_grf_reg' is never less than zero. static void dw_mipi_dsi_rockchip_set_lcdsel(struct dw_mipi_dsi_rockchip *dsi, int mux) { if (dsi->cdata->lcdsel_grf_reg < 0) regmap_write(dsi->grf_regmap, dsi->cdata->lcdsel_grf_reg, mux ? dsi->cdata->lcdsel_lit : dsi->cdata->lcdsel_big); } 'dsi->cdata->lcdsel_grf_reg' is of u32 type, it can never be less than zero. So the above if condition is an impossible one. Note: 'lcdsel_grf_reg' is set to -1 at other places. Thanks, Harshit