Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbbKZD3Y (ORCPT ); Wed, 25 Nov 2015 22:29:24 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:21255 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbbKZD3U (ORCPT ); Wed, 25 Nov 2015 22:29:20 -0500 To: Arnd Bergmann Cc: linux-scsi@vger.kernel.org, jbottomley@odin.com, martin.petersen@oracle.com, nico@fluxnic.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] scsi: use sector_div instead of do_div From: "Martin K. Petersen" Organization: Oracle Corporation References: <24882658.08y4bWL6tn@wuerfel> Date: Wed, 25 Nov 2015 22:28:34 -0500 In-Reply-To: <24882658.08y4bWL6tn@wuerfel> (Arnd Bergmann's message of "Fri, 20 Nov 2015 17:38:28 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 15 >>>>> "Arnd" == Arnd Bergmann writes: Arnd> do_div is the wrong way to divide a sector_t, as it is less Arnd> efficient when sector_t is 32-bit wide. With the upcoming do_div Arnd> optimizations, the kernel starts warning about this: Applied. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/