Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1395940pxb; Fri, 21 Jan 2022 17:35:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7XgXeV6EgX37wtBzKdFvmw22ZuKtLR510DaFIGO0d9jUC+5alZksVSktvjQkfH3JdHeZa X-Received: by 2002:a17:902:f24a:b0:14a:f56d:8acb with SMTP id j10-20020a170902f24a00b0014af56d8acbmr6303300plc.91.1642815308509; Fri, 21 Jan 2022 17:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642815308; cv=none; d=google.com; s=arc-20160816; b=bAm8dkQpCiKrtwvgF301RK16Wo63R2TKo6MBPRCmiXXkIji8WVYYdZ8meCVgscKxQ4 SESCDoo7ixBLizhfSsiKNwbJ6zcDOKKmS0ZN35dZqFirMdzPHLvWX0WqLjUldqAzKtyg uYmscMCuZlp4enziTpnsmbKomIhAR9MgOQlvAdijCC5MRT68fUzmQQyJKE4eV4R4UP6q KNYfHDCKFtDswfAF0sDDybQE9oLQ9Z5aXcRxHqfPgG24+Oeb+iMv4/EXJHeJxHat7YNW Tlwafj3If2OZGyKNGZYv0bG6zWHFJxPhYlMv8edJYSZkIwZitAlh6JHO36zmtZaj3Jsm clxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=UF7OIl+Ixi+5C5+PnUZyqLt9OUaAl+/aFG3aU7jIUjQ=; b=m5HX0PDKoXcX5V5QtnUbgLMxk29tiR6yKW7XqiZLn+DOwtaHF3oUwuHq8x3XPG5lsp CEVqA2gK1+pHY8G6NpWk+se887OXOBsP8OGn2vOClLieikwdkUQONq+aD5IZddwqzGvZ DaJQtK00PiKQUhIVE2zPo0D8L16LQofLysJIYyzy/SX9q3k1cGcuQYh2+werHOdsRoao slPKL9PlaOthFXl23qmRL9yhKlzAbgUNtc3QhGF2TVuWOLWYb02Ne/GWcDd/gbvmB7X9 kDbrBsAfmtNLpKKdB1hYlPCBIiAe8DtOdlsywQlNNyCOQmbQzp4bA6WrS5Ddq0BX1QFL x+eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d184si7983300pgc.100.2022.01.21.17.34.56; Fri, 21 Jan 2022 17:35:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350555AbiAUNeY convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Jan 2022 08:34:24 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:57526 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235175AbiAUNeX (ORCPT ); Fri, 21 Jan 2022 08:34:23 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-158-ysBuzeI9M8SqWpb1UFyJlg-1; Fri, 21 Jan 2022 13:34:20 +0000 X-MC-Unique: ysBuzeI9M8SqWpb1UFyJlg-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Fri, 21 Jan 2022 13:34:19 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Fri, 21 Jan 2022 13:34:19 +0000 From: David Laight To: 'Jiapeng Chong' , "gregkh@linuxfoundation.org" CC: "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" , Abaci Robot Subject: RE: [PATCH] staging: pi433: using div64_u64() instead of do_div() Thread-Topic: [PATCH] staging: pi433: using div64_u64() instead of do_div() Thread-Index: AQHYDr0JeXBHu5JbA0ymi5sg9Q/cbqxteQpg Date: Fri, 21 Jan 2022 13:34:19 +0000 Message-ID: <03591933cc384d7e91ede82f0cdd76a8@AcuMS.aculab.com> References: <20220121114955.96979-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220121114955.96979-1-jiapeng.chong@linux.alibaba.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiapeng Chong > Sent: 21 January 2022 11:50 > Subject: [PATCH] staging: pi433: using div64_u64() instead of do_div() > > Clean the following coccicheck warning: > > ./drivers/staging/pi433/rf69.c:286:1-7: WARNING: do_div() does a > 64-by-32 division, please consider using div64_u64 instead. That is one of patchcheck's worse warnings. You need to check the domain of the divisor, not its type. do_div() exists to avoid expensive 64bit divides when the divisor is small. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)