Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp487404imm; Fri, 21 Sep 2018 03:40:41 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7c0qpymH6D0hBfSnO+gHwB0/o1csVDTqAu/pe4kK02/JAbpYxZVi3tH9ahrio8YGtGj4g X-Received: by 2002:a63:66c3:: with SMTP id a186-v6mr5596573pgc.330.1537526441728; Fri, 21 Sep 2018 03:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537526441; cv=none; d=google.com; s=arc-20160816; b=KruxITCnpGQDNYvLgxb3dr7mYwTUT+Dguf0A5DDbLShtC3QT0VzwkJjTTEZ9uWi0RK /vOv3iewDHhDShNhaQFnLQw6Cro/ficx+8nmKXb4g4T2otaIdAt7WDMRXjvxfUdeDnDX FslLcaaTE5k93/Re7ALQUrFVB+TxXU/wrx+BiwkvzRdiS5RNlcvokmtDy8vv7iTjt82o /nezXDHbBoYL5Pv0uTyI821G2WmIl25iviJZjIou4EKFR9kvjXJv/oNZsY77x59zGSLi tVNp1hCvekXDmuDID9aJxBe1oDYNRqv28rL3jx1kN8NVAOu1lfOn3OGdyolNEhft48vS O2Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ss57p42t8UirbBSWqennPNnvYLEGIe8oJhOEsYZkpH4=; b=YEk5yvlVSSP9FaIItL0smAOt14JvSGFOQX9AglhJOPQqhVtKXtidojFfIBYwnYcVK8 d28q3I781QGIebskTf8hUR9snZbvXGv7XofpZAvKis9rh7ZIjre9Vn5ZVWVLSCRYe7bd nYcjOnlVdlW/oh1TUulBUzCZwwu2YsObmKtBz4irl2TuFQLrHHt9Mop9fc88X0IDO2U0 NnC/4oiYCz4P4ohm20X2NAAe1lARuYNa5tFcrneQq5vOiUY9X5QEfm5Y17doL2fJDcC0 lPwPCb2niiOeYRvHUpNvvTBqC4Hw14nzDu7q6x+ro1EK/pQ8qcdy5fdtJ88dKFIjinUP hYlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=eM+epkaR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si26380401plb.197.2018.09.21.03.40.25; Fri, 21 Sep 2018 03:40:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=eM+epkaR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389884AbeIUQ23 (ORCPT + 99 others); Fri, 21 Sep 2018 12:28:29 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:50668 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727681AbeIUQ22 (ORCPT ); Fri, 21 Sep 2018 12:28:28 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8LAdOXX085658; Fri, 21 Sep 2018 10:39:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=ss57p42t8UirbBSWqennPNnvYLEGIe8oJhOEsYZkpH4=; b=eM+epkaRz5lpYrq9fdj885geBGsI/vZJM9sFpQIMW2lE0rUkO6Y5taYViYpfPMurjttr hGEgIsrSh2IEPLb6J/nXOg6om09eX2E1mq/iYu4vtaErfFIqbQADrR6WQM2fBxIsgHr1 qoNQtwxffw0WsnsumgqsRgo6Fm0kJ9JEtGQtvmcKbaCWfraAU6Drb1VMHhNB7NfWjV1m kFEhP2Ai4byf60xn39qGH+GWrbTsu7I+TDuc2m/SyKxxnfLyBn4KqVd3HF2VPXarnikm MUXbcgTv2vCplV9yOb/5R4b34U9XCTbNzyKFFdrlypO+C9GqHPkjP1SPhEQKpOlRQ/Pe RA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mmkm22cuw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Sep 2018 10:39:45 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8LAdhaX014073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 21 Sep 2018 10:39:44 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8LAdhIo011992; Fri, 21 Sep 2018 10:39:43 GMT Received: from lab02.no.oracle.com (/10.172.144.56) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Sep 2018 03:39:43 -0700 From: =?UTF-8?q?H=C3=A5kon=20Bugge?= To: "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 2/2] net: if_arp: use define instead of hard-coded value Date: Fri, 21 Sep 2018 12:39:30 +0200 Message-Id: <20180921103930.1420679-3-Haakon.Bugge@oracle.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180921103930.1420679-1-Haakon.Bugge@oracle.com> References: <20180921103930.1420679-1-Haakon.Bugge@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9022 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=508 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809210112 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org uapi/linux/if_arp.h includes linux/netdevice.h, which uses IFNAMSIZ. Hence, use it instead of hard-coded value. Signed-off-by: HÃ¥kon Bugge --- include/uapi/linux/if_arp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h index b68b4b3d9172..c3cc5a9e5eaf 100644 --- a/include/uapi/linux/if_arp.h +++ b/include/uapi/linux/if_arp.h @@ -118,7 +118,7 @@ struct arpreq { struct sockaddr arp_ha; /* hardware address */ int arp_flags; /* flags */ struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ - char arp_dev[16]; + char arp_dev[IFNAMSIZ]; }; struct arpreq_old { -- 2.14.3