]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[SPARC64]: NUMA device infrastructure.
David S. Miller [Wed, 19 Mar 2008 11:52:48 +0000 (04:52 -0700)]
[SPARC64]: NUMA device infrastructure.

Record and propagate NUMA information for devices.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Kill pci_iommu_table_init() declaration.
David S. Miller [Thu, 14 Feb 2008 06:15:46 +0000 (22:15 -0800)]
[SPARC64]: Kill pci_iommu_table_init() declaration.

No longer exists.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Once we have the boot cmdline, call parse_early_param()
David S. Miller [Wed, 19 Mar 2008 10:54:09 +0000 (03:54 -0700)]
[SPARC64]: Once we have the boot cmdline, call parse_early_param()

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Remove unused asm-sparc64/numnodes.h
David S. Miller [Thu, 14 Feb 2008 06:07:34 +0000 (22:07 -0800)]
[SPARC64]: Remove unused asm-sparc64/numnodes.h

This is handled with config options now.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Decrease SECTION_SIZE_BITS to 30.
David S. Miller [Thu, 14 Feb 2008 06:01:57 +0000 (22:01 -0800)]
[SPARC64]: Decrease SECTION_SIZE_BITS to 30.

We'll need this to handle NUMA properly on some systems.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Initialize MDESC earlier and use lmb_alloc()
David S. Miller [Thu, 14 Feb 2008 03:22:23 +0000 (19:22 -0800)]
[SPARC64]: Initialize MDESC earlier and use lmb_alloc()

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Use lmb_alloc() for PROM device tree.
David S. Miller [Thu, 14 Feb 2008 03:21:51 +0000 (19:21 -0800)]
[SPARC64]: Use lmb_alloc() for PROM device tree.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Call real_setup_per_cpu_areas() earlier and use lmb_alloc().
David S. Miller [Thu, 14 Feb 2008 03:20:45 +0000 (19:20 -0800)]
[SPARC64]: Call real_setup_per_cpu_areas() earlier and use lmb_alloc().

We have to do it like this before we can move the PROM and MDESC device
tree code over to using lmb_alloc().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Fully use LMB information in bootmem_init().
David S. Miller [Thu, 14 Feb 2008 02:31:41 +0000 (18:31 -0800)]
[SPARC64]: Fully use LMB information in bootmem_init().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Start using LMB information in bootmem_init().
David S. Miller [Thu, 14 Feb 2008 02:20:14 +0000 (18:20 -0800)]
[SPARC64]: Start using LMB information in bootmem_init().

This allows us to kill the incredibly complicated and stupid function
trim_pavail().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Initialize LMB tables.
David S. Miller [Thu, 14 Feb 2008 02:13:20 +0000 (18:13 -0800)]
[SPARC64]: Initialize LMB tables.

Call lmb_add() on available regions, and call lmb_reserve()
on the main kernel image and the ramdisk (if any).

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[SPARC64]: Move ramdisk discovery code out to seperate function.
David S. Miller [Thu, 14 Feb 2008 02:00:03 +0000 (18:00 -0800)]
[SPARC64]: Move ramdisk discovery code out to seperate function.

And add some comments explaining all of the quirks involved in
the way the bootloader provides this information.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[LMB]: Fix lmb allocation regression.
David S. Miller [Thu, 24 Apr 2008 06:30:59 +0000 (23:30 -0700)]
[LMB]: Fix lmb allocation regression.

