Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2950791ybi; Thu, 4 Jul 2019 23:02:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN65PJrXUStTsfB1w4zylpzpjk3knxz83yHmmgf5Cs2A6c79sBKdBhJBKFCSUwrBVr7tyc X-Received: by 2002:a63:e018:: with SMTP id e24mr2845474pgh.361.1562306545045; Thu, 04 Jul 2019 23:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562306545; cv=none; d=google.com; s=arc-20160816; b=X5byaSWoZGMyyhqcBF88tIzwIJviOt9WFixk2JcGLzdp4XCVGeeuuvfOxPmjswYTSg XNJEs8p9ddAYpqNZMa45YRyOCfvBAy7cw1DaQ4p+ZPVmcmHcTZHhWEoMalnLuJG6oSDh 8K8W1uYi832Nk1JfAHWohcy47hqzLDL51MUIwY3aJdJi3kCTGSEfs5FbefwFnL5ThU97 5mXSnOXDDyuason5KJRSwMZvx6gkdMVfWRLeR+rIymNwLqlqPRNKTo2tOnTBLP3Pbw2b uVrY2QA6U71MdD77dSzNIlbnHXBoaIHvACGW7xDh7xbJTo3H1URxWHRRXLFm07To8vxB YTzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zZHpR1gjwarSGHVqv0no0c6QrRcXjxpxwnXaYTcpilI=; b=iPFHuhf6bi0yMsB2kYnR8QlHi27yox2+4hhhH5ZR7x+mP4g9Srv3EZIbJFcCNkDWMI P8oX4lJDnOXsJRZuPHx9OtQZ/d1U3VY8oKtPvciSGtTQMK8W9B1fFccAkJBsGYnum/+a eW5EDpTOdOlMaWsyxlj6rReYujEtuaw6wHqT88stKED+r7jht9NfNm41mbYhEvhsQ3xn 6wkY2Li8eHpnQXPimnOSoQ/Q741v9iai92rcnq8pFO8h7Z/OmfRNUhkYuhKcdT23G5rp QGK0xz+sgLzOm7PJ0rASIUA7P8B2yGdbV2X/kVcqbJbowZTS1X9eIFb0fXY7Zxp11p34 bwUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WNoPX7tE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k63si7840350pgk.39.2019.07.04.23.02.09; Thu, 04 Jul 2019 23:02:25 -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=@kernel.org header.s=default header.b=WNoPX7tE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727604AbfGEFam (ORCPT + 99 others); Fri, 5 Jul 2019 01:30:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:51528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbfGEFam (ORCPT ); Fri, 5 Jul 2019 01:30:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 772F621850; Fri, 5 Jul 2019 05:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562304641; bh=ZXJGmtTtDCu80dq8Kr3bcpm8nifiAu8++BtQM5F+1TA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WNoPX7tEHWq8ZJ1jqSHPWaWgCjZpSL4p/wMZ2SNNsjkBsFu+x/SAnE8nPrlqhT1Bf qqML5npx752bSGT7jE/1QEwiZVpD7jHVrHax6ZHPL0D3CL1YfrfwjyDdiRYm61MiCH EQxtwhyCWbchz0rpjnEjrek5Mbs28vP1LSbpsGyc= Date: Fri, 5 Jul 2019 07:30:37 +0200 From: Greg KH To: Luke Nowakowski-Krijger Cc: mchehab@kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [Linux-kernel-mentee, PATCH] media: dvb_frontend.h: Fix shifting signed 32-bit value problem Message-ID: <20190705053037.GC8621@kroah.com> References: <20190704170422.GA25633@luke-XPS-13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704170422.GA25633@luke-XPS-13> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 10:04:22AM -0700, Luke Nowakowski-Krijger wrote: > 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) BIT() is better for stuff like this. thanks, greg k-h