Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2419580ybi; Thu, 4 Jul 2019 10:41:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYJmwQ3031FP8yVvW04jtHvt4jJp4pfirkVHUQ12vPLjFxgC1qX1Qli90ABzy7JJaGmwS1 X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr51662440plo.88.1562262103810; Thu, 04 Jul 2019 10:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562262103; cv=none; d=google.com; s=arc-20160816; b=kQaa1YjhY65dWj+K8dkX7f0pQyY7u76m1J3DMJDlAXfqC8vocfrUeBqKX03WxgojNe 1qRDcERIDaqIP3IFuYlpCk0ex9r96ybSl91xcUsNYCn8an6Vfn7KQTDXXT+Klso+4G1f ORDh+24ievYF12D7vNeCeCxbvBhQN+bbZNEc5DyxWi2n1blZDEigWP7ZgziIJJRf7mo8 6vFFMhhHbygVS+xMv4qu9duaIyz5aBqASIlH5DC+w2lLrZOb1HRAaXVn1ubA+tTU8pel YsKzSPeBQ7ONOeQwOPExvTp6WYRWYdysIrDpl5VUBXJNkfq9FKmnE7/BdkS9ubVlQxAL rFpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=CkgDdHVaxcb9rT/2SredJkmJsQ+Tw2cxRbLdVs3ZeiA=; b=eaVI2x15CZlxsePXxvFFTfoq3bNxjRhAv1G5CLB6ZGyj2L2CPRSc0dSSyuddMPxXog fFI2iSRNOvomSbU1OGY8N9hy3t5fLbJ3VDBDuoixMddcEPZj3RM7z0D4yplVCYi+vwG2 HitOdR1VrtVF2ClKwr/GRXB7ElG7eRf9qdH3r+QDddjhNByqQmgbPvLcCo1RTztnpSR/ sgEWUL5q3JstDlQGCXLWTbV5qnpJGvvLH1+PwRyU7BeoM/ZM6AKWeuvBFV7Ev5ciFyvy 1PNQjXV+lOFoksZqgausBcTDtqJ8ymYwz+KIoOVSJNySS/pzZQal6vJj46fxcDrHUO6N 5ueQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eng.ucsd.edu header.s=google header.b=EkpZ6CWG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucsd.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si5868720pfr.42.2019.07.04.10.41.28; Thu, 04 Jul 2019 10:41:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@eng.ucsd.edu header.s=google header.b=EkpZ6CWG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucsd.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbfGDRE2 (ORCPT + 99 others); Thu, 4 Jul 2019 13:04:28 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46772 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfGDRE1 (ORCPT ); Thu, 4 Jul 2019 13:04:27 -0400 Received: by mail-lf1-f67.google.com with SMTP id z15so4629533lfh.13 for ; Thu, 04 Jul 2019 10:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eng.ucsd.edu; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=CkgDdHVaxcb9rT/2SredJkmJsQ+Tw2cxRbLdVs3ZeiA=; b=EkpZ6CWGQaSkDtpNkWc7nrNsvAwSQkc2dO5ImphTS+aQsDRNZolMBeZOVh3qGTPyrh hgWP7oT7ncgYt0y0JrnOI6Jzdk7OVEZiCRugORmj+zNXklvb8nVVGACdlE7f7xHtNcr5 NHb2XdBo4D4M5WFOmlQmnRjMgdej5qAxUyE7I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=CkgDdHVaxcb9rT/2SredJkmJsQ+Tw2cxRbLdVs3ZeiA=; b=kUoe/NM9tZ6mlYTIqXdd/yG6bOlXJ6jiXoOMII/XyBHSxbpI69IlEMicFiCzJKyBGm yrHQj8W1ik+FejbT5wNPBagxcLAdc1lH+Wy9ByOdDj+oew5oSU3+OQJJvoXfD/XGOkmd 0MytzfFQ4Lpfjfmu1r/no2B3XXWHnmuF6aGrRd09l43ZZGlmVI+nMaPepTS/jIEwo1p0 jKGqVLDcYnyZ6jLkYz/rOH4yxPhkj+rKOjrkLLhNwLfRrD/BYTL+URyo20tJpsFVinqT h1FeMhL3FP/0wsfEYL3+m7BIHuMvSQ08uglpZgYqqL9XSmO0d9hF4CkqYqUB6EsU1YdV B3WA== X-Gm-Message-State: APjAAAUUZYTctccgcLHkHEJAHYVJd3DJQ4rOdq8/Uz1GopoUm7lbktez bpvhaPv/e8P3m93UMydctzRubA== X-Received: by 2002:a19:9104:: with SMTP id t4mr5013803lfd.179.1562259865614; Thu, 04 Jul 2019 10:04:25 -0700 (PDT) Received: from luke-XPS-13 (77-255-206-190.adsl.inetia.pl. [77.255.206.190]) by smtp.gmail.com with ESMTPSA id g4sm985530lfb.31.2019.07.04.10.04.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 10:04:25 -0700 (PDT) Date: Thu, 4 Jul 2019 10:04:22 -0700 From: Luke Nowakowski-Krijger To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentee, PATCH] media: dvb_frontend.h: Fix shifting signed 32-bit value problem Message-ID: <20190704170422.GA25633@luke-XPS-13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix DVBFE_ALGO_RECOVERY and DVBFE_ALGO_SEARCH_ERROR to use U cast which fixes undefined behavior error by certain compilers. Signed-off-by: Luke Nowakowski-Krijger --- include/media/dvb_frontend.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/media/dvb_frontend.h b/include/media/dvb_frontend.h index f05cd7b94a2c..472fe5871d94 100644 --- a/include/media/dvb_frontend.h +++ b/include/media/dvb_frontend.h @@ -144,7 +144,7 @@ enum dvbfe_algo { DVBFE_ALGO_HW = (1 << 0), DVBFE_ALGO_SW = (1 << 1), DVBFE_ALGO_CUSTOM = (1 << 2), - DVBFE_ALGO_RECOVERY = (1 << 31) + DVBFE_ALGO_RECOVERY = (1U << 31) }; /** @@ -175,7 +175,7 @@ enum dvbfe_search { DVBFE_ALGO_SEARCH_FAILED = (1 << 2), DVBFE_ALGO_SEARCH_INVALID = (1 << 3), DVBFE_ALGO_SEARCH_AGAIN = (1 << 4), - DVBFE_ALGO_SEARCH_ERROR = (1 << 31), + DVBFE_ALGO_SEARCH_ERROR = (1U << 31), }; /** -- 2.20.1