Changeset d9024df02ffe74d723d97d552f86de3b34beb8cc ("[LMB] Restructure
allocation loops to avoid unsigned underflow") removed the alignment
of the 'size' argument to call lmb_add_region() done by __lmb_alloc_base().

In doing so it reintroduced the bug fixed by changeset
eea89e13a9c61d3928223d2f9bf2295e22e0efb6 ("[LMB]: Fix bug in
__lmb_alloc_base().").

This puts it back.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[RTNETLINK]: Fix bogus ASSERT_RTNL warning
Patrick McHardy [Thu, 24 Apr 2008 05:10:48 +0000 (22:10 -0700)]
[RTNETLINK]: Fix bogus ASSERT_RTNL warning

ASSERT_RTNL uses mutex_trylock to test whether the rtnl_mutex is
held. This bogus warnings when running in atomic context, which
f.e. happens when adding secondary unicast addresses through
macvlan or vlan or when synchronizing multicast addresses from
wireless devices.

Mid-term we might want to consider moving all address updates
to process context since the locking seems overly complicated,
for now just fix the bogus warning by changing ASSERT_RTNL to
use mutex_is_locked().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoRevert "[POWERPC] Add compat handler for PTRACE_GETSIGINFO"
Paul Mackerras [Thu, 24 Apr 2008 04:05:15 +0000 (14:05 +1000)]
Revert "[POWERPC] Add compat handler for PTRACE_GETSIGINFO"

This reverts commit e4cc58944c1e2ce41e3079d4eb60c95e7ce04b2b, as
requested by Roland McGrath, because compat_ptrace_request (added in
commit e16b27816462de700f9508d86954410c41105dc2, "ptrace:
compat_ptrace_request siginfo") now handles this case.

Signed-off-by: Paul Mackerras <paulus@samba.org>
17 years agoACPICA: update Intel copyright
Len Brown [Thu, 24 Apr 2008 03:00:13 +0000 (23:00 -0400)]
ACPICA: update Intel copyright

Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoMerge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireles...
David S. Miller [Thu, 24 Apr 2008 02:44:58 +0000 (19:44 -0700)]
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6

17 years agoiwlwifi: Fix built-in compilation of iwlcore (part 2)
Zhu Yi [Thu, 24 Apr 2008 02:44:13 +0000 (19:44 -0700)]
iwlwifi: Fix built-in compilation of iwlcore (part 2)

On Wed, 2008-04-23 at 13:38 +0300, Tomas Winkler wrote:
> This patch fixes problem in Makefile that prevented
> built-in compilation of iwlcore

Here is the second part. Without this,
drivers/net/wireless/iwlwifi/build-in.o will not be linked into vmlinux.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agotun: Fix minor race in TUNSETLINK ioctl handling.
David S. Miller [Thu, 24 Apr 2008 02:37:58 +0000 (19:37 -0700)]
tun: Fix minor race in TUNSETLINK ioctl handling.

Noticed by Alan Cox.

The IFF_UP test is a bit racey, because other entities
outside of this driver's ioctl handler can modify that
state, even though this ioctl handler runs under
lock_kernel().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoppp_generic: use stats from net_device structure
Paulius Zaleckas [Thu, 24 Apr 2008 01:54:01 +0000 (18:54 -0700)]
ppp_generic: use stats from net_device structure

Use stats which now is in the net_device instead of one declared in
ppp structure.
Kill ppp_net_stats function, because by default it is used identical
internal_stats function from net/core/dev.c

Signed-of-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoPCI: Add Intel SCH PCI IDs
Alek Du [Thu, 24 Apr 2008 01:19:44 +0000 (09:19 +0800)]
PCI: Add Intel SCH PCI IDs

This patch adds Intel SCH chipsets (US15W, US15L, UL11L) PCI IDs, these
IDs will be used by following SCH driver patches.

Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
17 years agoiwlwifi: Don't unlock priv->mutex if it isn't locked
Roland Dreier [Wed, 23 Apr 2008 23:22:13 +0000 (16:22 -0700)]
iwlwifi: Don't unlock priv->mutex if it isn't locked

Commit b716bb91 ("iwlwifi: Cancel scanning upon association") moved the
test of priv->vif in iwl{3945,4964}_mac_config_interface() outside of
where priv->mutex is held, but still tries to do mutex_unlock() on
return.  This is clearly wrong and triggers a nasty lockdep warning when
this codepath is triggered.  Fix this by removing the mutex_unlock().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agowireless: rndis_wlan: modparam_workaround_interval is never below 0.
Roel Kluin [Wed, 23 Apr 2008 20:10:29 +0000 (22:10 +0200)]
wireless: rndis_wlan: modparam_workaround_interval is never below 0.

priv->param_workaround_interval is unsigned, modparam_workaround_interval not.
the former is never < 0.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agoprism54: prism54_get_encode() test below 0 on unsigned index
Roel Kluin [Wed, 23 Apr 2008 19:56:49 +0000 (21:56 +0200)]
prism54: prism54_get_encode() test below 0 on unsigned index

previously in this function:

u32 index = (dwrq->flags & IW_ENCODE_INDEX) - 1;

index is unsigned, so if -1, the original test (below) didn't work.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agomac80211: update mesh EID values
Luis Carlos Cobo [Wed, 23 Apr 2008 19:34:59 +0000 (12:34 -0700)]
mac80211: update mesh EID values

This patch updates mesh EID values, some of which where conflicting with
already-approved 11h EIDs (pointed out by Tomas Winkler). I wanted to use the
values suggested in the last available 802.11 draft (2.0) but it assigns 50 to
MESH_CONFIG, the same value than EXT_SUPP_RATES. Using the values proposed in
the draft incremented by one.

Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agob43: Workaround DMA quirks
Michael Buesch [Wed, 23 Apr 2008 17:13:01 +0000 (19:13 +0200)]
b43: Workaround DMA quirks

Some mainboards/CPUs don't allow DMA masks bigger than a certain limit.
Some VIA crap^h^h^h^hdevices have an upper limit of 0xFFFFFFFF. So in this
case a 64-bit b43 device would always fail to acquire the mask.
Implement a workaround to fallback to lower DMA mask, as we can always
also support a lower mask.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agomac80211: fix use before check of Qdisc length
Ron Rindjunsky [Wed, 23 Apr 2008 10:45:12 +0000 (13:45 +0300)]
mac80211: fix use before check of Qdisc length

This patch fixes use of Qdisc length in requeue function, before we checked
the reference is valid. (Adrian Bunk's catch)

Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agonet/mac80211/rx.c: fix off-by-one
Adrian Bunk [Wed, 23 Apr 2008 09:51:28 +0000 (12:51 +0300)]
net/mac80211/rx.c: fix off-by-one

This patch fixes an off-by-one in net/mac80211/rx.c introduced by
commit 8318d78a44d49ac1edf2bdec7299de3617c4232e
(cfg80211 API for channels/bitrates, mac80211 and driver conversion)
and spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agomac80211: Fix race between ieee80211_rx_bss_put and lookup routines.
Pavel Emelyanov [Wed, 23 Apr 2008 07:47:15 +0000 (11:47 +0400)]
mac80211: Fix race between ieee80211_rx_bss_put and lookup routines.

The put routine first decrements the users counter and then
(if it is zero) locks the sta_bss_lock and removes one from
the list and the hash.

Thus, any of ieee80211_sta_config_auth, ieee80211_rx_bss_get
or ieee80211_rx_mesh_bss_get can race with it by finding a
bss that is about to get kfree-ed.

Using atomic_dec_and_lock in ieee80211_rx_bss_put takes care
of this race.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agoath5k: Fix radio identification on AR5424/2424
Nick Kossifidis [Mon, 21 Apr 2008 18:28:24 +0000 (21:28 +0300)]
ath5k: Fix radio identification on AR5424/2424

 *Fix radio chip identification on AR5424/2424 during ath5k_hw_attach
 *Try to assign an RF2413 radio on AR2424 for testing

 Changes-licensed-under: ISC

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agossb: Fix all-ones boardflags
Larry Finger [Sat, 19 Apr 2008 15:52:12 +0000 (17:52 +0200)]
ssb: Fix all-ones boardflags

In the SSB SPROM a field set to all ones means the value
is not defined in the SPROM.
In case of the boardflags, we need to set them to zero
to avoid confusing drivers. Drivers will only check the
flags by ANDing.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Gabor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agob43: Add more btcoexist workarounds
Michael Buesch [Sat, 19 Apr 2008 14:53:00 +0000 (16:53 +0200)]
b43: Add more btcoexist workarounds

This adds more workarounds for devices with broken BT bits.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agob43: Fix HostFlags data types
Michael Buesch [Fri, 18 Apr 2008 19:06:37 +0000 (21:06 +0200)]
b43: Fix HostFlags data types

The HostFlags are a bitmask of 48bit. So we must use an u64 datatype
to hold all bits.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agob43: Workaround invalid bluetooth settings
Michael Buesch [Fri, 18 Apr 2008 18:51:41 +0000 (20:51 +0200)]
b43: Workaround invalid bluetooth settings

This adds a workaround for invalid bluetooth SPROM settings
on ASUS PCI cards.
This will stop the microcode from poking with the BT GPIO line.
This fixes data transmission on this device, as the BT GPIO line
is used for something TX related on this device
(probably the power amplifier or the radio).
This also adds a modparam knob to help debugging this in the future,
as more devices with this bug may show up.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agomac80211: MAINTAINERS update
Johannes Berg [Thu, 17 Apr 2008 17:36:28 +0000 (19:36 +0200)]
mac80211: MAINTAINERS update

This updates the mac80211 maintainers entry to
 1) remove Jiri
 2) put me first

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Michael Wu <flamingice@sourmilk.net>
Cc: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agomac80211: Fix n-band association problem
Abhijeet Kolekar [Wed, 16 Apr 2008 21:02:04 +0000 (14:02 -0700)]
mac80211: Fix n-band association problem

There are two structures named wmm_info and wmm_param, they are used while
parsing the beacon frame. (Check the function ieee802_11_parse_elems).
Certain APs like D-link does not set the fifth bit in WMM IE.
While sending the association request to n-only ap it checks for wmm_ie.
If it is set then only ieee80211_ht_cap is sent during association request.
So n-only association fails.
And this patch fixes this problem by copying the wmm_info to wmm_ie,
which enables the "wmm" flag in iee80211_send_assoc.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Acked-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
17 years agoARM: OMAP: omap3beagle: register SD interface
Koen Kooi [Wed, 23 Apr 2008 07:40:55 +0000 (09:40 +0200)]
ARM: OMAP: omap3beagle: register SD interface

 From dac3cdc5952ab39fa7ae0545d43e2daa95329b07 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@openembedded.org>
Date: Wed, 23 Apr 2008 09:38:31 +0200
Subject: [PATCH] omap3beagle: register SD interface

Signed-off-by: Koen Kooi <koen@openembedded.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoclockdomains: integrate OMAP3 clocks with clockdomain code
Paul Walmsley [Sat, 19 Apr 2008 01:43:59 +0000 (19:43 -0600)]
clockdomains: integrate OMAP3 clocks with clockdomain code

This patch integrates the OMAP3 clock tree with the clockdomain code.
This patch:

- marks OMAP34xx clocks with their corresponding clockdomain.

- adds code to convert the clockdomain name to a clockdomain pointer in the
  struct clk during clk_register().

- modifies OMAP2 clock usecounting to call into the clockdomain code
  when clocks are enabled or disabled.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoclockdomains: encode OMAP2/3 clockdomains
Paul Walmsley [Sat, 19 Apr 2008 01:43:35 +0000 (19:43 -0600)]
clockdomains: encode OMAP2/3 clockdomains

Add clockdomain definitions for OMAP24xx and OMAP34xx chips.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoclockdomains: connect clockdomain code to powerdomain code
Paul Walmsley [Sat, 19 Apr 2008 01:43:28 +0000 (19:43 -0600)]
clockdomains: connect clockdomain code to powerdomain code

Thie patch adds code to the powerdomain layer to track the
clockdomains associated with each powerdomain.

It also modifies the clockdomain code to register clockdomains
with their corresponding powerdomain when the clockdomain is registered.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoclockdomains: add base OMAP2/3 clockdomain code
Paul Walmsley [Sat, 19 Apr 2008 01:43:18 +0000 (19:43 -0600)]
clockdomains: add base OMAP2/3 clockdomain code

This patch creates an interface to the clockdomain registers in the
PRM/CM modules on OMAP2/3.  This interface is intended to be used by
PM code, e.g., pm.c; not by device drivers directly.

The patch also adds clockdomain usecount tracking.  This is intended
to be called whenever the first clock in a clockdomain is enabled, or
when the last enabled clock in a clockdomain is disabled.  If the
clockdomain is in software-supervised mode, the code will force-wakeup
or force-sleep the clockdomain.  If the clockdomain is in
hardware-supervised mode, the first clock enable will add sleep and
wakeup dependencies on a user-selectable set of parent domains (usually
MPU & IVA2), and the disable will remove them.

Each clockdomain will be defined in later patches as static
structures.  The clockdomain structures are linked into a list at boot
by clkdm_register(), similar to the OMAP clock code.

The patch adds a Kconfig option, CONFIG_OMAP_DEBUG_CLOCKDOMAIN, which
when enabled will emit verbose debug messages via pr_debug().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoadd OMAP3 powerdomains
Paul Walmsley [Sat, 19 Apr 2008 01:27:11 +0000 (19:27 -0600)]
add OMAP3 powerdomains

Add OMAP3-specific powerdomains.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoadd OMAP2 powerdomains
Paul Walmsley [Sat, 19 Apr 2008 01:26:58 +0000 (19:26 -0600)]
add OMAP2 powerdomains

Add OMAP2-specific powerdomains.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoadd OMAP2/3 common powerdomains
Paul Walmsley [Sat, 19 Apr 2008 01:26:48 +0000 (19:26 -0600)]
add OMAP2/3 common powerdomains

Add powerdomains common to both OMAP2 and OMAP3 (WKUP and GFX/SGX).
Modify mach-omap2/io.c to initialize the powerdomain code on boot.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoadd base OMAP2/3 powerdomain code
Paul Walmsley [Sat, 19 Apr 2008 01:26:29 +0000 (19:26 -0600)]
add base OMAP2/3 powerdomain code

This patch creates an interface to the powerdomain registers in the
PRM/CM modules on OMAP2/3.  This interface is intended to be used by
PM code, e.g., pm.c; not by device drivers directly.

Each powerdomain will be defined in later patches as static
structures.  Also defined are dependencies between powerdomains,
used for adding and removing PM_WKDEP and CM_SLEEPDEP bits.  The
powerdomain structures are linked into a list at boot by
pwrdm_register(), similar to the OMAP clock code.

The patch adds a Kconfig option, CONFIG_OMAP_DEBUG_POWERDOMAIN, which
when enabled will emit verbose debug messages via pr_debug().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoadd OMAP chip type structure; clean up mach-omap2/id.c
Paul Walmsley [Sat, 19 Apr 2008 01:26:01 +0000 (19:26 -0600)]
add OMAP chip type structure; clean up mach-omap2/id.c

Add a new OMAP chip identification interface, omap_chip_id.
omap_chip_id is a structure which contains one bit for each OMAP2/3
CPU type, and on 3430, ES level.  For example, the CHIP_IS_OMAP2420
bit is set in omap_chip at boot on an OMAP2420.  On OMAP3430ES2, both
CHIP_IS_OMAP3430 and CHIP_IS_OMAP3430ES2 bits are set.

omap_chip is set in mach-omap2/id.c by _set_omap_chip(). Other
code should use the omap_chip_is() function to test against omap_chip.

Also, clean up id.c by splitting some code out of
omap_check_revision() into its own function, _set_system_rev(); and
converting some debug printk()s into pr_debug().

Second revision.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa.c
Eduardo Valentin [Fri, 18 Apr 2008 08:01:06 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2102.h
Eduardo Valentin [Fri, 18 Apr 2008 08:01:05 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2102.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2102.c
Eduardo Valentin [Fri, 18 Apr 2008 08:01:04 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2102.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2102-mixer.c
Eduardo Valentin [Fri, 18 Apr 2008 08:01:03 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2102-mixer.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2101.h
Eduardo Valentin [Fri, 18 Apr 2008 08:01:02 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2101.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2101.c
Eduardo Valentin [Fri, 18 Apr 2008 08:01:01 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2101.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2101-mixer.h
Eduardo Valentin [Fri, 18 Apr 2008 08:01:00 +0000 (04:01 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2101-mixer.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-tsc2101-mixer.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:59 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-tsc2101-mixer.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-sx1.h
Eduardo Valentin [Fri, 18 Apr 2008 08:00:58 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-sx1.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-sx1.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:57 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-sx1.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-sx1-mixer.h
Eduardo Valentin [Fri, 18 Apr 2008 08:00:56 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-sx1-mixer.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-sx1-mixer.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:55 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-sx1-mixer.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-dma.h
Eduardo Valentin [Fri, 18 Apr 2008 08:00:54 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-dma.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-dma.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:53 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-dma.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-aic23-mixer.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:52 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-aic23-mixer.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-aic23.h
Eduardo Valentin [Fri, 18 Apr 2008 08:00:51 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-aic23.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for sound/arm/omap/omap-alsa-aic23.c
Eduardo Valentin [Fri, 18 Apr 2008 08:00:50 +0000 (04:00 -0400)]
Code clean-up for sound/arm/omap/omap-alsa-aic23.c

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoCode clean-up for include/asm-arm/arch-omap/omap-alsa.h
Eduardo Valentin [Fri, 18 Apr 2008 08:00:49 +0000 (04:00 -0400)]
Code clean-up for include/asm-arm/arch-omap/omap-alsa.h

Removed lots of whitespaces and a few errors and
warnings reported by checkpatch.pl.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoUpdate audio driver for H2 board
Eduardo Valentin [Fri, 18 Apr 2008 08:00:48 +0000 (04:00 -0400)]
Update audio driver for H2 board

This patch updates the audio driver based on tsc2101 chip
for H2 board. tsc2101 driver was updated against new spi
framework, but its audio driver for H2 wasn't.

Signed-off-by: Eduardo Valentin <eduardo.valentin@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoASoC: Add drivers for the Texas Instruments OMAP processors
Jarkko Nikula [Fri, 4 Apr 2008 09:22:28 +0000 (12:22 +0300)]
ASoC: Add drivers for the Texas Instruments OMAP processors

Add common OMAP ASoC drivers and machine driver for Nokia N810. Currently
supported features are:

- Covers OMAPs from 1510 to 2420
- Common DMA driver
- DAI link driver using McBSP port in I2S mode
- Basic machine driver for Nokia N810

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
17 years agoARM: OMAP1: Fix compile for voiceblue
Tony Lindgren [Wed, 23 Apr 2008 23:34:49 +0000 (16:34 -0700)]
ARM: OMAP1: Fix compile for voiceblue

Fix compile for voiceblue

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Clean up interrupt lines to fix warning for multi-omap
Tony Lindgren [Wed, 23 Apr 2008 23:26:15 +0000 (16:26 -0700)]
ARM: OMAP: Clean up interrupt lines to fix warning for multi-omap

If boards with different NR_IRQS are compiled together, tons of
compiler warnings are emitted about redefining NR_IRQS.

This patch fixes the problem by adding up NR_IRQS in a common place.

Patch also removes quite a bit of now unnecessary code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoMerge current mainline tree into linux-omap tree
Tony Lindgren [Wed, 23 Apr 2008 23:26:05 +0000 (16:26 -0700)]
Merge current mainline tree into linux-omap tree

Merge branches 'master' and 'linus'

Conflicts:

drivers/i2c/chips/isp1301_omap.c

17 years agoPCI Express ASPM support should default to 'No'
Jesper Juhl [Tue, 22 Apr 2008 22:28:47 +0000 (00:28 +0200)]
PCI Express ASPM support should default to 'No'

Running 'make oldconfig' I just noticed that PCIEASPM defaults to
'y' in Kconfig even though the feature is both experimental and the
help text recommends that if you are unsure you say 'n'.
It seems to me that this really should default to 'n', not 'y' at the
moment.
The following patch makes that change. Please consider applying.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
17 years ago[MTD] [NAND] Hardware ECC controller on at91sam9263 / at91sam9260
Richard Genoud [Wed, 23 Apr 2008 17:51:14 +0000 (19:51 +0200)]
[MTD] [NAND] Hardware ECC controller on at91sam9263 / at91sam9260

This is a patch to use the hardware ECC controller of
the AT91SAM9260 and AT91SAM9263 for the AT91 nand.
On AT91 NAND, there's now a choice between ECC soft,
ECC hard or no ECC (for debug).

It has been tested on AT91SAM9263 with 8 bits large
and small page NAND.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoknfsd: clear both setuid and setgid whenever a chown is done
Jeff Layton [Wed, 16 Apr 2008 20:28:47 +0000 (16:28 -0400)]
knfsd: clear both setuid and setgid whenever a chown is done

Currently, knfsd only clears the setuid bit if the owner of a file is
changed on a SETATTR call, and only clears the setgid bit if the group
is changed. POSIX says this in the spec for chown():

    "If the specified file is a regular file, one or more of the
     S_IXUSR, S_IXGRP, or S_IXOTH bits of the file mode are set, and the
     process does not have appropriate privileges, the set-user-ID
     (S_ISUID) and set-group-ID (S_ISGID) bits of the file mode shall
     be cleared upon successful return from chown()."

If I'm reading this correctly, then knfsd is doing this wrong. It should
be clearing both the setuid and setgid bit on any SETATTR that changes
the uid or gid. This wasn't really as noticable before, but now that the
ATTR_KILL_S*ID bits are a no-op for the NFS client, it's more evident.

This patch corrects the nfsd_setattr logic so that this occurs. It also
does a bit of cleanup to the function.

There is also one small behavioral change. If a SETATTR call comes in
that changes the uid/gid and the mode, then we now only clear the setgid
bit if the group execute bit isn't set. The setgid bit without a group
execute bit signifies mandatory locking and we likely don't want to
clear the bit in that case. Since there is no call in POSIX that should
generate a SETATTR call like this, then this should rarely happen, but
it's worth noting.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoknfsd: get rid of imode variable in nfsd_setattr
Jeff Layton [Wed, 16 Apr 2008 20:28:46 +0000 (16:28 -0400)]
knfsd: get rid of imode variable in nfsd_setattr

...it's not really needed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: Use unsigned loop and array index in svc_init_buffer()
Chuck Lever [Mon, 14 Apr 2008 16:27:52 +0000 (12:27 -0400)]
SUNRPC: Use unsigned loop and array index in svc_init_buffer()

Clean up: Suppress a harmless compiler warning.

Index rq_pages[] with an unsigned type.  Make "pages" unsigned as well,
as it never represents a value less than zero.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: Use unsigned index when looping over arrays
Chuck Lever [Mon, 14 Apr 2008 16:27:45 +0000 (12:27 -0400)]
SUNRPC: Use unsigned index when looping over arrays

Clean up: Suppress a harmless compiler warning in the RPC server related
to array indices.

ARRAY_SIZE() returns a size_t, so use unsigned type for a loop index when
looping over arrays.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: Update RPC server's TCP record marker decoder
Chuck Lever [Mon, 14 Apr 2008 16:27:30 +0000 (12:27 -0400)]
SUNRPC: Update RPC server's TCP record marker decoder

Clean up: Update the RPC server's TCP record marker decoder to match the
constructs used by the RPC client's TCP socket transport.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: RPC server still uses 2.4 method for disabling TCP Nagle
Chuck Lever [Mon, 14 Apr 2008 16:27:01 +0000 (12:27 -0400)]
SUNRPC: RPC server still uses 2.4 method for disabling TCP Nagle

Use the 2.6 method for disabling TCP Nagle in the kernel's RPC server.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNLM: don't let lockd exit on unexpected svc_recv errors (try #2)
Jeff Layton [Tue, 8 Apr 2008 19:40:08 +0000 (15:40 -0400)]
NLM: don't let lockd exit on unexpected svc_recv errors (try #2)

When svc_recv returns an unexpected error, lockd will print a warning
and exit. This problematic for several reasons. In particular, it will
cause the reference counts for the thread to be wrong, and can lead to a
potential BUG() call.

Rather than exiting on error from svc_recv, have the thread do a 1s
sleep and then retry the loop. This is unlikely to cause any harm, and
if the error turns out to be something temporary then it may be able to
recover.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNFS: don't let nfs_callback_svc exit on unexpected svc_recv errors (try #2)
Jeff Layton [Tue, 8 Apr 2008 19:40:07 +0000 (15:40 -0400)]
NFS: don't let nfs_callback_svc exit on unexpected svc_recv errors (try #2)

When svc_recv returns an unexpected error, nfs_callback_svc will print a
warning and exit. This problematic for several reasons. In particular,
it will cause the reference counts for the thread to be wrong, and no
new thread will be started until all nfs4 mounts are unmounted.

Rather than exiting on error from svc_recv, have the thread do a 1s
sleep and then retry the loop. This is unlikely to cause any harm, and
if the error turns out to be something temporary then it may be able to
recover.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoUse a zero sized array for raw field in struct fid
Steven Whitehouse [Tue, 8 Apr 2008 12:12:52 +0000 (13:12 +0100)]
Use a zero sized array for raw field in struct fid

The raw field's size can vary so we use a zero sized array since
gcc will not allow a variable sized array inside a union. This
has been tested with ext3 and gfs2 and relates to the bug
report: http://lkml.org/lkml/2007/10/24/374 and discussion
thread: http://lkml.org/lkml/2008/4/7/65

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: use static memory for callback program and stats
Olga Kornievskaia [Fri, 28 Mar 2008 20:04:56 +0000 (16:04 -0400)]
nfsd: use static memory for callback program and stats

There's no need to dynamically allocate this memory, and doing so may
create the possibility of races on shutdown of the rpc client.  (We've
witnessed it only after adding rpcsec_gss support to the server, after
which the rpc code can send destroys calls that expect to still be able
to access the rpc_stats structure after it has been destroyed.)

Such races are in theory possible if the module containing this "static"
memory is removed very quickly after an rpc client is destroyed, but
we haven't seen that happen.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: remove svc_create_thread()
Jeff Layton [Mon, 7 Apr 2008 20:45:37 +0000 (16:45 -0400)]
SUNRPC: remove svc_create_thread()

Now that the nfs4 callback thread uses the kthread API, there are no
more users of svc_create_thread(). Remove it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: fix comment
J. Bruce Fields [Mon, 7 Apr 2008 17:09:47 +0000 (13:09 -0400)]
nfsd: fix comment

Obvious comment nit.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agolockd: Fix stale nlmsvc_unlink_block comment
J. Bruce Fields [Mon, 7 Apr 2008 17:05:27 +0000 (13:05 -0400)]
lockd: Fix stale nlmsvc_unlink_block comment

As of 5996a298da43a03081e9ba2116983d173001c862 ("NLM: don't unlock on
cancel requests") we no longer unlock in this case, so the comment is no
longer accurate.

Thanks to Stuart Friedberg for pointing out the inconsistency.

Cc: Stuart Friedberg <sfriedberg@hp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNFSD: Strip __KERNEL__ testing from unexported header files.
Robert P. J. Day [Wed, 2 Apr 2008 01:48:37 +0000 (21:48 -0400)]
NFSD: Strip __KERNEL__ testing from unexported header files.

Also, sort the Kbuild file.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agosunrpc: make token header values less confusing
Kevin Coffman [Mon, 31 Mar 2008 14:31:44 +0000 (10:31 -0400)]
sunrpc: make token header values less confusing

g_make_token_header() and g_token_size() add two too many, and
therefore their callers pass in "(logical_value - 2)" rather
than "logical_value" as hard-coded values which causes confusion.

This dates back to the original g_make_token_header which took an
optional token type (token_id) value and added it to the token.
This was removed, but the routine always adds room for the token_id
rather than not.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agogss_krb5: consistently use unsigned for seqnum
Kevin Coffman [Mon, 31 Mar 2008 14:31:33 +0000 (10:31 -0400)]
gss_krb5: consistently use unsigned for seqnum

Consistently use unsigned (u32 vs. s32) for seqnum.

In get_mic function, send the local copy of seq_send,
rather than the context version.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNFSD: Remove NFSv4 dependency on NFSv3
Chuck Lever [Thu, 27 Mar 2008 20:34:54 +0000 (16:34 -0400)]
NFSD: Remove NFSv4 dependency on NFSv3

Clean up: Because NFSD_V4 "depends on" NFSD_V3, it appears as a child of
the NFSD_V3 menu entry, and is not visible if NFSD_V3 is unselected.

Replace the dependency on NFSD_V3 with a "select NFSD_V3".  This makes
NFSD_V4 look and work just like NFS_V3, while ensuring that NFSD_V3 is
enabled if NFSD_V4 is.

Sam Ravnborg adds:

"This use of select is questionable. In general it is bad to select
a symbol with dependencies.

In this case the dependencies of NFSD_V3 are duplicated for NFSD_V4
so we will not se erratic configurations but do you remember to
update NFSD_V4 when you add a depends on NFSD_V3?

But I see no other clean way to do it right now."

Later he said:

"My comment was more to say we have things to address in kconfig.
This is abuse in the acceptable range."

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSUNRPC: Remove PROC_FS dependency
Chuck Lever [Thu, 27 Mar 2008 20:34:47 +0000 (16:34 -0400)]
SUNRPC: Remove PROC_FS dependency

Recently, commit 440bcc59 added a reverse dependency to fs/Kconfig to
ensure that PROC_FS was enabled if SUNRPC_GSS was enabled.

Apparently this isn't necessary because the auth_gss components under
net/sunrpc will build correctly even if PROC_FS is disabled, though
RPCSEC_GSS will not work without /proc.

It also violates the guideline in Documentation/kbuild/kconfig-language.txt
that states "In general use select only for non-visible symbols (no prompts
anywhere) and for symbols with no dependencies."

To address these issues, remove the dependency.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNFSD: Use "depends on" for PROC_FS dependency
Chuck Lever [Thu, 27 Mar 2008 20:34:40 +0000 (16:34 -0400)]
NFSD: Use "depends on" for PROC_FS dependency

Recently, commit 440bcc59 added a reverse dependency to fs/Kconfig to
ensure that PROC_FS was enabled if NFSD_V4 was enabled.

There is a guideline in Documentation/kbuild/kconfig-language.txt that
states "In general use select only for non-visible symbols (no prompts
anywhere) and for symbols with no dependencies."

A quick grep around other Kconfig files reveals that no entry currently
uses "select PROC_FS" -- every one uses "depends on".  Thus CONFIG_NFSD_V4
should use "depends on PROC_FS" as well.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: move most of fh_verify to separate function
J. Bruce Fields [Fri, 14 Mar 2008 21:51:12 +0000 (17:51 -0400)]
nfsd: move most of fh_verify to separate function

Move the code that actually parses the filehandle and looks up the
dentry and export to a separate function.  This simplifies the reference
counting a little and moves fh_verify() a little closer to the kernel
ideal of small, minimally-indentended functions.  Clean up a few other
minor style sins along the way.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Cc: Neil Brown <neilb@suse.de>
17 years agonet/sunrpc/svc.c: suppress unintialized var warning
Andrew Morton [Wed, 12 Mar 2008 21:04:25 +0000 (14:04 -0700)]
net/sunrpc/svc.c: suppress unintialized var warning

net/sunrpc/svc.c: In function '__svc_create_thread':
net/sunrpc/svc.c:587: warning: 'oldmask.bits[0u]' may be used uninitialized in this function

Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Tom Tucker <tom@opengridcomputing.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoRemove define for KRB5_CKSUM_LENGTH, which will become enctype-dependent
Kevin Coffman [Thu, 21 Feb 2008 18:44:27 +0000 (13:44 -0500)]
Remove define for KRB5_CKSUM_LENGTH, which will become enctype-dependent

cleanup: When adding new encryption types, the checksum length
can be different for each enctype.  Face the fact that the
current code only supports DES which has a checksum length of 8.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoCorrect grammer/typos in dprintks
Kevin Coffman [Thu, 21 Feb 2008 18:44:12 +0000 (13:44 -0500)]
Correct grammer/typos in dprintks

cleanup:  Fix grammer/typos to use "too" instead of "to"

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoSVCRDMA: Add check for XPT_CLOSE in svc_rdma_send
Tom Tucker [Tue, 11 Mar 2008 17:44:27 +0000 (12:44 -0500)]
SVCRDMA: Add check for XPT_CLOSE in svc_rdma_send

SVCRDMA: Add check for XPT_CLOSE in svc_rdma_send

The svcrdma transport can crash if a send is waiting for an
empty SQ slot and the connection is closed due to an asynchronous error.
The crash is caused when svc_rdma_send attempts to send on a deleted
QP.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: initialize lease type in nfs4_open_delegation()
Felix Blyakher [Tue, 26 Feb 2008 18:54:36 +0000 (10:54 -0800)]
nfsd: initialize lease type in nfs4_open_delegation()

While lease is correctly checked by supplying the type argument to
vfs_setlease(), it's stored with fl_type uninitialized. This breaks the
logic when checking the type of the lease.  The fix is to initialize
fl_type.

The old code still happened to function correctly since F_RDLCK is zero,
and we only implement read delegations currently (nor write
delegations).  But that's no excuse for not fixing this.

Signed-off-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoDocumentation: NFS/RDMA instructions for 2.6.25-rc1
James Lentini [Mon, 25 Feb 2008 17:20:13 +0000 (12:20 -0500)]
Documentation: NFS/RDMA instructions for 2.6.25-rc1

Add some instructions for using the new NFS/RDMA features.

Signed-off-by: James Lentini <jlentini@netapp.com>
Cc: Roland Dreier <rdreier@cisco.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agoNFS: convert nfs4 callback thread to kthread API
Jeff Layton [Wed, 20 Feb 2008 13:55:30 +0000 (08:55 -0500)]
NFS: convert nfs4 callback thread to kthread API

There's a general push to convert kernel threads to use the (much
cleaner) kthread API. This patch converts the NFSv4 callback kernel
thread to the kthread API. In addition to being generally cleaner this
also removes the dependency on signals when shutting down the thread.

Note that this patch depends on the recent patches to svc_recv() to
make it check kthread_should_stop() periodically. Those patches are
in Bruce's tree at the moment and are slated for 2.6.26 along with
the lockd conversion, so this conversion is probably also appropriate
for 2.6.26.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: fix sparse warning in vfs.c
Harvey Harrison [Wed, 20 Feb 2008 20:49:02 +0000 (12:49 -0800)]
nfsd: fix sparse warning in vfs.c

fs/nfsd/vfs.c:991:27: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: fix sparse warnings
Harvey Harrison [Wed, 20 Feb 2008 20:49:00 +0000 (12:49 -0800)]
nfsd: fix sparse warnings

Add extern to nfsd/nfsd.h
fs/nfsd/nfssvc.c:146:5: warning: symbol 'nfsd_nrthreads' was not declared. Should it be static?
fs/nfsd/nfssvc.c:261:5: warning: symbol 'nfsd_nrpools' was not declared. Should it be static?
fs/nfsd/nfssvc.c:269:5: warning: symbol 'nfsd_get_nrthreads' was not declared. Should it be static?
fs/nfsd/nfssvc.c:281:5: warning: symbol 'nfsd_set_nrthreads' was not declared. Should it be static?
fs/nfsd/export.c:1534:23: warning: symbol 'nfs_exports_op' was not declared. Should it be static?

Add include of auth.h
fs/nfsd/auth.c:27:5: warning: symbol 'nfsd_setuser' was not declared. Should it be static?

Make static, move forward declaration closer to where it's needed.
fs/nfsd/nfs4state.c:1877:1: warning: symbol 'laundromat_main' was not declared. Should it be static?

Make static, forward declaration was already marked static.
fs/nfsd/nfs4idmap.c:206:1: warning: symbol 'idtoname_parse' was not declared. Should it be static?
fs/nfsd/vfs.c:1156:1: warning: symbol 'nfsd_create_setattr' was not declared. Should it be static?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>