summaryrefslogtreecommitdiff
path: root/lib/kobject.c
AgeCommit message (Expand)Author
2017-03-22kobject: Export kobject_get_unless_zero()Jan Kara
2016-02-09kobject: export kset_find_obj() for module useGabriel Somlo
2015-11-06lib/kobject.c: use kvasprintf_const for formatting ->nameRasmus Villemoes
2015-10-04kobject: move EXPORT_SYMBOL() macros next to corresponding definitionsGabriel Somlo
2015-07-17include, lib: add __printf attributes to several function prototypesNicolas Iooss
2015-06-30Merge branch 'for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds
2015-06-25lib/kobject.c: use strreplace()Rasmus Villemoes
2015-06-19lib: export symbol kobject_move()Anand Jain
2015-03-25kobject: WARN as tip when call kobject_get() to a kobject not initializedEthan Zhao
2014-11-07kobject: fix NULL pointer derefernce in kobj_child_ns_opsPankaj Dubey
2014-02-07sysfs, kobject: add sysfs wrapper for kernfs_enable_ns()Tejun Heo
2014-01-30Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds
2014-01-28kobject: export kobj_sysfs_opsJeff Mahoney
2014-01-08kobject: Fix source code comment spellingBart Van Assche
2014-01-04Revert "kobject: introduce kobj_completion"Greg Kroah-Hartman
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo
2013-12-08kobject: fix memory leak in kobject_set_name_vargsMaurizio Lombardi
2013-12-07kobject: remove kset from sysfs immediately in kset_unregister()Bjorn Helgaas
2013-12-07kobject: delay kobject release for random timeBjorn Helgaas
2013-11-29sysfs, kernfs: introduce kernfs_create_dir[_ns]()Tejun Heo
2013-11-27sysfs: drop kobj_ns_type handling, take #2Tejun Heo
2013-11-07Revert "sysfs: drop kobj_ns_type handling"Linus Torvalds
2013-10-11kobject: show debug info on delayed kobject releaseFengguang Wu
2013-10-03kobject: grab an extra reference on kobject->sd to allow duplicate deletesTejun Heo
2013-09-29Merge 3.12-rc3 into driver-core-nextGreg Kroah-Hartman
2013-09-27sysfs: Allow mounting without CONFIG_NETEric W. Biederman
2013-09-26kobject: introduce kobj_completionJeff Mahoney
2013-09-26sysfs: drop kobj_ns_type handlingTejun Heo
2013-09-26sysfs: remove ktype->namespace() invocations in directory codeTejun Heo
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds
2013-08-28sysfs: Restrict mounting sysfsEric W. Biederman
2013-07-25kobject: delayed kobject release: help find buggy driversRussell King
2013-06-07kobject: sanitize argument for format stringKees Cook
2013-05-07kref: minor cleanupAnatol Pomozov
2013-04-13kobject: fix kset_find_obj() race with concurrent last kobject_put()Linus Torvalds
2012-05-07kobject: fix the uncorrect commentZhi Yong Wu
2012-05-02Merge 3.4-rc5 into driver-core-nextGreg Kroah-Hartman
2012-04-23lib/kobject.c : Remove redundant check in create_diryan
2012-04-10kobject: provide more diagnostic info for kobject_add_internal() failuresDan Williams
2012-03-07lib: reduce the use of module.h wherever possiblePaul Gortmaker
2011-12-21kobject: remove kset_find_obj_hinted()Kay Sievers
2011-06-12Delay struct net freeing while there's a sysfs instance refering to itAl Viro
2010-10-22kobject: Introduce kset_find_obj_hinted.Robin Holt
2010-05-21sysfs: Comment sysfs directory tagging logicSerge E. Hallyn
2010-05-21sysfs: Implement sysfs tagged directory support.Eric W. Biederman
2010-05-21kobj: Add basic infrastructure for dealing with namespaces.Eric W. Biederman
2010-03-07Driver core: Constify struct sysfs_ops in struct kobj_typeEmese Revfy
2010-03-07kobject: Constify struct kset_uevent_opsEmese Revfy
2009-06-15kobject: make kset_create check kobject_set_name return valueDave Young
2009-04-20driver: dont update dev_name via device_add pathKay Sievers
s='logmsg'> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> 2017-03-28cris: get rid of zeroingAl Viro ... the rest of it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> 2017-03-28cris: get rid of zeroing in __asm_copy_from_user_N for N > 4Al Viro only one user for those Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> 2016-03-13ipv4: Update parameters for csum_tcpudp_magic to their original typesAlexander Duyck This patch updates all instances of csum_tcpudp_magic and csum_tcpudp_nofold to reflect the types that are usually used as the source inputs. For example the protocol field is populated based on nexthdr which is actually an unsigned 8 bit value. The length is usually populated based on skb->len which is an unsigned integer. This addresses an issue in which the IPv6 function csum_ipv6_magic was generating a checksum using the full 32b of skb->len while csum_tcpudp_magic was only using the lower 16 bits. As a result we could run into issues when attempting to adjust the checksum as there was no protocol agnostic way to update it. With this change the value is still truncated as many architectures use "(len + proto) << 8", however this truncation only occurs for values greater than 16776960 in length and as such is unlikely to occur as we stop the inner headers at ~64K in size. I did have to make a few minor changes in the arm, mn10300, nios2, and score versions of the function in order to support these changes as they were either using things such as an OR to combine the protocol and length, or were using ntohs to convert the length which would have truncated the value. I also updated a few spots in terms of whitespace and type differences for the addresses. Most of this was just to make sure all of the definitions were in sync going forward. Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Signed-off-by: David S. Miller <davem@davemloft.net> 2015-09-05CRIS: UAPI: fix elf.h exportRabin Vincent CRIS userspace (uClibc for one) expects asm/elf.h to be exported but this header appears to have gone missing at some point. Move it to uapi/ and export it. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2015-09-05CRIS: don't make asm/elf.h depend on asm/user.hRabin Vincent We're going to export asm/elf.h; remove its dependencies on the non-exported asm/user.h and the unused asm/system.h include. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2015-09-05CRIS: UAPI: fix ptrace.hRabin Vincent The exported ptrace.h header on CRIS references an "arch" directory which does not exist. Fix this by having the variants in the same directory and including them conditionally, similar to other architectures. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2015-03-25CRIS: use generic atomic.hRabin Vincent CRIS can use asm-generic's atomic.h. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jespern@axis.com> 2015-03-25CRISv10: remove redundant macros from system.hRabin Vincent All of these are either unused or already provided by other headers, so they can be removed. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jespern@axis.com> 2015-02-10cris: drop _PAGE_FILE and pte_file()-related helpersKirill A. Shutemov We've replaced remap_file_pages(2) implementation with emulation. Nobody creates non-linear mapping anymore. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Mikael Starvik <starvik@axis.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 2014-01-15Drop code for CRISv10 CPU simulatorJesper Nilsson That simulator is dead and redundant. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2014-01-08cris: remove deprecated IRQF_DISABLEDMichael Opdenacker This patch proposes to remove the IRQF_DISABLED flag from CRIS architecture code. It's a NOOP since 2.6.35 and it will be removed one day. Comments mentioning IRQF_DISABLED are also updated, knowing that all interrupts are now "fast interrupts", their handlers running with interrupts disabled. Don't hesitate to let me know if you have other ways of rephrasing the comments! This is an update for 3.11 of a patch already sent for 3.10 Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com> Signed-off-by: Jesper Nilsson <jespern@axis.com> 2013-06-19sched: Rename sched.c as sched/core.c in comments and DocumentationViresh Kumar Most of the stuff from kernel/sched.c was moved to kernel/sched/core.c long time back and the comments/Documentation never got updated. I figured it out when I was going through sched-domains.txt and so thought of fixing it globally. I haven't crossed check if the stuff that is referenced in sched/core.c by all these files is still present and hasn't changed as that wasn't the motive behind this patch. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/cdff76a265326ab8d71922a1db5be599f20aad45.1370329560.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org> 2012-12-20UAPI: Fix up empty files in arch/cris/David Howells Fix up three empty files in arch/cris/ by sticking placeholder comments in there to prevent the patch program from deleting them. I decided not to delete the arch-v*/Kbuild files as it's possibly someone might want to use them for genhdr-y lines in the future, but they could be deleted and the pointer lines removed from asm/Kbuild. The uapi/arch-v*/Kbuild files ought to be uneffected by such a change. asm/swab.h didn't have anything outside of __KERNEL__ so nothing appeared in uapi/asm/swab.h. The latter, however, is exported by Kbuild.asm. This needs to be applied after the CRIS UAPI disintegration patch. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2012-12-20Merge tag 'disintegrate-cris-20121009' of ↵Jesper Nilsson git://git.infradead.org/users/dhowells/linux-headers into for-linus2 UAPI Disintegration 2012-10-09 * tag 'disintegrate-cris-20121009' of git://git.infradead.org/users/dhowells/linux-headers: UAPI: (Scripted) Disintegrate arch/cris/include/asm UAPI: (Scripted) Disintegrate arch/cris/include/arch-v32/arch UAPI: (Scripted) Disintegrate arch/cris/include/arch-v10/arch 2012-11-19various: Fix spelling of "registered" in comments.Adam Buchbinder Some comments misspell "registered"; this fixes them. No code changes. Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> 2012-10-09UAPI: (Scripted) Disintegrate arch/cris/include/arch-v10/archDavid Howells Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com> 2012-10-02UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel ↵David Howells system headers Convert #include "..." to #include <path/...> in kernel system headers. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com> 2012-03-28Disintegrate asm/system.h for CRISDavid Howells Disintegrate asm/system.h for CRIS. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> cc: linux-cris-kernel@axis.com 2011-07-26ptrace: unify show_regs() prototypeMike Frysinger [ poleg@redhat.com: no need to declare show_regs() in ptrace.h, sched.h does this ] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 2011-07-25cris, exec: remove redundant set_fs(USER_DS)Mathias Krause The address limit is already set in flush_old_exec() so those calls to set_fs(USER_DS) are redundant. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 2010-10-07Fix IRQ flag handling namingDavid Howells Fix the IRQ flag handling naming. In linux/irqflags.h under one configuration, it maps: local_irq_enable() -> raw_local_irq_enable() local_irq_disable() -> raw_local_irq_disable() local_irq_save() -> raw_local_irq_save() ... and under the other configuration, it maps: raw_local_irq_enable() -> local_irq_enable() raw_local_irq_disable() -> local_irq_disable() raw_local_irq_save() -> local_irq_save() ... This is quite confusing. There should be one set of names expected of the arch, and this should be wrapped to give another set of names that are expected by users of this facility. Change this to have the arch provide: flags = arch_local_save_flags() flags = arch_local_irq_save() arch_local_irq_restore(flags) arch_local_irq_disable() arch_local_irq_enable() arch_irqs_disabled_flags(flags) arch_irqs_disabled() arch_safe_halt() Then linux/irqflags.h wraps these to provide: raw_local_save_flags(flags) raw_local_irq_save(flags) raw_local_irq_restore(flags) raw_local_irq_disable() raw_local_irq_enable() raw_irqs_disabled_flags(flags) raw_irqs_disabled() raw_safe_halt() with type checking on the flags 'arguments', and then wraps those to provide: local_save_flags(flags) local_irq_save(flags) local_irq_restore(flags) local_irq_disable() local_irq_enable() irqs_disabled_flags(flags) irqs_disabled() safe_halt() with tracing included if enabled. The arch functions can now all be inline functions rather than some of them having to be macros. Signed-off-by: David Howells <dhowells@redhat.com> [X86, FRV, MN10300] Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [Tile] Signed-off-by: Michal Simek <monstr@monstr.eu> [Microblaze] Tested-by: Catalin Marinas <catalin.marinas@arm.com> [ARM] Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> [AVR] Acked-by: Tony Luck <tony.luck@intel.com> [IA-64] Acked-by: Hirokazu Takata <takata@linux-m32r.org> [M32R] Acked-by: Greg Ungerer <gerg@uclinux.org> [M68K/M68KNOMMU] Acked-by: Ralf Baechle <ralf@linux-mips.org> [MIPS] Acked-by: Kyle McMartin <kyle@mcmartin.ca> [PA-RISC] Acked-by: Paul Mackerras <paulus@samba.org> [PowerPC] Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> [S390] Acked-by: Chen Liqin <liqin.chen@sunplusct.com> [Score] Acked-by: Matt Fleming <matt@console-pimps.org> [SH] Acked-by: David S. Miller <davem@davemloft.net> [Sparc] Acked-by: Chris Zankel <chris@zankel.net> [Xtensa] Reviewed-by: Richard Henderson <rth@twiddle.net> [Alpha] Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp> [H8300] Cc: starvik@axis.com [CRIS] Cc: jesper.nilsson@axis.com [CRIS] Cc: linux-cris-kernel@axis.com 2010-05-25CRIS: Don't use mask_irq as symbol nameJesper Nilsson kernel/irq/chip.c now uses these, which lead to compile error for CRISv32. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> 2009-08-31CRIS: add pgprot_noncachedArnd Bergmann On CRIS, the high address bit controls caching, which means that we can add a pgprot_noncached() macro that sets this bit in the address. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> 2009-01-14cris: introduce asm/swab.hHarvey Harrison Adjust the arch overrides to the new names as well. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> 2008-10-29[CRIS] Move header files from include to arch/cris/include.Jesper Nilsson Change all users of header files to correct path. Remove some unneeded headers for arch-v32. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>