Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2141735lqa; Tue, 30 Apr 2024 09:08:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8kXtJl787sUOGaYshY1lgzh2kZR8XKBkDCmjjoQfdsjk1atz3RvM5pzmmk3wzEURRiIQgLoPf42zLnEl/vDQxeVpuaaFrMxQ9DTZX0g== X-Google-Smtp-Source: AGHT+IHjItctmIFJX2zXeVI6FAO1gOm3RqslclI8SrljUqL/DLTZO/tenPeNV/nEdKoZTe3opSAM X-Received: by 2002:a17:902:b707:b0:1ea:f921:61db with SMTP id d7-20020a170902b70700b001eaf92161dbmr11839713pls.58.1714493300973; Tue, 30 Apr 2024 09:08:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714493300; cv=pass; d=google.com; s=arc-20160816; b=KUkJn79JjSArCeF1zErz7XQmn7z2HEdUuFVRwJVvHplA4NcTQPiokOT+mxAzwsi7It CLf+IJnLfoGZjPHy3Wms5IWai/ZMR89bLQur4b3CnEA3BZUy0JEM1Eb7JlMOZwcCRTW3 yeleYeLcG5QfJwnV1A4rUgbep44ayicoaemWtux8TC5sfrA9e3yNBKV9hvulT2Po/irI q6USdTpbfYqBAhmIo1puPpVcJXaK4cqrLyO226s2q+pbp/s2hWsd0bmdHgaHziEXSwdU aTOou/aQVPGrIpVi+iupZrTshoKezDLobNTyhSGO7kQEQIl8XVf/BGwG4ZJCDF+o+H9g xdcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=fZic2Dkw35AcpE+CVRO6jsCkdcSCMUCuJSsGD9WIOCY=; fh=th3QfjSKDYZZfK9gOKtb+EO8uVz1BcM/F3ULK1RrF7Y=; b=Aa4uHSTg2ioCv4SAJi11PBgfoJ+S4z6pLfSjtIj56XyIJMlTtYOx7bc0FlYyzg4GZg x4+7FbIK0W49ADfWUtnZk0BwfACetCU5UfiA1vGS2gR2DAd1tjjzA+Rml7GLyBN6AJkb 6u5m/36UWiF07C4FgG91iHlJBiI4b4zKq3M8+/Eov8IfdewOAskQcFQnFQJChrhBEi6G rvJkjPxNpeeSfj2X3be00sX7BiSrziabDL1bADALgpbWsA3H8Hr/eahsbn0nc6qNXGZs eGvFWSNlaHVnVqqAk2+avB3HNO/7coa7hc2rE708LJeeHBBTlTkqHjDVtgn7fYmCrOYi qmNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u6k1uonD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t9-20020a17090340c900b001eb78554417si5747159pld.272.2024.04.30.09.08.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 09:08:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u6k1uonD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164299-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EC6B5B21226 for ; Tue, 30 Apr 2024 15:45:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F7CA16D9B6; Tue, 30 Apr 2024 15:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u6k1uonD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01CF1175570 for ; Tue, 30 Apr 2024 15:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491941; cv=none; b=lGDd8uCpBb6ekAOt5lEA+uravBGcKAv5VPo/j8lnscGP3Mc1qNQH94uaOFF9ldOLDNWnGwTaemmLfha5YuLJz7d0uDZvpPxYuw+LhqhLK7OYYj80bJYa0hRsDcxHLye8XsRjtPOzAyh4STjMoe8qZwPOQ1oKmUi9VX4huZZIFM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491941; c=relaxed/simple; bh=oZb/aw2XkBtHn/oFyQgCSsXV0ubKMtqH5UegEn065zs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Sd/JtTS+FWyaYT8DtzR0IOLdJYr3eAJ+xoZFvoUCmsJW8kD1Pflrqw28K5pHBCLKKxzsvF3O/PN9VQJWZgOAFdRy4aSfDrBE3qjAPYuRJvaUGQS/I/tPgDbiT6AjP6jYu4EY41JKphMBsisJPHHEzJWDki6XBsj9IdVCuMpX0QI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u6k1uonD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEF31C2BBFC; Tue, 30 Apr 2024 15:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714491940; bh=oZb/aw2XkBtHn/oFyQgCSsXV0ubKMtqH5UegEn065zs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=u6k1uonDHc4Fw+PsIS/HeIekAfg5iF936HnVWcEyh+4aD9MQG6WpGxmqx0TtvaiLc Bwpq8vOpax2dK2hJw3WqjEAMgxU0Z+I2aHaqGca1/m/5VtJ5dKZDqJcmUaCo1MIlnB Yev5QeRUgdvkj7EHm+z1fhLC3yxyCJg63HlletFNqbDmk4K0VvYmKalyLdcrT6sylH qqW0oujeptdUACruJ/8B0jkC5XvADkePG7b0Y+z0UFaSADlOxZdbnFjtBuz8worgFF Avmxkdc4o6eiFoTtp8736OULZde2uAYlk3ssIMHB2+j4xxDyLUbtXuZLwtsvve8hGp vos6e+FbUGIEQ== From: Pratyush Yadav To: Michael Walle Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dan Carpenter , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: replace unnecessary div64_u64() with div_u64() In-Reply-To: <20240429121113.803703-1-mwalle@kernel.org> (Michael Walle's message of "Mon, 29 Apr 2024 14:11:13 +0200") References: <20240429121113.803703-1-mwalle@kernel.org> Date: Tue, 30 Apr 2024 17:45:37 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Apr 29 2024, Michael Walle wrote: > Both occurences of div64_u64() just have a u8 or u32 divisor. Use > div_u64() instead. Applied, thanks! I fixed up the commit message a little by adding the bit about performance on 32 bit arch, and fixed some typos. [1/1] mtd: spi-nor: replace unnecessary div64_u64() with div_u64() commit: https://git.kernel.org/mtd/c/c84b3925c7d6c -- Regards, Pratyush Yadav