From patchwork Mon Mar 10 19:10:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 26004 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E39252054B for ; Mon, 10 Mar 2014 19:11:54 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf18456209qcx.5 for ; Mon, 10 Mar 2014 12:11:54 -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=hdoNo+02xdfNm9gXURQeWw80f0JU+IU0pVU324vsTk0=; b=aJ62UW6dCD8KwNYY9D+yQi6+dQbesmePyqp9tn7YOQkYYBWTz3ASWJg3sxEsfwy+JE z+v2haLt8lD0AlTNvEWmXj5TgYQZLU+DKDAYhS9aasb/O4kN7oMnv6A+CgEZ6cUhwig2 6hApYHud+y3rjnROERL+Lft/T873EUNyb/P2mo3RrQVJJfkMd3ci4/1fWR5GnZoH2x1f /3MWBby/Mv6/UGBeaZoYxJe8K7RvXVsmAn6D5c+2BiqXi/YvxPB9oJ3eDNArkWzGYfk2 wy13Qw8aHLRCKOppCCuvC02Xycpi3UK7X5UsyCf6MJ6S9Whv/ePRfZ8Od4KrWVYo/z0i GmhQ== X-Gm-Message-State: ALoCoQmQSyaVB+IXCVnqTQHryQJHjsS4iLbTGIa/DpgSuqHBZqb6v4301iobACWT5YaauQdqJwhi X-Received: by 10.236.41.234 with SMTP id h70mr12527225yhb.42.1394478714602; Mon, 10 Mar 2014 12:11:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.166 with SMTP id 35ls2213079qgf.3.gmail; Mon, 10 Mar 2014 12:11:54 -0700 (PDT) X-Received: by 10.52.175.166 with SMTP id cb6mr10131379vdc.1.1394478714378; Mon, 10 Mar 2014 12:11:54 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id t4si5004937vcz.58.2014.03.10.12.11.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 12:11:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so7501222veb.16 for ; Mon, 10 Mar 2014 12:11:54 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr24079774vco.18.1394478714308; Mon, 10 Mar 2014 12:11:54 -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 i9csp142032vck; Mon, 10 Mar 2014 12:11:54 -0700 (PDT) X-Received: by 10.140.27.120 with SMTP id 111mr26153820qgw.14.1394478713913; Mon, 10 Mar 2014 12:11:53 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id w9si9992830qgw.23.2014.03.10.12.11.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Mar 2014 12:11:53 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:50742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN5c9-0005oP-GT for patch@linaro.org; Mon, 10 Mar 2014 15:11:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN5bD-0004hH-1d for qemu-devel@nongnu.org; Mon, 10 Mar 2014 15:10:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN5b9-0003Jc-Me for qemu-devel@nongnu.org; Mon, 10 Mar 2014 15:10:54 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN5b9-0003JG-Gd; Mon, 10 Mar 2014 15:10:51 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WN5b7-0002U1-IW; Mon, 10 Mar 2014 19:10:49 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 10 Mar 2014 19:10:48 +0000 Message-Id: <1394478649-9453-13-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1394478649-9453-1-git-send-email-peter.maydell@linaro.org> References: <1394478649-9453-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, patches@linaro.org Subject: [Qemu-devel] [PATCH 12/12] hw/pci-host/apb.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: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.171 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 Add U suffix to avoid undefined behaviour. Signed-off-by: Peter Maydell --- hw/pci-host/apb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c index 1b399dd..a6869b8 100644 --- a/hw/pci-host/apb.c +++ b/hw/pci-host/apb.c @@ -58,7 +58,7 @@ do { printf("APB: " fmt , ## __VA_ARGS__); } while (0) #define PBM_PCI_IMR_MASK 0x7fffffff #define PBM_PCI_IMR_ENABLED 0x80000000 -#define POR (1 << 31) +#define POR (1U << 31) #define SOFT_POR (1 << 30) #define SOFT_XIR (1 << 29) #define BTN_POR (1 << 28)