Received: by 10.223.164.202 with SMTP id h10csp397119wrb; Wed, 22 Nov 2017 23:33:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMY+UcNpxZQ0QKJJcleC/nmV5rrvtELBu83WaGjrR7GENMBy7qCT1ISdSGHac3JQVROjaSWz X-Received: by 10.99.145.199 with SMTP id l190mr23204189pge.132.1511422422051; Wed, 22 Nov 2017 23:33:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511422422; cv=none; d=google.com; s=arc-20160816; b=M53oBNPSmtSlM/N+AuujgDkZe19xj5HI8+7II/eqjJ1FrNleVVrd3W1PL4sEtPMfrR eBMkg17EJxSbgv6wxawZSV5U2GSUxbBewpWhnP3K9EwgBLaHruhy1BeAvoEzq7oDnSV6 YCW167aUuowTNNPvYd7jMJ6Da6ZYKfiGb7NEWmPC4lg7uMiGDsB2Ujok5V0TBiBcDwQz buvHG2NqtsWdRS1U7a5Z7AxN8ViIU0DpPAVvxNg+obKIdbaIx0Y5uqiJpEnct9gPPOgv 3wyGxshLalVNgevKZrMKvSYEiMUO5ZgT/Mcg5zDutSiEDdXtvIbhr4E/uwpicCQ59zkL yEPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=wS2Nf1dfYh6OjFnHv0788vp8+B2k0QIqMj1jLbx8w68=; b=j0Iv6CMNv45SDQ4nZQi/V2ZKOUjRPnHtMfV1+/Pv5rRr4ZS3IRXHTb9iKr7H3WWxYy 4JYxVj1LtSLT4f3vZtui2ZcIOBrttgbO3Hu/4bUChrorMU/ysQFWKc/LQSv3vWq6eoZ6 ID/ATMmf61/mbnqw5DIEmr/GXTFZXaEdcms9c1Kv1PKgfk5J8K8rOR4fnwe23QAAfwfF yxaYW++nN6r3TJ9sQ4bGzQ2mhbpNkYUePrWyl0GaSHBHKIhmQzScdgKDe6chhM/JerBC 8gUcH+PNVBteVTpn1E5xNBCAlItKq1OiqulnLq/5zx1You0bXqj9KDNEu/Zk+RrciStt 5FVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IDx0GMNP; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb5si14889970plb.22.2017.11.22.23.33.30; Wed, 22 Nov 2017 23:33:41 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=IDx0GMNP; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbdKWHcz (ORCPT + 77 others); Thu, 23 Nov 2017 02:32:55 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33057 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbdKWHcx (ORCPT ); Thu, 23 Nov 2017 02:32:53 -0500 Received: by mail-oi0-f67.google.com with SMTP id f135so12620573oib.0 for ; Wed, 22 Nov 2017 23:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=wS2Nf1dfYh6OjFnHv0788vp8+B2k0QIqMj1jLbx8w68=; b=IDx0GMNPHAdTyGVfjE3GBnyNuQvLe13BIfhDmpZCnaU1hMjt8igTuAY7T2ITlLRI1p 8jvr7p+Iv0zjXzSFTyd3GL/6IYbezqP2LsW038CXBByxJdRxTu0T1E6LvBRo6lswkjJy rntQt1FB10yEbG4QAJeqgvevSbEsBmLhHHuDkET90Bd11wHpj7mjE3J06KoYnSlzEfBr STI6qY/5teryWkwNXHJMJHWsfdf4ppvtC0GOoJ/2Sig+UgoGn24ac9liMAxJdfiYs/wK v/55v0mOMueWJMmgLoqEHXCE4A1IO0CvaaeKhso9GbYb1KPV79Muri38s39B0wCkPHzv NCtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=wS2Nf1dfYh6OjFnHv0788vp8+B2k0QIqMj1jLbx8w68=; b=CK9ZifQ5nD+lLVLovFOx1brGfRZ89eYHAn6Q5xQcc3hAw9HQC8lj4zrYr36kkTrUjC OmD55F+AEZWYJGw6kg3VD2RUGvAwg/nu7N4POtTEcyHyTzqfphmiWYPN7vlWtCovEekQ 9qU3SE7Ws9JvhH0VJfahlNFC5cPiF7/F97c9Xq6WoBpFRWKYfvVRxF5cv2ZkO8At3oMp khJfOcEgyX6R6krViSh37IIdY+pB6tE+achnLXr3QE7KwqF267DUH/hOVCl3HAfHVmVh kz4pVSTnyxmj3Z+kCYoP6aWmlrkJA3muqsyMqYHTpsJIZSoc83d8aGPndUMvWaeW6t6L SrvA== X-Gm-Message-State: AJaThX5RXkjFWS+p4RBTSght3vO+w2VItRjaBrkpb3+WHUxwDoSQRrh4 W9G3h8Sgq/hsUCemoC086REqfo6rbE1l52sA0BM= X-Received: by 10.202.12.68 with SMTP id i4mr5872622oiy.116.1511422372825; Wed, 22 Nov 2017 23:32:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.12.72 with HTTP; Wed, 22 Nov 2017 23:32:52 -0800 (PST) From: Nick Desaulniers Date: Wed, 22 Nov 2017 23:32:52 -0800 Message-ID: Subject: constant conversion warning in umip To: ricardo.neri-calderon@linux.intel.com Cc: bp@suse.de, Thomas Gleixner , mst@redhat.com, dave.hansen@linux.intel.com, ricardo.neri@intel.com, adrian.hunter@intel.com, paul.gortmaker@windriver.com, ray.huang@amd.com, qiaowei.ren@intel.com, shuah@kernel.org, Kees Cook , corbet@lwn.net, jslaby@suse.cz, dvyukov@google.com, ravi.v.shankar@intel.com, cmetcalf@mellanox.com, brgerst@gmail.com, acme@redhat.com, luto@kernel.org, colin.king@canonical.com, slaoub@gmail.com, adam.buchbinder@gmail.com, vbabka@suse.cz, Lorenzo Stoakes , mhiramat@kernel.org, Paolo Bonzini , akpm@linux-foundation.org, thgarnie@google.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pulling down ToT, I'm seeing the following warning when building with clang: CC arch/x86/lib/insn.o arch/x86/lib/insn-eval.c:780:10: error: implicit conversion from 'int' to 'char' changes value from 132 to -124 [-Werror,-Wconstant-conversion] return INSN_CODE_SEG_PARAMS(4, 8); ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./arch/x86/include/asm/insn-eval.h:16:57: note: expanded from macro 'INSN_CODE_SEG_PARAMS' #define INSN_CODE_SEG_PARAMS(oper_sz, addr_sz) (oper_sz | (addr_sz << 4)) ~~~~~~~~^~~~~~~~~~~~~~~~ seems to be coming from commit 4efea85fb56fa "x86/insn-eval: Add function to get default params of code segment". Should this be an unsigned char (as well as seg_defs in arch/x86/kernel/umip.c? That might be an issue for returning -EINVAL, maybe an in/out parameter would be better? From 1584847669165191397@xxx Thu Nov 23 09:15:17 +0000 2017 X-GM-THRID: 1584080649720877136 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread