Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1310149imm; Wed, 11 Jul 2018 22:51:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdc/salB1smAfABhp4uabfKsqMMy8xwu7ToRz7tX0X2haNIYAHRg7qbiQDnmrTYC6/YMO5+ X-Received: by 2002:a63:a1a:: with SMTP id 26-v6mr802933pgk.221.1531374688074; Wed, 11 Jul 2018 22:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531374688; cv=none; d=google.com; s=arc-20160816; b=cyb++eG5/5Og6/CDVEk0veLiQUF6fynUkaUBqfie93WYrRMbyJQphYMImZ1a8Tz1kG boRSzc/VfNzYdW6gNxuY4Tdl+YXZe/8f/gg1VSFSXbmlbtzx+P6DFqSX52yZMP2GT0NZ vj6iWYfksSCDCDEKisyAxLY9m4eSPsyqGPiCL+TBCBUok6L7Cf7tEyyebvdtaaceEGEj R14GAZsfXcYEHwyddja0CenFdILNW/TZvHW6E4hW4XaA2g9K44JLiZb86rL9ZCg7q46I lP1yI1niuuQ6hYTTEEWyCNWndcmeQ/RtIoLIn9jiwKjM6frsCTTsElXPbACZH+Z0YuN9 NXBA== 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:mime-version :message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=nP7t1MqDzKhUvZ5pmlbsgF001NHBUJaQXae6mknuC3o=; b=Z2AA7yQQU4+tE+Ckn7KA+NXZTmttqaUxP/amSaKhcjKuvoIJhjP/DcNqHv0bMWXJGr lvlT5vfCDLIw3XLsa+PaoSRXOEtFYF08dGakXvlE13PVAKdEck8AZq0yPfBXvhd0cZIU m/5B2pA+T6/KHpNDR5zeAa/LGyIgtXFIZ2bIlcSrhMztZZDSptNHPzAw4S0PgdUuKujz 6ZFdtpoYh7IgSz9prJjvjqR9HH9XhIpGqH00qpk953QxZxpTU0g7LvFffR/F2EM2Akmq E4pT77jTee6Bu/+3fBDQxkUZnHcaOrPlqXriXnEO9UsU908dRP8GXKK+mdyxxihvWj84 JUJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@makelinux.com header.s=dkim header.b="rScu/uvy"; 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 t19-v6si21116634pgb.196.2018.07.11.22.51.12; Wed, 11 Jul 2018 22:51:28 -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; dkim=temperror (no key for signature) header.i=@makelinux.com header.s=dkim header.b="rScu/uvy"; 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 S1732588AbeGLF5S (ORCPT + 99 others); Thu, 12 Jul 2018 01:57:18 -0400 Received: from bosmailout02.eigbox.net ([66.96.184.2]:50007 "EHLO bosmailout02.eigbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbeGLF5R (ORCPT ); Thu, 12 Jul 2018 01:57:17 -0400 X-Greylist: delayed 1843 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Jul 2018 01:57:17 EDT Received: from bosmailscan08.eigbox.net ([10.20.15.8]) by bosmailout02.eigbox.net with esmtp (Exim) id 1fdU02-0004at-HI for linux-kernel@vger.kernel.org; Thu, 12 Jul 2018 01:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=makelinux.com; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nP7t1MqDzKhUvZ5pmlbsgF001NHBUJaQXae6mknuC3o=; b=rScu/uvysWXphx3v7++aRNrM3J H0Qmbtr9/Zu/HKjEw/LNZ2t0zQM8YQ9g7j9JwIstCGzPobqefsq2/xiMTgUDZ7JVkzNnL/R/zbNvw 1WScioGqp2MPxmTnvRZbfB8/boiy9IY8QJiSPL0BJsc3qyR6Z4h/16wi1lGPe5Rq8OGKJR2b2mYh1 5T4ZAYfh6nBlqXTYUKMupGc0E8vghsmYsxbNU8AUqfhMjGYXCcVCM6OnIDOhQZJhCVnTbpMzTOG+X UbaIo14rvrN2BjO3uwoxIzEBK9rU/KNcu6fQ8i0xxciSsX1M8YeU+nKZpENzaCPTVFo4njUWq9vPA 8W21LZug==; Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan08.eigbox.net with esmtp (Exim) id 1fdU02-000165-ED for linux-kernel@vger.kernel.org; Thu, 12 Jul 2018 01:18:42 -0400 Received: from bosauthsmtp17.yourhostingaccount.com ([10.20.18.17]) by bosimpout13 with id 9hJf1y0010N5uqq01hJi5i; Thu, 12 Jul 2018 01:18:42 -0400 X-Authority-Analysis: v=2.2 cv=MK0QoIRl c=1 sm=1 tr=0 a=f4kFLigMKr8AH7rIJ//qJA==:117 a=Dlu3QSMc4l9Ye4MXzL7CyA==:17 a=IkcTkHD0fZMA:10 a=R9QF1RCXAYgA:10 a=c2dxBoeyqOUA:10 a=dSbym95GAAAA:8 a=Ewg49PsxOhnORZRthZ0A:9 a=QEXdDO2ut3YA:10 a=eg0O5KPjxGrMl0Mu5AXQ:22 Received: from [37.142.20.114] (port=11936 helo=localhost.localdomain) by bosauthsmtp17.eigbox.net with esmtpa (Exim) id 1fdTzy-0002eV-OY; Thu, 12 Jul 2018 01:18:39 -0400 From: Constantine Shulyupin To: Sudeep Dutt , Ashutosh Dixit , "Paul E. McKenney" , Mark Rutland , Ingo Molnar , Constantine Shulyupin , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] samples: fix compilation of mpssd Date: Thu, 12 Jul 2018 08:17:36 +0300 Message-Id: <20180712051739.24709-1-const@MakeLinux.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-EN-UserInfo: 49eb4aefa70c42fb849786903cdd8376:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: smtp@makelinux.net X-EN-OrigIP: 37.142.20.114 X-EN-OrigHost: unknown Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Errors: In file included from /usr/include/x86_64-linux-gnu/sys/types.h:194:0, from /usr/include/stdlib.h:394, from mpssd.c:23: mpssd.c:93:10: error: initializer element is not constant .num = htole16(MIC_VRING_ENTRIES), mpssd.c:610:10: warning: implicit declaration of function ‘readv’; Signed-off-by: Constantine Shulyupin --- samples/mic/mpssd/mpssd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c index f42ce551bb48..9cddb9cfdc79 100644 --- a/samples/mic/mpssd/mpssd.c +++ b/samples/mic/mpssd/mpssd.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -77,6 +78,10 @@ static struct mic_info mic_list; #define VIRTIO_NET_HDR_F_DATA_VALID 2 /* Csum is valid */ #endif +#define __uint16_identity(x) (x) +#define __uint64_identity(x) (x) +#define __uint32_identity(x) (x) + static struct { struct mic_device_desc dd; struct mic_vqconfig vqconfig[2]; -- 2.17.1