Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp83646rwr; Wed, 19 Apr 2023 03:52:43 -0700 (PDT) X-Google-Smtp-Source: AKy350aZ08tHl2d0nbNGO8Ie9fABqxsEIEQFwTrCLbT3AK/kScGc+1EHo2i3umxtWVGlheNsXh0B X-Received: by 2002:a17:903:240f:b0:1a6:9906:1eb7 with SMTP id e15-20020a170903240f00b001a699061eb7mr4844797plo.35.1681901562767; Wed, 19 Apr 2023 03:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681901562; cv=none; d=google.com; s=arc-20160816; b=pVOwODRoDw0qIKOqVQ1zJedj1cbFSUxe54tmSNAeENBWFoKzvT/qndW/lIaX/pYCkI lnNHBOFhCfKl0OrN4y+YTsUHpOoYwtLLgTS/EnL/Jrt1lFyFjPXOe9+y7uzyakZcvGyh tBGobo7TzeVolTh5XA3JPjOvdThFjBo9jki54/qgl38NXPcmEy0uWIwYvCrbHCa01+/v uUQzsmMBbvO7eoRf2Dt2q1qzr/oGGyAtNpDD3F4gJ3mBXUs1w02gwse63eOiIhnAS44F LEsdGH6t7ZrHdqj0v9lguXbdxvJv2mXAWow/1uNB81u/2skJ4d63YkOyigJCCnZQA1Hb uFDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=NnE0CzIOhkCFuAdtNBZ4R7pyy7AFXsTSMSAcvOT6l9w=; b=QpkS7hJ/bjQxVUN+WarVpd6Lj85OYcMj5DbL3Gma7cIds/v0Ho1b2V4eBVGZajZqA+ 9+LO/VmV7d5mjLx51XUElspidirYauI7AZ/n1oRMR+ByUy8szlKINWnsQ2zf7nIXspTn XHFIe2neRcK6OyB9j97PdZ5BzcqQ4ZK62f56V2YuB3flHpC2GjFvRpk+8XZMbu6nVWjr c9/i9GBM+Qc0KQUrS7O8v9GTS8kuo+3oz7D1cwObZB05156ecRIpvjOhFB53Taw3SzUV KZSyQZEvTzKVpyL2tFL75cxnHD8qNSd/R3lfi2lwFF+IaybBmQTTlUp0ngdIPkyIfJFV OBZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=NycJOzsk; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a170903228b00b001a1e4051da5si17654735plh.498.2023.04.19.03.52.27; Wed, 19 Apr 2023 03:52:42 -0700 (PDT) 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=@xry111.site header.s=default header.b=NycJOzsk; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232356AbjDSKmr (ORCPT + 99 others); Wed, 19 Apr 2023 06:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbjDSKmj (ORCPT ); Wed, 19 Apr 2023 06:42:39 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1339EBE for ; Wed, 19 Apr 2023 03:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1681900957; bh=NnE0CzIOhkCFuAdtNBZ4R7pyy7AFXsTSMSAcvOT6l9w=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=NycJOzskKcJJLuSWJPr4QbUapy7gTm4VqcUuSLE6mBqpZOBGbI2+buO8tNt6YMPp+ nx6NG59RDKagt2u8P2rZKHR/HPoTdsiQTMFoGgYfCxbR7zlCXSn0hWZyI4UdY57Cxz pR1aar1PZILK2u6WCZV0K8qSXlp3TJxjSth1KjkU= Received: from [192.168.124.11] (unknown [113.140.11.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 2508C65C28; Wed, 19 Apr 2023 06:42:35 -0400 (EDT) Message-ID: Subject: Re: [PATCH 1/2] LoongArch: Add pad structure members for explicit alignment From: Xi Ruoyao To: Qing Zhang , Huacai Chen , WANG Xuerui Cc: Jiaxun Yang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Wed, 19 Apr 2023 18:42:28 +0800 In-Reply-To: <20230418091348.9239-1-zhangqing@loongson.cn> References: <20230418091348.9239-1-zhangqing@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 T24gVHVlLCAyMDIzLTA0LTE4IGF0IDE3OjEzICswODAwLCBRaW5nIFpoYW5nIHdyb3RlOgo+IFRo aXMgaXMgZG9uZSBpbiBvcmR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