Received: by 10.213.65.68 with SMTP id h4csp660726imn; Fri, 16 Mar 2018 14:59:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELsOXKm8L4ANPEWdOMkNQGz9v6x0hqbFe14o5YBY+AdabXjFq/w41cEXaG4vpZbn439q1Eah X-Received: by 2002:a17:902:1a4:: with SMTP id b33-v6mr3712284plb.321.1521237585351; Fri, 16 Mar 2018 14:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521237585; cv=none; d=google.com; s=arc-20160816; b=jy4z9W8coT/NCQIu8hAq7PKkM4x0TJhVbsFUABdY/K14a+/JuiNgo7VDX9TED0n7rv s0sgdIW1qiZngU/gAM3CI044Dl+Fuwf2qtwppANvJFWraFPU9ciYSwmtiJgktG6u5Gjj iF7wWCLAHrQoQUku+NZGvIB+3xN/6VD8U3KfNbcHfLIXpAvFDWpplukRHaPiwBiZftuY elFPcDpzq96rrV+i9gcDhcs25oIWbwlDdDsauQA/12IZheMdlEeuGmgojhWTknGQEnWE LeEyaemN7f+B2LaRTwO3Ixo4Vs2T2Dv8lVRJMsHhP0BFRGUHhnule4qkIqqCU/dZiQSM PiMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=riyrc6nsKnd4v0SiobFhv+Fw/tX0C1MNFmnNWELP1Y0=; b=PeiUSG5EUmWHIt6iNJsjzRB75lQaR5q24TwNdeP278Ktsbqjg8iZTXGAE6baqk8R4e ZlBBjG4t2fRnFwVHSUt0ne2foPeGt6NGCZj/meDOtyAuW0CZS90DEMhkZfgShmBbRJiV v7Nf3BOtAUAxwqp46pVEBoTHcuA44TWsxh27XWF7Avv3xak5kb04vpiu7n/jmxU5pamW ovGiAvQTvAQcDW0Ht7nVrCPLdiTOXAi3hgwljYRDAh0yMndL7f+FQycsbyf8pw3MLE5x qDRJa71LhfyFzP1U6S0H88dGUt0TmG0kiEIgA2emusDyHFZ2peDl4j5mexIoMRZV4Tr9 d0vw== ARC-Authentication-Results: i=1; mx.google.com; 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 p3-v6si6852775plo.746.2018.03.16.14.59.31; Fri, 16 Mar 2018 14:59:45 -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; 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 S1751820AbeCPV61 (ORCPT + 99 others); Fri, 16 Mar 2018 17:58:27 -0400 Received: from mga02.intel.com ([134.134.136.20]:32464 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeCPV6Z (ORCPT ); Fri, 16 Mar 2018 17:58:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2018 14:58:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,317,1517904000"; d="scan'208";a="25366531" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga007.jf.intel.com with ESMTP; 16 Mar 2018 14:58:23 -0700 Subject: Re: [PATCH v12 04/22] selftests/vm: typecast the pkey register To: Ram Pai , shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org References: <1519264541-7621-1-git-send-email-linuxram@us.ibm.com> <1519264541-7621-5-git-send-email-linuxram@us.ibm.com> Cc: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, akpm@linux-foundation.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, arnd@arndb.de From: Dave Hansen Message-ID: <00081300-e891-3381-3acd-e3312e54fb58@intel.com> Date: Fri, 16 Mar 2018 14:58:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519264541-7621-5-git-send-email-linuxram@us.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2018 05:55 PM, Ram Pai wrote: > -static inline unsigned int _rdpkey_reg(int line) > +static inline pkey_reg_t _rdpkey_reg(int line) > { > - unsigned int pkey_reg = __rdpkey_reg(); > + pkey_reg_t pkey_reg = __rdpkey_reg(); > > - dprintf4("rdpkey_reg(line=%d) pkey_reg: %x shadow: %x\n", > + dprintf4("rdpkey_reg(line=%d) pkey_reg: %016lx shadow: %016lx\n", > line, pkey_reg, shadow_pkey_reg); > assert(pkey_reg == shadow_pkey_reg); Hmm. So we're using %lx for an int? Doesn't the compiler complain about this?