From patchwork Tue Mar 31 15:24:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Chiang X-Patchwork-Id: 15425 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2VFPf7B012361 for ; Tue, 31 Mar 2009 15:25:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762479AbZCaPYQ (ORCPT ); Tue, 31 Mar 2009 11:24:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762478AbZCaPYP (ORCPT ); Tue, 31 Mar 2009 11:24:15 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:11929 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762360AbZCaPYO (ORCPT ); Tue, 31 Mar 2009 11:24:14 -0400 Received: from smtp2.fc.hp.com (smtp2.fc.hp.com [15.11.136.114]) by g4t0017.houston.hp.com (Postfix) with ESMTP id B4A0638130; Tue, 31 Mar 2009 15:24:12 +0000 (UTC) Received: from localhost.localdomain (lart.fc.hp.com [15.11.146.31]) by smtp2.fc.hp.com (Postfix) with ESMTP id 025202BD860; Tue, 31 Mar 2009 15:00:00 +0000 (UTC) Received: from bob.kio (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 7ADE226146; Tue, 31 Mar 2009 09:24:12 -0600 (MDT) Subject: [PATCH 13/15] PCI Hotplug: cpqphp: constify slot_name() To: jbarnes@virtuousgeek.org From: Alex Chiang Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 31 Mar 2009 09:24:12 -0600 Message-ID: <20090331152412.26622.43737.stgit@bob.kio> In-Reply-To: <20090331150158.26622.45423.stgit@bob.kio> References: <20090331150158.26622.45423.stgit@bob.kio> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Eliminate this warning: warning: return discards qualifiers from pointer target type Signed-off-by: Alex Chiang --- drivers/pci/hotplug/cpqphp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h index 1d5561c..5383600 100644 --- a/drivers/pci/hotplug/cpqphp.h +++ b/drivers/pci/hotplug/cpqphp.h @@ -464,7 +464,7 @@ extern u8 cpqhp_disk_irq; /* inline functions */ -static inline char *slot_name(struct slot *slot) +static inline const char *slot_name(struct slot *slot) { return hotplug_slot_name(slot->hotplug_slot); }