Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1677994rdh; Mon, 25 Sep 2023 23:17:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzjBWfy0NTAW3zkRQ9OALGZg49IX/ADsir5ryWtlheKQdadZL5WMJ6nYwIbRl9J3N0XfQV X-Received: by 2002:a05:6a20:6a03:b0:14c:910d:972d with SMTP id p3-20020a056a206a0300b0014c910d972dmr7594373pzk.12.1695709045653; Mon, 25 Sep 2023 23:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695709045; cv=none; d=google.com; s=arc-20160816; b=x/B26RWn7Kf0bP5czjF5SdYzTzIExqGzjDZoNLN5PaDCEVzi2KpIDZYFlXHoz6EIWn O84gw6mnhgrKTRD83iteAYRK7sKWoUHteC+Wmh4EZ/DXVLKRvqoXNQr3V/PZoBrVcIwa MEJ3r96XOStN7crzHKxW1HZeHjpcRliZITqyCgiaovZALr7n+Gn7IaRTnZB8X/uisfS1 fGCfoUqAB3svqdTXeuEeegiFT3ftd35LMaDlhMg2PeDtBeiD9lthaf4hu2eAwnz725L0 d4ciCmeshrM4uUavDVvGLoBG1411J4m4P2sj2TTqkSLkOM4lhvtFw7XItEnqOE9WFG5Q k+kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XhJ34cUYsYlf3XC7vsPt+CX9AqV2ARPhgcXKTo4+p2g=; fh=+OFZUOh4tJ80RkGF/7iaBAvQ8Tnk00kkYoWcfoPzHI4=; b=hXQXbsIfpKJUaWBj8Dh1RLppqlRhN+h+kC64dCVpVN4SmQ5IggRvODVdttbuJfxeQ1 +jVcuw9oT5F8642BngEjHQt7rUEk0oVXmDOZn4jpmBWy0zS2iJn19WoiDgAUmN9BcC48 aJs6+A1DQxlU0YpeMy+0rzFtC9qriB98hb9Oub9bC08IlDt2E7zz2cdpoNalxcNjfnO0 vJTBfHrZ5e2Q2KWC1P10KFG7HFFac5FepMIUhQzTMFy5oH6+ZsIdgHq9tZv3NkNSWDBl XefH1J+GeKL2XmS3Zxg82mTPJGBVoW08W0aCvDObptRc5Yq+veeGOBBbHZlLulPVAlpG ATdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RxHVMYMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l3-20020a170902e2c300b001c60d17204fsi5491214plc.206.2023.09.25.23.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 23:17:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RxHVMYMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 6B2DD802F7C2; Mon, 25 Sep 2023 12:11:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbjIYTLZ (ORCPT + 99 others); Mon, 25 Sep 2023 15:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233148AbjIYTLY (ORCPT ); Mon, 25 Sep 2023 15:11:24 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3CB895 for ; Mon, 25 Sep 2023 12:11:17 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3216b83c208so875729f8f.1 for ; Mon, 25 Sep 2023 12:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695669076; x=1696273876; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XhJ34cUYsYlf3XC7vsPt+CX9AqV2ARPhgcXKTo4+p2g=; b=RxHVMYMNukqdMDo9r4YL0LZ/zvBdA4haKFlbohjSUaO0Uz3Ny6NEJgbgRKCMAgXxi9 IWlCOq6U9Li+ZmTGl1RNaLSZQ3Y4Z8JLNfyshr87LXsA5k3F8TOZK39V9vmMpvp7cHPu QLP8KxsNh/A2apaSYa/QpNWKAnrCCCVhqafeq1rRS5bkKDBvYPzd++Bl9u4J+6JtH0RN /zWD1m26bsi/PtM/d4Vcf93S7U808iLGAEmgb1JwZYiIcoc1qqh9NR8bnw/cyP+9+9BE DvBnmLdhOwVDc83Hfsga24fEkLCI7AsMiAw6SeMs53Shi3IDG29xyRgqq6XL+fiSTUZy Cn8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695669076; x=1696273876; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XhJ34cUYsYlf3XC7vsPt+CX9AqV2ARPhgcXKTo4+p2g=; b=tAmLiBEOEBB/eMlSxWAovu+iIOo8BE1S26cIm0KkZEzfz07tkVqHoOVbYZc9vQhfg1 HrgnkAB9oo/SaTHv+Z0hQMIjlG4xCldQPA5iboJOiIAOPv10rnVbRsEfHe4u7BQ2ZKoO rqrN+znxfStBzEcCElWlYq//ZfyEqQvI92icZsgibAVI1zUhjNn/N+kVOOLk/iLf6kJr ZSuNoM+Um1+pWM++9JkY2LYOcn2ZDUJZ7bpPu068k01LoFGDkz2DMjIbWC5t8yxhVSk4 t8z6b1x3yXjbp9rombVG7smgMVnAYBIP6bmC/IhP5aBTxaHkvQLuan9QP4zspvaKiHoK Ieng== X-Gm-Message-State: AOJu0YxgRxD93KPRRbv6heFvSIaE7j1MoFNSGLvSxzpQZqCRDPMNqb39 GkBHT11FuOzOPoBhIrwaCa0= X-Received: by 2002:a5d:4210:0:b0:320:8f0:b93d with SMTP id n16-20020a5d4210000000b0032008f0b93dmr6064271wrq.3.1695669075782; Mon, 25 Sep 2023 12:11:15 -0700 (PDT) Received: from [192.168.0.102] (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id r2-20020adfe682000000b0031ff89af0e4sm12562071wrm.99.2023.09.25.12.11.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 12:11:15 -0700 (PDT) Message-ID: <9d96db4f-0b79-0940-ef95-d9bd70dc9a18@gmail.com> Date: Mon, 25 Sep 2023 21:11:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 1/2] staging: rtl8192e: fix structure alignment Content-Language: en-US To: Arnd Bergmann , Greg Kroah-Hartman Cc: Arnd Bergmann , Tree Davies , Yogesh Hegde , Sumitra Sharma , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20230925155413.471287-1-arnd@kernel.org> From: Philipp Hortmann In-Reply-To: <20230925155413.471287-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 12:11:57 -0700 (PDT) On 9/25/23 17:54, Arnd Bergmann wrote: > From: Arnd Bergmann > > A recent cleanup changed the rtl8192e from using the custom misaligned > rtllib_hdr_3addr structure to the generic ieee80211_hdr_3addr definition > that enforces 16-bit structure alignment in memory. > > This causes a gcc warning about conflicting alignment requirements: > > drivers/staging/rtl8192e/rtllib.h:645:1: error: alignment 1 of 'struct rtllib_authentication' is less than 2 [-Werror=packed-not-aligned] > 645 | } __packed; > | ^ > rtllib.h:650:1: error: alignment 1 of 'struct rtllib_disauth' is less than 2 [-Werror=packed-not-aligned] > rtllib.h:655:1: error: alignment 1 of 'struct rtllib_disassoc' is less than 2 [-Werror=packed-not-aligned] > rtllib.h:661:1: error: alignment 1 of 'struct rtllib_probe_request' is less than 2 [-Werror=packed-not-aligned] > rtllib.h:672:1: error: alignment 1 of 'struct rtllib_probe_response' is less than 2 [-Werror=packed-not-aligned] > rtllib.h:683:1: error: alignment 1 of 'struct rtllib_assoc_request_frame' is less than 2 [-Werror=packed-not-aligned] > rtllib.h:691:1: error: alignment 1 of 'struct rtllib_assoc_response_frame' is less than 2 [-Werror=packed-not-aligned] > > Change all of the structure definitions that include this one to also > use 16-bit alignment. This assumes that the objects are actually aligned > in memory, but that is normally guaranteed by the slab allocator already. > > All members of the structure definitions are already 16-bit aligned, > so the layouts do not change. As an added benefit, 16-bit accesses are > generally faster than 8-bit accesses, so architectures without unaligned > load/store instructions can produce better code now by avoiding byte-wise > accesses. > > Fixes: 71ddc43ed7c71 ("staging: rtl8192e: Replace struct rtllib_hdr_3addr in structs of rtllib.h") > Signed-off-by: Arnd Bergmann Hi, thanks for your support. your patches cannot be applied on top of the 24 patches which are in the queue. But may be Greg will not accept all of the patches send in. Will see what happens when Greg sorts them out. I tried your patches on hardware without the 24 patches send in. All OK Tested-by: Philipp Hortmann I use the following command to compile. Why I am not seeing the issue above? make "KCFLAGS=-pipe -Wpacked-not-aligned" -C . M=drivers/staging /rtl8192e Thanks Bye Philipp