Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754165AbbLJEEJ (ORCPT ); Wed, 9 Dec 2015 23:04:09 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:59908 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752843AbbLJEEH (ORCPT ); Wed, 9 Dec 2015 23:04:07 -0500 Subject: Re: [PATCH] net: emac: emac gigabit ethernet controller driver To: Gilad Avidov Cc: Greg Kroah-Hartman , netdev@vger.kernel.org, sdharia@codeaurora.org, linux-arm-msm@vger.kernel.org, lkml , vikrams@codeaurora.org, Shanker Donthineni References: <1449529094-10922-1-git-send-email-gavidov@codeaurora.org> <20151209172645.5e6ab040@gavidov-lnx.qualcomm.com> From: Timur Tabi Message-ID: <5668F9B3.3090708@codeaurora.org> Date: Wed, 9 Dec 2015 22:04:03 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <20151209172645.5e6ab040@gavidov-lnx.qualcomm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 17 Gilad Avidov wrote: > pointer math on void* ? > what is the size of void ? I'm talking about adding and subtracting pointer values, so u32 pkt_len =((void *)ip_hdr(skb) - skb->data) -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/