Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5051259rwl; Tue, 28 Mar 2023 15:40:35 -0700 (PDT) X-Google-Smtp-Source: AKy350YsdZVbKXerntbcbNtSQFnMQYn2ge2+hZLt8kszCoI2UYhTfdSh8fT4FGRjeOUPwYj4ejzE X-Received: by 2002:a17:906:3a45:b0:932:8dc:5bf4 with SMTP id a5-20020a1709063a4500b0093208dc5bf4mr18154778ejf.61.1680043235322; Tue, 28 Mar 2023 15:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680043235; cv=none; d=google.com; s=arc-20160816; b=Xn7VWWzMSU09/rv6NsfzEk7riyf50D+dOHD15hXaVKrbxoTa59Z2Gzg5QzLBfguqK6 ovDUwD80c3ui24KyqJ22WMzotMQRGs8T9cSI1FHb197zgAZ5V/3e83xxyTP2MQgU9v0D ViYp0iJGqFeFwVknu0ulrbfZhijkBThgeT/3+pa7ZBsDtsOGi6DpgdoW0pYtSkuX2aM5 53x8p3LbbYFgB2rGouTwgGneJmhFvksj1VNUg2Ejt+xV4KIkbkpfeX5EWW9GgL99NEhZ uSMT2G2h8G7vowEHs412TeFb0xYgYs3xPLY1meKZMwnXXtjgUnCWk44o9spvrPzcrIyK HtQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NZTRJ0TTqpgk5AjNv95VOIk7xe/ymEV+pZnyuKfYsGM=; b=zdeeXvi3ry232UHYn4H6rWc11vqvMkO5clZpMShRuwMChHV+lLOr9q7ZDK2VdWCwKW 46aj9kwdGfvH5w3fLJeMlkaswns0e/ub4MZ+6l7BXIKPTQkW15Rocadf2OGMfjap9gRr fCc4TmjlqwPknw6flmCf8HQ3D9mSpFtgRrNsC7Fkzp2TAdm4q5ZkMNnI6R/tgl3+DWa4 0ZRE2zjpzQOJhEpQ6yZHX1t2c6giI6u6x5UZvk5UJlz+qPWVAfwmJGEQMLLjujeoMXSE P4QYdYvBvmiUYUUwqHBHNedlorQTkm1vUwzW1J3ImV2G/Veo1wn9lQtti2TCyCMNEhOk /Hvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MeyWE82b; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s24-20020aa7cb18000000b004fe5ea74b93si30782316edt.349.2023.03.28.15.40.10; Tue, 28 Mar 2023 15:40:35 -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=@linaro.org header.s=google header.b=MeyWE82b; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjC1WiR (ORCPT + 99 others); Tue, 28 Mar 2023 18:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjC1WiN (ORCPT ); Tue, 28 Mar 2023 18:38:13 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DBD2681 for ; Tue, 28 Mar 2023 15:38:08 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id s20so14187246ljp.1 for ; Tue, 28 Mar 2023 15:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680043086; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NZTRJ0TTqpgk5AjNv95VOIk7xe/ymEV+pZnyuKfYsGM=; b=MeyWE82b5nRejN5xQ6xs/nTf4qV/VYG55PfiMgUVuECOnfrCeGEAFUAdAfV7a3QVWS F0oR+OhDiAoLm2+K2dI/DEXjvwQ1s8LXB6+6RK8cIq4iRN32sY/GyCnve8TTBKjgQuEc Kg4bdvcZje4GD0Cg/jjCR8WTPdU/hJrE5TBK/u6zVMrefCe+x/aZTojiP0sc6XhSiu2X Iz1w21O5qJkrRNU5fjGBRn8903bqEruNkSm8TxTgugVHYuw1Q3kBSSz9GH7SHiXYvf+P bPJs+IY75bLsmrhlPu2nj8whMLi7mk/qDRAe2UEg92EBynFLjmeDMoZ5EIvPTosSP5LC 6Vog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680043086; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NZTRJ0TTqpgk5AjNv95VOIk7xe/ymEV+pZnyuKfYsGM=; b=FMHN7En2viaF8Ic/1xbyc08pPurgnYNQD1W1OMuu067gtdBL5Dlp1G0wqRWUrf9dEG WJBK9Uem+ujuIgqwfJR1gijLgvb5KqWiYuU26xzsLRGQuYLnIn4olZwd7EfP6P5gi6fC sBGcZemBpE3GkDr6ttil0Fn6z+m3yfLqxLrZCHGDcGrLPsYV/YZNU73RddjPUw42zAWj REaK2bzR39SYQdTnFWWUEz8bJbuXQPnt1FSydOlGjkmH4wzCAOJNKUAH+k/coY/I9HMc eU27B+XfLh5fDDdvYVDCAbAAULHZV+iVSFu9q3Qp0CxdVp+ssnwPGr2ONK2eLM61o2tq 7P9Q== X-Gm-Message-State: AAQBX9cRevpwfxHsV5tDWz8lj9QE8aKxGJYjPA13aWxC1ElraWHKn6Sb gYmVgLx4Nkgy1E+EH/wahB574A== X-Received: by 2002:a2e:3813:0:b0:299:9de5:2f08 with SMTP id f19-20020a2e3813000000b002999de52f08mr5119053lja.6.1680043086182; Tue, 28 Mar 2023 15:38:06 -0700 (PDT) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id t22-20020a2e9d16000000b002934d555783sm5199522lji.6.2023.03.28.15.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 15:38:05 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Vinod Koul , Konrad Dybcio , Bjorn Andersson , Neil Armstrong , Kuogee Hsieh , Geert Uytterhoeven Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/dpu: Fix bit-shifting UB in DPU_HW_VER() macro Date: Wed, 29 Mar 2023 01:37:50 +0300 Message-Id: <168004255463.1060915.9592020077874857953.b4-ty@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306090633.65918-1-geert+renesas@glider.be> References: <20230306090633.65918-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Mon, 06 Mar 2023 10:06:33 +0100, Geert Uytterhoeven wrote: > With gcc-5 and CONFIG_UBSAN_SHIFT=y: > > drivers/gpu/drm/msm/msm_mdss.c: In function 'msm_mdss_enable': > drivers/gpu/drm/msm/msm_mdss.c:296:2: error: case label does not reduce to an integer constant > case DPU_HW_VER_800: > ^ > drivers/gpu/drm/msm/msm_mdss.c:299:2: error: case label does not reduce to an integer constant > case DPU_HW_VER_810: > ^ > drivers/gpu/drm/msm/msm_mdss.c:300:2: error: case label does not reduce to an integer constant > case DPU_HW_VER_900: > ^ > > [...] Applied, thanks! [1/1] drm/msm/dpu: Fix bit-shifting UB in DPU_HW_VER() macro https://gitlab.freedesktop.org/lumag/msm/-/commit/c8f370bde5b9 Best regards, -- Dmitry Baryshkov