* [GIT PATCH] driver core fixes for 3.2
@ 2011-11-22 0:58 Greg KH
2011-11-22 1:11 ` [PATCH 1/3] device.h: Fix struct member documentation Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2011-11-22 0:58 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel
Here are some small driver core fixes for your 3.2 tree.
Nothing major here, all is explained below in the shortlog.
Please pull from:
git.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-core.git/ driver-core-linus
All of these patches have been in the linux-next and mm trees for a
while now.
The patches will be sent as a follow-on to this message to lkml for
people to see.
thanks,
greg k-h
------------
Documentation/DocBook/uio-howto.tmpl | 7 ++++++-
drivers/base/node.c | 14 ++++++++------
include/linux/device.h | 2 +-
3 files changed, 15 insertions(+), 8 deletions(-)
---------------
Claudio Scordino (1):
drivers/base/node.c: fix compilation error with older versions of gcc
Geoff Thorpe (1):
uio: documentation fixups
Marcos Paulo de Souza (1):
device.h: Fix struct member documentation
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] device.h: Fix struct member documentation
2011-11-22 0:58 [GIT PATCH] driver core fixes for 3.2 Greg KH
@ 2011-11-22 1:11 ` Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 2/3] uio: documentation fixups Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 3/3] drivers/base/node.c: fix compilation error with older versions of gcc Greg Kroah-Hartman
0 siblings, 2 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2011-11-22 1:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Marcos Paulo de Souza, Greg Kroah-Hartman
From: Marcos Paulo de Souza <marcos.mage@gmail.com>
Fix warning of make xmldocs of documention of the struct member iommu_ops from struct bus_type.
Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
include/linux/device.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/device.h b/include/linux/device.h
index ffbcf95..2b88320 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -69,7 +69,7 @@ extern void bus_remove_file(struct bus_type *, struct bus_attribute *);
* @resume: Called to bring a device on this bus out of sleep mode.
* @pm: Power management operations of this bus, callback the specific
* device driver's pm-ops.
- * @iommu_ops IOMMU specific operations for this bus, used to attach IOMMU
+ * @iommu_ops: IOMMU specific operations for this bus, used to attach IOMMU
* driver implementations to a bus and allow the driver to do
* bus-specific setup
* @p: The private data of the driver core, only the driver core can
--
1.7.7.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] uio: documentation fixups
2011-11-22 1:11 ` [PATCH 1/3] device.h: Fix struct member documentation Greg Kroah-Hartman
@ 2011-11-22 1:11 ` Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 3/3] drivers/base/node.c: fix compilation error with older versions of gcc Greg Kroah-Hartman
1 sibling, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2011-11-22 1:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Geoff Thorpe, Hans J. Koch, Greg Kroah-Hartman
From: Geoff Thorpe <geoff@geoffthorpe.net>
The 'name' attribute of struct uio_mem wasn't documented, and the note
about 'kobj' is stale and needs to be changed to 'map'.
Signed-off-by: Geoff Thorpe <geoff@geoffthorpe.net>
Signed-off-by: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Documentation/DocBook/uio-howto.tmpl | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Documentation/DocBook/uio-howto.tmpl b/Documentation/DocBook/uio-howto.tmpl
index 54883de..ac3d001 100644
--- a/Documentation/DocBook/uio-howto.tmpl
+++ b/Documentation/DocBook/uio-howto.tmpl
@@ -521,6 +521,11 @@ Here's a description of the fields of <varname>struct uio_mem</varname>:
<itemizedlist>
<listitem><para>
+<varname>const char *name</varname>: Optional. Set this to help identify
+the memory region, it will show up in the corresponding sysfs node.
+</para></listitem>
+
+<listitem><para>
<varname>int memtype</varname>: Required if the mapping is used. Set this to
<varname>UIO_MEM_PHYS</varname> if you you have physical memory on your
card to be mapped. Use <varname>UIO_MEM_LOGICAL</varname> for logical
@@ -553,7 +558,7 @@ instead to remember such an address.
</itemizedlist>
<para>
-Please do not touch the <varname>kobj</varname> element of
+Please do not touch the <varname>map</varname> element of
<varname>struct uio_mem</varname>! It is used by the UIO framework
to set up sysfs files for this mapping. Simply leave it alone.
</para>
--
1.7.7.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] drivers/base/node.c: fix compilation error with older versions of gcc
2011-11-22 1:11 ` [PATCH 1/3] device.h: Fix struct member documentation Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 2/3] uio: documentation fixups Greg Kroah-Hartman
@ 2011-11-22 1:11 ` Greg Kroah-Hartman
1 sibling, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2011-11-22 1:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Claudio Scordino, stable, Greg Kroah-Hartman
From: Claudio Scordino <claudio@evidence.eu.com>
Patch to fix the error message "directives may not be used inside a macro
argument" which appears when the kernel is compiled for the cris architecture.
Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/base/node.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/base/node.c b/drivers/base/node.c
index 793f796..5693ece 100644
--- a/drivers/base/node.c
+++ b/drivers/base/node.c
@@ -127,12 +127,13 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
nid, K(node_page_state(nid, NR_WRITEBACK)),
nid, K(node_page_state(nid, NR_FILE_PAGES)),
nid, K(node_page_state(nid, NR_FILE_MAPPED)),
- nid, K(node_page_state(nid, NR_ANON_PAGES)
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+ nid, K(node_page_state(nid, NR_ANON_PAGES)
+ node_page_state(nid, NR_ANON_TRANSPARENT_HUGEPAGES) *
- HPAGE_PMD_NR
+ HPAGE_PMD_NR),
+#else
+ nid, K(node_page_state(nid, NR_ANON_PAGES)),
#endif
- ),
nid, K(node_page_state(nid, NR_SHMEM)),
nid, node_page_state(nid, NR_KERNEL_STACK) *
THREAD_SIZE / 1024,
@@ -143,13 +144,14 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE) +
node_page_state(nid, NR_SLAB_UNRECLAIMABLE)),
nid, K(node_page_state(nid, NR_SLAB_RECLAIMABLE)),
- nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE))
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
+ nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE))
, nid,
K(node_page_state(nid, NR_ANON_TRANSPARENT_HUGEPAGES) *
- HPAGE_PMD_NR)
+ HPAGE_PMD_NR));
+#else
+ nid, K(node_page_state(nid, NR_SLAB_UNRECLAIMABLE)));
#endif
- );
n += hugetlb_report_node_meminfo(nid, buf + n);
return n;
}
--
1.7.7.3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-22 1:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-22 0:58 [GIT PATCH] driver core fixes for 3.2 Greg KH
2011-11-22 1:11 ` [PATCH 1/3] device.h: Fix struct member documentation Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 2/3] uio: documentation fixups Greg Kroah-Hartman
2011-11-22 1:11 ` [PATCH 3/3] drivers/base/node.c: fix compilation error with older versions of gcc Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®