Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1189722rwl; Sat, 25 Mar 2023 20:16:23 -0700 (PDT) X-Google-Smtp-Source: AKy350b60vK1yiHKgsbL1nM9Gciu2lWTDNprG8X4qwCqRf1yrAqc54Sw7wfYSVIFB1lcnThyOiX0 X-Received: by 2002:a17:906:25d5:b0:932:40f4:5c44 with SMTP id n21-20020a17090625d500b0093240f45c44mr7573930ejb.36.1679800582997; Sat, 25 Mar 2023 20:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679800582; cv=none; d=google.com; s=arc-20160816; b=G9pJ0vwincN+n2ED+Ra3og6oF7jbST+StLCpfYQ2Lw3lF8dbRHTO6BI7vcyykcPKBU 2dIUXBm8RRNLQcDGQDLUNM8NFfDuCgRA9mDFhrPMhKonhm+o68Mo0wS5SNHOF49jODOC FQfdhFip2bSQEyGxIv0c9MqEkLdvkP9ztJPGQn7osrl4T/P/j4uCWh6A5cVcB0JdsjAl JxDzi3A9ySW0NCQLPtbAQuI+rOs6Xllek0gguod6fr1peLH0BPWifmkC9X3Ji/4whssU YEEEGCbMxXASAGvvZQDiICe2wg27j7IK493rPAefXzswZf68pD6vKxwjZYphpI+pfDKj UvJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=i4OoXEyWtGMl9WI2uvQYxrvTMYVw65h6BLdH+Gn9mgE=; b=rfK+c4DB4dHOczcVSe9yeVBQbFh73nDGL9DYPeuRKR3fq9l80qcKr9QAuxGg4o788U be1bBE/GJmINLx83cgWaXWAur3hiI1Cfhjp+ZsJMUjJFWbQZDSnL0UWwASTIM9HX5UOM T8LF9g1SMsq0iJgcd5ISs1ZNt7a5bw4jy8LaVGUBdP+89vqNMyEzKm4i70GnaIihVEEM pBMIdy/aXEU6zJN5sODDok00HYlcZjL/MEvzjGe/S1KOKu7EZwddypAshoWZP7zpVCDg MUwmSiGtCqOzZKvRSNProsAgsWmAg40zRTbTrvZuSr1j2UpzBEagB3nq3aZH5gvKt/E0 JRpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne38-20020a1709077ba600b008bded90af7csi31446474ejc.531.2023.03.25.20.15.57; Sat, 25 Mar 2023 20:16:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbjCZCaw convert rfc822-to-8bit (ORCPT + 99 others); Sat, 25 Mar 2023 22:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCZCav (ORCPT ); Sat, 25 Mar 2023 22:30:51 -0400 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4EFA5E3; Sat, 25 Mar 2023 19:30:50 -0700 (PDT) Received: by mail-pf1-f173.google.com with SMTP id fb38so3551608pfb.7; Sat, 25 Mar 2023 19:30:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679797850; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=16zeEm3Yx86eXVp/qbGCAi0MIpRJKwJZlSDFwjFpw+o=; b=yfuf8wV8TFo/3D3PUb93rl/hozXz/NwnH/ZzK4Z1uKuRcXRAvdShVvlSKOpPs/CQ6V jTM3+VNnG0Ose5GVRpceMr8mYOSYSBy41tvf659knJCb/EE8WuCZXCLMZgytGs0LA2Lb Fz/TDCa/7vHg+7H7Zzt4JvKB3qchjSbfyJJmkEEW1F0XIke+E7tryUhJ1vsDz6T9Hfh7 JDKK6smfHOPBQ/9pq+1ryDLDAQ3FAFL+Mip8SMleIJ91PJ2+2xogOyHtjV6YkG5LiDm/ WE0MZ4xzGc8l+WMFgOqNO/FP+ok2BgoKw3MpWICGeAphtXpD5WqASSzL0DLdJUrOfK/M tvNw== X-Gm-Message-State: AAQBX9fReYgebGiU4IgpswTMXPNUGBEYIiqDqSs7ZdUItRtkyu9PBu16 lqkD5Q7VjS3XYO6E7sAWdQWAGIfZ9n2XhC65axA= X-Received: by 2002:a63:5f02:0:b0:507:3e33:43e3 with SMTP id t2-20020a635f02000000b005073e3343e3mr1874010pgb.7.1679797849615; Sat, 25 Mar 2023 19:30:49 -0700 (PDT) MIME-Version: 1.0 References: <20230321081152.26510-1-peter_hong@fintek.com.tw> In-Reply-To: From: Vincent MAILHOL Date: Sun, 26 Mar 2023 11:30:37 +0900 Message-ID: Subject: Re: [PATCH V2] can: usb: f81604: add Fintek F81604 support To: Peter Hong Cc: wg@grandegger.com, mkl@pengutronix.de, michal.swiatkowski@linux.intel.com, Steen.Hegelund@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, frank.jungclaus@esd.eu, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, hpeter+linux_kernel@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Tue. 23 Mar 2023 at 14:54, Vincent MAILHOL wrote: > Le jeu. 23 mars 2023 à 14:14, Peter Hong a écrit : (...) > > struct f81604_bulk_data { > > u8 cmd; > > u8 dlc; > > > > union { > > struct { > > u8 id1, id2; > > u8 data[CAN_MAX_DLEN]; > > } sff; > > > > struct { > > u8 id1, id2, id3, id4; > > u8 data[CAN_MAX_DLEN]; > > } eff; > > }; > > } __attribute__((packed)); Actually, there is an alias for this attribute. Just use __packed instead of __attribute__((packed)). (...)