Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2112871pxu; Sun, 6 Dec 2020 19:47:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW6sg4k2ZIgBZR3XCBdzcataEp+/Z7Zcaa+kDDKOZxbjwt1wZb5k/lILoCMCoi2q4L+lWC X-Received: by 2002:a17:906:4348:: with SMTP id z8mr17870109ejm.119.1607312865671; Sun, 06 Dec 2020 19:47:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607312865; cv=none; d=google.com; s=arc-20160816; b=THigojP5YI/nWy4MjItu/PIe8cVCisuqgZuMITFn4Jfq+ZKb/P103NNP4LZHWJl30m 0TZC3khlfJLABb1pzxbBQIbF14S+kQ7HfLJVYzle7fswU45VXm9N+DO75TiL7awC45UK V2xYBuSUgZgp92JtkBsal33L5dIsUU9CpMKhmvemu2ktCLUihZ1FUGQGQ5a4RfC1CMPL hOFblSNQ51KrFj4sz57pRCkRahkmCgasO0U8aqazQWE258VkVMSZoz4aEAv+fejVEWK2 MtQKha/8aufFXbwWl98x9x8BbOYPn75ovJbOgenYW61peXEuEisuJqioeB3oP8D1j1/E myug== 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=9MKw7FFnyYMSzzvcypIBu2Mql6EtrEVGkbQ7ufL6dno=; b=tsYdTkvWZKIaqniNgbvFCvZvAlCXJkDI6RSKRB3jlTrh+UunXgXEALfF/+S2JRjiIG loxivxXO+1QZ9fPABb98ohKZEdJZUkVqxs+eR7MnhGILW9VxOFLO587IY7w0KdziuBLw aNIdAvgHfEpQupd7TinuuZfTV4HuzBPAaGfbVAWnyHikhG4PiZOGdZriCZDbPUAJVX9J Gu6UQf1NOdU+xVWKlu9B1hQ7fMdqmwV5gH8yXWfBCVmU6tEUTTmWBizO3zCYWC7i21YB hGG3H/Sa5prrdDbW2UrHNXrj6UH8Qg6hUOKMiEf7L+Zv5ly32koUBZuibk9MDkqQnneg PjFw== 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 i8si6335344ejj.424.2020.12.06.19.47.11; Sun, 06 Dec 2020 19:47:45 -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 S1728657AbgLGDoY (ORCPT + 99 others); Sun, 6 Dec 2020 22:44:24 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8955 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgLGDoX (ORCPT ); Sun, 6 Dec 2020 22:44:23 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Cq8Kf57H0zhnbZ; Mon, 7 Dec 2020 11:43:18 +0800 (CST) Received: from [10.67.102.118] (10.67.102.118) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 11:43:38 +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> From: liulongfang Message-ID: Date: Mon, 7 Dec 2020 11:43:38 +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: <20201204070359.GA26438@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/4 15:03, Herbert Xu Wrote: > On Thu, Nov 26, 2020 at 10:18:03AM +0800, Longfang Liu wrote: >> >> diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.h b/drivers/crypto/hisilicon/sec2/sec_crypto.h >> index 0e933e7..712176b 100644 >> --- a/drivers/crypto/hisilicon/sec2/sec_crypto.h >> +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.h >> @@ -211,6 +219,167 @@ struct sec_sqe { >> struct sec_sqe_type2 type2; >> }; >> >> +#pragma pack(4) > > Please don't use pragma pack. Instead add the attributes as > needed to each struct or member. > > Cheers, > Can I use __attribute__((aligned(n))) instead of #pragma pack(n)? Thanks, Longfang.