From patchwork Thu Mar 27 15:28:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 27212 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1B0F7202FA for ; Thu, 27 Mar 2014 15:49:12 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf13205399obc.5 for ; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ZYCbBF9BQ7wwVlEJeL81po08/JBcdM5GVU56n85Xwt0=; b=GIOiBQq2L/XrQ8jaCeHMZhxwJXYMHpE9Z7UcBlhn+p/NFtu7pQJAIMgaqBN0fFgfCi tOwiWAmUFm8xMWQbt689cTPOOImKnLWmRJM53WMTNfZKhWxSlstRkswMBTTjSgYWt7gf MaHxLVdcOmEf021lbVOYMZBKVGI3xXXTqJz8S8nxyZCKphn6tEf7ifKN3qoIod8i2gBW WmTmASrRv5dJwd5XIuWEKkcRY/nn1Q6yqU8LgBC9fqQ/gv4eJ7fB1+DNYWMwMX2V1crD m7RNqmEOvbaRj7RvFgZoPc0b0ndPOUtTOF6OYNWl6n50lIwFfMA4zZ5QLdx0xPJiHwpu LguA== X-Gm-Message-State: ALoCoQmE6Y3bVmCYwBgj44675HU9vbKK23iPhm7EUJQkqYcIqi+WxJqa0BWrmrvFqzP0PS6R21rF X-Received: by 10.182.60.195 with SMTP id j3mr949290obr.17.1395935351469; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.169 with SMTP id z38ls1127181qgz.36.gmail; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr2052085veq.3.1395935351385; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id od9si636948vcb.65.2014.03.27.08.49.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:49:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id im17so4350321vcb.23 for ; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) X-Received: by 10.58.188.52 with SMTP id fx20mr2093685vec.28.1395935351303; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp38719vck; Thu, 27 Mar 2014 08:49:11 -0700 (PDT) X-Received: by 10.140.102.45 with SMTP id v42mr2879149qge.5.1395935350919; Thu, 27 Mar 2014 08:49:10 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q105si1202560qgq.170.2014.03.27.08.49.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 08:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:54455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTCYI-0002dc-GN for patch@linaro.org; Thu, 27 Mar 2014 11:49:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTCXJ-0001aU-4s for qemu-devel@nongnu.org; Thu, 27 Mar 2014 11:48:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTCXD-0001US-OI for qemu-devel@nongnu.org; Thu, 27 Mar 2014 11:48:09 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:35967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTCXD-0001UA-HT; Thu, 27 Mar 2014 11:48:03 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 4E3314372A; Thu, 27 Mar 2014 19:48:02 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id A7ED0697; Thu, 27 Mar 2014 19:28:36 +0400 (MSK) Received: (nullmailer pid 1792 invoked by uid 1000); Thu, 27 Mar 2014 15:28:30 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Thu, 27 Mar 2014 19:28:18 +0400 Message-Id: <1395934108-1694-14-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395934108-1694-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1395934108-1694-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 13/23] hw/i386/acpi_build.c: Avoid shifting left into sign bit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell Add U suffix to avoid undefined behaviour. Signed-off-by: Peter Maydell Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael Tokarev --- hw/i386/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 7597517..b34d927 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -907,7 +907,7 @@ static void build_pci_bus_end(PCIBus *bus, void *bus_state) build_append_byte(notify, 0x7B); /* AndOp */ build_append_byte(notify, 0x68); /* Arg0Op */ - build_append_int(notify, 0x1 << i); + build_append_int(notify, 0x1U << i); build_append_byte(notify, 0x00); /* NullName */ build_append_byte(notify, 0x86); /* NotifyOp */ build_append_nameseg(notify, "S%.02X_", PCI_DEVFN(i, 0));