Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6093214iog; Thu, 23 Jun 2022 11:10:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/g7BkH07671VI6TIjMlog8XIsafz9RALYxirNd9G0PyS1sJMxYkiDiEGaOn5xkeahHejd X-Received: by 2002:a17:906:1003:b0:718:cca8:6cd6 with SMTP id 3-20020a170906100300b00718cca86cd6mr9568835ejm.428.1656007801697; Thu, 23 Jun 2022 11:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656007801; cv=none; d=google.com; s=arc-20160816; b=bawCKUy5Au2rUG4QKLlqT6T8yTnqBZYJibeWoJsPVMY1sSJXtYn8gCPsigEaImB3I4 m9fl0reyj52ixTn1v2ACYGf0qihxx8b5fsP0wpLIP/bfbmThcdPVbm/CXd8QypEVVJnM 6/YlDbg9IYxxMxde2xleOfEecrH8C6TIJNRnkbxPxIfOelkFjg+ztkKnOVoYKZMgv3QC lgveXx57covwUG1f3P04W6kBMyKEyTXkHTVs9LNNbQVp6+XZzFr6Q8WbyQc5Eynrgdah BwSD22aw4G2eKuMCpv0MGfo3z7U3LOE05LNN379dsnLjYvH78CdvyK915sXHnylH9h3W XIzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=TGE5JNxKMzOY+twQ6t/ggEoZZmn0rKO8MkEsEl3K3GA=; b=l0Z3HEz7fe0NFCnUmMOAhdtcqNVrO0UPSR+9hzrAsKv8IEnHatH+kXlIMZwOZJ0pbP sLPzzH95iphkdzUImGkkZgB+gU0uxXF0nu0c9eY6M1CWGAlw+l0XzRq2s7BY8Q56f7h2 bIKHpMcXBS2eqvH4WuicT0Y/FMbP23P53olgYO9O9saybwsfJmkLIbxfs8pOgWJg6H4w mBIhMjOwfzJA6wmy4r/L/1lZjgfNMNg6HgdnJ/mepPYo104CrggoVo3BDoYY5ViY3Wbe XeiuptE4mHZLK//vqUipwehOB/QmQ4S3htMKdRZF59jIAZ4RlHCqWZ8vzScLePwafKfy dPIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=XqLEFa8u; 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=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a170906975400b00710c2e87a02si13191502ejy.215.2022.06.23.11.09.32; Thu, 23 Jun 2022 11:10:01 -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=@deltatee.com header.s=20200525 header.b=XqLEFa8u; 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=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236239AbiFWSHd (ORCPT + 99 others); Thu, 23 Jun 2022 14:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235901AbiFWSGS (ORCPT ); Thu, 23 Jun 2022 14:06:18 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF4EDA5; Thu, 23 Jun 2022 10:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=TGE5JNxKMzOY+twQ6t/ggEoZZmn0rKO8MkEsEl3K3GA=; b=XqLEFa8uXRGl7xk0sbFLSCsx5B eRC2cYkqiK7rxv6P+gT78b7WFTJgs9CDKOy7EmP/mjfq2HvYNK1jQeHkMLxUNCUuVAE8QnWMzGMN2 Ua3BTzZkr/X4y7lOWzdy+Oa8nR2fFoEuXK3pL/xU/HKV1km6RdHIzz+gnpRVwnBsQO55Y8GD4huuq 7my+4fZOYjPjAuXWzmtCtDA9qta2IEGYnwf+Sp/AGOfBCAB5aR8fbRjUkiyLaVq1PuRaUKYKt1rQG 9wIrdK7hR9/QxaYvzbqjRHpvtt7x2NbGA7beFIM0JOPaeW/sbRaKkST4Sk4232EJXiMLCZDWU7UAq uzbbwbuw==; Received: from s0106a84e3fe8c3f3.cg.shawcable.net ([24.64.144.200] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1o4QTd-00F5TU-9V; Thu, 23 Jun 2022 11:18:46 -0600 Message-ID: <09153aee-f05e-22ae-dcf5-0fbfb3b9823c@deltatee.com> Date: Thu, 23 Jun 2022 11:18:42 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: en-CA To: Song Liu Cc: open list , linux-raid , kernel test robot References: <20220623165552.38645-1-logang@deltatee.com> From: Logan Gunthorpe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.144.200 X-SA-Exim-Rcpt-To: song@kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, lkp@intel.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH] md/raid5: Fix divide type in raid5_make_request() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-06-23 11:15, Song Liu wrote: > On Thu, Jun 23, 2022 at 9:56 AM Logan Gunthorpe wrote: >> >> 0day reports a build failure on the hexagon architecture: >> >> ld.lld: error: undefined symbol: __hexagon_udivdi3 >> referenced by raid5.c >> md/raid5.o:(raid5_make_request) in archive drivers/built-in.a >> referenced by raid5.c >> md/raid5.o:(raid5_make_request) in archive drivers/built-in.a >> did you mean: __hexagon_udivsi3 >> defined in: arch/hexagon/built-in.a(lib/udivsi3.o) >> >> This is caused by using DIV_ROUND_UP on a sector_t type. >> >> The actual value is known to be less than 256 so a wide 64bit divide >> here is not desirable. Thus cast the argument to an int to ensure it >> uses a 32bit divide. > > I force pushed an update that uses DIV_ROUND_UP_SECTOR_T instead. > I guess that should also work? Ah, yes, that'll also fix the bug. I chose to cast to minimize the performance impact of an unnecessarily wide divide. But I don't have any strong basis to suggest the performance will be worse with the wider division. So fix it whichever way you think is best. Logan