Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4548000pxt; Wed, 11 Aug 2021 08:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEK+9eJVmrL8s5+KufF5Vv7J0VVoaus6vNxJeVCRlpLeoHuEG75YzVIr9KUovJZ/FwZNAJ X-Received: by 2002:aa7:c306:: with SMTP id l6mr11894533edq.383.1628695591333; Wed, 11 Aug 2021 08:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628695591; cv=none; d=google.com; s=arc-20160816; b=PJqkvNI91EZBgJ8WXRpfDbMfp8ZHUuV+AHkfWTE6Ei8UNZ9A7q6hdx7Xs3E2/F7zE0 An3/lBl7MDExTSSjthqqBdxKtLvd8nU8ZKT31kL8eMrtw8LKurxyTbZ+lVHPONu7a+dh dQd+LWjJchXFwN3BfvUK/OrkVxNkUOWq59QIWvFcGk5HwECVAPRouHZNUDndJQtUB9uG 1uH4E5QlAqolGbjkFAhTVHwXhaAoJtkBpAT1d38VEKUt5iSy+VoKpGBfFQgYkHvoiXrg aa6HDP5Ms3WTi2BrRpoPKoUwpF5fLVmPXpDXkZGALGX+/Q4Hpd/9haD7ym6COh9J5vF+ i8Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GL5Pqig810VjvOLbVx4CadVlwedTdXgf3XuYyucDLU4=; b=xg73MhtQRRXHQjDB97juQUi+uUHZ7VQJP7aeQutxs994/h4L9vsQVyZ97ii7Zw7XEc IJYfug98w2jBz+ugJXESAxMbLTbF1r/aFL/tevoge4fHFF5G0x4otnfUhQ0SH7Jb4zN5 Bkp/jpKaLjtt1V6Y4SP1c57pJ5o1j2Qt3I9GOljes86mS6JqyJ0OcZD70z3m7VNqa4EW 5ivOy/92xDeLIfCrTlBoNtQyaR0HsrcU0bySR/XPyU4ym1ehmOt98MV/IQcXSeFom8ZJ dtvJuexcKrE/I8HlsMic4r6qVS3Se6yOMy4QkCIPc9yC2OObOeiaVMkiQ15x1+VWkX0A TQXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si10999594edy.328.2021.08.11.08.26.07; Wed, 11 Aug 2021 08:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232993AbhHKPZF (ORCPT + 99 others); Wed, 11 Aug 2021 11:25:05 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:38905 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232110AbhHKPZE (ORCPT ); Wed, 11 Aug 2021 11:25:04 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=wenyang@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Uihn-HP_1628695472; Received: from localhost(mailfrom:wenyang@linux.alibaba.com fp:SMTPD_---0Uihn-HP_1628695472) by smtp.aliyun-inc.com(127.0.0.1); Wed, 11 Aug 2021 23:24:38 +0800 From: Wen Yang To: davem@davemloft.net, David Ahern , Jakub Kicinski , Hideaki YOSHIFUJI Cc: Wen Yang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ipv4: fix up inetsw_array coding style Date: Wed, 11 Aug 2021 23:24:30 +0800 Message-Id: <20210811152431.66426-1-wenyang@linux.alibaba.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch from a mix of tabs and spaces to just tabs. Signed-off-by: Wen Yang Cc: "David S. Miller" Cc: Hideaki YOSHIFUJI Cc: David Ahern Cc: Jakub Kicinski Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- net/ipv4/af_inet.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 5464818..0f6f138 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1136,23 +1136,23 @@ static int inet_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned lon .prot = &udp_prot, .ops = &inet_dgram_ops, .flags = INET_PROTOSW_PERMANENT, - }, + }, - { + { .type = SOCK_DGRAM, .protocol = IPPROTO_ICMP, .prot = &ping_prot, .ops = &inet_sockraw_ops, .flags = INET_PROTOSW_REUSE, - }, - - { - .type = SOCK_RAW, - .protocol = IPPROTO_IP, /* wild card */ - .prot = &raw_prot, - .ops = &inet_sockraw_ops, - .flags = INET_PROTOSW_REUSE, - } + }, + + { + .type = SOCK_RAW, + .protocol = IPPROTO_IP, /* wild card */ + .prot = &raw_prot, + .ops = &inet_sockraw_ops, + .flags = INET_PROTOSW_REUSE, + } }; #define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array) -- 1.8.3.1