Message ID | 20180821174847.208411-1-mahesh@bandewar.net |
---|---|
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bandewar.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bandewar-net.20150623.gappssmtp.com header.i=@bandewar-net.20150623.gappssmtp.com header.b="NiqS18Cq"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41vypX5dcWz9s47 for <patchwork-incoming-netdev@ozlabs.org>; Wed, 22 Aug 2018 03:48:52 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbeHUVJ6 (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Tue, 21 Aug 2018 17:09:58 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35836 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbeHUVJ6 (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 21 Aug 2018 17:09:58 -0400 Received: by mail-pl0-f66.google.com with SMTP id g1-v6so9151169plo.2 for <netdev@vger.kernel.org>; Tue, 21 Aug 2018 10:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bandewar-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eN6qCp6XolgQDK2KW1l3CIyy4cABni0DFk/l64S20KA=; b=NiqS18CqFO8CxeKiJSg1NoHnlYwJHkYG5W6pIcC8wMPqvs6Nay/sBzSyJ8cx0AcAVr ax5uPbwn4KqZa8NDISWTN911ijV9LVy6QelZ03K3d8HQISu1yaSzH2vuoM/AJefa6n+J BpoT4PVQlBUqN+wit1m6w5oZdT/W7+XujxwK/0JNObID6d3T9cjEPliQ5vsNt5Bb+Ob6 CUPy9IjtGda7QyensmlQz1FT7wee/MDefTMXNmRO0Niw1KsivnN+SoEozOQA1X+Me9DP Un6asGWaejPLJzoDOp9eZfzu5kpv6X1z410ow4rtoZ1xLDEZXYO+QZCb5NxBfc6b7U/V ZPOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eN6qCp6XolgQDK2KW1l3CIyy4cABni0DFk/l64S20KA=; b=dLiB6K9ilxShoSzvpYj9bWl8E/Nb0kNujv/nmkmiFOWfq6UT3mKPT/75X0yiGmntOp 8ripF0sYVqoUmqE6BjOZpKFX7v8veA7gUkddm+WNqa6GmqjPyLgw7jZH5myFOv8lTmvO OrlxHNyKGgesHYCV8BKBbv/yEUI3s+4ONlDVuobPfJU3dbrA6979EYsprGX2zlTc38eK NeklkOcKZVZTSGoUrCC3BFcrQz83k3qRR/lXvVTH5mR541Cnyq0k7sH2N6Q8NzriHwm3 zuOHsRhoUDUsoRNi4x7S5ArGUHvZC9pDm3xvQcIdhYuRfU/LX7/RNhU1TsCoM+vZUdu3 DBNA== X-Gm-Message-State: AOUpUlE72NiALf1xHR+P118jmGmtxVp4t9si540flxAiiAzBlpvrfGM9 SmZkQBBVzc6+fQTp//9QHfptNw== X-Google-Smtp-Source: AA+uWPyCI9E0wPYrMidUfLmyD/fUltNpO0QpAGXAHNyLqXmVJkunenuX66OBWXdqh8ALk9UfmiWLwA== X-Received: by 2002:a17:902:530a:: with SMTP id b10-v6mr51920977pli.101.1534873730870; Tue, 21 Aug 2018 10:48:50 -0700 (PDT) Received: from localhost ([2620:15c:2c4:201:c7f9:6225:a527:f3a4]) by smtp.gmail.com with ESMTPSA id l6-v6sm18899404pfl.169.2018.08.21.10.48.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Aug 2018 10:48:50 -0700 (PDT) From: Mahesh Bandewar <mahesh@bandewar.net> To: Stephen Hemminger <stephen@networkplumber.org> Cc: netdev <netdev@vger.kernel.org>, Mahesh Bandewar <maheshb@google.com> Subject: [PATCHv2 iproute2 0/3] clang + misc changes Date: Tue, 21 Aug 2018 10:48:47 -0700 Message-Id: <20180821174847.208411-1-mahesh@bandewar.net> X-Mailer: git-send-email 2.18.0.865.gffc8e1a3cd6-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series | clang + misc changes | expand |
From: Mahesh Bandewar <maheshb@google.com> The primary theme is to make clang compile the iproute2 package without warnings. Along with this there are two other misc patches in the series. First patch uses the preferred_family when operating with maddr feature. Prior to this patch, it would always open an AF_INET socket irrespective of the family that is preferred via command-line. Second patch just removes extern from the prototype declarations from the m_ematch.h header file. Third patch mostly adds format attributes to make the c-lang compiler happy and not throw the warning messages. Mahesh Bandewar (3): ipmaddr: use preferred_family when given tc: remove extern from prototype declarations iproute: make clang happy with iproute2 package include/json_writer.h | 3 +-- ip/iplink_can.c | 19 ++++++++++++------- ip/ipmaddr.c | 13 ++++++++++++- lib/color.c | 1 + lib/json_print.c | 1 + lib/json_writer.c | 15 +-------------- misc/ss.c | 3 ++- tc/m_ematch.c | 1 + tc/m_ematch.h | 15 ++++++++------- 9 files changed, 39 insertions(+), 32 deletions(-)