Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp873245pxj; Fri, 14 May 2021 19:20:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtd9+bC/kgPtIWqtB/ckNaYxrYKDl29XYP+dPCdz4myjyjB8WfhxL2TTchQBrObmpA16tk X-Received: by 2002:a17:906:b885:: with SMTP id hb5mr4880494ejb.320.1621045239779; Fri, 14 May 2021 19:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621045239; cv=none; d=google.com; s=arc-20160816; b=Drcb6NxLvXXkHCy9Q2PjSDFwLM+Y3F/1pS8FTgMJ9z52Tc6Zq7xyEHblPj7QnH0iwS r74SqvH3TeKBb9hDixq3eWV/oX7AzrbPcgakn9wAbUDaroSfkXO3Gbyw9xlQ94/fpnx0 Sz3BXX/xtMoMAtJb2CG0d9BYXfhOrSi7SnNbVE+bDxJA9xJ+YsEOGHJNPolePMnP8+JF VyofFYmrCIcC54pD7vcOeR3E3fz8BYKbyrF/8zeqR0frzfEZWzk+FmHuy75ykmoAHOil gNBXN4S4aR4VXvIhwGzSvHw9qXt9iVGZzXwG6iBpQxYspRnCIR7+lntdpCvq8N9vWObM YmSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HbfUIhuA9O6Ses8N1rNY0zcVHckYIvLTtzUEKdhnaIw=; b=oS0j5LcQ4+5vkBShOs1yzOpv1H1fQKV27G2gtnA5n11ClfYZhUY7wMiY+C0N1IGQm/ EH7V+w5YqXhKLky4GWKgPRvmdBiP/CxCR7PK06OMIk9d5WBkIqBG8IDD/HMypN+xzaM2 myWf4miqpiugDeHW2lcmvUq0GhKVeTgB0BXu+px/YBBy2oF1ptuM9zS6ESaa7GIkZ1jG gNrzTYuO7KLl4OVQQbSPbBOh5kOjRB2S+XyAKj1A3a97rsakSOvIW2WKRJ/4dicQXiBQ WJNY8tyK1erN4QdPoSQ6AaTt4eg+zWK/YJAE1RrNde2yEOsax9yYC2oLdqKo7k/0cEvN 06bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NBCpZehE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l16si7857539edj.405.2021.05.14.19.20.15; Fri, 14 May 2021 19:20:39 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=NBCpZehE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231851AbhENUHG (ORCPT + 99 others); Fri, 14 May 2021 16:07:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:58566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbhENUHF (ORCPT ); Fri, 14 May 2021 16:07:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36E92613C8 for ; Fri, 14 May 2021 20:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621022754; bh=ZKEAYTwausCmdbG0qh1fB7/NKEdzLp+qbI4i/JCr5vM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NBCpZehEwnEhP+7yH39SNRoSR083AwlT1RmC8Ox5sgSENhhccuLjSefqAQkfSOFkb BTg2eonoq8VM+y/FSVDqKZJ6Hj4JsPe09sjFStOGNO4Y+3v0J5rNHyPiQxoaa5w1OG rzn7o0Pzt8+fxIr4MrfIScWeOzRkIlZ3g8GhYM31SIZKTn2PkQY6kWMjqnzaxOTjsQ anyjNxe9uHmSK5XJOpmowjyAkJWFrFEOE2iI/+zXmkMCBcsnFfsxx40rMkeVq2yWrK dWW8GKeiuONeiHQwfKObiGcLCFpK1GAqZKynKzLnLo+8flV6z2EitNy0l6MOc7nMmU eGGn1cmcHpMvA== Received: by mail-oo1-f54.google.com with SMTP id t17-20020a4a3e110000b02901fab2f46a48so129691oot.6 for ; Fri, 14 May 2021 13:05:54 -0700 (PDT) X-Gm-Message-State: AOAM532cQCTfE5Mc9WvzK5IV3stk1HJY6Svhj2bMx0nTLuyD8aOjFqSN 1WsXRXl3bCkbxsHs4ko8WWCsBeEOj2GVTvxvDNA= X-Received: by 2002:a4a:be86:: with SMTP id o6mr20226189oop.67.1621022753593; Fri, 14 May 2021 13:05:53 -0700 (PDT) MIME-Version: 1.0 References: <20210514140556.3492544-1-arnd@kernel.org> <219848ed-e0ce-634a-29c2-caca813b054c@gmail.com> <42f70914-e46c-20b9-6b13-8e8d855112a9@redhat.com> <29d069f2-a1c8-eb43-02ec-69c86b3cb107@redhat.com> In-Reply-To: <29d069f2-a1c8-eb43-02ec-69c86b3cb107@redhat.com> From: Arnd Bergmann Date: Fri, 14 May 2021 22:04:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] platform/surface: aggregator: shut up clang -Wconstantn-conversion warning To: Hans de Goede Cc: Maximilian Luz , Nathan Chancellor , Nick Desaulniers , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 9:41 PM Hans de Goede wrote: > On 5/14/21 9:38 PM, Hans de Goede wrote: > > On 5/14/21 4:21 PM, Maximilian Luz wrote: > >> On 5/14/21 4:05 PM, Arnd Bergmann wrote: > >>> From: Arnd Bergmann > >>> > >>> The assignment doesn't actually happen, but clang checks the type limits > >>> before checking whether this assignment is reached. Shut up the warning > >>> using an explicit type cast. > >> > >> I'm not too happy about this fix as (I believe) it will also shut up any > >> valid GCC error message in case those macros are used with non-u8 (and > >> non-SSAM_ANY_xxx) values. > > > > Since you're the maintainer of this code, I'll go with your judgement here, Thanks for taking a careful look. After a little experimentation I managed to come up with a different workaround that avoids the cast. > I just went to patchwork to drop this patch from the queue: > > https://patchwork.kernel.org/projecat/platform-driver-x86/list/ > > But it never got added there because platform-driver-x86@vger.kernel.org > was missing from the Cc even though get_maintainer.pl lists it. I checked this as well now: the entries for the various surface drivers all contain a reference to platform-driver-x86@vger.kernel.org, but (at least in v5.13-rc1) the entry for that subsystem that lists the include file does not list this email. Sending v2 to the list now. Arnd