Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4606992pxu; Thu, 10 Dec 2020 00:22:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx4IHgYwgX5r61R3b2pu/+wB5xtF1i3EnBT7rsKlO0JtPiw4S+ruvJexQKmlglURLDTQpm X-Received: by 2002:a17:906:1102:: with SMTP id h2mr5373430eja.296.1607588533819; Thu, 10 Dec 2020 00:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607588533; cv=none; d=google.com; s=arc-20160816; b=jXT414iJygmHVbJOMEwG50o6lShdai+/E4EwEBOu9in8HZOt5Q+fSP8fqQGGzWiSM/ sVVq+l4CUJpvopfC6biyVsW5zZWqMBmP7VQSVXmQ6QRXT/EsHu3/BWx3iHY8tNCe2H7B zneypevnmD/TY+opsrqyM13RAvvithy8x+/lTZf/hADCiNrc5zAjfe9NFPOyx3T7B6Bg 2TmcjhnVcSS8XtLGWmxbJXtYXS3j2DzmU9tKyLGXI9rRv2Htdl1636vhHo2bnLLOO1nj QjKYvfvtNPBpx/awdKi5ILDP5rYv9qmIXvTiD4mbfC5h0Yp7BO1kSVOsO+sFQFcFD6W6 m0zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vls8peTcu4VR9er5d5Be2NTNZjHuOofPbhF7Ss1JGy8=; b=dNYs4jtWWfrEqElFTDxfboyQDpVrSaQ6ZXELeqyWTrq4x6c+D/2/Zs5PRdzGIh5SQg sfpXgAyOeEr2MgTRET47CRaRkOxyh82BohvvaJiTwG3L+8dnd4css6om3hqvee3+2s+5 gu2HTtYBOsbfw/8kCH4ghvN7kD3ixvGMomaxU7WY1pSPUNK7IrjRYrlqYuYPlqMKzHwL xIYePVQN/19bx4f+wMe1vRR3UT6Oktn40tRB8GqTHAyclGgNVlbwHbXIzAJ5zl3b91mf Qu6Lq7ICUut1Zo1xRcq+FaMeOtVkQg5ttRInuZSTri6/mC9vh+yN8FNTYQJa2SpYoAzZ gYvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E+qG0G0L; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si2003105eje.57.2020.12.10.00.21.48; Thu, 10 Dec 2020 00:22:13 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E+qG0G0L; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387703AbgLJITB (ORCPT + 99 others); Thu, 10 Dec 2020 03:19:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387534AbgLJITB (ORCPT ); Thu, 10 Dec 2020 03:19:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEBEFC0613CF; Thu, 10 Dec 2020 00:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vls8peTcu4VR9er5d5Be2NTNZjHuOofPbhF7Ss1JGy8=; b=E+qG0G0LsI12x9jKG3NkLtqcf0 us9gZbEzweAGbelaDsPsXRZBaikQCGjzsjB2IyKYgHBFnv5f0tkAcBYGcpwLwreWua4Do3yklmeHe 8i8vwaz05f9sPGcNbhqf/rJqlKu9PW61RlevKLuNgfJS3XhMcFJp9PSRVij0LwcyMo7tpeBt7jmep FcaBjk+xhos7ALnA1Jc5yoGtcdhUUEtz+HUTKTpk67rVMS/brBUsz4dkycFCi3HmyPMdwgquhhc8A wiH+GX/3R/cqAM3Vp1dquWZ6WWrpHegzvMfcAlHW4owpo78izoW8xdI7mfNkQjsByaQtSWVQYiNcu aEfaVbug==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1knH9K-0003qD-2w; Thu, 10 Dec 2020 08:18:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 426013011E6; Thu, 10 Dec 2020 09:18:02 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 93B712BD0331F; Thu, 10 Dec 2020 09:18:02 +0100 (CET) Date: Thu, 10 Dec 2020 09:18:02 +0100 From: Peter Zijlstra To: Randy Dunlap Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, Tejun Heo , Jens Axboe , linux-block@vger.kernel.org, Ley Foon Tan , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org Subject: Re: [PATCH] block: blk-iocost: fix build for ARCH with missing local64.h files Message-ID: <20201210081802.GS3040@hirez.programming.kicks-ass.net> References: <20201209204657.6676-1-rdunlap@infradead.org> <20201210060742.GA19263@infradead.org> <04828b4e-8791-6f3e-8984-9de06f40c85a@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04828b4e-8791-6f3e-8984-9de06f40c85a@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 10:16:20PM -0800, Randy Dunlap wrote: > On 12/9/20 10:07 PM, Christoph Hellwig wrote: > > On Wed, Dec 09, 2020 at 12:46:57PM -0800, Randy Dunlap wrote: > >> When building block/blk-iocost.c on arch/x6x/ or arch/nios2/, the > >> build fails due to missing the file. > > > > Please mark it mandatory-y if the asm-generic version is suitable > > for everyone and random pieces of kernel code are supposed to include > > it. > > include/asm-generic/local64.h has comments about some $arch could do > its things better/faster instead of using asm-generic, but no $arch has > done that since 2010 when it was added. Yeah, it's only 32bit archs, and of those I'm only sure i386 could do it better, very maybe arm-v7. But nobody cares enough to make it happen. All the 64bit archs are already good, because local_t is long and local64_t defaults to local_t.