Message ID | 20171021082529.31351-1-matthias.bgg@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 7A11160375 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 21 Oct 2017 08:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF0E28BD5 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 21 Oct 2017 08:26:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F51B28E10; Sat, 21 Oct 2017 08:26:28 +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=-3.7 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D43DA28BD5 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 21 Oct 2017 08:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=21bEVnhtFzu7qj3IXtMTQZFEQzv8plAyFCxtpvEp8vI=; b=lPd DvRkoj+QjU+Gu7GU6xHGvfhe1I8RtnPTNcUfv1f6se+/nhRf9tMyl32PoFwUcHmHhQ636+3ZXkEP+ Rx2HgiBO3Tgvnx8D+aumtNV2meJZRXs6uo0sDXZtSrktb5hhE/xqgwQaHFNMpkLsE3hBGqMOuZf9x WE4qY9eUKyUp9sgpHNIY3uzfjXgt1M5gvY5Xb4Uq/OTh8lUMTmOqztFgHxE8JLtrNrB4GC5yaxhbA As6+b+zxzNWGCVEqzVPzXPvh3XjqpbH/1ZDTREtIqJCV2UUkmdD6J/ME4lvyuEnl+GUxwvvqZQoaa ml6WiQLDGtr2U+oRcCscckbRQP0TcMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5p6t-0005ip-3u; Sat, 21 Oct 2017 08:26:23 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5p6X-0005SX-JM; Sat, 21 Oct 2017 08:26:04 +0000 Received: by mail-wr0-x241.google.com with SMTP id u5so13084249wrc.5; Sat, 21 Oct 2017 01:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UgETz6WbP/Z2WL+dSHfEGzbgEfenwpRYLpxNLzDeWp4=; b=mjFzGnm51tPGbbVdrZnXOTvKfBKqIVMNKGRlwZJrLQKfeu6Rrpi6QIc4d5E25AIP2d Wir62H5h7KcvFdBOHbcjVEB85cZnvvL5pgkUjDtK9lBqgLg+bOo34Y52ux2dSeAC9pnX Tmr9Osy+U62EEfFXzusEvALIvlxSBdE9Iib0dYIpWhKdkGoNXqvlxLs20d1z8OIcyk88 SDv5MO/JHTOuqmVbKrfF9Kqe0HMvOZPuwTt+FQC8Kmk5hUDxBCqlweBPNQkWaUxAXJdU iMJX77Z3H8P7PbanMmE7ygi7Tbz4kcRKNhqfzr/FP2EZzwdJRX60cJwmy64a8J7nbQyN I6NA== 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; bh=UgETz6WbP/Z2WL+dSHfEGzbgEfenwpRYLpxNLzDeWp4=; b=Rbc/GUVnWWr1HfK0ciTBDKEfZ7mUFHrG7Vwwf9t75kGEtQfLrXNLe7jHIuP34XpCHU 2wg27nl72gFFXDKzVTmlsd7ESEuMO7ZX+/3eoI57SdznpteCp2uqv2EE4qDnPWHBylwg 0TIr4ecLsDfuGlPpVkYwH2oZ+HtFMXf7+eGnublL6eSfHFr3B2ecVZn8Y/5PYN3dHpD2 Gh1x5rXXLIV0k2KzUG/4caY4vOkOTwDpiA9HbOB8wjMdvXlG1JAoOb54ThqPT6NbMiwT YSd+Jo4ATEGe7woZEicTfMsq8oGcWJhPEQz7PgEB7wxdR8fR3/y4ScOGNp6wpb7QxWsr 4UvA== X-Gm-Message-State: AMCzsaWICIYRqtXc3yNX/aeKNtuEYvl1S2X6/gFR5ngrQOPeT1cg/0hG ik9OR9UAvyYWyNMfgkVxjvAgTw== X-Google-Smtp-Source: ABhQp+TTqhIsLLE9Fm+JZPxa/x2vJiXWFbvH18zt8+8xt9UmL0qk8MfWf7EKpXoY25WLF2WSzywA+w== X-Received: by 10.223.179.20 with SMTP id j20mr6927878wrd.116.1508574337313; Sat, 21 Oct 2017 01:25:37 -0700 (PDT) Received: from ziggy.de ([92.57.80.122]) by smtp.gmail.com with ESMTPSA id k57sm4493428wrf.95.2017.10.21.01.25.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Oct 2017 01:25:36 -0700 (PDT) From: Matthias Brugger <matthias.bgg@gmail.com> To: sean.wang@mediatek.com, chenglin.xu@mediatek.com, chen.zhong@mediatek.com, arvind.yadav.cs@gmail.com, christophe.jaillet@wanadoo.fr, robh@kernel.org Subject: [PATCH 1/2] soc: mediatek: pwrap: fix compiler errors Date: Sat, 21 Oct 2017 10:25:28 +0200 Message-Id: <20171021082529.31351-1-matthias.bgg@gmail.com> X-Mailer: git-send-email 2.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171021_012601_879310_4D7284D5 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Matthias Brugger <matthias.bgg@gmail.com>, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 5d61d127e1d7..912edf93c192 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -683,7 +683,7 @@ struct pmic_wrapper_type { u32 int_en_all; u32 spi_w; u32 wdt_src; - int has_bridge:1; + unsigned int has_bridge:1; int (*init_reg_clock)(struct pmic_wrapper *wrp); int (*init_soc_specific)(struct pmic_wrapper *wrp); };
When compiling using sparse, we got the following error: drivers/soc/mediatek/mtk-pmic-wrap.c:686:25: error: dubious one-bit signed bitfield Changing the data type to unsigned fixes this. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> --- drivers/soc/mediatek/mtk-pmic-wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)