From patchwork Fri Nov 18 21:06:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 22507 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp409282wrr; Fri, 18 Nov 2022 13:09:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qSa0ursGH+vcNiwLi7dzDR9NRqL+lord++uhb8PYHLV9HB2lgplF6nSr8KSlo+XPqfbv0 X-Received: by 2002:a17:903:22d2:b0:17f:6758:6904 with SMTP id y18-20020a17090322d200b0017f67586904mr1238961plg.61.1668805750189; Fri, 18 Nov 2022 13:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668805750; cv=none; d=google.com; s=arc-20160816; b=vsWE/eFwjdmYdOb7cXUwMd3+Et/xhRs9YvXZ6kOlH1T0E342QxNkHlcwL2yiNg7rpE pUoAFVknKStHuYFbhhU7M7jWi4sRC9IuHWJ7mgSS71QrSfBYQkQd+kcguLBiAMRsJ0gd KF1rylDv51YU7Xy9eRl4O1z07eV1pPDU6zgcaCrJWQId/7z8/zzlIuWXxTsAtOqJd1GD 5mZKZYzBRFfM+3J4Ig5T/dJqxJG7sOcva4uuHpnsaNI6JQWr0PgJs9oWKLjKhSBczByT ftCkWq2vRYyvL6Xhe+5n49Nf92OBwtMHK3aJKyj25NBxPoDONPI+Z+Aa+0q3Nwmt7BEg Z63Q== 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:dkim-signature; bh=gnAsPrVGuvzoHqZVlZd6zNdmEYEJ95+s/mRmpJEA+NA=; b=ZycqkjyZJJcLvq7UzG1v6fbniEwtllBDGOHJOSjUKO8dpkHKLmX5mRTmp6K330IP6p yfvZQ55mr6HZkRWot8pL89P4WxyNrzYJMS9VhGo/v7UAdydyMPHG+ZwXpn5mFJ7w29Yu WhNA9c33QR3KPa7Vbo47PwwfKWZ/hpSy4f9Op6cY+iwe+iKVk3Yp4iLMYaTPTRXrhajl SqSFGUt85ogRwDpr6NyFGPFGOzQRTjQFrva6NpEriiNB7Q71AOjy2Ti1XWgVK6R5JQpw ktP6VxSvfQ8zAmpMf39+iUTwYSVA47QhKOJPxveYrQpRdohCAZGE3QGPqPrXPBQYYbt6 6rjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Bu1ONXDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g34-20020a635662000000b0046f7941b7besi4525929pgm.112.2022.11.18.13.08.57; Fri, 18 Nov 2022 13:09:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Bu1ONXDo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbiKRVGw (ORCPT + 99 others); Fri, 18 Nov 2022 16:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiKRVGu (ORCPT ); Fri, 18 Nov 2022 16:06:50 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B6D98241 for ; Fri, 18 Nov 2022 13:06:50 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id w3-20020a17090a460300b00218524e8877so7740357pjg.1 for ; Fri, 18 Nov 2022 13:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gnAsPrVGuvzoHqZVlZd6zNdmEYEJ95+s/mRmpJEA+NA=; b=Bu1ONXDoglBy/CFm02D+Z3gcRjHFLorxNl9tvfBxRV9f0AYhPOoTsWvonN9OWHIv+v mPKPOUbuSytsxg755KPqezCAqfQ7cK9jyX4w92PdW+LTzVSA8SfJfn5hdnqNgC/dnclv ubFbsCjcG2+vcfhIBseJHoVNJHAOpfugbzblE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gnAsPrVGuvzoHqZVlZd6zNdmEYEJ95+s/mRmpJEA+NA=; b=hw+/ddakbZCZBLGNfE24BE9LbWUC6or4pdOpYkmlNGfqB16z6alaDzk2apHC9M2dxk PeMUEdiFne+Un55uLJmqP+doBxlI9I1+VkfhrxF4OYZQhXlzsbQ5XojzUjGS5J7DZW07 rOcA3LRd+Y7vEAOPufAFZVi2FPR74FSYYY2UeyavNE2uBOI3txuPsY+dksJx0FMKhLUi XiZmmojDjE2mS8s+avFRtT5GoJZpYdwGNjysARF/Zq1qSsu76hPHi+Yhkg5ZxzPKITck IblXK8TaMXB4KVJHx17FrBGL6PkNUYzvldjSr3iQ2XFrBkiMY28OKtgn4adUShxAVevM 6UqA== X-Gm-Message-State: ANoB5pkGGE2klxXR5IXwk2mHhFC7jdm4ILHEu7vAxxXhSFZJoj9LatxB qmucnXPQop0A4/6DVpd8oc0c5Q== X-Received: by 2002:a17:903:2144:b0:188:5698:5beb with SMTP id s4-20020a170903214400b0018856985bebmr1119715ple.150.1668805609578; Fri, 18 Nov 2022 13:06:49 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q40-20020a17090a17ab00b00212735c8898sm5806748pja.30.2022.11.18.13.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 13:06:48 -0800 (PST) From: Kees Cook To: Christian Lamparter Cc: Kees Cook , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Gustavo A. R. Silva" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH] p54: Remove unused struct pda_antenna_gain Date: Fri, 18 Nov 2022 13:06:46 -0800 Message-Id: <20221118210639.never.072-kees@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1211; h=from:subject:message-id; bh=xE/N7gPBr8pC4RWE4/LtXpIzlGUJNC643Y5HQ4jcdAw=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBjd/PmJitOcOhYF+kOkfL4S9RGBKFXo38FGTaxIKNh e1EVjb2JAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCY3fz5gAKCRCJcvTf3G3AJowxEA CzSFjacs4k7LCSAK3O45g6EFEe+OrbjoiWiqkX0qvuwJaKY70oEFAqF41Daxf8bdkMmqdWncgV/dW0 vhT4AVeiT0L8lgpD9mfsd3t2WIcb3KMd6VLW3x7hXQlvTeSOpRGInG4FevkLpEUsIy4SPna7ycmRvj f62tMEiIL7MIjwT/pprP2PXhL9kA4zKXh15cvXndeDaX9EGkCMqCciCTrY+szSphZr0431wqxrnPP0 uc78kyKzNDlcWS4V/gN9Ua7wBF/YhGvDayPTLi5u8sy0fo0XHg25wtC1FHZwbnkSAg4i+0gdca2KjO 0gx4b1MFHX6/s8plMDuTzXs1UF+WU5XK5YokMt3Hs2QmzAAyiIA1bIn2nvWQFPO28WhIxZrL4jhtch H8w8Hg0gtIm+aX1gFrUfW5eQYPhaeXXd/8jva/hmuOyZP9RkwRIyaG4ZYs1l7wD7yMlxys6zGqewJo VumVKRtAgLoV0G5n7uXJkzzWcC/V4vTX6ewjnoBM7b8lsaNkLzAVYQ/jvcHalCYAWA9eMrkW8SLZ/S dEAqXU2mUuBFehSGizp06CzFG4ig1rZlEirwWTniz4w4aX+aJfDF9RUZ51V8xNao4KtF11lYymV9oU ul2feGkCPxGlhy/uL1a+vGdxzs7MvvtN/ZwkT5+oDQaTFeUIMw5Akj5jbojw== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749869658358074659?= X-GMAIL-MSGID: =?utf-8?q?1749869658358074659?= Remove struct pda_antenna_gain. It was unused and was using deprecated 0-length arrays[1]. [1] https://github.com/KSPP/linux/issues/78 Cc: Christian Lamparter Cc: Kalle Valo Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: "Gustavo A. R. Silva" Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/wireless/intersil/p54/eeprom.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wireless/intersil/p54/eeprom.h b/drivers/net/wireless/intersil/p54/eeprom.h index 1d0aaf54389a..10b6d96aa49e 100644 --- a/drivers/net/wireless/intersil/p54/eeprom.h +++ b/drivers/net/wireless/intersil/p54/eeprom.h @@ -107,13 +107,6 @@ struct pda_country { u8 flags; } __packed; -struct pda_antenna_gain { - struct { - u8 gain_5GHz; /* 0.25 dBi units */ - u8 gain_2GHz; /* 0.25 dBi units */ - } __packed antenna[0]; -} __packed; - struct pda_custom_wrapper { __le16 entries; __le16 entry_size;