From patchwork Sun Apr 12 11:42:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhenwen Xu X-Patchwork-Id: 17821 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 n3CBiKb4008235 for ; Sun, 12 Apr 2009 11:44:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758629AbZDLLoU (ORCPT ); Sun, 12 Apr 2009 07:44:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759924AbZDLLoU (ORCPT ); Sun, 12 Apr 2009 07:44:20 -0400 Received: from ti-out-0910.google.com ([209.85.142.191]:18933 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758629AbZDLLoT (ORCPT ); Sun, 12 Apr 2009 07:44:19 -0400 Received: by ti-out-0910.google.com with SMTP id i7so1377985tid.23 for ; Sun, 12 Apr 2009 04:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mime-version:content-type:content-disposition :content-transfer-encoding:user-agent; bh=MJpkFQvJ2d8aLKhhoyDyxtIK+1xJECZRg1TCFyGj1F4=; b=d9QX12+0QkHumTlU+X5JNlubp2sbEG9n/SsqvnL8HT7mGIdV57kn4y48Lk9HcWn5U8 mtqGMqaoC+pJg7SDcN7xlQ33VuAFPPpJx5sCj9ELHHhHnhYflTuoRHu/nLZvXwutnTnW RscggdeIlyheG4a50403QZ8knfLA92DFMKxvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; b=g6lCu84n4BCPq3fNS6Pna/qA7V1XRrnkMIRAFeUFx4VvuIW/DrBzZIlSUCsNMGHqaU pb0D9C/VEqqomgXADKRQdFTUQUPlFqCMmf1g97QId8UlF1IOL+Gm6Q3Z0ypqTO6qRrNU 4yFtiJXpgypsKG/teLj/9GTRULw7pxnH5BzYg= Received: by 10.110.103.16 with SMTP id a16mr7483952tic.7.1239536657402; Sun, 12 Apr 2009 04:44:17 -0700 (PDT) Received: from localhost ([221.11.22.40]) by mx.google.com with ESMTPS id y3sm8804495tia.3.2009.04.12.04.44.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Apr 2009 04:44:16 -0700 (PDT) Date: Sun, 12 Apr 2009 19:42:51 +0800 From: Zhenwen Xu To: linux-pci@vger.kernel.org Subject: [PATCH] fix a warning on drivers/pci/hotplug/cpqphp.h Message-ID: <20090412114250.GA4024@helight> Reply-To: Zhenwen Xu MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org fix this warning: In file included from drivers/pci/hotplug/cpqphp_core.c:46: drivers/pci/hotplug/cpqphp.h: In function ‘slot_name’: drivers/pci/hotplug/cpqphp.h:454: warning: return discards qualifiers from pointer target type In file included from drivers/pci/hotplug/cpqphp_ctrl.c:41: drivers/pci/hotplug/cpqphp.h: In function ‘slot_name’: drivers/pci/hotplug/cpqphp.h:454: warning: return discards qualifiers from pointer target type In file included from drivers/pci/hotplug/cpqphp_sysfs.c:37: drivers/pci/hotplug/cpqphp.h: In function ‘slot_name’: drivers/pci/hotplug/cpqphp.h:454: warning: return discards qualifiers from pointer target type In file included from drivers/pci/hotplug/cpqphp_pci.c:38: drivers/pci/hotplug/cpqphp.h: In function ‘slot_name’: drivers/pci/hotplug/cpqphp.h:454: warning: return discards qualifiers from pointer target type the return value of "*slot_name(struct slot *slot)" should be "static inline const char" From da974a1c4dfe9311b4a882b5f7e09c1e3e322c91 Mon Sep 17 00:00:00 2001 From: Zhenwen Xu Date: Sun, 12 Apr 2009 19:35:49 +0800 Subject: [PATCH] fix a warning on drivers/pci/hotplug/cpqphp.h Signed-off-by: Zhenwen Xu --- drivers/pci/hotplug/cpqphp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h index afaf8f6..390a9ba 100644 --- a/drivers/pci/hotplug/cpqphp.h +++ b/drivers/pci/hotplug/cpqphp.h @@ -449,7 +449,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); }