Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2210500pxu; Sun, 6 Dec 2020 23:49:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY2+gED4pUH7mOBcnynrRefDgpD8F5bHlTfsH5Ikp/7yR6YqhiWgXANJg05YNirUBQQ+iT X-Received: by 2002:a17:906:68d1:: with SMTP id y17mr17909890ejr.447.1607327394741; Sun, 06 Dec 2020 23:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607327394; cv=none; d=google.com; s=arc-20160816; b=wqdKL/l6j4qGae/HWPru4IjEfoVM6a0Dv6gLTT5TmnKZaOQyrontVWQZCqmbwPEXii AyB6P6/mDD6EiXiACAr84gDLAOFrkMHWIAhkMBCjzLejxxFc93VJjCdokN3o/8RMdbSL rsFRgLYc4rBkv5Kv+Nx9NOf0C8SAP4RN9MqIzjBVg/qNjftVv+Z6LGNUVdAfhDx6QTsJ rHSsOIzar1GMn1q+aXE3Z8Unl3HpGfnm1A1HcrZCEuwQSV9ASP0hWWoPnw7J55N7uAXB ytxZJDYWgs8tdV58MNwutjf6+eio1wiZEMNp+InunkHkEmYgZlqGKgclGeofUZb3tWZI NI/A== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=daao4O0ie9OAibEa6LXvQpw8buw7ztx/GQN34cEh/5Y=; b=wb835k2sGF9S1HIeMNm+LJ5krEXJGgJgaBlK1j7Y6HVFG1aQ1M4VIfwcIG3OoxIo87 jpgi59vE7GAyQwXwpWnbvKGA5z0CBRJFAX2Q0fRYVbka3zhxojVpaHlDlj1obrkPhw13 QBy0qx3LRH28vcR1Ix9gepV5gKZPWdjUPQjoYHH7Eklb7gwXR2P5C72X4jrmbY4t3g1i I2suCCoVnvhm8nvPaWI+MKiCslmzrmV172Y8j0FnROkjno9lcd6XA9tJDrh7UoyJDOeH 6Xpg8Y5GJ1PfGjwvvLFuHXxql2Xkde/huqdHMbbncIIPKb/WTmkhDpmlh8QNhvd8q/FB lreg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si6136046ejb.695.2020.12.06.23.49.20; Sun, 06 Dec 2020 23:49:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726130AbgLGHrO (ORCPT + 99 others); Mon, 7 Dec 2020 02:47:14 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8709 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgLGHrO (ORCPT ); Mon, 7 Dec 2020 02:47:14 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CqFjY3kFfzklR8; Mon, 7 Dec 2020 15:45:53 +0800 (CST) Received: from [10.67.102.118] (10.67.102.118) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 15:46:28 +0800 Subject: Re: [PATCH 2/5] crypto: hisilicon/sec - add new type of sqe for Kunpeng930 To: Herbert Xu CC: , References: <1606357086-9785-1-git-send-email-liulongfang@huawei.com> <1606357086-9785-3-git-send-email-liulongfang@huawei.com> <20201204070359.GA26438@gondor.apana.org.au> <20201207034511.GA10526@gondor.apana.org.au> From: liulongfang Message-ID: Date: Mon, 7 Dec 2020 15:46:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20201207034511.GA10526@gondor.apana.org.au> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.118] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/12/7 11:45, Herbert Xu Wrote: > On Mon, Dec 07, 2020 at 11:43:38AM +0800, liulongfang wrote: >> >> Can I use __attribute__((aligned(n))) instead of #pragma pack(n)? > > We normally just use __aligned(n) in the kernel. > > Cheers, > I need to use "__packed __aligned(n)" to make sure the structure length is normal. Is it possible to use "__packed __aligned(n)" in the kernel? Thanks. Longfang.