Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1048687rbb; Sun, 25 Feb 2024 17:18:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7gI4fXWzkgN+CrdbmyQJMcxoxevbIq6iHM6sKjfyH5/GttsIT1znm+lumc+Io13CIZpqKJfXfyfUSX7zWP+rRCmtN5YWbKNWxzWQ/jg== X-Google-Smtp-Source: AGHT+IEmnrx73TZ+P7fVya9lXHvKFOEmTLJbBUgm0fRceKhaqCQprmnlkDgS29+2woZAzSVuqH4e X-Received: by 2002:a17:902:d50e:b0:1dc:90a7:660a with SMTP id b14-20020a170902d50e00b001dc90a7660amr4595523plg.61.1708910323465; Sun, 25 Feb 2024 17:18:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708910323; cv=pass; d=google.com; s=arc-20160816; b=e6BoGUdSp1eGx3rX/UXODEtg4uBy/JDSPHNLZ3J87Mf3YFlrb9v6Cuml+ns4x0b+CG HYNM0Lj+TRZxuR6NgO8DVzruPEBoSXLSIYjc1FUpweIvDfMcp8dL6r3rJixG4vLN6vV3 TnPk0cExGULyDeJwAUS1c36AD1w9u/j1mcbDY6rWNQicOcepDzjrXR/W+KLZHrtTKlYB Zf/LJj+FGL5mebqV2pS+Q0RIaJmSoazBDrlDiKUM+hoqSQwE898Hsy38DukvmSlUSKkE VtYtS6m94c3uN5eReugbIAmFh/d+WGT05bkCeypAGR+iZ1CwNHTn5Uz9yQg1tDlORYjO bNcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=WnUTPYnYEzI+9VFACGx7sNmPWnocacjd4kB7+9p+nG4=; fh=IWJ9fgnickk2FcUlPCvfixqgpyeSpSfOsSMU/VG0Kc8=; b=Q3BRyGtlRkxJ7n1rS8IBY+GkXlEZ4SKKBQ0dzwpPyEflvzDdSfslhJSp1G5vz8kolk asZLPOvtWqTJYrIQ9Rgttn4Qw2Rk47cpwTHuKXow79+4gkoox8AUO5ZfmwQUR7CjogI9 jCRC6tyEylGl+Bnba8d6SIfcdQ7npE1DVUu5DjA1fIKH9fkmvlrGjJWpLpcVjKo/4tIE GgBh7o28W+owxWqzr2xdvMMISEGNm1H/tvpJVw35GmEbdujySMBFowGGXAiyxD7UTyUc w4R5/visIWR6dEfXLuAE5WMn0eE6+oIWDR1sdqmQzM3UgdnFlO2sCVGC/ask5/TGudwV WoIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3983-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h11-20020a170902680b00b001dc9d472c13si919005plk.653.2024.02.25.17.18.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 17:18:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-3983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3983-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B549DB20C68 for ; Mon, 26 Feb 2024 01:18:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F4838F6A; Mon, 26 Feb 2024 01:18:35 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AA2863B1; Mon, 26 Feb 2024 01:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708910315; cv=none; b=dmvWBApX1Qw+Dxde1tcXD5sZzy22OHeK6vuSa5h3lBP2kprAJczbItRZsgpEn+NhAPCm02pZn4Eflgyr9WtetwM8h+UxBdg8NcjCA7Zq8KW3HcMnqrqGA+7cLg6pKeqz3Ix829fTbz0Gkzc5Y+IvnjfJOJ6DG71zOO/7dowsCb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708910315; c=relaxed/simple; bh=zgFi5HFXIGLekCnyN5/QrVsmTT6G3lncBn0Sub7vMT0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=IM/nmUNpioyLGRHU5Sd/zn9loGHqCumX+XuefzURWVcqG3OJ99H80UiyKLRe4F5doxfcKx9nT+jyzqfUnOfImerzSLDDbJjw62u+Pq++Uj/rE78409wVj/0B0aueQQU2Nw2jYC2hEuAuuOywfo1wgEcnFHcISAdnlnMXW7xRauU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 41Q1I5NQ03370148, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 41Q1I5NQ03370148 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2024 09:18:06 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.17; Mon, 26 Feb 2024 09:18:06 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 26 Feb 2024 09:18:05 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f]) by RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f%7]) with mapi id 15.01.2507.035; Mon, 26 Feb 2024 09:18:05 +0800 From: Ping-Ke Shih To: Shiji Yang , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] wifi: rtl8xxxu: fix mixed declarations in rtl8xxxu_set_aifs() Thread-Topic: [PATCH] wifi: rtl8xxxu: fix mixed declarations in rtl8xxxu_set_aifs() Thread-Index: AQHaZl1h2HbwH7TQQEG2gknoSwbFfrEb1M2g Date: Mon, 26 Feb 2024 01:18:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback > -----Original Message----- > From: Shiji Yang > Sent: Friday, February 23, 2024 9:35 PM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ;= linux-kernel@vger.kernel.org; > Shiji Yang > Subject: [PATCH] wifi: rtl8xxxu: fix mixed declarations in rtl8xxxu_set_a= ifs() >=20 > Moving struct ieee80211_sta *sta variable definition to the front > of the code to fix the ISO C90 forbids mixed declarations and code > warning. I suppose there will be no this kind of warnings after the commit b5ec6fd286df ("kbuild: Drop -Wdeclaration-after-statement") sinc= e v6.5. But as commit message mentioned --=20 " It will still be recommeneded to place declarations at the start of a scope where possible, but it will no longer be enforced." Then, this patch looks good to me.=20 >=20 > Fixes: 43532c050f8e ("wifi: rtl8xxxu: support multiple interfaces in set_= aifs()") > Signed-off-by: Shiji Yang Reviewed-by: Ping-Ke Shih