Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp249668rwr; Wed, 19 Apr 2023 21:42:51 -0700 (PDT) X-Google-Smtp-Source: AKy350aUGOqCoXJVeRw4jT3p/bI3TfFO/P9HkrWMLgk0oocLVG5bmN0dTAq1ihbrHtn9LGX1mZfD X-Received: by 2002:a05:6a20:549b:b0:f0:a556:4777 with SMTP id i27-20020a056a20549b00b000f0a5564777mr570828pzk.3.1681965771305; Wed, 19 Apr 2023 21:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681965771; cv=none; d=google.com; s=arc-20160816; b=pHzk96LsDNrTIxm8sz5W5qlL6RFb/beybLzqITkHRDS+xcKEkkQjtISPQ/ay0uz+3i 7+ubSDhmYsLRhSSrsSQhRb1k+5CLLkW7VmeVs8Yrl3fJw9BDqX5Ga5ypLvMymWjovUaq ZWWgO9TR/mSUZ2T43tzKcFUu9zceueumpzmYmB0CLSf4Mjo3kIro10pKioF6N0j9KKFE bj1NzbbR5gt+MacDTk4bctOM/pSBxJbOVTWRCBvzj36IUzDJxvycbLaBwhA3pz6ekSjM ZyAs9vY0Z/0wgXQfHrrAGc6JKT+N5LY6EoE2xUnDRpWP3pwpnbhIEBGFZLpRCz8in4rP W6RQ== 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=J7T52uNPT96OWewzizQ/c1kjAdS+HWSCLEQtoHc+aks=; b=B/kRI1FqmlAnU46kNR6R5WLfmFVBiF7YBZqR2yJQKpCqireQeCyWobCxi3j/sG+moX jFSPaEliYBA6+ICjhiNqoSs4NYYhz8rf4G9OeXxiWTWArNPdQjX1JLzG57RPFkGBvFC6 OcJaSvZAvNzsvD5ruDRlsSL34dYWLCIEQV29wFbI8c4YaBqqa/HUfMhZhe9eFyXYxwf5 HTEVKlm23FltdCkRzsH0iQavV9ctUp0injrIJArsoRbPOdTH4TubFDkg2PdBR7bri4jM Fe7PS/MBDRJ4+DhMu+gTSKmgUxbFcl17o9ktYtGN/MY0Xr4QKEXmXLecPwEGkCYzmuL/ LhOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=PX8JwbhZ; 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 72-20020a63054b000000b00502d81ecf19si555588pgf.646.2023.04.19.21.42.37; Wed, 19 Apr 2023 21:42:51 -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=PX8JwbhZ; 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 S233375AbjDTE2z (ORCPT + 99 others); Thu, 20 Apr 2023 00:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233073AbjDTE2x (ORCPT ); Thu, 20 Apr 2023 00:28:53 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A13640C7 for ; Wed, 19 Apr 2023 21:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1681964932; bh=qjJvhRPJtTB9s4JlA/d32awcwTdfGFqpmvhyPup6Wc8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PX8JwbhZLO8D/l7LmC2fOX9ytOGvUVJ9EOfaiI/asRKpWeIcsq52EOOtOcjL4xGX3 Cm7vIEg1QTGA+PCU/mGiwKCKnSfberDERsRTbGMR3lIh1UFoBgiWKJ/JN1yNwOV9bg ve/iK0dphdPBJg66mXWEqNhRuzNBiP+FK9GWJat8= Received: from [IPv6:240e:358:116f:3d00:dc73:854d:832e:2] (unknown [IPv6:240e:358:116f:3d00:dc73:854d:832e:2]) (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 DCE7C663E6; Thu, 20 Apr 2023 00:28:48 -0400 (EDT) Message-ID: <4c8bd175b3749631ebd3ab1b70693b3f7e748c69.camel@xry111.site> Subject: Re: [PATCH 1/2] LoongArch: Add pad structure members for explicit alignment From: Xi Ruoyao To: Qing Zhang , WANG Xuerui , Huacai Chen Cc: Jiaxun Yang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Thu, 20 Apr 2023 12:28:43 +0800 In-Reply-To: <51051bd7e42378cdf465494389ab76a30ca3acf2.camel@xry111.site> References: <20230418091348.9239-1-zhangqing@loongson.cn> <899085c1-7a74-8bab-1429-1b6e9e4c2c30@xen0n.name> <48bc7236-638d-9086-daaf-62eacea80dd2@xen0n.name> <111c1e81-dfae-4388-9fc6-a3f247641398@loongson.cn> <51051bd7e42378cdf465494389ab76a30ca3acf2.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 On Thu, 2023-04-20 at 12:24 +0800, Xi Ruoyao wrote: > undefined behavior.=C2=A0 `printf(PRIu16 "\n", ptr->dbg_info);` is an > undefined behavior if ptr->dbg_info is a int16_t, because the standard ^^^^^^^ uint64_t :( --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University