Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3086489rdb; Tue, 6 Feb 2024 06:56:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwBd4sQNDLkqY6KnqTaAsO/wNLUTzUqaf+ivXP+N2SsIuwta4/+oJhUymJoA6FPugGzFXN X-Received: by 2002:a05:6a00:2d82:b0:6e0:3406:5fee with SMTP id fb2-20020a056a002d8200b006e034065feemr3135303pfb.19.1707231363001; Tue, 06 Feb 2024 06:56:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707231362; cv=pass; d=google.com; s=arc-20160816; b=Sq5xZYkkOZNx/fWQVuuF4mTsHG8cvf2HPsi9DQTugcidBTdSlR/s3TRjUlVsTaep2R aH3bO0Y2JOka16lOW1/IvdGzRw0+wguJoc2+k3i+snAY7ADZaX+HaILnR7DasdKf2pEr eKJoYm74xb+c9kW1Dcfw1FX4MvpQOvriMSu5I0A1KC4g98TvkgC9ojTTRQZeAg1XfbGn h+p8oGU2KL9jt1jir374OeP+NtGIrE/lIUDCtNLJp20LxFldd27iw0cW2JkQNOL+RibA 8nYTq+/Kiusimw18BffuIQZW1Sl/Sj9v9vy6gL6seddjRR/wPndHkTopCYzezRL8Tl/9 QZBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/RZRnLtReRSjHaUzZeYCw5gGOm6jFVdruT7LPbqwewI=; fh=KxY6foG5gsCgH3Z410iz0EMP7bg49DdJbUQKGIhdMzw=; b=OEnXgz9w5JU+aSSRr/w2dfzsl75K6kZHHBk8DOvWjqhDy0Xgg90Rqf1jjy2GIo7IBe WqpXdDxDSAO3cz0MWenUiUl+obN4JIbDaD0YuuOKVEG15tDeIJ8Sy0lpPi22VYcntH9N MNtwrvpQqHkT+q9tUptNngSiw0r4BoIMUph0MeLGNQZp1yBTTxAhzPLggN1Awt1rq975 TUVIRUWAOvhNVGxaJ7S0AScHA37fND+YvNd8RjEEi27PLdwGNJBuXME2ybNA8m7i9XdE IxfirzCXxi7c5Oi41r2ZbSaJMhB6LR+GJKi0nDpQi+mFuztTAZbaLPo8jnn7StT1DJXr MP0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=H97xngnq; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-55148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55148-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWmxOnxvJyeE5zyhREAPFC0/zHoCHC4dji6UNMbyPix78Rv9shOiWG+uqju9Pdi05ph7QBDb8LOKMLj+s2qodx6IltwXGjdBNiKqkfsLA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bv124-20020a632e82000000b005d9b919b966si1748675pgb.374.2024.02.06.06.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 06:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=H97xngnq; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-55148-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55148-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD3DA286D3B for ; Tue, 6 Feb 2024 14:54:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62D0013398C; Tue, 6 Feb 2024 14:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="H97xngnq" Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F37C2131E40 for ; Tue, 6 Feb 2024 14:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231195; cv=none; b=SOeGf1oBqh+SDVoapYVXyA9KSMBlrYUry29jsR5NxY34s1i6yqDts5NIAyKLmd/otbv4zBnbUo3XnNWszes2X4TNDGxj65igJla+jHVQXodRy54XzWDALhdiJpiQH8J2h8BHShk8YrJ/+yLnd3MW+OJ1CiKYEmTLDQLcIoP2ktI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231195; c=relaxed/simple; bh=D35/E2FHCU24dgs4Ty+rcDXPBktIfZ1jyU2574rY6J4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UD5t87wm8s8b0KU09twOFb1DKEPQoniHTrmEy1D+rhldnCt6EW6iD7dod7Oc5VJ2cgAqZwSRnTaiOzYLifnQoTDcYPw54HRQfVzTquDcqIdPsxHi6XtM1PDG9qDpMXnUnIIRJThnzdNPUKyK9EoCMjBq6bT+eU749VxncYIaDmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=H97xngnq; arc=none smtp.client-ip=209.85.166.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-7bff2f6080aso40315739f.1 for ; Tue, 06 Feb 2024 06:53:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1707231193; x=1707835993; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/RZRnLtReRSjHaUzZeYCw5gGOm6jFVdruT7LPbqwewI=; b=H97xngnqC3zj/gw0St/5tBaYKzpvOfvyRzbSqbXV37lY/MOt6FLZyQC5Nf6VwjBBqm shXqnYgs1a4eU5tnzbnqP64x2wCitPe1vbgiYc/tji4yjnyPbe0lUaiamBfAqCLuGq61 H4Brmzxe8usrIYgnWTLy2Qgj/1fnV4ampxwCyrcqG/UXzcgEwyInNfVH0fKQeREo2dM3 gnF/PPB4XMn19BCQAj65HWumBirNs2+6X55aiQiAkGQqoqYNduRhJPQ6QTCbsyUl+l4j IyMSRoVl6kDX3B4leLmoQStU95VsDElsyc2blxEhPQBzt8Q+GEIM3XJDaCkWSQAgJPo5 Bl4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707231193; x=1707835993; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/RZRnLtReRSjHaUzZeYCw5gGOm6jFVdruT7LPbqwewI=; b=R+vJ+O7Q75bQc7Mo31AzbdUyYM3DPnCWs4jjgm3FV2r77EP1NrOHdfof2bnDjyQ30X gQvVq53OHj1ZtwCkIc7eprZCUGs/IsYT4e9gPrcb0lYqeLrns7/pX57P+d8C7bF5zki5 7jeZJQyD6u8qscxacq0OgGG1ycwG8u9zJBEUaWFaejy912oBBISIRO4nu/oP06qmVTkT J7HfzUMxJ7W8d9AdkgidcpJWT/Q5KtJnpSbzbkTkj8s648t4oD+Orfh5i9Z6VLMIUZaK Jp5OzND2id9Y8zuvLx3uZpJW4ESvPl9kxvSB6PXdU/ftAJqUAx22+ZV3D7scaGjYHbC8 wTGg== X-Gm-Message-State: AOJu0YwsCbmCawh2YAO44RxcmpONsgxp20mYnCYIOZSUvKw+NZVlOAaB OuveuClhtJWO9XFUSK5wF9MdXyNLMUxYBtijERziPLY5HNYbALta0r5WD/N3LAVR81FDJdwN9KO Tn6s= X-Received: by 2002:a5d:938a:0:b0:7c3:f631:a18f with SMTP id c10-20020a5d938a000000b007c3f631a18fmr899973iol.1.1707231192965; Tue, 06 Feb 2024 06:53:12 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVG5Yo9X9qz852Tts0zLw91gtWD2fAd7d3MiZvqRPOZWstZ3sSRChpejZH81PST3lyaDhMJQMzvJJ6gvPbe/fGICAHzdE9aaK0Xvn3Rn/RmwUQe7K1BJDTEEH67x8DjsFw= Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id d65-20020a0285c7000000b004713a339311sm561194jai.8.2024.02.06.06.53.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 06:53:12 -0800 (PST) Message-ID: <0149019c-4562-426b-bcb1-fb8376ba0839@kernel.dk> Date: Tue, 6 Feb 2024 07:53:11 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: build warnings after merge of the block tree Content-Language: en-US To: Geert Uytterhoeven , Stephen Rothwell Cc: Linux Kernel Mailing List , Linux Next Mailing List References: <20240206131050.0e86d882@canb.auug.org.au> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2/6/24 6:42 AM, Geert Uytterhoeven wrote: > On Tue, Feb 6, 2024 at 12:12 PM Geert Uytterhoeven wrote: >> On Tue, Feb 6, 2024 at 3:11 AM Stephen Rothwell wrote: >>> After merging the block tree, today's linux-next build (arm >>> multi_v7_defconfig) produced these warnings: >>> >>> In file included from /home/sfr/next/next/include/linux/bits.h:6, >>> from /home/sfr/next/next/include/linux/bitops.h:6, >>> from /home/sfr/next/next/include/linux/kernel.h:23, >>> from /home/sfr/next/next/io_uring/nop.c:2: >>> /home/sfr/next/next/include/vdso/bits.h:7:40: warning: left shift count >= width of type [-Wshift-count-overflow] >>> 7 | #define BIT(nr) (UL(1) << (nr)) >>> | ^~ >>> /home/sfr/next/next/include/linux/io_uring_types.h:538:35: note: in expansion of macro 'BIT' >>> 538 | REQ_F_CAN_POLL = BIT(REQ_F_CAN_POLL_BIT), >>> | ^~~ >>> >>> (and mny more similar) >>> >>> Introduced by commit >>> >>> d964e8440442 ("io_uring: add io_file_can_poll() helper") >>> >>> REQ_F_CAN_POLL_BIT is 32. >> >> All of these BIT() have to be changed to BIT_ULL(). >> And let's hope all variables used for storing these flags have been >> changed from unsigned long to u64... > > I have sent a fix > https://lore.kernel.org/1960190f37b94276df50d382b9f1488cd6b6e662.1707226862.git.geert+renesas@glider.be It needs a bit more than that, just because there's one helper that also returns flags to be set. I've sorted it out and amended the commit, should be fine now. I'll check on 32-bit as well. -- Jens Axboe