From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754943AbcJMPoR (ORCPT ); Thu, 13 Oct 2016 11:44:17 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:32844 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679AbcJMPoK (ORCPT ); Thu, 13 Oct 2016 11:44:10 -0400 Subject: Re: [PATCH v6] net: ip, diag -- Add diag interface for raw sockets To: Cyrill Gorcunov , David Miller References: <20161006100055.GA1941@uranus.lan> <20161012.015022.2273537782016406180.davem@davemloft.net> <20161012065329.GH1941@uranus.lan> <20161012.195504.658773172040030000.davem@davemloft.net> <20161013071648.GA1946@uranus.lan> Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, jhs@mojatatu.com, linux-kernel@vger.kernel.org, kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, avagin@openvz.org, stephen@networkplumber.org From: David Ahern Message-ID: Date: Thu, 13 Oct 2016 09:43:57 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161013071648.GA1946@uranus.lan> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/16 1:16 AM, Cyrill Gorcunov wrote: > On Wed, Oct 12, 2016 at 07:55:04PM -0400, David Miller wrote: >> From: Cyrill Gorcunov >> Date: Wed, 12 Oct 2016 09:53:29 +0300 >> >>> I can't rename the field, neither a can use union. >> >> Remind me again what is wrong with using an anonymous union? > > Anon union would be a preferred but Eric pointed me that even > though it might cause problems (https://patchwork.kernel.org/patch/9353365/) > > | Note that some programs could fail to compile with the added union > | anyway. > | > | Some gcc versions are unable to compile a static init with an union > | > | struct inet_diag_req_v2 foo = { .pad = 0, sdiag_family = AF_INET, }; > | > | When I cooked my recent fq commit I simply removed a pad and replaced > | it : > | > | git show fefa569a9d4bc4 -- include > That commit suggests it is acceptable to just rename the pad field, which is the simplest approach.