Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3387340imc; Wed, 13 Mar 2019 17:10:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxygbAqwhT/ebstXHSkht7/OhrKImqj+IdxmHXld2JxL2Uom9rl2CGSTGFU4muCwNh+3Z2b X-Received: by 2002:a63:1d03:: with SMTP id d3mr9299814pgd.42.1552522255562; Wed, 13 Mar 2019 17:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552522255; cv=none; d=google.com; s=arc-20160816; b=zFTIIMYbBGevrnTjKlIMV+fg9jtOgQmKtzs7Reg247lZW3Wbs4IhOd30fXVBEBYHJZ stFjeOyr/do5dGsiEJBIUOpYPLkZXHXaShqxyO2iAUDQYUoTaovdl+nFrSa12Ckzuvvt FsXdLJ948/EJH7u+XwAXO/TfMF98jiRpg9VdfeaSyXFBVVEjSdzN4kLmgvMn6bIjU/mJ zKVlFqft3gz3L3fVsjAs/IRsADPh2Fzt4jsQkUipZp/PTcX7CJor3RDBYV7Jr41MRz1Y XSyfFX87W3oufyRMNup/OPoINw6eCtfh9UXz9w1+D9rMMONpteWdDFDJHRTfOfsTfTUC 2jyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=B7T7tqVw77QypZrSC/p2cv/D5Lx0mwSNALG2RwAMGVo=; b=iZvWRCmRlfjXxkl/ucBNF+kG0mE12JfUHlYV7FnP59aLUoqHQ1tb2EXMWdj1k7Efbf Qsnf18uN3Xt9tca0iBtoeY3xNYCfm2sa4B44lznKIxA2nX4QmW7GfBLWOFjfmkc8Df2x SpWRIIulDJBcLa0Eu1XEsaZe+/Vu55LXQJGYa4fSskIwIRpAzgRjkYm5I8EXFLhEoj/m eY3sorsAF18OJNtssR165kPP6kcz6gRjJF2hJ10x2D45CzEGRxK+/yqA2B1WtLLg1M57 GR7EIz4h2gLXjS0Acy4Z39M35U2fwF2yqybwdhv2eGaOMEJuEfGK1cBBIZQLVMq1i0Ft nd8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si10748437pgh.19.2019.03.13.17.10.36; Wed, 13 Mar 2019 17:10:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbfCNAKB (ORCPT + 99 others); Wed, 13 Mar 2019 20:10:01 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55166 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfCNAKB (ORCPT ); Wed, 13 Mar 2019 20:10:01 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2E04BC9096656 for ; Wed, 13 Mar 2019 20:10:00 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r78379tqb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 13 Mar 2019 20:10:00 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 14 Mar 2019 00:09:50 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 14 Mar 2019 00:09:47 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2E09kmm33882310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2019 00:09:46 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9CDF842041; Thu, 14 Mar 2019 00:09:46 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AEF542042; Thu, 14 Mar 2019 00:09:46 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 14 Mar 2019 00:09:46 +0000 (GMT) Received: from [10.61.2.125] (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 309FFA00D1; Thu, 14 Mar 2019 11:09:45 +1100 (AEDT) Subject: Re: [PATCH 1/1] arch/powerpc: Rework local_paca to avoid LTO warnings To: Daniel Axtens , "Alastair D'Silva" Cc: Michal Hocko , Mahesh Salgaonkar , "Alastair D'Silva" , linux-kernel@vger.kernel.org, Nicholas Piggin , Mike Rapoport , Paul Mackerras , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org, Andrew Morton References: <20190313034208.13134-1-alastair@au1.ibm.com> <87ef7atjnk.fsf@dja-thinkpad.axtens.net> From: Andrew Donnellan Date: Thu, 14 Mar 2019 11:09:42 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <87ef7atjnk.fsf@dja-thinkpad.axtens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19031400-0016-0000-0000-00000262059C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19031400-0017-0000-0000-000032BD05A3 Message-Id: <52392d47-4b69-2353-b831-6db4250bed78@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-13_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=870 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903130165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/3/19 10:54 am, Daniel Axtens wrote: >> +static inline struct paca_struct *get_paca_no_preempt_check(void) >> +{ >> + register struct paca_struct *paca asm("r13"); >> + return paca; >> +} > > Isn't the convention to have the { on the same line as the function, or > am I horrible mis-remembering things? However, there is one special case, namely functions: they have the opening brace at the beginning of the next line, thus: int function(int x) { body of function } Heretic people all over the world have claimed that this inconsistency is ... well ... inconsistent, but all right-thinking people know that (a) K&R are **right** and (b) K&R are right. Besides, functions are special anyway (you can't nest them in C). -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnellan@au1.ibm.com IBM Australia Limited