Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3225416rwe; Mon, 29 Aug 2022 07:56:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dOKsJEX3NgLqlM/YQDGE1nHWNPnTcu4V2uZiOaQ8rTxt6KubDAHGjgrMB6fm5TdegG7J2 X-Received: by 2002:aa7:da8b:0:b0:448:6bd:d74a with SMTP id q11-20020aa7da8b000000b0044806bdd74amr10529586eds.152.1661785006379; Mon, 29 Aug 2022 07:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661785006; cv=none; d=google.com; s=arc-20160816; b=OSy4hbIU2QTaLBSZwKnt12+V/uO72w4Ql1SmKScTx2U7SpZxt3XlJqYkfDakgb5zo+ zR1527mOsEN8fYWe+7NShYHtjNiE46Oc/ZVhxcO1kw80h49lNDqNqdem36ao9nYfpksZ u9sU/30Ymi2D4Oj5kCEASFe1bvLDnFeGe0VLU/u5d5zDU9X8z6LIaP0e1muc0hrXWq7B Sun6gB38z02rh1ONb3op2v7fhRdGAz7pD7nrkJmDOlsttslc2feASmJmJDIeAyMu7ATS 80EfyXkFhagw+903+cJxiKLFSwZKUYIoJHt6ODQ2FubbsvZBQyni3xJJ8pKQJ9/4VIgB Pkxw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SQVydA1k3U6kPp3G5IB0fmdL8RYgISwzJjiqljbfeqM=; b=ozznfozkY5SppYJVC+3PpayvegHnAJohdV5D1/jkSBUjxnzC/WEMkAUOGma/illyWj +uFLkJ+V07b2w6kOJmpciaoL7ZLtmIv6PxwpQbX9SDWxpeHFHyKBlQfGaALoSCKHeGsn dBtJ9hpVQFrBOHmMOBXOj7FGYVGr9zo8dh8Ft3aTaTNR5k8wvn9nz6kDEOd7DDuPV77Z uOUy6f+nS2yMDRVwjOpzXTXdXuigU6/AXN47kNrV5T8WXKoJ9wCaIynIUYlo0ZD+waBw dJBWK1P3B0ZIy6SVqKhp8oAjdrfZs38yyfKyhtwcggQVM0VERkpfL5iy9611lzTOcUyZ 84MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=P+fWNMsv; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz14-20020a170906cd0e00b007386cbc7461si5954796ejb.210.2022.08.29.07.56.20; Mon, 29 Aug 2022 07:56:46 -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=@ibm.com header.s=pp1 header.b=P+fWNMsv; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbiH2Ojy (ORCPT + 99 others); Mon, 29 Aug 2022 10:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiH2Ojw (ORCPT ); Mon, 29 Aug 2022 10:39:52 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66800B4BA for ; Mon, 29 Aug 2022 07:39:50 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27TEPmcC025701; Mon, 29 Aug 2022 14:39:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=SQVydA1k3U6kPp3G5IB0fmdL8RYgISwzJjiqljbfeqM=; b=P+fWNMsvM/ahzUYeS/Rr402Db3vJBBDLGVrzVL7WgbDCxP+1ZTs4ArPbvUKPd1ET1nb2 1SkEWrcYWhhPYESweVoBT3QqVdRJbAuOhfcQ+oI15J932TkPlzTJMRooHMdkQQjzxLXr f4fHLDBLomsiqDCj9B3Wd8kHhLz9WLdLLJyFmmIrKUHnjFFrlBVecXsMPmVFxOqHB2nt DQ5LbOtLLKIWlMarxk4hz0LeUsSmcJLM7lKa1gbhs8zql0nYAo6ZLHMxw6X5GHKy1vj5 INVIrX93oPCQJyuXRLU5QBZCJ2c4AfMFhr1ywcKTl0VGuUMEqB2pNLKR2A4wik4l9Myp JQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j8y77gg5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 14:39:19 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 27TEa2fW004338; Mon, 29 Aug 2022 14:39:18 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j8y77gg3t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 14:39:18 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27TEZqo8028038; Mon, 29 Aug 2022 14:39:16 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma05fra.de.ibm.com with ESMTP id 3j7aw8sstc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 14:39:15 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27TEdZ6Z36176368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Aug 2022 14:39:35 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4D2DA4054; Mon, 29 Aug 2022 14:39:13 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 77ECCA405C; Mon, 29 Aug 2022 14:39:09 +0000 (GMT) Received: from [9.43.54.31] (unknown [9.43.54.31]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Aug 2022 14:39:09 +0000 (GMT) Message-ID: <14dbd6be-05be-e98c-3a2d-922fb0b8cb72@linux.vnet.ibm.com> Date: Mon, 29 Aug 2022 20:09:08 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 02/16] powerpc: override __ALIGN() and __ALIGN_STR() macros Content-Language: en-US To: Christophe Leroy , Sathvika Vasireddy , "linuxppc-dev@lists.ozlabs.org" Cc: "jpoimboe@redhat.com" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" , "aik@ozlabs.ru" , "mpe@ellerman.id.au" , "mingo@redhat.com" , "rostedt@goodmis.org" , "mbenes@suse.cz" , "npiggin@gmail.com" , "chenzhongjin@huawei.com" , "naveen.n.rao@linux.vnet.ibm.com" References: <20220829055223.24767-1-sv@linux.ibm.com> <20220829055223.24767-3-sv@linux.ibm.com> <7a56b125-86ec-e78a-9327-b523bc0239cf@csgroup.eu> From: Sathvika Vasireddy In-Reply-To: <7a56b125-86ec-e78a-9327-b523bc0239cf@csgroup.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 9n6QLa6oyDgWJy-ClNDxeIFMmLFXAUSz X-Proofpoint-ORIG-GUID: vtbFqzIZr8S30PD_KJAXLkyztU2Fql-c X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-29_07,2022-08-25_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 clxscore=1015 mlxscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 spamscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208290068 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_NONE,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 Hi Christophe, On 29/08/22 18:56, Christophe Leroy wrote: > > Le 29/08/2022 à 07:52, Sathvika Vasireddy a écrit : >> Powerpc instructions must be word-aligned. Currently, >> there is an alignment of 16 bytes (by default), and it is >> much more than what is required for powerpc (4 bytes). >> >> The default expansion of __ALIGN() macro is: >> #define __ALIGN .align 4,0x90 >> >> Since Powerpc Linux does not require a 16 byte alignment, >> override __ALIGN() and __ALIGN_STR() macros to use required >> 4 byte alignment. >> >> Signed-off-by: Sathvika Vasireddy >> --- >> arch/powerpc/include/asm/linkage.h | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/arch/powerpc/include/asm/linkage.h b/arch/powerpc/include/asm/linkage.h >> index b71b9582e754..8df88fe61438 100644 >> --- a/arch/powerpc/include/asm/linkage.h >> +++ b/arch/powerpc/include/asm/linkage.h >> @@ -2,8 +2,12 @@ >> #ifndef _ASM_POWERPC_LINKAGE_H >> #define _ASM_POWERPC_LINKAGE_H >> >> +#include >> #include >> >> +#define __ALIGN .align 2 >> +#define __ALIGN_STR __stringify(__ALIGN) >> + > I still can't see the added value of using __stringify() macro here. In > order to use that macro you have to include linux/stringify.h . Usually > we try to minimise the amount of headers required by other headers. Oh ok, makes sense to me. I'll wait for a day to see if there are any other comments, and make this change as part of v3. Thanks for reviewing! - Sathvika