From patchwork Mon Sep 18 16:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 141590 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2977937vqi; Mon, 18 Sep 2023 15:01:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+SEz7/yGNUBZkzW7CirGzQH1TbTgQaW9mGk2FG/oBg3iyV0ETiYm4iZ6OreP0/hUW8MgW X-Received: by 2002:a05:6a00:4298:b0:690:9a5a:e34e with SMTP id bx24-20020a056a00429800b006909a5ae34emr971976pfb.12.1695074470820; Mon, 18 Sep 2023 15:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695074470; cv=none; d=google.com; s=arc-20160816; b=jA+FPsADUa0LisU+dLNZBytJJnbmEH3C0yQN316f7tZnFHvti84N0Gi1jK6wNJFRqm OhICNY6kdwj2rsqldWCPRdIAJ38mzJKcKEP/4lCzMWCZwM7yawNHZN87rvIJuevzVfRv zblnpqDE0VCiTXL+oTZNFbjwMenZ4ZXXtp1nsbiKF4Wod2Vx02MA27wClTRm42n1Q3NK g+KVXVit1GhPy/X593ltwaFDoZ0vp1lxiItBLaGc8TorihXvUaE5fAAfBO2X/nZW3RHd hR0R5ouvpoQOWFPSIzSNg8p5FmGNZ0kHpvg2+H7RPx3ZkaNYMAIYLtcDVFXBE4YMWE+K kMiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=Ruq6IMO2lTDXcNQxdpreOyS38HS9l5XKxLPIpBNqQNk=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=TY5803SLchTY1FJQEWjkr6ZuA7w/lT/gxGUpf0J5oNQrLPBt//t4LKpIMzdV0UK0pg WHbSNN6hzBruTRhJURQjUtdtt64RX5huXdSi1Gvwggh0op5LNzO1otkszo0DrU2qVBIb 0b99IQISt2NogjjwFMNyvmpGIv2vL29UC1F4wkZkOskSh/3wgbcwc4hP4Ld6fY5mqEi7 3HtnChR4byOfXi4Mh7x0XqoWyf/Svbm6lR4oy9YRa8IgRA10ni+drVxbFSkSqx3tWUBk ZTC18zVUys15o81lYXXBPbuBKYOuUKjs8JI5sCQLuG7Mbe5eHdWng7c8znckpAohjGX8 l1lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jx127TXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h190-20020a6383c7000000b00578a28df3dasi786057pge.524.2023.09.18.15.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 15:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jx127TXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 42D54818594C; Mon, 18 Sep 2023 09:45:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231344AbjIRQo6 (ORCPT + 25 others); Mon, 18 Sep 2023 12:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbjIRQoZ (ORCPT ); Mon, 18 Sep 2023 12:44:25 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB8A59DA for ; Mon, 18 Sep 2023 09:43:08 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4046f7d49a9so14370565e9.1 for ; Mon, 18 Sep 2023 09:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695055387; x=1695660187; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ruq6IMO2lTDXcNQxdpreOyS38HS9l5XKxLPIpBNqQNk=; b=jx127TXCDOvKDZ2zVWF3kD+NoL2+DaFjgAUUjhmpbpaowy7B+zyH+R3RYUE6N/qksZ 8bmPuzuh989BlrapzmT1z+q/mv/7ncUUYcKg7/rbqXGseiFeBpno9+3kl10ZZJvvdli6 eAXN+DDBOM1kMUFyAvExn954pdOPBMdHrQQmjBeL1M24hGgh6Ki3Djst0P32cVSmdDfH EZPpsdJ0oP1ZSj30xsWcvMqCQ7DaF9EsjKW3n7SYucxgyQPWSL+mKGQRcHv8c10gqdgO uZLU+B6HA6g43FHdIOhk5f22+3y1W4E+uDAmgnIrjKwXH4np1b3RbQ6dQlVF4Tt8Ebea H3dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695055387; x=1695660187; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ruq6IMO2lTDXcNQxdpreOyS38HS9l5XKxLPIpBNqQNk=; b=APyevwZevCeMbXV9+z/WyXgspJSMTHwOEhPcy6efnX25itTRdSKrqTkzTZbgPhFg2E ulhVPulaT7Q1TFz5DjoT/pFUtJTzLH8+EOuOKRbOr2ltkiXMn0X2R3YvbELnAYTTFg88 iqi5Tgji3DMAaT1nE0QHrnjTTBDHmGlHcOz6Br5PHZmvRtE4BJrV2lLu7BoZUI6++gqN u4WFR51dHoijRwmvhKRJ1f70VNq80zrbZngAOFX3oZ63vN7TOMweaySz3w2cBor3Qa2C O7nY0BLRdSq68EYY04O7WCzww/raEcbsNZjBiIXksb0cZKrSsDTYEi3Uys4gpjjyjJtx oYEQ== X-Gm-Message-State: AOJu0YxabBH8dXvLuw0e8Is+4VoecQlgdqfQKb7gSpSLX3xfLpOFpL6o gAHOpS8jLz8G9R4KAZ4121dSwkym3Nq+Bw== X-Received: by 2002:a5d:484a:0:b0:316:ef5f:7d8f with SMTP id n10-20020a5d484a000000b00316ef5f7d8fmr7602213wrs.3.1695055386501; Mon, 18 Sep 2023 09:43:06 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id m12-20020a056000024c00b0031989784d96sm10957489wrz.76.2023.09.18.09.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 09:43:06 -0700 (PDT) Date: Mon, 18 Sep 2023 18:43:04 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: rtl8192e: Fix alignment of structs in rtllib.h to two Message-ID: <3140277dca915a1af9f66b1e7b4b47f5c7f6cd77.1695054044.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:45:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777414407955490316 X-GMAIL-MSGID: 1777414407955490316 Fix alignment of structs to even addresses to support all architectures. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309171733.Gl96cmYd-lkp@intel.com/ Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtllib.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 5517b9df65be..7d26910a0b16 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -642,23 +642,23 @@ struct rtllib_authentication { __le16 status; /*challenge*/ struct rtllib_info_element info_element[]; -} __packed; +} __packed __aligned(2); struct rtllib_disauth { struct ieee80211_hdr_3addr header; __le16 reason; -} __packed; +} __packed __aligned(2); struct rtllib_disassoc { struct ieee80211_hdr_3addr header; __le16 reason; -} __packed; +} __packed __aligned(2); struct rtllib_probe_request { struct ieee80211_hdr_3addr header; /* SSID, supported rates */ struct rtllib_info_element info_element[]; -} __packed; +} __packed __aligned(2); struct rtllib_probe_response { struct ieee80211_hdr_3addr header; @@ -669,7 +669,7 @@ struct rtllib_probe_response { * CF params, IBSS params, TIM (if beacon), RSN */ struct rtllib_info_element info_element[]; -} __packed; +} __packed __aligned(2); /* Alias beacon for probe_response */ #define rtllib_beacon rtllib_probe_response @@ -680,7 +680,7 @@ struct rtllib_assoc_request_frame { __le16 listen_interval; /* SSID, supported rates, RSN */ struct rtllib_info_element info_element[]; -} __packed; +} __packed __aligned(2); struct rtllib_assoc_response_frame { struct ieee80211_hdr_3addr header; @@ -688,7 +688,7 @@ struct rtllib_assoc_response_frame { __le16 status; __le16 aid; struct rtllib_info_element info_element[]; /* supported rates */ -} __packed; +} __packed __aligned(2); struct rtllib_txb { u8 nr_frags;