Received: by 10.223.176.5 with SMTP id f5csp796400wra; Wed, 7 Feb 2018 07:42:01 -0800 (PST) X-Google-Smtp-Source: AH8x227Nloj4o00QwEWRbMkK449MXzRv4ytrGsYQOmLpggokp2VKyHEGVfOb14+D7NIMqQtiH0hI X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr6576081plk.14.1518018121531; Wed, 07 Feb 2018 07:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518018121; cv=none; d=google.com; s=arc-20160816; b=Ruc7fr9cx9Nq50OLt5vMXrcWs0j1SWLIRhzMGLCCntBrXIBfECh5b14M6WCYHpTPsJ o7OoFluI0PuRDYB08vW+OCa0Tr+XxNHNcI1eQOYykDVimtQJnWg/Rlkvgig3CVNyUslM 5OWlKgx6t7p75rRmwR9EMtNSA2UwrVI5nGeEvWMformzx+ng8pq4Kl58DqTz52e3pNPl 1qX5gFFl5DZuSYm92SPZkJjn6FSBm6mQlO43J+Q2ZOaRAOK4uy0V7ZIJ1d00vMWZ2+PW qIFxgoC/qZ+Ou8r9isgCae9vBffwLDhtnJGCx2BuZ4/JsJADSfsWsxAiYjia+SWZf4Lg DDpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=vqhUUDYtqCKg2c6gaqQT7Xdwwe38Vqm90kZcXfmQdRU=; b=Db5HxXVtCt7+d8KN2ElAHkeAzqZS7snD+NuzkuwItXgK/rnDUamRT7gw80AuXV+O1D qWZMR2QpfT5jkJ1toWpjRVO9XRPI+RJTRlxoRNcp+ZuECx2g2VQmDF2I9d8fXBa355MF br/C/Sg4D/cZqLWOuqNOf0j9TFA+PnjSoqYo5bYLd/G0kowL6DBf0dC7bu0InFh93+cW yko9j09iX5XV9sKkqlP6zwqxW1N810iIEwPQLTQcLEeB79J/+khChSiWaBh1m0vZ1LXt h8UZ2HIa7UjqL5zMaFXu3UVYNRvdxxtMfak400MHikMyfLBP5Oj6hb9alFxCZpfw+KSk /phg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=FET+3JOh; 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 3-v6si1235074plq.540.2018.02.07.07.41.47; Wed, 07 Feb 2018 07:42:01 -0800 (PST) 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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=FET+3JOh; 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 S1754596AbeBGPk3 (ORCPT + 99 others); Wed, 7 Feb 2018 10:40:29 -0500 Received: from mail-dm3nam03on0073.outbound.protection.outlook.com ([104.47.41.73]:3552 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754150AbeBGPk0 (ORCPT ); Wed, 7 Feb 2018 10:40:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vqhUUDYtqCKg2c6gaqQT7Xdwwe38Vqm90kZcXfmQdRU=; b=FET+3JOhil9ozXMspPjx6tQuH1p6fcq+vU4pqJ+hfdO6VBqD3/UCyApeNFP9y+WjKnlJSTmfwBKhU95FOQWzQCbHbnUKtGCvjiPK5zuiT1oeVmCM1tQj1UfDfhplmw0qtPdpb6fOfbQcWtz3zDUe94w7WOs3uknxp/aVhlcepAk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Chad.Dupuis@cavium.com; Received: from [192.168.1.225] (100.0.162.75) by BN6PR07MB2770.namprd07.prod.outlook.com (10.173.27.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Wed, 7 Feb 2018 15:40:21 +0000 Date: Wed, 7 Feb 2018 10:38:20 -0500 (EST) From: Chad Dupuis X-X-Sender: cdupuis@administrators-MacBook-Pro.local To: Arnd Bergmann cc: linux-scsi@vger.kernel.org, "James E . J . Bottomley" , QLogic-Storage-Upstream@cavium.com, "Martin K. Petersen" , Nicolas Pitre , Andi Kleen , Nilesh Javali , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] scsi: qedf: fix LTO-enabled build In-Reply-To: <20180202131225.1658853-5-arnd@arndb.de> Message-ID: References: <20180202131225.1658853-1-arnd@arndb.de> <20180202131225.1658853-5-arnd@arndb.de> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Originating-IP: [100.0.162.75] X-ClientProxiedBy: MWHPR01CA0031.prod.exchangelabs.com (10.172.172.145) To BN6PR07MB2770.namprd07.prod.outlook.com (10.173.27.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1970fc0e-e506-4ee4-c4fb-08d56e411a54 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:BN6PR07MB2770; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB2770;3:juO5F71JkW0dG0DDMKHa6vIWkpXt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cmkY+dZqtfjvaw903vWfiij7aighuS5U4FW1+RHKhp4nQvcpkIMSYCuclCBW8aNgi9gX32PXXcGm6qDmgm9CZIKKtpspjZHQG0O6iwcIeCAqmKqGwOm/6CIddwl2huhY0uj4c7RWtXdtHRi+lXHM9O0KwUEG7eDFhBd7Y38j1mk/oxeKnIOxPV8mwI9TfUPAbrm5GpH9JySX2W3A5G0IZS2mEeH5L09BhubQiajKI2cl/tmNOe7iBd1O2edP5/MpNchW4Rn8U9oOl7qPvcnLwfe6NsEros4nhM9Ezfl4V/qpZU1XfLWA/enjMD;4:JgeZUWasgfFdAKuFWiVi+pLVrYmBuB0qTG6/amL/SyPsqT6fx1S8Xl6en3Z9qNzN57VmHfrgXfdVTnsxeHRmDy/CvalEzHGprOYhTZz2453IBEi4T24yTVpC4fMWd3CNKYMmm6W7DQRzWOaoflQxL1KThoGZH5X3koZ6QbUAzEexr8NKDyaKCU/41eNUYnIgiYc1iGAN5DiO21g+/V6URX2qt+U9QJQV6/mHWlAnc0pb6btucz+0BIEUvobAEG6EG2cSjpuODOkISUGAQlLfhQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(3002001)(10201501046)(93006095)(93001095)(6041288)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BN6PR07MB2770;BCL:0;PCL:0;RULEID:;SRVR:BN6PR07MB2770; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(376002)(39860400002)(39380400002)(366004)(396003)(199004)(189003)(117156002)(83506002)(52116002)(9686003)(25786009)(26005)(77096007)(16526019)(33896004)(47776003)(105586002)(5005980100005)(186003)(66066001)(53936002)(97736004)(76176011)(386003)(6246003)(23726003)(90366009)(3846002)(106356001)(68736007)(86362001)(8936002)(5660300001)(72206003)(81166006)(81156014)(8676002)(6486002)(478600001)(316002)(16576012)(58126008)(4326008)(16586007)(2906002)(6116002)(54906003)(6916009)(2950100002)(98436002)(7736002)(229853002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB2770;H:[192.168.1.225];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN6PR07MB2770;23:9J1/upEGjmZXw+p3ErBmcritOr7IRhSRdDRZo+b+I?= =?us-ascii?Q?/NprO9QU7HrwJD+RwlEBRM25qHY6CCxbC7LqAa5Vi2cmPYKQpJhIjL81njnu?= =?us-ascii?Q?NPbJFc22tGtsPwDJN1dh7dYEtsIriWfYdqBkeIBzyIeG4aydJXsh1ZdWr7VW?= =?us-ascii?Q?x8NFodWxsH7rMFZ+gSRmfhRg1sYFtSXkb5UdoOMR9jGPgTySOb4qnYYDK2G5?= =?us-ascii?Q?cFEwZ4MaGJ0DcISbrRDjpLANaUQ7+EVb6xmORCs+13eiD81dXgTN4XMd+2SV?= =?us-ascii?Q?Fv0rtrh6v93g55WLXfNNfm3WuETAHJQI89O1vp1IwoVdKM6m1upVPiGcSyAE?= =?us-ascii?Q?Iw4aLhioas2yJUKsRXrll9uZSN6eBzcq90wQ+OSMxHtSvtLkbscfJaZblamo?= =?us-ascii?Q?QQyoVcWu0jdlkVg3Jp/NxhzK7rfrdexw+Edls4UD4S4GEx4GCm1HSUkBHDfl?= =?us-ascii?Q?P6kw0U03pobaG0JLm3UjEC+93gVod1lQqQvdHj7KLxzNOmpuxyz0f6WBxYJW?= =?us-ascii?Q?RuGm2FqkN6/wqrBuUUHmdvkkIws9Pk+fK18erTXpdD/p27ocbrpeqmm2cWCD?= =?us-ascii?Q?PmYiKoAuIJKiXsskSRx2FREXhSxZ8x9mmwfbYU87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UYm5pKiXW61z+BcMuTJdY/KOiiWLNAwYfoWlDqYWP3pJVJrSsQueT4HggVbu1gSJ+L4Sf4H8iz3FRa5HdW7IpBQ0wpwLAvSUeuuaOAuvZACp3Z1yqZvYdVxu49wb7+KRtFfbYbwpkPg=;5:b5JEe/Dzk2VTULmH8DXFNp+xG5KdxVOfptOF8i2P343eFVVy9efnYhgaBbjKtjuQKle++jp59zU0+cLuWMeffvkSyJMMQ93HBKul+jc9XQd6zYg4WtOSOCoB+zLVVddJhNmHn9l8yKALRW9xBH7VkvBpmvU3/9ixNxxG9yWx0KM=;24:GAGtA2T905w57I6yqI1WnLBuwx+2vxl+DCmB9E/1VPNZQ9MABL3UX3q4uQDrou+GOCZjVMFe3KTRtHWTXH6JjcMCn7kcbwSfqRluu8j3o80=;7:jQxbfAUrnedjM9XGVTFJ875J2pKg5ar0TSBygPDiMpF9MKTTAEf7Oh0HxBulU2wQ9R5FgEakFbKBHA3sEd4AhqQEvFqKhLf5/LvCk2qr6dIHo9zW41zOqgKtOF/yp/cNdy4O3kN2uXvQ0VW64P5FwurX7A1jULYNumscDzRWjLl08jrpE+e0zEwup+zk49TmVM1reRpixL8tsRmITYo62paKMxh5jVoRz/JQRlqsiHp5NPZoX/i7HnH7Zcp9X8nJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2018 15:40:21.9453 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1970fc0e-e506-4ee4-c4fb-08d56e411a54 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2770 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Feb 2018, 8:12am, Arnd Bergmann wrote: > The prototype for qedf_dbg_fops/qedf_debugfs_ops doesn't match the definition, > which causes the final link to fail with link-time optimizations: > > drivers/scsi/qedf/qedf_main.c:34: error: type of 'qedf_dbg_fops' does not match original declaration [-Werror=lto-type-mismatch] > extern struct file_operations qedf_dbg_fops; > > drivers/scsi/qedf/qedf_debugfs.c:443: note: 'qedf_dbg_fops' was previously declared here > const struct file_operations qedf_dbg_fops[] = { > > drivers/scsi/qedf/qedf_main.c:33: error: type of 'qedf_debugfs_ops' does not match original declaration [-Werror=lto-type-mismatch] > extern struct qedf_debugfs_ops qedf_debugfs_ops; > > drivers/scsi/qedf/qedf_debugfs.c:102: note: 'qedf_debugfs_ops' was previously declared here > struct qedf_debugfs_ops qedf_debugfs_ops[] = { > > This corrects the prototype and moves it into a shared header file where it > belongs. The file operations can also be marked 'const' like the > qedf_debugfs_ops. > > Signed-off-by: Arnd Bergmann > --- > drivers/scsi/qedf/qedf_dbg.h | 17 ++++++++++------- > drivers/scsi/qedf/qedf_debugfs.c | 6 +++--- > drivers/scsi/qedf/qedf_main.c | 8 +++----- > 3 files changed, 16 insertions(+), 15 deletions(-) > Thanks. Acked-by: Chad Dupuis