From patchwork Fri Oct 30 08:35:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 55822 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp1048573lbr; Fri, 30 Oct 2015 01:35:46 -0700 (PDT) X-Received: by 10.50.150.9 with SMTP id ue9mr1551061igb.56.1446194145971; Fri, 30 Oct 2015 01:35:45 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id ga4si417959igd.85.2015.10.30.01.35.45; Fri, 30 Oct 2015 01:35:45 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 045D062C2E; Fri, 30 Oct 2015 08:35:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1B7D26202B; Fri, 30 Oct 2015 08:35:41 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4825962034; Fri, 30 Oct 2015 08:35:39 +0000 (UTC) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by lists.linaro.org (Postfix) with ESMTPS id 63CF662013 for ; Fri, 30 Oct 2015 08:35:38 +0000 (UTC) Received: by lbjm5 with SMTP id m5so45456767lbj.3 for ; Fri, 30 Oct 2015 01:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=rYHJAChv6xTZu4EnjmhQ0n9S6NmvWQgFrSXpMcMyiNs=; b=WMU5NFRhy3j6kr9UnNcizWqdwAhwobhmVdKK6kviFMdHWHFo7Lqe3kzmVEoia9iep2 Pbo0SOoaD/25h1P1QrlHr4GkYS3fZ7i3s95PtbujtyUW+5NAGTrzK5wGx6tFuMXRYdJY 4aBb4KRyYY/I7VGekycZDt6l7bGQ9hqymsdJeKqDku26SijZ4YRovXSV5AJeDKp/svfW 6llzVIyIHTRz4aIWUUyyM/j10vl3+M60iyRE4YE23oEEpzvpYB9EFwgoZxGWtsiEV2Wx ZVEltWaSkZZ5iSjifeQcXpsxqJ5DPwH/e6p2TyBe/KAz1di6slt3hAsx1NCOSAzKsaSM U/Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rYHJAChv6xTZu4EnjmhQ0n9S6NmvWQgFrSXpMcMyiNs=; b=d2TDcYtUqkfXqHyuEedThgwXuwIZFzpTpHnEq+BFOBustcHjtTqbJmM6cH0uc+IBJJ jxoutFLzGNtF7o8SbaUVhTr8BEDulCeirAZY6ijGEoEx5rDfhP5//qKEohXeGKbFauJB omlZ6fFQlz4GlEzhHz7oq3Em8O7AX/MgDaUkKadxoC283NsUf1rEbRG+abd9i4rvcjGi senuyQnxJQBcsJl0OuFA2FwkVIHOO3FAASvq5Am/DWal+sVVoxj504MinAMKm9IgPHqN Z4o4tOOiNDGOSFH91XefcUZ8phcafilnIl+dlP1IpmDNOpX4qmfiLdwoDoPF7ajkBGCV 0MHQ== X-Gm-Message-State: ALoCoQn+Pf2hPopYzls7GgpwWYUGi3rutti7UOTTCFfibgsmdBr3XhTV2A1DTRI4uwneCy1qAHm2 X-Received: by 10.112.159.2 with SMTP id wy2mr3370229lbb.102.1446194137344; Fri, 30 Oct 2015 01:35:37 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id z62sm1050839lfd.20.2015.10.30.01.35.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 01:35:36 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 30 Oct 2015 11:35:30 +0300 Message-Id: <1446194130-18406-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: netmap pktio fix clang build X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Cast to (void *) before casting to struct pointer to fix: pktio/netmap.c:193:31: error: cast increases required alignment from 1 to 8 struct dispatch_args *args = (struct dispatch_args *)arg; Signed-off-by: Maxim Uvarov --- platform/linux-generic/pktio/netmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c index 67ff95e..794c82e 100644 --- a/platform/linux-generic/pktio/netmap.c +++ b/platform/linux-generic/pktio/netmap.c @@ -190,7 +190,7 @@ error: static void netmap_recv_cb(u_char *arg, const struct nm_pkthdr *hdr, const u_char *buf) { - struct dispatch_args *args = (struct dispatch_args *)arg; + struct dispatch_args *args = (struct dispatch_args *)(void *)arg; pkt_netmap_t *pkt_nm = &args->pktio_entry->s.pkt_nm; odp_packet_t pkt; odp_packet_hdr_t *pkt_hdr;