Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp969531pxb; Wed, 6 Apr 2022 05:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjwB2brM+JP/Gm+B9Nz0GWfPmTgQ3jp/bBGdzwFJ3oQoCpfUJTMmjDn2PLfgJyZUWhGaHt X-Received: by 2002:a63:f10c:0:b0:382:623b:3bb9 with SMTP id f12-20020a63f10c000000b00382623b3bb9mr6903305pgi.97.1649248682436; Wed, 06 Apr 2022 05:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649248682; cv=none; d=google.com; s=arc-20160816; b=wWJ54mABdOVnEpV87G0ndo+8N/63If6lI3zWLNRWzPMjjQS/hk2Xm/bEDZerhEqJuL OOMg1dRaOc/GykB16UVHVxq+BvxoXvgNqjQmuzgpJ0RIY+sDNT5zDrFzHIPKL72etcdY MBxQk+EfjQrV0QBoQ4hlyVqinLkfYAg7k2VwGaBtb0Q5cy5um5tKecOghUAWxp2lWLkz 1Ldx938iuAP1wPMI2IkbmwsBwy/eFG4jKh9aGaUDgqhPRRV8qe0CuMvUafja3WNhOy4Z m1lYpbF7Mhf7ju/53e9HWdUZP7gJAs4somVBidt0dYyan2FaAkyQcpOd0t8st29vk4fA trHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=44WdJDAM4MlPxpp8F4IUlomW8eAElCp3inRrCglwpEA=; b=RaKMzkJLRQb2S8nM5BUp/0wV/cFjYsWsqEKQbuPJJJr/Ui+gjDOx5fny5Af7w5fGAr P4WD3DubhdOL0vZ1ENLrgeMsoJcmQpvH5z2NVcmyD66V9dO0tOiBSVdcaWq3Rjm8dVAW FqIau2hdl05hN4iBwIi3JES1tOZCuBblLS73zFfKm0KwCMhPe0nMWT6dZfeaB+j73kHm jSCe6w4QdaMiqLPOPSwOfKn9n2cSAh4Hm8rMulUH+/f6cDc6NsWtpSMpCTSYb2nbg9oT LyU37OWCb/ewXgOnigWTVP/ixCbY/FzkKVVjh/Cx6IvtkG3VUhKee44vg63MRUB4BjHq AeVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=te4oG7MY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EqNQeYzt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w10-20020a170902d70a00b001568ce587edsi11392910ply.549.2022.04.06.05.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:38:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=te4oG7MY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EqNQeYzt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 23EE24D2E40; Wed, 6 Apr 2022 02:12:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381128AbiDEVhm (ORCPT + 99 others); Tue, 5 Apr 2022 17:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389357AbiDENdp (ORCPT ); Tue, 5 Apr 2022 09:33:45 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFED2EAC84; Tue, 5 Apr 2022 05:39:21 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 5CAFD1F390; Tue, 5 Apr 2022 12:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649162360; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=44WdJDAM4MlPxpp8F4IUlomW8eAElCp3inRrCglwpEA=; b=te4oG7MY72SKmF273U2pX2k2+jHnDSNTgOk+ONkm2R8nMhGILo+e9GXOlwan922cj8u3A6 HDBS34ElcfPt2jQeGz1Pxw430DT12bAMEUTqpLDXsvOR786TYOTK5C8R/Y9oYKnKbLY1x8 gZpIANGTaDb2BeYLSEETOntX9yVpBLE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649162360; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=44WdJDAM4MlPxpp8F4IUlomW8eAElCp3inRrCglwpEA=; b=EqNQeYztjzGzSZ3CRA8Me4uKWtVwr+ytPqgCM1QxvVUmMXESpdPlw9i/GK0uTQ+OhoijHy aSHlpK/Esr43FBCw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 56E33A3B88; Tue, 5 Apr 2022 12:39:20 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 10510) id 4DD9E64E6; Tue, 5 Apr 2022 12:39:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id 4CA16628B; Tue, 5 Apr 2022 12:39:20 +0000 (UTC) Date: Tue, 5 Apr 2022 12:39:20 +0000 (UTC) From: Michael Matz To: Peter Zijlstra cc: Borislav Petkov , linux-toolchains@vger.kernel.org, Richard Biener , lkml Subject: Re: older gccs and case labels producing integer constants In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1609957120-1876949182-1649162360=:963" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1609957120-1876949182-1649162360=:963 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Hey, On Tue, 5 Apr 2022, Peter Zijlstra wrote: > > sound/usb/midi.c: In function ‘snd_usbmidi_out_endpoint_create’: > > sound/usb/midi.c:1389:2: error: case label does not reduce to an integer constant > > case (((0xfc08) << 16) | (0x0101)): > > ^~~~ > > IIRC GCC-8 fixed a bunch of -wrapv issues. Could be this is one of them > I suppose. Or better said, later GCCs returned back to the old behaviour of rejecting this only with -pedantic even in the presence of -fsanitize. But pedantically speaking (ahem!) it really isn't conforming c99 (which the compilation flags claim) , and in this case it seems easy enough to make the construct actually be conforming in the kernel sources, so that should perhaps be done? Ciao, Michael. ---1609957120-1876949182-1649162360=:963--