Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754648AbbL3LPL (ORCPT ); Wed, 30 Dec 2015 06:15:11 -0500 Received: from mout.gmx.net ([212.227.15.15]:63533 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbbL3LPD (ORCPT ); Wed, 30 Dec 2015 06:15:03 -0500 Subject: Re: [PATCH 1/1] include/uapi/linux/sockios.h: mark SIOCRTMSG unused To: "Michael Kerrisk (man-pages)" , "David S. Miller" References: <1451427722-2672-1-git-send-email-xypron.glpk@gmx.de> <5683B863.9010506@gmail.com> Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev@vger.kernel.org From: Heinrich Schuchardt X-Enigmail-Draft-Status: N1110 Message-ID: <5683BC9F.7060603@gmx.de> Date: Wed, 30 Dec 2015 12:14:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 MIME-Version: 1.0 In-Reply-To: <5683B863.9010506@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:Qlh0ti8iZkExG5r31Wdblw2oQBA7f9HP1SVmiQXIqUbCo66Hx82 WUOcELt2xFoU+dAb+9WvNA2nPsleOpfWqnyRDPulzHDFbslSAANw9Jf7Q3Vqn5MUyn9zU8v N9TQJZYv6iOmSjkYIUDmKi2Ev/n32go1C2GDby81RIKomQ+70oZGsZUoawqhSltjJokI0rH 0Vl740YzxiybcuHCMZPiA== X-UI-Out-Filterresults: notjunk:1;V01:K0:qvfqfEKz3mc=:F+qAUOINpvanPxGoeHKswA To3qGmYjVW9QFAn0OLVRlZZUJOBoL/BwNIGBQhwbeHW9opXO9yxQHwoO5/ue1ekkA3dSf7kZZ VvubE2J3aFsn9pegyST20ljK+E2pKgHp2xOML35GPtS7ZiYln6Z4iGL1zNcHgTVXQBgNo7kR7 MJFkn+k0xud/XSMRzG3CfIMVmpn4Pxl8DVVZfLCfmPu+cxeuL4iKFq8pb8L7bzcWuIbS79pMA ce67MHZXM2YRSD12QJXY59Aj8hEhZ37mfhPQMpyVGsdPcchr6NQ94MW4kdCihJJsur3WrUQNb 5MUQ350H11Z1ThCFELr99mldZr76mn0zqnIm0oLb6ulv9VDWMRk7Y4R0X3XqjtwGm+fUu4+2h FuejkFeNLbi7IXd6kaGEmxWVLkA4ayRCmGDpwjW5X+4fw3tABuI7o27BNUJuM3RHOwcRuhjzp hgpSmfGNv07eApIVid0iJOVIEsHSPqp51wFpFlMOwPV+nWyAmXNB5WYqGxgHNAQes60ey/RGN n6WOVjLifGTODI5vKdopPDCKuhsMQ2jUf16Roao17eIkbOyv/Pj+lKPvHyYem2gDUXO+Rsv0G D5JIRVswmlk44u8N0ddNc06Y2js+xukQCm4AbQT8X8nUcxp+4j7zp/zK9acH3FMREMtfd4Rx3 bqQnKjfJddlKAn2OdMh53c1+SWG8nfKAH9Be5DAoSGawav/sRhDuHUGgjd82ZRaZEKLsF17Yg Ihc4b6WCxF27mSckNLIbEbwfa5gi357QbVh7LGoDB2ASQMhngxdd5iMR7FWQWCe7wcKIOfBkY Onf+/f6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1629 Lines: 62 On 12/30/2015 11:56 AM, Michael Kerrisk (man-pages) wrote: > Hi Heinrich, > > On 12/29/2015 11:22 PM, Heinrich Schuchardt wrote: >> IOCTL SIOCRTMSG does nothing but return EINVAL. >> >> So comment it as unused. > > Can you say something about how you confirmed this? > It's not immediately obvious from the code. > > Cheers, > > Michael grep -GHrn SIOCRTMSG SIOCRTMSG is only used in: * net/ipv4/af_inet.c * include/uapi/linux/sockios.h inet_ioctl calls ip_rt_ioctl. ip_rt_ioctl only handles SIOCADDRT and SIOCDELRT and returns -EINVAL otherwise. cf. http://lkml.iu.edu/hypermail/linux/kernel/0911.0/02636.html Best regards Heinrich > > >> Signed-off-by: Heinrich Schuchardt >> --- >> include/uapi/linux/sockios.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/include/uapi/linux/sockios.h b/include/uapi/linux/sockios.h >> index e888b1a..8e7890b 100644 >> --- a/include/uapi/linux/sockios.h >> +++ b/include/uapi/linux/sockios.h >> @@ -27,7 +27,7 @@ >> /* Routing table calls. */ >> #define SIOCADDRT 0x890B /* add routing table entry */ >> #define SIOCDELRT 0x890C /* delete routing table entry */ >> -#define SIOCRTMSG 0x890D /* call to routing system */ >> +#define SIOCRTMSG 0x890D /* unused */ >> >> /* Socket configuration controls. */ >> #define SIOCGIFNAME 0x8910 /* get iface name */ >> > > -- 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/