Received: by 10.223.164.221 with SMTP id h29csp2581264wrb; Thu, 2 Nov 2017 13:29:11 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SZnwywLPsla2yA4y6V4PNc6eKKYOp/Ge2HzjnEjUlkXYaiztHaGB2QZY6PcqwgP3NMVx+6 X-Received: by 10.101.86.9 with SMTP id l9mr4647377pgs.297.1509654551775; Thu, 02 Nov 2017 13:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509654551; cv=none; d=google.com; s=arc-20160816; b=nflqZF1hf+S1zhK+JR7BOU1RJpyyLia0bxZGZYG8j97HG3KUorNjQpnWpEtnOFyMI2 ZCyrxRrw/OFm02BZBnab8E4+83cTa8l8t6vkjj3GX1lkGOWoHAIJFy4TAFkgF807Lqjz 7kqMnhZIH0g75G6Iv4RhSjdhZ8LUtCQW5/KkCdtLK012R4kYNORjiTsAbpN1Xv7LzW0+ 8LyLbwm37bGqzgYMUI/vZ6GGzDl9zAtDxH3SGgWeGuB5VzDV+LtlmaTSzGCjgiEBFkfo slzIJS9/xZuvY/007FthYl0vqPQwR6Nk+s0YDtzQOgXzUsS/EEj2XIX4MBrLxixovSKI 7gjw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=NtJGG/P1Q6CUEJjxA0ikNiq8Yx26M/eBD4hBul7TFnU=; b=oEwB1u4q+F5ad71bVNhpngPoS6Cgqhh2/HeH770qPVb129o9IjM5qQ0aJcUirXDLIl Qov+tJCqAa0kDeq66pks2lvaJzJX+KSl31mtdihooeaQYYkbfTrg+bOOhPSidwuMGjMJ 0Ru9rlYI+aJ5MwnjYewx63QZpYh6Crm0wqSBe0C2v/Q1kIbG3OCanbexi9ZzJVl2y64e 7oXfWh/LIUquKT2y2PGrIii/4zLkluY99QlJGW0c3l97mY/ZCSDELiXKmT1dEgplLerD vr2WCcDKwc9ZjRYHwmH9D2RMRmzODbrZ+KotzmdiK3tlPD/E+tsuOpZfaLoM2R5OrD+f tq/g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6si4317347pgo.318.2017.11.02.13.28.58; Thu, 02 Nov 2017 13:29:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934423AbdKBU1J (ORCPT + 99 others); Thu, 2 Nov 2017 16:27:09 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:23291 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932241AbdKBU1G (ORCPT ); Thu, 2 Nov 2017 16:27:06 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA2KR0Q2012228 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 20:27:00 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA2KQxZb001222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 20:26:59 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA2KQxqQ020254; Thu, 2 Nov 2017 20:26:59 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Nov 2017 13:26:59 -0700 Subject: Re: [PATCH v6 1/1] xen/time: do not decrease steal time after live migration on xen To: Dongli Zhang , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <1509500793-9896-1-git-send-email-dongli.zhang@oracle.com> Cc: jgross@suse.com, joao.m.martins@oracle.com From: Boris Ostrovsky Message-ID: <95598986-2888-2784-8737-0aaa6991c728@oracle.com> Date: Thu, 2 Nov 2017 16:28:31 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/2017 09:19 PM, Dongli Zhang wrote: > Hi Boris, > > I have received from lkp@intel.com that the prior version of patch hit issue > during compilation with aarch64-linux-gnu-gcc. I think this patch reviewed by > you would hit the same compiling issue on arm64 (there is no issue with x86_64). > > ------------------------------------------------------------- > > 1st issue: > > Without including header into driver/xen/time.c, compilation on > x86_64 works well (without any warning or error) but arm64 would hit the > following error: > > drivers/xen/time.c: In function �xen_manage_runstate_time�: > drivers/xen/time.c:94:20: error: implicit declaration of function > �kmalloc_array� [-Werror=implicit-function-declaration] > runstate_delta = kmalloc_array(num_possible_cpus(), > ^ > > drivers/xen/time.c:131:3: error: implicit declaration of function �kfree� > [-Werror=implicit-function-declaration] > kfree(runstate_delta); > ^ > cc1: some warnings being treated as errors > > About the 1st issue, should I submit a new patch including or > just a incremental based on previous patch merged into your own branch > /tree? > > ------------------------------------------------------------- > > 2nd issue: > > aarch64-linux-gnu-gcc expects a cast for kmalloc_array(). Is this really > necessary as I did find people casting the return type of > kmalloc/kcalloc/kmalloc_array in linux source code (e.g., > drivers/block/virtio_blk.c). Can we just ignore this warning? > > drivers/xen/time.c:94:18: warning: assignment makes pointer from integer without > a cast [-Wint-conversion] > runstate_delta = kmalloc_array(num_possible_cpus(), > ^ > ------------------------------------------------------------- That's because you need to declare kmalloc_array(), otherwise the compiler by default assumes that it returns an int. So including linux/slab.h should take care of both warnings. I can add it while committing. -boris From 1582915322019973332@xxx Thu Nov 02 01:21:27 +0000 2017 X-GM-THRID: 1582826394220322955 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread