15 Jul, 2008

1 commit


05 Feb, 2008

2 commits

  • Remove all those inlines which were either a) unneeded or b) increased code
    size.

    text data bss dec hex filename
    before: 6997 74 8 7079 1ba7 net/bluetooth/hidp/core.o
    after: 6492 74 8 6574 19ae net/bluetooth/hidp/core.o

    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Andrew Morton
     
  • According to the bluetooth HID spec v1.0 chapter 7.4.2

    "This code requests a major state change in a BT-HID device. A HID_CONTROL
    request does not generate a HANDSHAKE response."

    "A HID_CONTROL packet with a parameter of VIRTUAL_CABLE_UNPLUG is the only
    HID_CONTROL packet a device can send to a host. A host will ignore all other
    packets."

    So in the hidp_precess_hid_control function, we just need to deal with the
    UNLUG packet.

    Signed-off-by: Dave Young
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Dave Young
     

29 Jan, 2008

2 commits

  • The function sockfd_lookup uses fget on the value that is stored in
    the file field of the returned structure, so fput should ultimately be
    applied to this value. This can be done directly, but it seems better
    to use the specific macro sockfd_put, which does the same thing.

    The problem was fixed using the following semantic patch.
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    expression s;
    @@

    s = sockfd_lookup(...)
    ...
    + sockfd_put(s);
    ?- fput(s->file);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: David S. Miller

    Julia Lawall
     
  • Many-many code in the kernel initialized the timer->function
    and timer->data together with calling init_timer(timer). There
    is already a helper for this. Use it for networking code.

    The patch is HUGE, but makes the code 130 lines shorter
    (98 insertions(+), 228 deletions(-)).

    Signed-off-by: Pavel Emelyanov
    Acked-by: Arnaldo Carvalho de Melo
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     

01 Nov, 2007

1 commit

  • Finally, the zero_it argument can be completely removed from
    the callers and from the function prototype.

    Besides, fix the checkpatch.pl warnings about using the
    assignments inside if-s.

    This patch is rather big, and it is a part of the previous one.
    I splitted it wishing to make the patches more readable. Hope
    this particular split helped.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     

22 Oct, 2007

1 commit


20 Oct, 2007

1 commit

  • get rid of input BIT* duplicate defines

    use newly global defined macros for input layer. Also remove includes of
    input.h from non-input sources only for BIT macro definiton. Define the
    macro temporarily in local manner, all those local definitons will be
    removed further in this patchset (to not break bisecting).
    BIT macro will be globally defined (1<
    Cc:
    Acked-by: Jiri Kosina
    Cc:
    Acked-by: Marcel Holtmann
    Cc:
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     

11 Oct, 2007

2 commits

  • This patch:
    - makes hidp_setup_input() return int to indicate errors;
    - checks its return value to handle errors.

    And this time it is against -rc7-mm1 tree.

    Thanks to roel and Marcel Holtmann for comments.

    Signed-off-by: WANG Cong
    Signed-off-by: Marcel Holtmann
    Signed-off-by: David S. Miller

    WANG Cong
     
  • This patch passes in the namespace a new socket should be created in
    and has the socket code do the appropriate reference counting. By
    virtue of this all socket create methods are touched. In addition
    the socket create methods are modified so that they will fail if
    you attempt to create a socket in a non-default network namespace.

    Failing if we attempt to create a socket outside of the default
    network namespace ensures that as we incrementally make the network stack
    network namespace aware we will not export functionality that someone
    has not audited and made certain is network namespace safe.
    Allowing us to partially enable network namespaces before all of the
    exotic protocols are supported.

    Any protocol layers I have missed will fail to compile because I now
    pass an extra parameter into the socket creation code.

    [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]

    Signed-off-by: Eric W. Biederman
    Signed-off-by: David S. Miller

    Eric W. Biederman
     

18 Jul, 2007

1 commit

  • Currently, the freezer treats all tasks as freezable, except for the kernel
    threads that explicitly set the PF_NOFREEZE flag for themselves. This
    approach is problematic, since it requires every kernel thread to either
    set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
    care for the freezing of tasks at all.

    It seems better to only require the kernel threads that want to or need to
    be frozen to use some freezer-related code and to remove any
    freezer-related code from the other (nonfreezable) kernel threads, which is
    done in this patch.

    The patch causes all kernel threads to be nonfreezable by default (ie. to
    have PF_NOFREEZE set by default) and introduces the set_freezable()
    function that should be called by the freezable kernel threads in order to
    unset PF_NOFREEZE. It also makes all of the currently freezable kernel
    threads call set_freezable(), so it shouldn't cause any (intentional)
    change of behaviour to appear. Additionally, it updates documentation to
    describe the freezing of tasks more accurately.

    [akpm@linux-foundation.org: build fixes]
    Signed-off-by: Rafael J. Wysocki
    Acked-by: Nigel Cunningham
    Cc: Pavel Machek
    Cc: Oleg Nesterov
    Cc: Gautham R Shenoy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

08 Jul, 2007

1 commit

  • When cleaning up HIDP sessions, we currently close the ACL connection
    before deregistering the input device. Closing the ACL connection
    schedules a workqueue to remove the associated objects from sysfs, but
    the input device still refers to them -- and if the workqueue happens to
    run before the input device removal, the kernel will oops when trying to
    look up PHYSDEVPATH for the removed input device.

    Fix this by deregistering the input device before closing the
    connections.

    Signed-off-by: David Woodhouse
    Acked-by: Marcel Holtmann
    Signed-off-by: Linus Torvalds

    David Woodhouse
     

12 May, 2007

1 commit

  • * 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid:
    USB HID: hiddev - fix race between hiddev_send_event() and hiddev_release()
    HID: add hooks for getkeycode() and setkeycode() methods
    HID: switch to using input_dev->dev.parent
    USB HID: Logitech wheel 0x046d/0xc294 needs HID_QUIRK_NOGET quirk
    USB HID: usb_buffer_free() cleanup
    USB HID: report descriptor of Cypress USB barcode readers needs fixup
    Bluetooth HID: HIDP - don't initialize force feedback
    USB HID: update CONFIG_USB_HIDINPUT_POWERBOOK description
    HID: add input mappings for non-working keys on Logitech S510 remote

    Linus Torvalds
     

11 May, 2007

1 commit

  • In preparation for struct class_device -> struct device input core
    conversion, switch to using input_dev->dev.parent when specifying
    device position in sysfs tree.

    Also, do not access input_dev->private directly, use helpers and
    do not use kfree() on input device, use input_free_device() instead.

    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     

09 May, 2007

1 commit

  • The current implementation of force feedback for HID devices is
    USB-transport only and therefore calling hid_ff_init() from hidp code is
    not going to work (plus it creates unwanted dependency of hidp on usbhid).
    Remove the hid_ff_init() until either the hid-ff is made
    transport-independent, or at least support for bluetooth transport is
    added.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann

    Jiri Kosina
     

29 Mar, 2007

1 commit

  • I have a bugreport that scrollwheel of bluetooth version of apple
    mightymouse doesn't work. The USB version of mightymouse works, as there
    is a quirk for handling scrollwheel in hid/usbhid for it.

    Now that bluetooth git tree is hooked to generic hid layer, it could easily
    use the quirks which are already present in generic hid parser, hid-input,
    etc.

    Below is a simple patch against bluetooth git tree, which adds quirk
    handling to current bluetooth hidp code, and sets quirk flags for device
    0x05ac/0x030c, which is the bluetooth version of the apple mightymouse.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Kosina
     

23 Mar, 2007

1 commit

  • Turning up the warnings on gcc makes it emit warnings
    about the placement of 'inline' in function declarations.
    Here's everything that was under net/

    Signed-off-by: Dave Jones
    Signed-off-by: David S. Miller

    Dave Jones
     

27 Feb, 2007

3 commits


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

11 Feb, 2007

1 commit


10 Feb, 2007

1 commit


20 Oct, 2006

1 commit


16 Oct, 2006

4 commits


29 Sep, 2006

1 commit


13 Jul, 2006

2 commits

  • This patch lets BT_HIDP depend on instead of select INPUT. This fixes
    the following warning during an s390 build:

    net/bluetooth/hidp/Kconfig:4:warning: 'select' used by config symbol
    'BT_HIDP' refer to undefined symbol 'INPUT'

    A dependency on INPUT also implies !S390 (and therefore makes the
    explicit dependency obsolete) since INPUT is not available on s390.

    The practical difference should be nearly zero, since INPUT is always
    set to y unless EMBEDDED=y (or S390=y).

    Signed-off-by: Adrian Bunk
    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • This patch makes the remaining transitions to use kzalloc().

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     

01 Jul, 2006

1 commit


12 Jan, 2006

1 commit


04 Jan, 2006

1 commit

  • I noticed that some of 'struct proto_ops' used in the kernel may share
    a cache line used by locks or other heavily modified data. (default
    linker alignement is 32 bytes, and L1_CACHE_LINE is 64 or 128 at
    least)

    This patch makes sure a 'struct proto_ops' can be declared as const,
    so that all cpus can share all parts of it without false sharing.

    This is not mandatory : a driver can still use a read/write structure
    if it needs to (and eventually a __read_mostly)

    I made a global stubstitute to change all existing occurences to make
    them const.

    This should reduce the possibility of false sharing on SMP, and
    speedup some socket system calls.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

09 Nov, 2005

1 commit

  • From: Jesper Juhl

    This is the net/ part of the big kfree cleanup patch.

    Remove pointless checks for NULL prior to calling kfree() in net/.

    Signed-off-by: Jesper Juhl
    Cc: "David S. Miller"
    Cc: Arnaldo Carvalho de Melo
    Acked-by: Marcel Holtmann
    Acked-by: YOSHIFUJI Hideaki
    Signed-off-by: Andrew Morton

    Jesper Juhl
     

30 Oct, 2005

1 commit

  • Bluetooth HIDP selects INPUT and it really needs it to be there - module
    depends on input core. And input core is never built on s390...

    Marked as broken on s390, for now; if somebody has better ideas, feel
    free to fix it and remove dependency...

    Signed-off-by: Al Viro
    Acked-by: Marcel Holtmann
    Signed-off-by: Linus Torvalds

    Al Viro
     

29 Oct, 2005

1 commit


09 Jul, 2005

1 commit

  • This is part of the grand scheme to eliminate the qlen
    member of skb_queue_head, and subsequently remove the
    'list' member of sk_buff.

    Most users of skb_queue_len() want to know if the queue is
    empty or not, and that's trivially done with skb_queue_empty()
    which doesn't use the skb_queue_head->qlen member and instead
    uses the queue list emptyness as the test.

    Signed-off-by: David S. Miller

    David S. Miller
     

26 Apr, 2005

1 commit

  • A lot of places in there are including major.h for no reason whatsoever.
    Removed. And yes, it still builds.

    The history of that stuff is often amusing. E.g. for net/core/sock.c
    the story looks so, as far as I've been able to reconstruct it: we used
    to need major.h in net/socket.c circa 1.1.early. In 1.1.13 that need
    had disappeared, along with register_chrdev(SOCKET_MAJOR, "socket",
    &net_fops) in sock_init(). Include had not. When 1.2 -> 1.3 reorg of
    net/* had moved a lot of stuff from net/socket.c to net/core/sock.c,
    this crap had followed...

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds