From patchwork Tue Mar 19 22:01:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 229226 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DDF772C00AA for ; Wed, 20 Mar 2013 09:01:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757543Ab3CSWBi (ORCPT ); Tue, 19 Mar 2013 18:01:38 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:65533 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754872Ab3CSWBh (ORCPT ); Tue, 19 Mar 2013 18:01:37 -0400 Received: by mail-bk0-f46.google.com with SMTP id j5so472503bkw.33 for ; Tue, 19 Mar 2013 15:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=uIhPWcsPxp3xkbuisypckH30albW0FbZDsuD7eUWtv0=; b=x499FnCYx6LCWb3vgwmKYsQzCBhi0TFG4/wPrasejaCMpgA9PyvC3d0XGg3UoydWjx itdKE5UwwI7bFjF/9eqr5k6lC9gAqJGPjyKtuc0UVXlqfRoi4Iz3bttY0OxibT2kNBMP tq/ECtJou2zMx5g0D14x6F517KaSbA9X1s6WVAS9gKkedItsvmqNrjtHGu5PjnQqrVDT 3HGnujr0JCPr9O5rqSzb0U6JhwUelEnlH/1U9RzxvqrLyEaCwcSOYoLTGxS2Ft9mlPPa BcQ9qBKd8hFU1+ZjTeX4CbRb1O4HTH2ANA+Utks/3nft/9WTtn/yq4oLuSSFqy89Uybr sj2g== X-Received: by 10.204.165.15 with SMTP id g15mr9579562bky.140.1363730495798; Tue, 19 Mar 2013 15:01:35 -0700 (PDT) Received: from localhost.localdomain (5-12-11-5.residential.rdsnet.ro. [5.12.11.5]) by mx.google.com with ESMTPS id v2sm6865944bkw.5.2013.03.19.15.01.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 15:01:35 -0700 (PDT) From: Daniel Baluta To: willemb@google.com, edumazet@google.com, davem@davemloft.net, netdev@vger.kernel.org Cc: Daniel Baluta Subject: [PATCH net-next] packet: Fix compile error Date: Wed, 20 Mar 2013 00:01:21 +0200 Message-Id: <1363730481-7168-1-git-send-email-dbaluta@ixiacom.com> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org PACKET_FANOUT_ROLLOVER and PACKET_FANOUT_FLAG_ROLLOVER are not declared in /usr/include/linux/if_packet.h together with the other PACKET_FANOUT_* macros as one would expect. This causes the following compilation error: psock_fanout.c: In function ‘test_control_single’: psock_fanout.c:230:23: error: ‘PACKET_FANOUT_ROLLOVER’ undeclared (first use in this function) Signed-off-by: Daniel Baluta --- .../testing/selftests/net-afpacket/psock_fanout.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net-afpacket/psock_fanout.c b/tools/testing/selftests/net-afpacket/psock_fanout.c index 09dbf93..c827415 100644 --- a/tools/testing/selftests/net-afpacket/psock_fanout.c +++ b/tools/testing/selftests/net-afpacket/psock_fanout.c @@ -63,6 +63,7 @@ #define PACKET_FANOUT_LB 1 #define PACKET_FANOUT_CPU 2 #define PACKET_FANOUT_FLAG_DEFRAG 0x8000 +#endif #ifndef PACKET_FANOUT_ROLLOVER #define PACKET_FANOUT_ROLLOVER 3 @@ -72,8 +73,6 @@ #define PACKET_FANOUT_FLAG_ROLLOVER 0x1000 #endif -#endif - #define DATA_LEN 100 #define DATA_CHAR 'a'