From patchwork Mon Nov 27 09:39:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10076173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B765F60353 for ; Mon, 27 Nov 2017 09:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E1CE28C95 for ; Mon, 27 Nov 2017 09:39:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82E5428CB8; Mon, 27 Nov 2017 09:39:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40C9028C95 for ; Mon, 27 Nov 2017 09:39:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65A406E234; Mon, 27 Nov 2017 09:39:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10BA76E22F for ; Mon, 27 Nov 2017 09:39:54 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id 11so22389289wrb.6 for ; Mon, 27 Nov 2017 01:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qNZFI4ysavepuN+xo/NAL8+J5Cm/sPYjEsoR5sTt7xE=; b=KY2RHWoIz4Il4Zz3m4qxcNwgkriq8z7LzY2Cpeeur0jltfwqrAchYthNEYB2cVegf7 S0eToIefWqHYB2DDZzFXfv0y+K08/90DSeNy74GGbFXwfafhL5CcV0Qu1j8f46Eu0YkN OsLzL5ITtkScxLO4NPQ8yvaKhR7aV7fo6l66BV64XSg8r+Q271TDWvYy0gMloPc1WDkH Tfm2P5nO+1H7QvQnenmenq6xaIDqlWRRQhjoVkbVpPrt9EevBLJA0E7LPxwvYme4Kv8o KSDv8HoFUgW4Av75coBDJQ5kVnyALYYSg+1qPYZmtXwQkvk2gBaT9si5a0y2faZffW7k A4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qNZFI4ysavepuN+xo/NAL8+J5Cm/sPYjEsoR5sTt7xE=; b=iiY+ZjBMQoVy0Q7NuVmbEvXwjs+SFsj0tG+Dn7UIr9Gpxl43CkRHq6EO6UyT0APyi+ GYL06hCdbNnNaKH50Ls2jQgYrUe/Pk8BHCbv5IclFqqlHmNV3a5b4SMSKtrLY8KX4Gow xqXeTUU1YsCnJeICwhpsyHtZi7wGVqt49KhiK8RqHoDCI5ehUUfrtae3hNo9INL+hO+D Cu2Irg/OGTTTRPeXtfit7ID1lFaNubhTwaLvF1Ut5f3PWjnO4qnh/MGwE7i2HaG+Nur3 S1cbHfKjg1cYAgs7sT47t5yEjKAb1Y9EdXSMJpn8TaTDEH0Ms6iykh6dAlt2FSIxI0C2 oaiw== X-Gm-Message-State: AJaThX4XQYI20H2/EGoyazcw2ukwiT66ivJxLcHpnDKP3B1uwSW67UNm v+x7xeUoVYuSrcHD9LH7USc= X-Google-Smtp-Source: AGs4zMazh5lruD/3G4/+hYjKyb8sgyDXtImHTgN+tQjgOoOIvbq02RCMkF68oEC28oYawrry+eXpfw== X-Received: by 10.223.199.212 with SMTP id y20mr22093252wrg.60.1511775592390; Mon, 27 Nov 2017 01:39:52 -0800 (PST) Received: from localhost (p200300E41F200F003F65F430A8AE2E44.dip0.t-ipconnect.de. [2003:e4:1f20:f00:3f65:f430:a8ae:2e44]) by smtp.gmail.com with ESMTPSA id v16sm1152052wrb.11.2017.11.27.01.39.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Nov 2017 01:39:51 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH 1/2] drm/fourcc: Fix fourcc_mod_code() definition Date: Mon, 27 Nov 2017 10:39:47 +0100 Message-Id: <20171127093948.20986-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171127093948.20986-1-thierry.reding@gmail.com> References: <20171127093948.20986-1-thierry.reding@gmail.com> Cc: linux-tegra@vger.kernel.org, Daniel Vetter , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Avoid compiler warnings when the val parameter is an expression. Signed-off-by: Thierry Reding Reviewed-by: Daniel Vetter --- include/uapi/drm/drm_fourcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 3ad838d3f93f..a76ed8f9e383 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -188,7 +188,7 @@ extern "C" { #define DRM_FORMAT_RESERVED ((1ULL << 56) - 1) #define fourcc_mod_code(vendor, val) \ - ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | (val & 0x00ffffffffffffffULL)) + ((((__u64)DRM_FORMAT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) /* * Format Modifier tokens: