Received: by 10.192.165.148 with SMTP id m20csp471879imm; Fri, 4 May 2018 00:45:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpx6SGSzmt0wwogkK3zigca3f/edhbVgnDKeo7OISlGuqqBMOyqyTqKxKpfWWo0Sh5WnLQo X-Received: by 2002:a17:902:7596:: with SMTP id j22-v6mr27210617pll.334.1525419950358; Fri, 04 May 2018 00:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525419950; cv=none; d=google.com; s=arc-20160816; b=nTWGWF+IAhuT1XYkFt+9oIeBZ5RpKljkQIVjvwcOyueWsjLOfKdGB8lAXC8M2E4bkX LcbxlsM1HNu3nFVRpzRFNMsHBzwExquewABpOO6BfteHUUYiwilFp4wfrEH8+3MQpaxD VIUF2N3FVw/y96akzy/W//5MbLKrozip87CvqrWqdpLQRBUoeCnJOb1cZMTB7Rwf+1f+ K9MLyk2mnxzdSEMGx3/pagtSorKvqdIoV4R9RUtrNoYUs/0VPofYZwaB4GnOrbJ8hxt2 moS7MfevTbUyDadHOqc+s2IaS1w6e4LxV6ov/pzu5ezQOw2Y+Zig0fHNKPlcugUxsC1i 3wWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=32KcX0QG4hkuhlDMNb6Q7y0uxJoriMfAX3yJPHADQwo=; b=o3gT4lMuIxfWKGhD5dEkQyPCRWVPLhATmfqVShOaNBEKlocLZ1mCM1lOJMNuptVwvw C+bUNhxAO5r9Vum5siK9pdOECMawsA03w+IcQL/ElbHZYKwSKU9YzPPqXjc8d+b2Tsv6 EE63N+MBm3Kf9BIsyFUDzbEUb2eu6ldwpzz9J436+Rru7iul0PQrOg8iZ//Rrmy579JA 1pPDw1qcd+kO/S+j4+5Sjl8kJcOld1O3VV8cDq4omRWZrdmSHM/maUnzSLuGY7Tkvo5e 18Qo0s/b6EjiJm/HR/8itN4fUzFQsRChl204LX3T2MPnLMr8pP/kwzzAXFFHzgMEJ/eK ev5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=fip6JV8N; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si14880153plt.55.2018.05.04.00.45.35; Fri, 04 May 2018 00:45:50 -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; dkim=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=fip6JV8N; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751443AbeEDHod (ORCPT + 99 others); Fri, 4 May 2018 03:44:33 -0400 Received: from mail-ve1eur01on0095.outbound.protection.outlook.com ([104.47.1.95]:30800 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750709AbeEDHob (ORCPT ); Fri, 4 May 2018 03:44:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevasonline.onmicrosoft.com; s=selector1-prevas-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=32KcX0QG4hkuhlDMNb6Q7y0uxJoriMfAX3yJPHADQwo=; b=fip6JV8NrmV//XMn5Xezi3quZBhoKCHjELhyrCUpCXbj5JdcL72N9rs0Pt3g9oWOCEkQzg6l9K/QjjGm0Vor5MExj6dbp6gqR93okhOU0bfWw6jCzBVCHYej1ggk0CL60wZjfAocHcujA5EBCyGeL+jWwUr/Ydo36DP2TGNqjxU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; Received: from [172.16.11.52] (81.216.59.226) by HE1PR10MB0443.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:40::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Fri, 4 May 2018 07:44:27 +0000 Subject: Re: [PATCH v5 1/2] irqchip: add support for Layerscape external interrupt lines To: Thomas Gleixner Cc: Rob Herring , Shawn Guo , Jason Cooper , Marc Zyngier , Andy Tang , Alexander Stein , linux-kernel@vger.kernel.org References: <20180125150230.7234-1-rasmus.villemoes@prevas.dk> <20180223210901.23480-1-rasmus.villemoes@prevas.dk> <20180223210901.23480-2-rasmus.villemoes@prevas.dk> From: Rasmus Villemoes Message-ID: <4684c3ce-b56a-334d-f556-6e8524d8126c@prevas.dk> Date: Fri, 4 May 2018 09:44:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.216.59.226] X-ClientProxiedBy: HE1PR0502CA0022.eurprd05.prod.outlook.com (2603:10a6:3:e3::32) To HE1PR10MB0443.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:40::19) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:HE1PR10MB0443; X-Microsoft-Exchange-Diagnostics: 1;HE1PR10MB0443;3:+s8A70vl/Eubg+GE/+y2rSuea2uOL1vzq9m+scOH9Iz0Hd4HB/W4WJMHZujLfFBFb22oxQFgPJ6sT7yyVHT4e5F99Uqr5F1nSpQoG2DUfy+5d4yvTjTa1aR+ySNViwc+sjo7J4AluxNdNwfNXxs+4ieMTRsgiMV0//2VrXFRnnpmfK37UYXGwmqqq1BkQh4gdtr3oUKZM/I1Nnpg8ZBw88uKpKclhsRC3G9DUj1LS/CUdKAQjlnRzYNomXwu7QwE;25:0NXkpmtfCTOTwuwcIaYm/Ocz7Pl8FGK9m5NpWwk1Gp7Q/gbI6xgKjmJ8Do7J5NpvC6VNWUZ1beVJRrLtiI/XQ9OVaGngvUNhMAsUfdWhfDA5MdttUiqmONSZHH91Ft5JBbL1PTfRRVKPsCExkOPrxLUOpV+kIcy6WnbbP3UI/1oNt2oxOpkQLVErqRG9db3OuSyx7lvMThfSGDYpuN/v1kEOKUGuo5Pkea5EJLEGXi/n9Tfbxft/hTxitZ8dMgTU1lBNRqwGGjdyfu881ZUvNCtVPWark7+vf/kAZLQggd8igCl59V8xwzMn8gTtFnAHOfeku9mGod5RbCtPKBJTdA==;31:jkY7cO5TZA4KYvhRQQQw2cBzS/+Kyi4ufbmcAUDfibKDc/Dli5dovkyXWEhZix03g0GgvhrrIgE2wSsp0WPqDCIemhyBibhBmstqjxB1c4lyVNolnb+62ZpFsL8Av4SlWItG4stTbOjD4LBWG88ocBsfOq8hdNKHFvLBYTy91idPwTFNaXRYDFL7Dwy6XD2884UIorhsitBXsEDfTJflvoqs4X0bUSWrSFiyW1RnYI0= X-MS-TrafficTypeDiagnostic: HE1PR10MB0443: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:HE1PR10MB0443;BCL:0;PCL:0;RULEID:;SRVR:HE1PR10MB0443; X-Microsoft-Exchange-Diagnostics: 1;HE1PR10MB0443;4:UUALpGGpwISaxhgkE1ghVQU8YhBQI5cCjcWUQmoW1gTX+RB7/ZhC3NRqjFYNFmgYRGuslY1t5J8VQ4+epJFZ6jTFyZYmiQGNNZGfMqeq8zRmkNR/J0mzyDtG/z8lKBwoV/390CP/qHM2cdvg71P+VfG1Xa/Hl53ihWFQCz+2vYdeddI+hnugavf6UXrMK9WqU9qKtbcZV/VuYiyzNGK2k6+x7k+z/EB99C7n/JE1gPuAyb+LfJkLxYtYEwfnKjnAb64wlJZ3eO8wj3BWxBadPA== X-Forefront-PRVS: 06628F7CA4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(39380400002)(376002)(39850400004)(396003)(346002)(366004)(377424004)(199004)(189003)(966005)(8656006)(65806001)(8936002)(50466002)(446003)(230700001)(2616005)(956004)(16576012)(81166006)(316002)(8676002)(72206003)(44832011)(93886005)(25786009)(54906003)(81156014)(486006)(42882007)(58126008)(478600001)(4326008)(74482002)(66066001)(6486002)(68736007)(53936002)(65956001)(5660300001)(3846002)(6306002)(8976002)(305945005)(6246003)(47776003)(31696002)(97736004)(11346002)(59450400001)(16526019)(105586002)(77096007)(65826007)(26005)(31686004)(36756003)(7736002)(6116002)(229853002)(76176011)(386003)(52116002)(52146003)(64126003)(53546011)(23676004)(186003)(2486003)(106356001)(2906002)(6916009)(476003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR10MB0443;H:[172.16.11.52];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjEwTUIwNDQzOzIzOnFlNUZJbVByQXVWY3J1MExBbjJDKzExamgr?= =?utf-8?B?R0FEVlROc3l5WGlpMndJaFN5M3pQczJwdUNicGhjK1VzUUZj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EDvA==;5:slYVB2bZDMOtqQ/VTvXc7NvgIVna3c0E/MKYKiZBdpGIehreNM+6/Ty+XqgMcu35ma8BWDl3/RmmsD9Fm26RSxHsddbviEgYzNyHltZQJml22kELDRaNix1Pn3/DRjg6TOFzHuXnZRz4i0iz8N5/2dQ6loURX5728hxZGMQXcS8=;24:u3zJb0JCRVlKfygpOz4byCdEVLfWGnPFIR0afU+8doe+4QAB/45Z9OFbrqB5QuFbDAYYqH0ddQnaGHGVMnDiO4bTUlLVCg03HSrckFtIaR0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR10MB0443;7:/cOrHz8MgrJA4ddUBZcRn3eS6ga0AWqLmZ37saU1edbrjOtQH+mqq3QfkNio/uDaKU5q9F7Ebhi7HM6jVDUngI98ZjvOniN8hrxeEeCcdUJZHFCeJ4HvfSTuBk3kLnqEBMIe7skIL+8GtTU5VHA0oo5Q6ykqBdXhFX770xYYzNxJozH9axpHoo2jmwXoN5FgnzboYEw1Z5kwLEXaj1p0c5MdoLhzTiWm3O1Abb60YhQToJu3XI3i9vUN+B43BlrQ X-MS-Office365-Filtering-Correlation-Id: 43a261c1-dbf8-4e61-1719-08d5b192dd59 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2018 07:44:27.6925 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 43a261c1-dbf8-4e61-1719-08d5b192dd59 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR10MB0443 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-01 13:16, Thomas Gleixner wrote: > On Fri, 23 Feb 2018, Rasmus Villemoes wrote: >> +#include >> +#include >> +#include >> +#include > > of.h is already included from of_irq.h and of_address.h Yes. But if we're ever going to have a chance of reducing the median header bloat factor from the current ~200x [1], one must stop relying on headers pulling in other headers, so I much prefer including the headers that declare the interfaces I use. And now that I look closer, I don't actually use anything from of_irq.h, so that's gone. But I'll keep both of.h and of_address.h. >> +#include >> +#include >> +static int >> +ls_extirq_set_type(struct irq_data *data, unsigned int type) >> +{ >> + irq_hw_number_t hwirq = data->hwirq; >> + struct extirq_chip_data *chip_data = data->chip_data; >> + u32 value, mask; > > Please order local variables in reverse fir tree fashion whenever > possible. That's way simpler to read: > > struct extirq_chip_data *chip_data = data->chip_data; > irq_hw_number_t hwirq = data->hwirq; > u32 value, mask; Fixed, thanks. Rasmus [1] https://wildmoose.dk/header-bloat/