Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348AbdHMCc6 (ORCPT ); Sat, 12 Aug 2017 22:32:58 -0400 Received: from mail-bl2nam02on0053.outbound.protection.outlook.com ([104.47.38.53]:12265 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752216AbdHMCcz (ORCPT ); Sat, 12 Aug 2017 22:32:55 -0400 Authentication-Results: spf=pass (sender IP is 208.19.100.20) smtp.mailfrom=microsemi.com; lip6.fr; dkim=none (message not signed) header.d=none;lip6.fr; dmarc=bestguesspass action=none header.from=microsemi.com; From: Dave Carroll To: Julia Lawall , dl-esc-Aacraid Linux Driver CC: "bhumirks@gmail.com" , "kernel-janitors@vger.kernel.org" , "James E.J. Bottomley" , "Martin K. Petersen" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 3/6] scsi: aacraid: constify pci_error_handlers structures Thread-Topic: [PATCH 3/6] scsi: aacraid: constify pci_error_handlers structures Thread-Index: AQHTEzGp4VpMuuEMNk2MbLU5Ya6IPKKBkbAQ Date: Sun, 13 Aug 2017 02:32:23 +0000 Message-ID: <423FD6710FB8FB4F8728F93591889F9A5B3E16C1@avsrvexchmbx2.microsemi.net> References: <1502516674-8918-1-git-send-email-Julia.Lawall@lip6.fr> <1502516674-8918-4-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1502516674-8918-4-git-send-email-Julia.Lawall@lip6.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.100.34.10] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.20;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(76176999)(54356999)(50986999)(97756001)(104016004)(8676002)(81156014)(81166006)(8746002)(68736007)(47776003)(55846006)(8936002)(4326008)(626005)(53416004)(49446005)(478600001)(106466001)(3846002)(102836003)(6116002)(23726003)(5660300001)(2906002)(97736004)(9686003)(2950100002)(50466002)(7696004)(54906002)(69596002)(33656002)(6246003)(39060400002)(53936002)(305945005)(189998001)(7736002)(229853002)(5250100002)(356003)(6636002)(2920100001)(2900100001)(86362001)(46406003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0201MB0933;H:avsrvexchhts2.microsemi.net;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD023;1:AYaTaWQxxAYHOge7g5DzwBNkyjcwNlPIE+87zmbkgRW3/DXYVigZOIgn9ys/pmPlJ5pg+D8zapSJF00PkLeMeLtORL++xOgSraQ0il1vZHwL53JzqPb/ga/YNa2LBcbU48GzrLNwun+xPwBBukfIbQWMpwPFMLnsahd25wAAjWhNDe+GiEN32ao2qFvZQaxiPPJEA3zRMuDhr+wLS7pBSlcvzj+7ihT3e3RaRXs6Mi5eJ+MUogB+YlmdNenyJap5EOyPbOiSFTnsMXbUVxhqnsNfQvTUcVocOjGKKBCyY3TjvAfSgPBweV1n84oHbnWc8w8wQPYFS7NmqTexqd1lpVmqFJ3HICG8tebb6b29vJiNr8Qqfn9erB+7ZX3av/Ay765/XDCmkPrTulueKXC/KMON4ExvzIe/EWp76LuTKAfg4f2CHy/VJ4KdlSVZxkAN/xDdF1/VmMrcX8mLEuCa+leA6UGwci6heg8yJ59XkMrgS36ZLWVmlc6rexmvxjFGu+HJ9aB4pwGoD5IlC4vJmaDI3tRNfozPq/AKzlntIZTqPPPvjrY1cGCz7fJ+agWdTVVkKU4FkXrjDTRYspPaMEKRr0nrgUh+vI9v8usIiHo4HD44B6bk8XnueuBTRMBTQP8LxpI7lU+lgmpTdjWWO2rjcvi4E/uRvY3ZEzxZd371guZ1uZ37+Q1dtuhiggD8RwekbuGl/HIw30iULjCSG9XajOk1EuqfmznUo21Z/3yzNfxEbjt7NPJq8nGvX0vFHbsty1134Bro69QexFMWcqObRY8rsqu2j48JvxhORbY9yGI5b802DtVNoGJUPuIj X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 101963e4-bd56-43eb-37d1-08d4e1f3985b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BY1PR0201MB0933; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0201MB0933;3:YcPOcRUXQDpnsrbCqJtq4XdnaWbfjaMfVcBowVSYrlbkllObziHbW7ohKuPACP42E+fLohLgnn0d507DPrLLs1hyl3orCQbi8PKSbBXDVinsJXaai0dBtflZRjS92/+1+45ifpwREV5yerVrWX/li0jLjvmBl0fCff4NiTApIOFjGvLc2RUe7FcutKGC+zpJiwtLB3s2roOygsA4AehpU5X0P30hgISqmt22Zh/LaqNCP7siA4/zAYZ7lYgjLf2lGdKN+IcARDlq9T7k/eWYyHrS2gQ2ExD9DiB6jCt3IAAtRC89P/wM7WVxrInWBhEvwwns91yaWHXi6gK+cXO8O55C4pqR2+X8p9gRkxwP2Qk=;25:uFpKsQJCFXDJK+fh1F4xI74IdVWeST6f/H5LNVWoe8YsVvOZf2f8YJlLjMmAuDwiIZmv9Ws98+WLKHgV7YQtz5Oawc3Xfblm4iMnOcXvFYYjC/A21Rkq1rm/2giRSPt/RAXysqAqEmGIDEWk4FiU2467AUaZOewKZYj1joDdGFGGwFJV/K93bo3EyBcronhxNpkcH7b1VJSzkzk6NUWDN/ckHjgpK5S6p8f1mBbIhykKYe8eYZyNxXLL0u2E3qTjH/HJGQBNq4BWj2d4+pxe2k69j1I0xgU6I4xAehYuFrT2VWR9fk87iLme0W9NFmZPfo0lxXcO6CreDao5TrdD3w== X-MS-TrafficTypeDiagnostic: BY1PR0201MB0933: X-Microsoft-Exchange-Diagnostics: 1;BY1PR0201MB0933;31:Ejubyk+kJorJeV3gRe5Nwg8yOnBeMrMAC20tf15hb7gMs1b2tm6MNyPmftJaEQKH7CTmR1rk2R1OwRRTtpokwbJ9bq9lK0pN8eo72SXu8Zd+2WrN2Ck2213K3YGYO8obz7qGbLvTOBLnDPk4tj2lRCQE/xMfbaPu0QRN+SE30YHJZzlPUZ28JwwR3oYFvp+43+fHXQhZsudrsrL21nPcJVmOsq4JSVyDA798rbSTaoQ=;20:YJbgBAg0WfBVhA1QkIhDgQKRmeBgy9+NZOtg3lI7cS014nEoNQ0cAuah8WB8FcQhpFxxWhhyGdOVBUfyiW9/RVYdALL/L7Pj+yeO3MZuLINJVt8p2588H0zkTcRkkqilzH+0Sc7AGT/PB1omWobI97CWjaKADZUzJH5sYZrqkrye70Wc1o3oUOm8Ib/WeYqU8JFFkmR+DWlRPcd71MPfr82gO6ywrirD6d70rOKuGvuJax5FDqPlcqD0v4xZtghaL54YCBMcEMlId09ezLKwXOg48N2czWj5PJfPHS7pRiNHrxkvxPDfA0YfK8bfU1k8+ka28/Swz4lk2KbLnBlO+4YqjrQiLlz4TZz6cXjf/ZZgUEl1N/UFQK4Xx8xS9jYxhpAlvYjtO1cnm3xh1Hh8yqIxdhuFYH+LKzamcbUpo+iKnM74KDofDenKiGSWjEiBrXerPcAei7vdUm3Td0uluok4Q5A/NBYIdASC8GqhLmWUOWvSjDiceYFyeV4EHSI6 X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13016025)(5005006)(13018025)(8121501046)(93006095)(93004095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY1PR0201MB0933;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY1PR0201MB0933; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0201MB0933;4:pZkUWYJtCa7aqWBys8881HwHKy10X1BrXLE29CLiavEbObIoTp+Z4vD9taTqlGFxJLWwuECWBBX8RnmSW2hhr0f9s1RAYphnKnxD96uLiHtg5Czh45Fe1321BDMsY3VrIvRNQkxl+oUDfogkNfxEtQ49fZZ9jfA+ejvQxEAmpJvhjy5k6UWeZAyyyvv5ecETAX3mEwvDasd7xyO6pbKwiZu3PBYXC6L74IrDXN8yftgJ8r8Duyra89rJ5gjoSj07n9lVu8d+QOjb58E9UmFD0T/koAtnjPV/XgDqia3LPYM= X-Forefront-PRVS: 03982FDC1D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0201MB0933;23:b/N2oWxo97xUNy9Zo1UPXptGHfJrGT73pAJ+4n9?= =?us-ascii?Q?v2+usWmqam7Pl0SR2xB25BPb+3AAm+lms3th2oxrct4KVu9J6BarCcZvWJHE?= =?us-ascii?Q?vxKrk9FYVKjvSXDrb5CWrhbtIh4NTYc54Sg2AFeXXMd+2HkPncd/wRN+J3aA?= =?us-ascii?Q?89CgHb7d8VWsaXFmV7/Xei6kOgs/Ni3X7sIZorFDuyUbShjCIKOK8DT2ki1s?= =?us-ascii?Q?uNBD4FXxrDsXsoIFin1ew0nsmF8j7/1v384oTlaxhDrnUA7wHqeDhzlK9MZ5?= =?us-ascii?Q?BSSSV78tCprl7ZRJyn5QzjugPpd9we46cwDyk18oh5dcDMsYOlNx3W+jyw0M?= =?us-ascii?Q?w/6UVVlEpyWtTDOu1uUx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?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0201MB0933;6:7y2c/D5Fm3t3Gr3WdxqaqtlzisGQtCCVnvDGxC2lq5z4BITXivJC8X6ODONgVMB/CgrNwW3ALUeK4Q37P53eWPlyfG7ZtRQ8VBnNxmj11wXkS4MQJTyKD4eKBQlqrbGWVSd3IoK3P0jk1N93F3+wxE6tp4dbsuFnxAQAryORqsPgY1AZgbHJg7fQvMTicoPVhSm31JAJgXnPEpkl0aqnXNiL55yMc1lwBrPmdYex7naoRSPUYi0HtFToK1NScdj0rMO44I+/SgXpz+yLUPM3uEd4tK2Md1OkesAff4+1Jm7X7yje0fw53gfd9WukOLTHL40md8FzCoM+5LkJUM78Tw==;5:gMBzptQEUrVopzshK74ov6wJOGMZL4y0dlSf5XXpo+2xc2len8aUjdUvy4E8pQ2wpahifqm7nQdwLZoJ4/dVIbbXaUAKbv4zzvYsjPtpVBGIMy2BGJN1Xu6po7vc2ZFX4B9rhPDDC6WNGJyJqhU7xA==;24:holeuZ/+yNVRBUf8dmHnk+fjRgpMf1CLE2wXMp3J8PYHdgXWFBIYkoRPU7r45fT2uXWBHnmpNI5D5izMhkc6aTf2e2SH4cLs7EeAk+IhzB4=;7:5yZ1gUOIIR1cg9+RUMfiPr4xfWXZWXeWpQLLKGgnWB54pmPv12Z6OrcOLQefPMwtwUm2mjX2w1kt0vaPo4+kCF+sW9E25N/BJsskfQS3k3G5hZYKqgXEOzcuqorUGqMFnWfIw2cm+dF8Vz0cf7F1JwUTvMaqUZArOUmmYmXtihFqRMWwrNd81l4CXK8UoK7s3R+MVBcLefKIy1nL7jgCrkYG/Y0Jw+21aiUEkJywHuo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2017 02:32:51.3159 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.100.20];Helo=[avsrvexchhts2.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB0933 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v7D2X6ZV010428 Content-Length: 1085 Lines: 28 > > These pci_error_handlers structures are only stored in the err_handler field of a > pci_driver structure, and this field is declared as const. Thus the > pci_error_handlers structures can be const too. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- > drivers/scsi/aacraid/linit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index > a8dedc3..2b978d8 100644 > --- a/drivers/scsi/aacraid/linit.c > +++ b/drivers/scsi/aacraid/linit.c > @@ -2070,7 +2070,7 @@ static void aac_pci_resume(struct pci_dev *pdev) > dev_err(&pdev->dev, "aacraid: PCI error - resume\n"); } > > -static struct pci_error_handlers aac_pci_err_handler = { > +static const struct pci_error_handlers aac_pci_err_handler = { > .error_detected = aac_pci_error_detected, > .mmio_enabled = aac_pci_mmio_enabled, > .slot_reset = aac_pci_slot_reset, Acked-by: Dave Carroll