Re: [PATCH] USB: update intro of documentation

2016-10-21 Thread Oliver Neukum
On Fri, 2016-10-21 at 15:17 -0600, Jonathan Corbet wrote:
> On Thu, 20 Oct 2016 15:15:00 +0200
> Oliver Neukum  wrote:
> 
> > It does no good to mention The 2.4 kernel series and neglect
> > USB 3.x and XHCI. Also with type C and micro/mini USB we better
> > not talk about the shape of connectors.
> 
> ...except that USB 2 connectors will be with us for some time yet.  I'm all
> for updating the documentation, but stuff like this:
> 
> >  That master/slave asymmetry was designed-in for a number of
> >  reasons, one being ease of use.  It is not physically possible to
> > -assemble (legal) USB cables incorrectly:  all upstream "to the host"
> > -connectors are the rectangular type (matching the sockets on
> > -root hubs), and all downstream connectors are the squarish type
> > +mistake upstream and downstream or it does not matter with a type C
> > +plug
> 
> seems to me like it loses information.  Greg, do you have an opinion on the
> changes here?  I'll apply this if it's OK with you.

It absolutely loses information, because that information is no longer
true. We have micro and mini USB downstream and the upstream is usually
square but not universally true since On-the-Go.

Regards
Oliver


--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] vme: Convert documentation to reStructuredText, move under driver APIs

2016-10-21 Thread Jonathan Corbet
On Fri, 21 Oct 2016 22:15:27 +0100
Martyn Welch  wrote:

> Perform a relatively simple conversion of vme_api.txt to reStructuredText
> and move under driver-api, which seems the most logical place for this
> documentation.

Makes sense to me, applied to the docs tree.

Now if only the VME stuff had proper kerneldoc comments in the source! :)

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 3/3] doc: add documentation for uio-hv-generic

2016-10-21 Thread Jonathan Corbet
On Mon, 17 Oct 2016 12:33:19 -0700
Stephen Hemminger  wrote:

> From: Stephen Hemminger 
> 
> Update UIO documentation to include basic information about
> uio_hv_generic.

I've applied this to the docs tree, thanks.

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Documentation: DMA-API: Clarify semantics of dma_set_mask_and_coherent

2016-10-21 Thread Jonathan Corbet
On Mon, 17 Oct 2016 16:26:23 +0100
Punit Agrawal  wrote:

> The dma mapping api howto gives the impression that using the
> dma_set_mask_and_coherent (and related DMA APIs) will cause the kernel
> to check all the components in the path from the device to memory for
> addressing restrictions. In systems with address translations between
> the device and memory (e.g., when using IOMMU), this implies that a
> successful call to set set dma mask has checked the addressing
> constraints of the intermediaries as well.
> 
> For the IOMMU drivers in the tree, the check is actually performed while
> allocating the DMA buffer rather than when the DMA mask is
> configured. For MMUs that do not support the full device addressing
> capability, the allocations are made from a reduced address space.
> 
> Update the documentation to clarify that even though the call to
> dma_set_mask_and_coherent succeeds, it may not be possible to use the
> full addressing capability of the device.

OK, so I guess I can buy this.  But...

> Signed-off-by: Punit Agrawal 
> Cc: Jonathan Corbet 
> ---
>  Documentation/DMA-API-HOWTO.txt | 39 +++
>  1 file changed, 23 insertions(+), 16 deletions(-)
> 
> diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt
> index 979228b..240d1ee 100644
> --- a/Documentation/DMA-API-HOWTO.txt
> +++ b/Documentation/DMA-API-HOWTO.txt
> @@ -159,39 +159,46 @@ support 64-bit addressing (DAC) for all transactions.  
> And at least
>  one platform (SGI SN2) requires 64-bit consistent allocations to
>  operate correctly when the IO bus is in PCI-X mode.
>  
> -For correct operation, you must interrogate the kernel in your device
> -probe routine to see if the DMA controller on the machine can properly
> -support the DMA addressing limitation your device has.  It is good
> +For correct operation, you must inform the kernel in your device probe
> +routine to see if the DMA controller on the machine can properly
> +support the DMA addressing capabilities your device has.  It is good

Here it's still saying "to see if the DMA controller on the machine can
properly support the DMA addressing capabilities your device has".  So
you've not really changed the sense of this sentence here.

If I understand things correctly, the calls in question are storing the
device's limitations; they will only fail if the kernel is entirely
unable to work within the indicated range, right?  I don't think there's
ever been any guarantee that the system as a whole could use the entire
range that is addressable by the device.  I have no objection to making
that more clear, but let's actually make it more clear by saying what the
functions are actually doing.

Make sense, or am I missing something here?

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-10-21 Thread Yury Norov
New aarch32 ptrace syscall handler is introduced to avoid run-time
detection of the task type.

Signed-off-by: Yury Norov 
Signed-off-by: Bamvor Zhang Jian 
Signed-off-by: Chengming Zhou 
---
 arch/arm64/include/asm/unistd32.h |  2 +-
 arch/arm64/kernel/ptrace.c| 91 ++-
 arch/arm64/kernel/sys32.c |  1 +
 include/linux/ptrace.h|  6 +++
 kernel/ptrace.c   | 10 ++---
 5 files changed, 103 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/include/asm/unistd32.h 
b/arch/arm64/include/asm/unistd32.h
index b7e8ef1..6da7cbd 100644
--- a/arch/arm64/include/asm/unistd32.h
+++ b/arch/arm64/include/asm/unistd32.h
@@ -74,7 +74,7 @@ __SYSCALL(__NR_getuid, sys_getuid16)
/* 25 was sys_stime */
 __SYSCALL(25, sys_ni_syscall)
 #define __NR_ptrace 26
-__SYSCALL(__NR_ptrace, compat_sys_ptrace)
+__SYSCALL(__NR_ptrace, compat_sys_aarch32_ptrace)
/* 27 was sys_alarm */
 __SYSCALL(27, sys_ni_syscall)
/* 28 was sys_fstat */
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 1d075ed..ac542c9 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -29,6 +29,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -40,6 +41,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -1215,7 +1217,7 @@ static int compat_ptrace_sethbpregs(struct task_struct 
*tsk, compat_long_t num,
 }
 #endif /* CONFIG_HAVE_HW_BREAKPOINT */
 
-long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
+static long compat_a32_ptrace(struct task_struct *child, compat_long_t request,
compat_ulong_t caddr, compat_ulong_t cdata)
 {
unsigned long addr = caddr;
@@ -1292,8 +1294,95 @@ long compat_arch_ptrace(struct task_struct *child, 
compat_long_t request,
 
return ret;
 }
+
+COMPAT_SYSCALL_DEFINE4(aarch32_ptrace, compat_long_t, request, compat_long_t, 
pid,
+  compat_long_t, addr, compat_long_t, data)
+{
+   struct task_struct *child;
+   long ret;
+
+   if (request == PTRACE_TRACEME) {
+   ret = ptrace_traceme();
+   goto out;
+   }
+
+   child = ptrace_get_task_struct(pid);
+   if (IS_ERR(child)) {
+   ret = PTR_ERR(child);
+   goto out;
+   }
+
+   if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
+   ret = ptrace_attach(child, request, addr, data);
+   goto out_put_task_struct;
+   }
+
+   ret = ptrace_check_attach(child, request == PTRACE_KILL ||
+ request == PTRACE_INTERRUPT);
+   if (!ret) {
+   ret = compat_a32_ptrace(child, request, addr, data);
+   if (ret || request != PTRACE_DETACH)
+   ptrace_unfreeze_traced(child);
+   }
+
+ out_put_task_struct:
+   put_task_struct(child);
+ out:
+   return ret;
+}
+
 #endif /* CONFIG_AARCH32_EL0 */
 
+#ifdef CONFIG_ARM64_ILP32
+
+long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
+   compat_ulong_t caddr, compat_ulong_t cdata)
+{
+   sigset_t new_set;
+
+   switch (request) {
+   case PTRACE_GETSIGMASK:
+   if (caddr != sizeof(compat_sigset_t))
+   return -EINVAL;
+
+   return put_sigset_t((compat_sigset_t __user *) (u64) cdata,
+   >blocked);
+
+   case PTRACE_SETSIGMASK:
+   if (caddr != sizeof(compat_sigset_t))
+   return -EINVAL;
+
+   if (get_sigset_t(_set, (compat_sigset_t __user *) (u64) 
cdata))
+   return -EFAULT;
+
+   sigdelsetmask(_set, sigmask(SIGKILL)|sigmask(SIGSTOP));
+
+   /*
+* Every thread does recalc_sigpending() after resume, so
+* retarget_shared_pending() and recalc_sigpending() are not
+* called here.
+*/
+   spin_lock_irq(>sighand->siglock);
+   child->blocked = new_set;
+   spin_unlock_irq(>sighand->siglock);
+
+   return 0;
+
+   default:
+   return compat_ptrace_request(child, request, caddr, cdata);
+   }
+}
+
+#elif defined(CONFIG_COMPAT)
+
+long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
+   compat_ulong_t caddr, compat_ulong_t cdata)
+{
+   return 0;
+}
+
+#endif
+
 const struct user_regset_view *task_user_regset_view(struct task_struct *task)
 {
 #ifdef CONFIG_AARCH32_EL0
diff --git a/arch/arm64/kernel/sys32.c b/arch/arm64/kernel/sys32.c
index a40b134..3752443 100644
--- a/arch/arm64/kernel/sys32.c
+++ b/arch/arm64/kernel/sys32.c
@@ -38,6 +38,7 @@ asmlinkage long 

[PATCH 09/18] arm64: introduce binfmt_elf32.c

2016-10-21 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable
to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32
specific definitions there and make code more maintainable and readable.

Signed-off-by: Yury Norov 
---
 arch/arm64/Kconfig   |  1 -
 arch/arm64/include/asm/hwcap.h   |  2 --
 arch/arm64/kernel/Makefile   |  2 +-
 arch/arm64/kernel/binfmt_elf32.c | 31 +++
 4 files changed, 32 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm64/kernel/binfmt_elf32.c

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 0cd786e..9efa86a 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -1003,7 +1003,6 @@ config AARCH32_EL0
def_bool y
depends on ARM64_4K_PAGES || EXPERT
select COMPAT
-   select COMPAT_BINFMT_ELF
select HAVE_UID16
select OLD_SIGSUSPEND3
select COMPAT_OLD_SIGACTION
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
index 2c7fc5d..99dfd92 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -47,8 +47,6 @@
 #define ELF_HWCAP  (elf_hwcap)
 
 #ifdef CONFIG_AARCH32_EL0
-#define COMPAT_ELF_HWCAP   (compat_elf_hwcap)
-#define COMPAT_ELF_HWCAP2  (compat_elf_hwcap2)
 extern unsigned int compat_elf_hwcap, compat_elf_hwcap2;
 #endif
 
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index 8a19fda..abe5040 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -28,7 +28,7 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
$(call if_changed,objcopy)
 
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
-  sys_compat.o entry32.o
+  sys_compat.o entry32.o binfmt_elf32.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
 arm64-obj-$(CONFIG_ARM64_MODULE_PLTS)  += module-plts.o
diff --git a/arch/arm64/kernel/binfmt_elf32.c b/arch/arm64/kernel/binfmt_elf32.c
new file mode 100644
index 000..aec1c8a
--- /dev/null
+++ b/arch/arm64/kernel/binfmt_elf32.c
@@ -0,0 +1,31 @@
+/*
+ * Support for AArch32 Linux ELF binaries.
+ */
+
+/* AArch32 EABI. */
+#define EF_ARM_EABI_MASK   0xff00
+
+#define compat_start_threadcompat_start_thread
+#define COMPAT_SET_PERSONALITY(ex) \
+do {   \
+   clear_thread_flag(TIF_32BIT_AARCH64);   \
+   set_thread_flag(TIF_32BIT); \
+} while (0)
+
+#define COMPAT_ARCH_DLINFO
+#define COMPAT_ELF_HWCAP   (compat_elf_hwcap)
+#define COMPAT_ELF_HWCAP2  (compat_elf_hwcap2)
+
+#ifdef __AARCH64EB__
+#define COMPAT_ELF_PLATFORM("v8b")
+#else
+#define COMPAT_ELF_PLATFORM("v8l")
+#endif
+
+#define compat_arch_setup_additional_pages \
+   aarch32_setup_vectors_page
+struct linux_binprm;
+extern int aarch32_setup_vectors_page(struct linux_binprm *bprm,
+ int uses_interp);
+
+#include "../../../fs/compat_binfmt_elf.c"
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 17/18] arm64:ilp32: add vdso-ilp32 and use for signal return

2016-10-21 Thread Yury Norov
From: Philipp Tomsich 

ILP32 VDSO exports next symbols:
 __kernel_rt_sigreturn;
 __kernel_gettimeofday;
 __kernel_clock_gettime;
 __kernel_clock_getres.

What shared object to use, kernel selects depending on result of
is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes
correct pages and spec.

Adjusted to move the move data page before code pages in sync with
commit 601255ae3c98 ("arm64: vdso: move data page before code pages")

Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Yury Norov 
Signed-off-by: Bamvor Zhang Jian 
---
 arch/arm64/include/asm/vdso.h |  6 ++
 arch/arm64/kernel/Makefile| 11 
 arch/arm64/kernel/asm-offsets.c   |  7 ++
 arch/arm64/kernel/signal.c|  2 +
 arch/arm64/kernel/vdso-ilp32/.gitignore   |  2 +
 arch/arm64/kernel/vdso-ilp32/Makefile | 74 +
 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S | 33 ++
 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.lds.S | 95 +++
 arch/arm64/kernel/vdso.c  | 66 ---
 arch/arm64/kernel/vdso/gettimeofday.S | 20 +-
 arch/arm64/kernel/vdso/vdso.S |  6 +-
 11 files changed, 306 insertions(+), 16 deletions(-)
 create mode 100644 arch/arm64/kernel/vdso-ilp32/.gitignore
 create mode 100644 arch/arm64/kernel/vdso-ilp32/Makefile
 create mode 100644 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.S
 create mode 100644 arch/arm64/kernel/vdso-ilp32/vdso-ilp32.lds.S

diff --git a/arch/arm64/include/asm/vdso.h b/arch/arm64/include/asm/vdso.h
index 839ce00..649a9a4 100644
--- a/arch/arm64/include/asm/vdso.h
+++ b/arch/arm64/include/asm/vdso.h
@@ -29,6 +29,12 @@
 
 #include 
 
+#ifdef CONFIG_ARM64_ILP32
+#include 
+#else
+#define vdso_offset_sigtramp_ilp32
+#endif
+
 #define VDSO_SYMBOL(base, name)
   \
 ({\
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index af400fb..43e680a 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -55,6 +55,17 @@ arm64-obj-$(CONFIG_KEXEC)+= machine_kexec.o 
relocate_kernel.o\
   cpu-reset.o
 
 obj-y  += $(arm64-obj-y) vdso/ probes/
+obj-$(CONFIG_ARM64_ILP32)  += vdso-ilp32/
 obj-m  += $(arm64-obj-m)
 head-y := head.o
 extra-y+= $(head-y) vmlinux.lds
+
+# vDSO - this must be built first to generate the symbol offsets
+$(call objectify,$(arm64-obj-y)): $(obj)/vdso/vdso-offsets.h
+$(obj)/vdso/vdso-offsets.h: $(obj)/vdso
+
+ifeq ($(CONFIG_ARM64_ILP32),y)
+# vDSO - this must be built first to generate the symbol offsets
+$(call objectify,$(arm64-obj-y)): $(obj)/vdso-ilp32/vdso-ilp32-offsets.h
+$(obj)/vdso-ilp32/vdso-ilp32-offsets.h: $(obj)/vdso-ilp32
+endif
diff --git a/arch/arm64/kernel/asm-offsets.c b/arch/arm64/kernel/asm-offsets.c
index d8d7086..8f844b9 100644
--- a/arch/arm64/kernel/asm-offsets.c
+++ b/arch/arm64/kernel/asm-offsets.c
@@ -119,6 +119,13 @@ int main(void)
   DEFINE(TSPEC_TV_SEC, offsetof(struct timespec, tv_sec));
   DEFINE(TSPEC_TV_NSEC,offsetof(struct timespec, tv_nsec));
   BLANK();
+#ifdef CONFIG_COMPAT
+  DEFINE(COMPAT_TVAL_TV_SEC,   offsetof(struct compat_timeval, tv_sec));
+  DEFINE(COMPAT_TVAL_TV_USEC,  offsetof(struct compat_timeval, tv_usec));
+  DEFINE(COMPAT_TSPEC_TV_SEC,  offsetof(struct compat_timespec, tv_sec));
+  DEFINE(COMPAT_TSPEC_TV_NSEC, offsetof(struct compat_timespec, tv_nsec));
+  BLANK();
+#endif
   DEFINE(TZ_MINWEST,   offsetof(struct timezone, tz_minuteswest));
   DEFINE(TZ_DSTTIME,   offsetof(struct timezone, tz_dsttime));
   BLANK();
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c
index 1b130f4..72f68f0 100644
--- a/arch/arm64/kernel/signal.c
+++ b/arch/arm64/kernel/signal.c
@@ -267,6 +267,8 @@ void setup_return(struct pt_regs *regs, struct k_sigaction 
*ka,
 
if (ka->sa.sa_flags & SA_RESTORER)
sigtramp = ka->sa.sa_restorer;
+   else if (is_ilp32_compat_task())
+   sigtramp = VDSO_SYMBOL(current->mm->context.vdso, 
sigtramp_ilp32);
else
sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
 
diff --git a/arch/arm64/kernel/vdso-ilp32/.gitignore 
b/arch/arm64/kernel/vdso-ilp32/.gitignore
new file mode 100644
index 000..61806c3
--- /dev/null
+++ b/arch/arm64/kernel/vdso-ilp32/.gitignore
@@ -0,0 +1,2 @@
+vdso-ilp32.lds

[PATCH 13/18] arm64: signal: share lp64 signal routines to ilp32

2016-10-21 Thread Yury Norov
After that, it will be possible to reuse it in ilp32.

Signed-off-by: Yury Norov 
Signed-off-by: Bamvor Zhang Jian 
---
 arch/arm64/include/asm/signal_common.h | 33 
 arch/arm64/kernel/signal.c | 93 +-
 2 files changed, 92 insertions(+), 34 deletions(-)
 create mode 100644 arch/arm64/include/asm/signal_common.h

diff --git a/arch/arm64/include/asm/signal_common.h 
b/arch/arm64/include/asm/signal_common.h
new file mode 100644
index 000..756ed2c
--- /dev/null
+++ b/arch/arm64/include/asm/signal_common.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 1995-2009 Russell King
+ * Copyright (C) 2012 ARM Ltd.
+ * Copyright (C) 2016 Cavium Networks.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+#ifndef __ASM_SIGNAL_COMMON_H
+#define __ASM_SIGNAL_COMMON_H
+
+#include 
+#include 
+#include 
+
+int preserve_fpsimd_context(struct fpsimd_context __user *ctx);
+int restore_fpsimd_context(struct fpsimd_context __user *ctx);
+int setup_sigcontext(struct sigcontext __user *uc_mcontext, struct pt_regs 
*regs);
+int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sf);
+void setup_return(struct pt_regs *regs, struct k_sigaction *ka,
+   void __user *frame, off_t sigframe_off, int usig);
+
+#endif /* __ASM_SIGNAL_COMMON_H */
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c
index f90cdf5..478d6c5 100644
--- a/arch/arm64/kernel/signal.c
+++ b/arch/arm64/kernel/signal.c
@@ -34,18 +34,26 @@
 #include 
 #include 
 #include 
+#include 
+
+#define RT_SIGFRAME_FP_POS (offsetof(struct rt_sigframe, sig)  \
+   + offsetof(struct sigframe, fp))
+
+struct sigframe {
+   struct ucontext uc;
+   u64 fp;
+   u64 lr;
+};
 
 /*
  * Do a signal return; undo the signal stack. These are aligned to 128-bit.
  */
 struct rt_sigframe {
struct siginfo info;
-   struct ucontext uc;
-   u64 fp;
-   u64 lr;
+   struct sigframe sig;
 };
 
-static int preserve_fpsimd_context(struct fpsimd_context __user *ctx)
+int preserve_fpsimd_context(struct fpsimd_context __user *ctx)
 {
struct fpsimd_state *fpsimd = >thread.fpsimd_state;
int err;
@@ -65,7 +73,7 @@ static int preserve_fpsimd_context(struct fpsimd_context 
__user *ctx)
return err ? -EFAULT : 0;
 }
 
-static int restore_fpsimd_context(struct fpsimd_context __user *ctx)
+int restore_fpsimd_context(struct fpsimd_context __user *ctx)
 {
struct fpsimd_state fpsimd;
__u32 magic, size;
@@ -93,22 +101,30 @@ static int restore_fpsimd_context(struct fpsimd_context 
__user *ctx)
 }
 
 static int restore_sigframe(struct pt_regs *regs,
-   struct rt_sigframe __user *sf)
+   struct sigframe __user *sf)
 {
sigset_t set;
-   int i, err;
-   void *aux = sf->uc.uc_mcontext.__reserved;
-
+   int err;
err = __copy_from_user(, >uc.uc_sigmask, sizeof(set));
if (err == 0)
set_current_blocked();
 
+   err |= restore_sigcontext(regs, >uc.uc_mcontext);
+   return err;
+}
+
+
+int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user 
*uc_mcontext)
+{
+   int i, err = 0;
+   void *aux = uc_mcontext->__reserved;
+
for (i = 0; i < 31; i++)
-   __get_user_error(regs->regs[i], >uc.uc_mcontext.regs[i],
+   __get_user_error(regs->regs[i], _mcontext->regs[i],
 err);
-   __get_user_error(regs->sp, >uc.uc_mcontext.sp, err);
-   __get_user_error(regs->pc, >uc.uc_mcontext.pc, err);
-   __get_user_error(regs->pstate, >uc.uc_mcontext.pstate, err);
+   __get_user_error(regs->sp, _mcontext->sp, err);
+   __get_user_error(regs->pc, _mcontext->pc, err);
+   __get_user_error(regs->pstate, _mcontext->pstate, err);
 
/*
 * Avoid sys_rt_sigreturn() restarting.
@@ -145,10 +161,10 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs)
if (!access_ok(VERIFY_READ, frame, sizeof (*frame)))
goto badframe;
 
-   if (restore_sigframe(regs, frame))
+   if (restore_sigframe(regs, >sig))
goto badframe;
 
-   if (restore_altstack(>uc.uc_stack))
+   if (restore_altstack(>sig.uc.uc_stack))
goto badframe;
 
return regs->regs[0];
@@ -162,27 +178,36 @@ 

[PATCH 15/18] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

ILP32 uses AARCH32 compat structures and syscall handlers for signals.
But ILP32 struct rt_sigframe  and ucontext differs from both LP64 and
AARCH32. So some specific mechanism is needed to take care of it.

Signed-off-by: Andrew Pinski 
Signed-off-by: Yury Norov 
---
 arch/arm64/include/asm/signal_ilp32.h |  38 
 arch/arm64/kernel/Makefile|   3 +-
 arch/arm64/kernel/entry_ilp32.S   |  22 +
 arch/arm64/kernel/signal.c|   3 +
 arch/arm64/kernel/signal_ilp32.c  | 174 ++
 5 files changed, 239 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/include/asm/signal_ilp32.h
 create mode 100644 arch/arm64/kernel/entry_ilp32.S
 create mode 100644 arch/arm64/kernel/signal_ilp32.c

diff --git a/arch/arm64/include/asm/signal_ilp32.h 
b/arch/arm64/include/asm/signal_ilp32.h
new file mode 100644
index 000..d3210d8
--- /dev/null
+++ b/arch/arm64/include/asm/signal_ilp32.h
@@ -0,0 +1,38 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+#include 
+#include 
+
+#ifndef __ASM_SIGNAL_ILP32_H
+#define __ASM_SIGNAL_ILP32_H
+
+#ifdef CONFIG_ARM64_ILP32
+
+#include 
+
+int ilp32_setup_rt_frame(int usig, struct ksignal *ksig, sigset_t *set,
+ struct pt_regs *regs);
+
+#else
+
+static inline int ilp32_setup_rt_frame(int usig, struct ksignal *ksig,
+   sigset_t *set, struct pt_regs *regs)
+{
+   return -ENOSYS;
+}
+
+#endif /* CONFIG_ARM64_ILP32 */
+
+#endif /* __ASM_SIGNAL_ILP32_H */
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index fdc0052..af400fb 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -29,7 +29,8 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
 
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
   sys_compat.o entry32.o binfmt_elf32.o
-arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o sys_ilp32.o
+arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o sys_ilp32.o   
\
+  signal_ilp32.o entry_ilp32.o
 arm64-obj-$(CONFIG_COMPAT) += entry32_common.o signal32_common.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
diff --git a/arch/arm64/kernel/entry_ilp32.S b/arch/arm64/kernel/entry_ilp32.S
new file mode 100644
index 000..a8bb94b
--- /dev/null
+++ b/arch/arm64/kernel/entry_ilp32.S
@@ -0,0 +1,22 @@
+/*
+ * ILP32 system call wrappers
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+#include 
+
+ENTRY(ilp32_sys_rt_sigreturn_wrapper)
+   mov x0, sp
+   b   ilp32_sys_rt_sigreturn
+ENDPROC(ilp32_sys_rt_sigreturn_wrapper)
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c
index 478d6c5..1b130f4 100644
--- a/arch/arm64/kernel/signal.c
+++ b/arch/arm64/kernel/signal.c
@@ -35,6 +35,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #define RT_SIGFRAME_FP_POS (offsetof(struct rt_sigframe, sig)  \
+ offsetof(struct sigframe, fp))
@@ -325,6 +326,8 @@ static void handle_signal(struct ksignal *ksig, struct 
pt_regs *regs)
ret = compat_setup_rt_frame(usig, ksig, oldset, regs);
else
ret = compat_setup_frame(usig, ksig, oldset, regs);
+   } else if (is_ilp32_compat_task()) {
+   ret = ilp32_setup_rt_frame(usig, ksig, oldset, regs);
} else {
ret = setup_rt_frame(usig, ksig, oldset, regs);
}
diff --git a/arch/arm64/kernel/signal_ilp32.c b/arch/arm64/kernel/signal_ilp32.c
new file mode 100644
index 000..6f9b7aa
--- /dev/null
+++ 

[PATCH 04/18] arm64: ensure the kernel is compiled for LP64

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

The kernel needs to be compiled as a LP64 binary for ARM64, even when
using a compiler that defaults to code-generation for the ILP32 ABI.
Consequently, we need to explicitly pass '-mabi=lp64' (supported on
gcc-4.9 and newer).

Signed-off-by: Andrew Pinski 
Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Yury Norov 
Reviewed-by: David Daney 
---
 arch/arm64/Makefile | 5 +
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index ab51aed..80eb000 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -42,15 +42,20 @@ KBUILD_CFLAGS   += -fno-asynchronous-unwind-tables
 KBUILD_CFLAGS  += $(call cc-option, -mpc-relative-literal-loads)
 KBUILD_AFLAGS  += $(lseinstr)
 
+KBUILD_CFLAGS  += $(call cc-option,-mabi=lp64)
+KBUILD_AFLAGS  += $(call cc-option,-mabi=lp64)
+
 ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
 KBUILD_CPPFLAGS+= -mbig-endian
 AS += -EB
 LD += -EB
+LDFLAGS+= -maarch64linuxb
 UTS_MACHINE:= aarch64_be
 else
 KBUILD_CPPFLAGS+= -mlittle-endian
 AS += -EL
 LD += -EL
+LDFLAGS+= -maarch64linux
 UTS_MACHINE:= aarch64
 endif
 
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 03/18] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

In this patchset  ILP32 ABI support is added. Additionally to AARCH32,
which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible.

>From now, AARCH32_EL0 (former COMPAT) config option means the support of
AARCH32 userspace, ARM64_ILP32 - support of ILP32 ABI (see next patches),
and COMPAT indicates that one of them, or both, is enabled.

Where needed, CONFIG_COMPAT is changed over to use CONFIG_AARCH32_EL0 instead

Signed-off-by: Andrew Pinski 
Signed-off-by: Yury Norov 
Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Bamvor Jian Zhang 
---
 arch/arm64/Kconfig   | 10 --
 arch/arm64/include/asm/fpsimd.h  |  2 +-
 arch/arm64/include/asm/hwcap.h   |  4 ++--
 arch/arm64/include/asm/processor.h   |  6 +++---
 arch/arm64/include/asm/ptrace.h  |  2 +-
 arch/arm64/include/asm/seccomp.h |  2 +-
 arch/arm64/include/asm/signal32.h|  6 --
 arch/arm64/include/asm/unistd.h  |  2 +-
 arch/arm64/kernel/Makefile   |  2 +-
 arch/arm64/kernel/asm-offsets.c  |  2 +-
 arch/arm64/kernel/cpufeature.c   |  8 
 arch/arm64/kernel/cpuinfo.c  | 20 +++-
 arch/arm64/kernel/entry.S|  6 +++---
 arch/arm64/kernel/head.S |  2 +-
 arch/arm64/kernel/ptrace.c   |  8 
 arch/arm64/kernel/traps.c|  2 +-
 arch/arm64/kernel/vdso.c |  4 ++--
 drivers/clocksource/arm_arch_timer.c |  2 +-
 18 files changed, 50 insertions(+), 40 deletions(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 30398db..0cd786e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -396,7 +396,7 @@ config ARM64_ERRATUM_834220
 
 config ARM64_ERRATUM_845719
bool "Cortex-A53: 845719: a load might read incorrect data"
-   depends on COMPAT
+   depends on AARCH32_EL0
default y
help
  This option adds an alternative code sequence to work around ARM
@@ -725,7 +725,7 @@ config FORCE_MAX_ZONEORDER
 
 menuconfig ARMV8_DEPRECATED
bool "Emulate deprecated/obsolete ARMv8 instructions"
-   depends on COMPAT
+   depends on AARCH32_EL0
help
  Legacy software support may require certain instructions
  that have been deprecated or obsoleted in the architecture.
@@ -995,8 +995,14 @@ menu "Userspace binary formats"
 source "fs/Kconfig.binfmt"
 
 config COMPAT
+   bool
+   depends on AARCH32_EL0
+
+config AARCH32_EL0
bool "Kernel support for 32-bit EL0"
+   def_bool y
depends on ARM64_4K_PAGES || EXPERT
+   select COMPAT
select COMPAT_BINFMT_ELF
select HAVE_UID16
select OLD_SIGSUSPEND3
diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h
index 50f559f..63b19f1 100644
--- a/arch/arm64/include/asm/fpsimd.h
+++ b/arch/arm64/include/asm/fpsimd.h
@@ -52,7 +52,7 @@ struct fpsimd_partial_state {
 };
 
 
-#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
+#if defined(__KERNEL__) && defined(CONFIG_AARCH32_EL0)
 /* Masks for extracting the FPSR and FPCR from the FPSCR */
 #define VFP_FPSCR_STAT_MASK0xf89f
 #define VFP_FPSCR_CTRL_MASK0x07f79f00
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h
index 400b80b..2c7fc5d 100644
--- a/arch/arm64/include/asm/hwcap.h
+++ b/arch/arm64/include/asm/hwcap.h
@@ -46,7 +46,7 @@
  */
 #define ELF_HWCAP  (elf_hwcap)
 
-#ifdef CONFIG_COMPAT
+#ifdef CONFIG_AARCH32_EL0
 #define COMPAT_ELF_HWCAP   (compat_elf_hwcap)
 #define COMPAT_ELF_HWCAP2  (compat_elf_hwcap2)
 extern unsigned int compat_elf_hwcap, compat_elf_hwcap2;
@@ -54,7 +54,7 @@ extern unsigned int compat_elf_hwcap, compat_elf_hwcap2;
 
 enum {
CAP_HWCAP = 1,
-#ifdef CONFIG_COMPAT
+#ifdef CONFIG_AARCH32_EL0
CAP_COMPAT_HWCAP,
CAP_COMPAT_HWCAP2,
 #endif
diff --git a/arch/arm64/include/asm/processor.h 
b/arch/arm64/include/asm/processor.h
index df2e53d..6173a7b 100644
--- a/arch/arm64/include/asm/processor.h
+++ b/arch/arm64/include/asm/processor.h
@@ -79,7 +79,7 @@ struct cpu_context {
 struct thread_struct {
struct cpu_context  cpu_context;/* cpu context */
unsigned long   tp_value;   /* TLS register */
-#ifdef CONFIG_COMPAT
+#ifdef CONFIG_AARCH32_EL0
unsigned long   tp2_value;
 #endif
struct fpsimd_state fpsimd_state;
@@ -88,7 +88,7 @@ struct thread_struct {
struct debug_info   debug;  /* debugging */
 };
 
-#ifdef CONFIG_COMPAT
+#ifdef CONFIG_AARCH32_EL0
 #define task_user_tls(t)   \
 ({ \
unsigned long *__tls; 

Re: [PATCH] [linux-next] Doc: dm raid: Fix typo in dm-raid.txt

2016-10-21 Thread Jonathan Corbet
On Mon, 17 Oct 2016 21:17:10 +0900
Masanari Iida  wrote:

> This patch fix spelling typos in Documentation/device-mapper/dm-raid.txt.

Applied to the docs tree, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Documentation/trace/uprobetracer.txt: fix incorrect examples

2016-10-21 Thread Jonathan Corbet
On Thu, 6 Oct 2016 09:52:12 +0200
Marcin Nowakowski  wrote:

> Current uprobetracer examples don't work as they use an incorrect syntax
> - if no event name is specified then 'p/r' must not be followed by a
>   colon
> - if no event name is specified then the default event name will have a
>   'p_' prefix, so use that in the '-' example as well

Applied to the docs tree, thanks.

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 18/18] arm64:ilp32: add ARM64_ILP32 to Kconfig

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

This patch adds the config option for ILP32.

Signed-off-by: Andrew Pinski 
Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Yury Norov 
Reviewed-by: David Daney 
---
 arch/arm64/Kconfig | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 9efa86a..07e177f 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -996,7 +996,7 @@ source "fs/Kconfig.binfmt"
 
 config COMPAT
bool
-   depends on AARCH32_EL0
+   depends on AARCH32_EL0 || ARM64_ILP32
 
 config AARCH32_EL0
bool "Kernel support for 32-bit EL0"
@@ -1018,6 +1018,14 @@ config AARCH32_EL0
 
  If you want to execute 32-bit userspace applications, say Y.
 
+config ARM64_ILP32
+   bool "Kernel support for ILP32"
+   select COMPAT
+   help
+ This option enables support for AArch64 ILP32 user space.  ILP32
+ is an ABI where long and pointers are 32bits but it uses the AARCH64
+ instruction set.
+
 config SYSVIPC_COMPAT
def_bool y
depends on COMPAT && SYSVIPC
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 05/18] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

Define __BITS_PER_LONG depending on the ABI used (i.e. check whether
__ILP32__ or __LP64__ is defined).  This is necessary for glibc to
determine the appropriate type definitions for the system call interface.

Signed-off-by: Andrew Pinski 
Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Yury Norov 
Reviewed-by: David Daney 
---
 arch/arm64/include/uapi/asm/bitsperlong.h | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/include/uapi/asm/bitsperlong.h 
b/arch/arm64/include/uapi/asm/bitsperlong.h
index fce9c29..ab61d68 100644
--- a/arch/arm64/include/uapi/asm/bitsperlong.h
+++ b/arch/arm64/include/uapi/asm/bitsperlong.h
@@ -16,7 +16,14 @@
 #ifndef __ASM_BITSPERLONG_H
 #define __ASM_BITSPERLONG_H
 
-#define __BITS_PER_LONG 64
+#if defined(__LP64__)
+/* Assuming __LP64__ will be defined for native ELF64's and not for ILP32. */
+# define __BITS_PER_LONG 64
+#elif defined(__ILP32__)
+# define __BITS_PER_LONG 32
+#else
+# error "Neither LP64 nor ILP32: unsupported ABI in asm/bitsperlong.h"
+#endif
 
 #include 
 
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 14/18] arm64: signal32: move ilp32 and aarch32 common code to separated file

2016-10-21 Thread Yury Norov
Signed-off-by: Yury Norov 
---
 arch/arm64/include/asm/signal32.h|   3 +
 arch/arm64/include/asm/signal32_common.h |  27 +++
 arch/arm64/kernel/Makefile   |   2 +-
 arch/arm64/kernel/signal32.c | 107 
 arch/arm64/kernel/signal32_common.c  | 135 +++
 5 files changed, 166 insertions(+), 108 deletions(-)
 create mode 100644 arch/arm64/include/asm/signal32_common.h
 create mode 100644 arch/arm64/kernel/signal32_common.c

diff --git a/arch/arm64/include/asm/signal32.h 
b/arch/arm64/include/asm/signal32.h
index e68fcce..1c4ede7 100644
--- a/arch/arm64/include/asm/signal32.h
+++ b/arch/arm64/include/asm/signal32.h
@@ -13,6 +13,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see .
  */
+
+#include 
+
 #ifndef __ASM_SIGNAL32_H
 #define __ASM_SIGNAL32_H
 
diff --git a/arch/arm64/include/asm/signal32_common.h 
b/arch/arm64/include/asm/signal32_common.h
new file mode 100644
index 000..36c1ebc
--- /dev/null
+++ b/arch/arm64/include/asm/signal32_common.h
@@ -0,0 +1,27 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+#ifndef __ASM_SIGNAL32_COMMON_H
+#define __ASM_SIGNAL32_COMMON_H
+
+#ifdef CONFIG_COMPAT
+
+int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from);
+int copy_siginfo_from_user32(siginfo_t *to, compat_siginfo_t __user *from);
+
+int put_sigset_t(compat_sigset_t __user *uset, sigset_t *set);
+int get_sigset_t(sigset_t *set, const compat_sigset_t __user *uset);
+
+#endif /* CONFIG_COMPAT*/
+
+#endif /* __ASM_SIGNAL32_COMMON_H */
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index 06070f5..fdc0052 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -30,7 +30,7 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
   sys_compat.o entry32.o binfmt_elf32.o
 arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o sys_ilp32.o
-arm64-obj-$(CONFIG_COMPAT) += entry32_common.o
+arm64-obj-$(CONFIG_COMPAT) += entry32_common.o signal32_common.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
 arm64-obj-$(CONFIG_ARM64_MODULE_PLTS)  += module-plts.o
diff --git a/arch/arm64/kernel/signal32.c b/arch/arm64/kernel/signal32.c
index b7063de..f2c1a38 100644
--- a/arch/arm64/kernel/signal32.c
+++ b/arch/arm64/kernel/signal32.c
@@ -103,113 +103,6 @@ struct compat_rt_sigframe {
 
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 
-static inline int put_sigset_t(compat_sigset_t __user *uset, sigset_t *set)
-{
-   compat_sigset_t cset;
-
-   cset.sig[0] = set->sig[0] & 0xull;
-   cset.sig[1] = set->sig[0] >> 32;
-
-   return copy_to_user(uset, , sizeof(*uset));
-}
-
-static inline int get_sigset_t(sigset_t *set,
-  const compat_sigset_t __user *uset)
-{
-   compat_sigset_t s32;
-
-   if (copy_from_user(, uset, sizeof(*uset)))
-   return -EFAULT;
-
-   set->sig[0] = s32.sig[0] | (((long)s32.sig[1]) << 32);
-   return 0;
-}
-
-int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from)
-{
-   int err;
-
-   if (!access_ok(VERIFY_WRITE, to, sizeof(*to)))
-   return -EFAULT;
-
-   /* If you change siginfo_t structure, please be sure
-* this code is fixed accordingly.
-* It should never copy any pad contained in the structure
-* to avoid security leaks, but must copy the generic
-* 3 ints plus the relevant union member.
-* This routine must convert siginfo from 64bit to 32bit as well
-* at the same time.
-*/
-   err = __put_user(from->si_signo, >si_signo);
-   err |= __put_user(from->si_errno, >si_errno);
-   err |= __put_user((short)from->si_code, >si_code);
-   if (from->si_code < 0)
-   err |= __copy_to_user(>_sifields._pad, 
>_sifields._pad,
- SI_PAD_SIZE);
-   else switch (from->si_code & __SI_MASK) {
-   case __SI_KILL:
-   err |= __put_user(from->si_pid, >si_pid);
-   err |= 

[PATCH 12/18] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-10-21 Thread Yury Norov
From: Andrew Pinski 

Add a separate syscall-table for ILP32, which dispatches either to native
LP64 system call implementation or to compat-syscalls, as appropriate.

Signed-off-by: Andrew Pinski 
Signed-off-by: Yury Norov 
Signed-off-by: Bamvor Zhang Jian 
---
 arch/arm64/include/asm/unistd.h  |   8 ++-
 arch/arm64/include/uapi/asm/unistd.h |  12 +
 arch/arm64/kernel/Makefile   |   2 +-
 arch/arm64/kernel/entry.S|  28 +-
 arch/arm64/kernel/sys_ilp32.c| 100 +++
 5 files changed, 145 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm64/kernel/sys_ilp32.c

diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h
index fe9d6c1..851cc8a 100644
--- a/arch/arm64/include/asm/unistd.h
+++ b/arch/arm64/include/asm/unistd.h
@@ -13,13 +13,17 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see .
  */
+
+#ifdef CONFIG_COMPAT
+#define __ARCH_WANT_COMPAT_STAT64
+#define __ARCH_WANT_SYS_LLSEEK
+#endif
+
 #ifdef CONFIG_AARCH32_EL0
 #define __ARCH_WANT_COMPAT_SYS_GETDENTS64
-#define __ARCH_WANT_COMPAT_STAT64
 #define __ARCH_WANT_SYS_GETHOSTNAME
 #define __ARCH_WANT_SYS_PAUSE
 #define __ARCH_WANT_SYS_GETPGRP
-#define __ARCH_WANT_SYS_LLSEEK
 #define __ARCH_WANT_SYS_NICE
 #define __ARCH_WANT_SYS_SIGPENDING
 #define __ARCH_WANT_SYS_SIGPROCMASK
diff --git a/arch/arm64/include/uapi/asm/unistd.h 
b/arch/arm64/include/uapi/asm/unistd.h
index 043d17a..b4cd688 100644
--- a/arch/arm64/include/uapi/asm/unistd.h
+++ b/arch/arm64/include/uapi/asm/unistd.h
@@ -14,6 +14,18 @@
  * along with this program.  If not, see .
  */
 
+/*
+ * Use AARCH32 interface for sys_sync_file_range() as it passes 64-bit 
arguments.
+ */
+#if defined(__ILP32__) || defined(__SYSCALL_COMPAT)
+#define __ARCH_WANT_SYNC_FILE_RANGE2
+#endif
+
+/*
+ * AARCH64/ILP32 is introduced after renameat() was replaced with renameat2().
+ */
+#if !(defined(__ILP32__) || defined(__SYSCALL_COMPAT))
 #define __ARCH_WANT_RENAMEAT
+#endif
 
 #include 
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index 9123bb8..06070f5 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -29,7 +29,7 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
 
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
   sys_compat.o entry32.o binfmt_elf32.o
-arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o
+arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o sys_ilp32.o
 arm64-obj-$(CONFIG_COMPAT) += entry32_common.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index b6fb14b..b152aab 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -249,6 +249,23 @@ tsk.reqx28 // current thread_info
 
.text
 
+#ifdef CONFIG_ARM64_ILP32
+/*
+ * AARCH64/ILP32. Zero top halves of x0-x7
+ * registers as userspace may put garbage there.
+ */
+   .macro  delouse_input_regs
+   mov w0, w0
+   mov w1, w1
+   mov w2, w2
+   mov w3, w3
+   mov w4, w4
+   mov w5, w5
+   mov w6, w6
+   mov w7, w7
+   .endm
+#endif
+
 /*
  * Exception vectors.
  */
@@ -517,6 +534,7 @@ el0_svc_compat:
 * AArch32 syscall handling
 */
adrpstbl, compat_sys_call_table // load compat syscall table 
pointer
+   ldr x16, [tsk, #TI_FLAGS]
uxtwscno, w7// syscall number in w7 (r7)
mov sc_nr, #__NR_compat_syscalls
b   el0_svc_naked
@@ -739,15 +757,21 @@ ENDPROC(ret_from_fork)
.align  6
 el0_svc:
adrpstbl, sys_call_table// load syscall table pointer
+   ldr x16, [tsk, #TI_FLAGS]
uxtwscno, w8// syscall number in w8
mov sc_nr, #__NR_syscalls
+#ifdef CONFIG_ARM64_ILP32
+   tst x16, #_TIF_32BIT_AARCH64
+   b.eqel0_svc_naked   // We are using LP64  syscall 
table
+   adrpstbl, sys_call_ilp32_table  // load ilp32 syscall table 
pointer
+   delouse_input_regs
+#endif
 el0_svc_naked: // compat entry point
stp x0, scno, [sp, #S_ORIG_X0]  // save the original x0 and 
syscall number
enable_dbg_and_irq
ct_user_exit 1
 
-   ldr x16, [tsk, #TI_FLAGS]   // check for syscall hooks
-   tst x16, #_TIF_SYSCALL_WORK
+   tst x16, #_TIF_SYSCALL_WORK // check for syscall hooks
b.ne__sys_trace
cmp scno, sc_nr  

[PATCH 07/18] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2016-10-21 Thread Yury Norov
Based on patch of Andrew Pinski.

This patch introduces is_a32_compat_task and is_a32_thread so it is
easier to say this is a a32 specific thread or a generic compat thread/task.
Corresponding functions are located in  to avoid mess in
headers.

Some files include both  and ,
and this is wrong because  has  already
included. It was fixed too.

Signed-off-by: Yury Norov 
Signed-off-by: Andrew Pinski 
Signed-off-by: Bamvor Zhang Jian 
---
 arch/arm64/include/asm/compat.h  | 19 ++-
 arch/arm64/include/asm/elf.h | 10 +++---
 arch/arm64/include/asm/ftrace.h  |  2 +-
 arch/arm64/include/asm/is_compat.h   | 64 
 arch/arm64/include/asm/memory.h  |  5 +--
 arch/arm64/include/asm/processor.h   |  5 +--
 arch/arm64/include/asm/syscall.h |  2 +-
 arch/arm64/include/asm/thread_info.h |  2 +-
 arch/arm64/kernel/hw_breakpoint.c| 10 +++---
 arch/arm64/kernel/perf_regs.c|  2 +-
 arch/arm64/kernel/process.c  |  7 ++--
 arch/arm64/kernel/ptrace.c   | 11 +++
 arch/arm64/kernel/signal.c   |  4 +--
 arch/arm64/kernel/traps.c|  3 +-
 14 files changed, 98 insertions(+), 48 deletions(-)
 create mode 100644 arch/arm64/include/asm/is_compat.h

diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h
index eb8432b..df2f72d 100644
--- a/arch/arm64/include/asm/compat.h
+++ b/arch/arm64/include/asm/compat.h
@@ -24,6 +24,8 @@
 #include 
 #include 
 
+#include 
+
 #define COMPAT_USER_HZ 100
 #ifdef __AARCH64EB__
 #define COMPAT_UTS_MACHINE "armv8b\0\0"
@@ -298,23 +300,6 @@ struct compat_shmid64_ds {
compat_ulong_t __unused5;
 };
 
-static inline int is_compat_task(void)
-{
-   return test_thread_flag(TIF_32BIT);
-}
-
-static inline int is_compat_thread(struct thread_info *thread)
-{
-   return test_ti_thread_flag(thread, TIF_32BIT);
-}
-
-#else /* !CONFIG_COMPAT */
-
-static inline int is_compat_thread(struct thread_info *thread)
-{
-   return 0;
-}
-
 #endif /* CONFIG_COMPAT */
 #endif /* __KERNEL__ */
 #endif /* __ASM_COMPAT_H */
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h
index a55384f..6a9049b 100644
--- a/arch/arm64/include/asm/elf.h
+++ b/arch/arm64/include/asm/elf.h
@@ -16,6 +16,10 @@
 #ifndef __ASM_ELF_H
 #define __ASM_ELF_H
 
+#ifndef __ASSEMBLY__
+#include 
+#endif
+
 #include 
 
 /*
@@ -153,13 +157,9 @@ extern int arch_setup_additional_pages(struct linux_binprm 
*bprm,
   int uses_interp);
 
 /* 1GB of VA */
-#ifdef CONFIG_COMPAT
-#define STACK_RND_MASK (test_thread_flag(TIF_32BIT) ? \
+#define STACK_RND_MASK (is_compat_task() ? \
0x7ff >> (PAGE_SHIFT - 12) : \
0x3 >> (PAGE_SHIFT - 12))
-#else
-#define STACK_RND_MASK (0x3 >> (PAGE_SHIFT - 12))
-#endif
 
 #ifdef __AARCH64EB__
 #define COMPAT_ELF_PLATFORM("v8b")
diff --git a/arch/arm64/include/asm/ftrace.h b/arch/arm64/include/asm/ftrace.h
index caa955f..0feb28a 100644
--- a/arch/arm64/include/asm/ftrace.h
+++ b/arch/arm64/include/asm/ftrace.h
@@ -54,7 +54,7 @@ static inline unsigned long ftrace_call_adjust(unsigned long 
addr)
 #define ARCH_TRACE_IGNORE_COMPAT_SYSCALLS
 static inline bool arch_trace_is_compat_syscall(struct pt_regs *regs)
 {
-   return is_compat_task();
+   return is_a32_compat_task();
 }
 #endif /* ifndef __ASSEMBLY__ */
 
diff --git a/arch/arm64/include/asm/is_compat.h 
b/arch/arm64/include/asm/is_compat.h
new file mode 100644
index 000..8dba5ca
--- /dev/null
+++ b/arch/arm64/include/asm/is_compat.h
@@ -0,0 +1,64 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+#ifndef __ASM_IS_COMPAT_H
+#define __ASM_IS_COMPAT_H
+#ifndef __ASSEMBLY__
+
+#include 
+
+#ifdef CONFIG_AARCH32_EL0
+
+static inline int is_a32_compat_task(void)
+{
+   return test_thread_flag(TIF_32BIT);
+}
+
+static inline int is_a32_compat_thread(struct thread_info *thread)
+{
+   return test_ti_thread_flag(thread, TIF_32BIT);
+}
+
+#else
+
+static inline int is_a32_compat_task(void)
+
+{
+   return 0;
+}
+
+static inline int is_a32_compat_thread(struct thread_info *thread)
+{
+   return 0;
+}
+
+#endif /* CONFIG_AARCH32_EL0 */
+
+#ifdef 

[PATCH 08/18] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2016-10-21 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32.
This patch adds helper functions is_ilp32_compat_{task,thread} and
thread flag TIF_32BIT_AARCH64 to address it. This is a preparation
for following patches in ilp32 patchset.

For consistency, SET_PERSONALITY is changed here accordingly.

Signed-off-by: Andrew Pinski 
Signed-off-by: Philipp Tomsich 
Signed-off-by: Christoph Muellner 
Signed-off-by: Yury Norov 
Reviewed-by: David Daney 
---
 arch/arm64/include/asm/elf.h | 13 +++--
 arch/arm64/include/asm/is_compat.h   | 30 --
 arch/arm64/include/asm/thread_info.h |  2 ++
 3 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h
index 6a9049b..f259fe8 100644
--- a/arch/arm64/include/asm/elf.h
+++ b/arch/arm64/include/asm/elf.h
@@ -142,7 +142,11 @@ typedef struct user_fpsimd_state elf_fpregset_t;
  */
 #define ELF_PLAT_INIT(_r, load_addr)   (_r)->regs[0] = 0
 
-#define SET_PERSONALITY(ex)clear_thread_flag(TIF_32BIT);
+#define SET_PERSONALITY(ex)\
+do {   \
+   clear_thread_flag(TIF_32BIT_AARCH64);   \
+   clear_thread_flag(TIF_32BIT);   \
+} while (0)
 
 /* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
 #define ARCH_DLINFO\
@@ -183,7 +187,12 @@ typedef compat_elf_greg_t  
compat_elf_gregset_t[COMPAT_ELF_NGREG];
 ((x)->e_flags & EF_ARM_EABI_MASK))
 
 #define compat_start_threadcompat_start_thread
-#define COMPAT_SET_PERSONALITY(ex) set_thread_flag(TIF_32BIT);
+#define COMPAT_SET_PERSONALITY(ex) \
+do {   \
+   clear_thread_flag(TIF_32BIT_AARCH64);   \
+   set_thread_flag(TIF_32BIT); \
+} while (0)
+
 #define COMPAT_ARCH_DLINFO
 extern int aarch32_setup_vectors_page(struct linux_binprm *bprm,
  int uses_interp);
diff --git a/arch/arm64/include/asm/is_compat.h 
b/arch/arm64/include/asm/is_compat.h
index 8dba5ca..7726beb 100644
--- a/arch/arm64/include/asm/is_compat.h
+++ b/arch/arm64/include/asm/is_compat.h
@@ -45,18 +45,44 @@ static inline int is_a32_compat_thread(struct thread_info 
*thread)
 
 #endif /* CONFIG_AARCH32_EL0 */
 
+#ifdef CONFIG_ARM64_ILP32
+
+static inline int is_ilp32_compat_task(void)
+{
+   return test_thread_flag(TIF_32BIT_AARCH64);
+}
+
+static inline int is_ilp32_compat_thread(struct thread_info *thread)
+{
+   return test_ti_thread_flag(thread, TIF_32BIT_AARCH64);
+}
+
+#else
+
+static inline int is_ilp32_compat_task(void)
+{
+   return 0;
+}
+
+static inline int is_ilp32_compat_thread(struct thread_info *thread)
+{
+   return 0;
+}
+
+#endif /* CONFIG_ARM64_ILP32 */
+
 #ifdef CONFIG_COMPAT
 
 static inline int is_compat_task(void)
 {
-   return is_a32_compat_task();
+   return is_a32_compat_task() || is_ilp32_compat_task();
 }
 
 #endif /* CONFIG_COMPAT */
 
 static inline int is_compat_thread(struct thread_info *thread)
 {
-   return is_a32_compat_thread(thread);
+   return is_a32_compat_thread(thread) || is_ilp32_compat_thread(thread);
 }
 
 
diff --git a/arch/arm64/include/asm/thread_info.h 
b/arch/arm64/include/asm/thread_info.h
index e12411f..680aca5 100644
--- a/arch/arm64/include/asm/thread_info.h
+++ b/arch/arm64/include/asm/thread_info.h
@@ -122,6 +122,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_RESTORE_SIGMASK20
 #define TIF_SINGLESTEP 21
 #define TIF_32BIT  22  /* AARCH32 process */
+#define TIF_32BIT_AARCH64  23  /* 32 bit process on AArch64(ILP32) */
 
 #define _TIF_SIGPENDING(1 << TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED  (1 << TIF_NEED_RESCHED)
@@ -133,6 +134,7 @@ static inline struct thread_info *current_thread_info(void)
 #define _TIF_SYSCALL_TRACEPOINT(1 << TIF_SYSCALL_TRACEPOINT)
 #define _TIF_SECCOMP   (1 << TIF_SECCOMP)
 #define _TIF_32BIT (1 << TIF_32BIT)
+#define _TIF_32BIT_AARCH64 (1 << TIF_32BIT_AARCH64)
 
 #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
 _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE)
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 01/18] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-10-21 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing
architectures has 32-bit ones.

To handle it, new config option is added to arch/Kconfig that defaults
ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing
32-bit architectures enable it explicitly here.

New option affects force_o_largefile() behaviour. Namely, if off_t is
64-bits long, we have no reason to reject user to open big files.

For syscalls sys_openat() and sys_open_by_handle_at() force_o_largefile()
is called, to set O_LARGEFILE flag, and this is the only difference
comparing to compat versions. All compat ABIs are already turned to use
64-bit off_t, except tile. So, compat versions for this syscalls are not
needed anymore. Tile is handled explicitly.

Note that even if architectures has only 64-bit off_t in the kernel
(arc, c6x, h8300, hexagon, metag, nios2, openrisc, tile32 and unicore32),
a libc may use 32-bit off_t, and therefore want to limit the file size
to 4GB unless specified differently in the open flags.

Signed-off-by: Yury Norov 
---
 arch/Kconfig  | 4 
 arch/arc/Kconfig  | 1 +
 arch/arm/Kconfig  | 1 +
 arch/blackfin/Kconfig | 1 +
 arch/cris/Kconfig | 1 +
 arch/frv/Kconfig  | 1 +
 arch/h8300/Kconfig| 1 +
 arch/hexagon/Kconfig  | 1 +
 arch/m32r/Kconfig | 1 +
 arch/m68k/Kconfig | 1 +
 arch/metag/Kconfig| 1 +
 arch/microblaze/Kconfig   | 1 +
 arch/mips/Kconfig | 1 +
 arch/mn10300/Kconfig  | 1 +
 arch/nios2/Kconfig| 1 +
 arch/openrisc/Kconfig | 1 +
 arch/parisc/Kconfig   | 1 +
 arch/powerpc/Kconfig  | 1 +
 arch/score/Kconfig| 1 +
 arch/sh/Kconfig   | 1 +
 arch/sparc/Kconfig| 1 +
 arch/tile/Kconfig | 1 +
 arch/tile/kernel/compat.c | 3 +++
 arch/unicore32/Kconfig| 1 +
 arch/x86/Kconfig  | 1 +
 arch/x86/um/Kconfig   | 1 +
 arch/xtensa/Kconfig   | 1 +
 include/linux/fcntl.h | 2 +-
 include/uapi/asm-generic/unistd.h | 5 ++---
 29 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 659bdd0..ec06a71 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -234,6 +234,10 @@ config ARCH_THREAD_STACK_ALLOCATOR
 config ARCH_WANTS_DYNAMIC_TASK_STRUCT
bool
 
+config ARCH_32BIT_OFF_T
+   bool
+   depends on !64BIT
+
 config HAVE_REGS_AND_STACK_ACCESS_API
bool
help
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index ecd1237..3e8dfd6 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -9,6 +9,7 @@
 config ARC
def_bool y
select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
+   select ARCH_32BIT_OFF_T
select BUILDTIME_EXTABLE_SORT
select CLKSRC_OF
select CLONE_BACKWARDS
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b5d529f..ff8b8b2 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1,6 +1,7 @@
 config ARM
bool
default y
+   select ARCH_32BIT_OFF_T
select ARCH_CLOCKSOURCE_DATA
select ARCH_HAS_DEVMEM_IS_ALLOWED
select ARCH_HAS_ELF_RANDOMIZE
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index 3c1bd64..26418e7 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -12,6 +12,7 @@ config RWSEM_XCHGADD_ALGORITHM
 
 config BLACKFIN
def_bool y
+   select ARCH_32BIT_OFF_T
select HAVE_ARCH_KGDB
select HAVE_ARCH_TRACEHOOK
select HAVE_DYNAMIC_FTRACE
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig
index 71b758d..8c059f0 100644
--- a/arch/cris/Kconfig
+++ b/arch/cris/Kconfig
@@ -50,6 +50,7 @@ config LOCKDEP_SUPPORT
 config CRIS
bool
default y
+   select ARCH_32BIT_OFF_T
select HAVE_IDE
select GENERIC_ATOMIC64
select HAVE_UID16
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig
index eefd9a4..2f14904 100644
--- a/arch/frv/Kconfig
+++ b/arch/frv/Kconfig
@@ -1,6 +1,7 @@
 config FRV
bool
default y
+   select ARCH_32BIT_OFF_T
select HAVE_IDE
select HAVE_ARCH_TRACEHOOK
select HAVE_PERF_EVENTS
diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig
index 3ae8525..29bbcb1 100644
--- a/arch/h8300/Kconfig
+++ b/arch/h8300/Kconfig
@@ -1,5 +1,6 @@
 config H8300
 def_bool y
+   select ARCH_32BIT_OFF_T
select GENERIC_ATOMIC64
select HAVE_UID16
select VIRT_TO_BUS
diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig
index 1941e4b..bbcea8c 100644
--- a/arch/hexagon/Kconfig
+++ b/arch/hexagon/Kconfig
@@ -3,6 +3,7 @@ comment "Linux Kernel Configuration for Hexagon"
 
 config HEXAGON
def_bool y
+   select ARCH_32BIT_OFF_T
select HAVE_OPROFILE
# 

[PATCH 06/18] thread: move thread bits accessors to separated file

2016-10-21 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to
avoid circular dependencies in header files.

The exact reason for circular dependency is WARN_ON() macro added
in patch [edd63a27] "set_restore_sigmask() is never called without
SIGPENDING (and never should be)"

Signed-off-by: Yury Norov 
---
 include/linux/thread_bits.h | 54 +
 include/linux/thread_info.h | 44 +---
 2 files changed, 55 insertions(+), 43 deletions(-)
 create mode 100644 include/linux/thread_bits.h

diff --git a/include/linux/thread_bits.h b/include/linux/thread_bits.h
new file mode 100644
index 000..ed788b0
--- /dev/null
+++ b/include/linux/thread_bits.h
@@ -0,0 +1,54 @@
+
+/* thread_bits.h: common low-level thread bits accessors */
+
+#ifndef _LINUX_THREAD_BITS_H
+#define _LINUX_THREAD_BITS_H
+
+#ifndef __ASSEMBLY__
+
+#include 
+#include 
+
+/*
+ * flag set/clear/test wrappers
+ * - pass TIF_ constants to these functions
+ */
+
+static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
+{
+   set_bit(flag, (unsigned long *)>flags);
+}
+
+static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
+{
+   clear_bit(flag, (unsigned long *)>flags);
+}
+
+static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
+{
+   return test_and_set_bit(flag, (unsigned long *)>flags);
+}
+
+static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int 
flag)
+{
+   return test_and_clear_bit(flag, (unsigned long *)>flags);
+}
+
+static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
+{
+   return test_bit(flag, (unsigned long *)>flags);
+}
+
+#define set_thread_flag(flag) \
+   set_ti_thread_flag(current_thread_info(), flag)
+#define clear_thread_flag(flag) \
+   clear_ti_thread_flag(current_thread_info(), flag)
+#define test_and_set_thread_flag(flag) \
+   test_and_set_ti_thread_flag(current_thread_info(), flag)
+#define test_and_clear_thread_flag(flag) \
+   test_and_clear_ti_thread_flag(current_thread_info(), flag)
+#define test_thread_flag(flag) \
+   test_ti_thread_flag(current_thread_info(), flag)
+
+#endif /* !__ASSEMBLY__ */
+#endif /* _LINUX_THREAD_BITS_H */
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h
index 45f004e..f6e3239 100644
--- a/include/linux/thread_info.h
+++ b/include/linux/thread_info.h
@@ -65,8 +65,7 @@ struct restart_block {
 
 extern long do_no_restart_syscall(struct restart_block *parm);
 
-#include 
-#include 
+#include 
 
 #ifdef __KERNEL__
 
@@ -77,47 +76,6 @@ extern long do_no_restart_syscall(struct restart_block 
*parm);
 # define THREADINFO_GFP(GFP_KERNEL_ACCOUNT | __GFP_NOTRACK)
 #endif
 
-/*
- * flag set/clear/test wrappers
- * - pass TIF_ constants to these functions
- */
-
-static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
-{
-   set_bit(flag, (unsigned long *)>flags);
-}
-
-static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
-{
-   clear_bit(flag, (unsigned long *)>flags);
-}
-
-static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
-{
-   return test_and_set_bit(flag, (unsigned long *)>flags);
-}
-
-static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int 
flag)
-{
-   return test_and_clear_bit(flag, (unsigned long *)>flags);
-}
-
-static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
-{
-   return test_bit(flag, (unsigned long *)>flags);
-}
-
-#define set_thread_flag(flag) \
-   set_ti_thread_flag(current_thread_info(), flag)
-#define clear_thread_flag(flag) \
-   clear_ti_thread_flag(current_thread_info(), flag)
-#define test_and_set_thread_flag(flag) \
-   test_and_set_ti_thread_flag(current_thread_info(), flag)
-#define test_and_clear_thread_flag(flag) \
-   test_and_clear_ti_thread_flag(current_thread_info(), flag)
-#define test_thread_flag(flag) \
-   test_ti_thread_flag(current_thread_info(), flag)
-
 #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
 
 #ifndef CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 11/18] arm64: ilp32: share aarch32 syscall handlers

2016-10-21 Thread Yury Norov
off_t is  passed in register pair just like in aarch32.
In this patch corresponding aarch32 handlers are shared to
ilp32 code.

Signed-off-by: Yury Norov 
---
 arch/arm64/kernel/Makefile |   1 +
 arch/arm64/kernel/entry32.S|  80 ---
 arch/arm64/kernel/entry32_common.S | 107 +
 3 files changed, 108 insertions(+), 80 deletions(-)
 create mode 100644 arch/arm64/kernel/entry32_common.S

diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index f661888..9123bb8 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -30,6 +30,7 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
   sys_compat.o entry32.o binfmt_elf32.o
 arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o
+arm64-obj-$(CONFIG_COMPAT) += entry32_common.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
 arm64-obj-$(CONFIG_ARM64_MODULE_PLTS)  += module-plts.o
diff --git a/arch/arm64/kernel/entry32.S b/arch/arm64/kernel/entry32.S
index f332d5d..4bede03 100644
--- a/arch/arm64/kernel/entry32.S
+++ b/arch/arm64/kernel/entry32.S
@@ -39,83 +39,3 @@ ENTRY(compat_sys_rt_sigreturn_wrapper)
mov x0, sp
b   compat_sys_rt_sigreturn
 ENDPROC(compat_sys_rt_sigreturn_wrapper)
-
-ENTRY(compat_sys_statfs64_wrapper)
-   mov w3, #84
-   cmp w1, #88
-   cselw1, w3, w1, eq
-   b   compat_sys_statfs64
-ENDPROC(compat_sys_statfs64_wrapper)
-
-ENTRY(compat_sys_fstatfs64_wrapper)
-   mov w3, #84
-   cmp w1, #88
-   cselw1, w3, w1, eq
-   b   compat_sys_fstatfs64
-ENDPROC(compat_sys_fstatfs64_wrapper)
-
-/*
- * Note: off_4k (w5) is always in units of 4K. If we can't do the
- * requested offset because it is not page-aligned, we return -EINVAL.
- */
-ENTRY(compat_sys_mmap2_wrapper)
-#if PAGE_SHIFT > 12
-   tst w5, #~PAGE_MASK >> 12
-   b.ne1f
-   lsr w5, w5, #PAGE_SHIFT - 12
-#endif
-   b   sys_mmap_pgoff
-1: mov x0, #-EINVAL
-   ret
-ENDPROC(compat_sys_mmap2_wrapper)
-
-/*
- * Wrappers for AArch32 syscalls that either take 64-bit parameters
- * in registers or that take 32-bit parameters which require sign
- * extension.
- */
-ENTRY(compat_sys_pread64_wrapper)
-   regs_to_64  x3, x4, x5
-   b   sys_pread64
-ENDPROC(compat_sys_pread64_wrapper)
-
-ENTRY(compat_sys_pwrite64_wrapper)
-   regs_to_64  x3, x4, x5
-   b   sys_pwrite64
-ENDPROC(compat_sys_pwrite64_wrapper)
-
-ENTRY(compat_sys_truncate64_wrapper)
-   regs_to_64  x1, x2, x3
-   b   sys_truncate
-ENDPROC(compat_sys_truncate64_wrapper)
-
-ENTRY(compat_sys_ftruncate64_wrapper)
-   regs_to_64  x1, x2, x3
-   b   sys_ftruncate
-ENDPROC(compat_sys_ftruncate64_wrapper)
-
-ENTRY(compat_sys_readahead_wrapper)
-   regs_to_64  x1, x2, x3
-   mov w2, w4
-   b   sys_readahead
-ENDPROC(compat_sys_readahead_wrapper)
-
-ENTRY(compat_sys_fadvise64_64_wrapper)
-   mov w6, w1
-   regs_to_64  x1, x2, x3
-   regs_to_64  x2, x4, x5
-   mov w3, w6
-   b   sys_fadvise64_64
-ENDPROC(compat_sys_fadvise64_64_wrapper)
-
-ENTRY(compat_sys_sync_file_range2_wrapper)
-   regs_to_64  x2, x2, x3
-   regs_to_64  x3, x4, x5
-   b   sys_sync_file_range2
-ENDPROC(compat_sys_sync_file_range2_wrapper)
-
-ENTRY(compat_sys_fallocate_wrapper)
-   regs_to_64  x2, x2, x3
-   regs_to_64  x3, x4, x5
-   b   sys_fallocate
-ENDPROC(compat_sys_fallocate_wrapper)
diff --git a/arch/arm64/kernel/entry32_common.S 
b/arch/arm64/kernel/entry32_common.S
new file mode 100644
index 000..f4a5e4d
--- /dev/null
+++ b/arch/arm64/kernel/entry32_common.S
@@ -0,0 +1,107 @@
+/*
+ * Compat system call wrappers
+ *
+ * Copyright (C) 2012 ARM Ltd.
+ * Authors: Will Deacon 
+ * Catalin Marinas 
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see .
+ */
+
+#include 
+#include 
+
+#include 
+#include 
+#include 
+#include 
+
+/*
+ * Note: off_4k (w5) is always in units of 4K. If we can't do the
+ * requested offset because it is not 

[PATCH 02/18] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2016-10-21 Thread Yury Norov
Based on Andrew Pinski's patch-series.

Signed-off-by: Yury Norov 
---
 Documentation/arm64/ilp32.txt | 46 +++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/arm64/ilp32.txt

diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm64/ilp32.txt
new file mode 100644
index 000..b96c18f
--- /dev/null
+++ b/Documentation/arm64/ilp32.txt
@@ -0,0 +1,46 @@
+ILP32 AARCH64 SYSCALL ABI
+=
+
+This document describes the ILP32 syscall ABI and where it differs
+from the generic compat linux syscall interface.
+
+AARCH64/ILP32 userspace can potentially access top halves of registers that
+are passed as syscall arguments, so such registers (w0-w7) are deloused.
+
+AARCH64/ILP32 provides next types turned to 64-bit (comparing to AARCH32):
+ino_t   is u64 type.
+off_t   is s64 type.
+blkcnt_tis s64 type.
+fsblkcnt_t  is u64 type.
+fsfilcnt_t  is u64 type.
+rlim_t  is u64 type.
+
+AARCH64/ILP32 ABI uses standard syscall table which can be found at
+include/uapi/asm-generic/unistd.h, with the exceptions listed below.
+
+Syscalls which pass 64bit values are handled by the code shared from
+AARCH32 and pass that value as a pair. Next syscalls are affected:
+fadvise64_64()
+fallocate()
+ftruncate64()
+pread64()
+pwrite64()
+readahead()
+sync_file_range()
+truncate64()
+sys_mmap()
+
+ptrace() syscall is handled by compat version.
+
+shmat() syscall is handled by non-compat handler as aarch64/ilp32 has no
+limitation on 4-pages alignment for shared memory.
+
+statfs() and fstatfs() take the size of sfruct statfs as an argument.
+It is calculated differently in kernel and user spaces. So AARCH32 handlers
+are taken to handle it.
+
+struct rt_sigframe is redefined and contains struct compat_siginfo,
+as compat syscalls expects, and struct ilp32_sigframe, to handle
+AARCH64 register set and 32-bit userspace register representation.
+
+elf_gregset_t is taken from lp64 to handle registers properly.
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 00/12] Fix and update HOWTO Korean translation

2016-10-21 Thread Jonathan Corbet
On Sat, 22 Oct 2016 00:19:45 +0900
SeongJae Park  wrote:

> This patchset applies ReST conversion effort for HOWTO document to its Korean
> translation.  It also contains fixup of trivial nitpicks in the document and
> the translation.

Thanks for doing these; let's definitely get this work in soon.  I have
just a few comments:

- I think that bringing the (English) HOWTO into line with our posted
  conventions makes sense, I'm happy to take patches to do that.  Let's
  do that separately from the translation changes, though, and let's
  think in terms of building on Mauro's work.  Either send me a patch
  after his stuff is in, or send one for him to collect and send with the
  rest, whatever works best for everybody else.

- You do the ReST conversion, but don't take the final step and actually
  bring the document into the Sphinx world.

I've been thinking that it would be good to make a translations/
top-level directory and move the various translated documents underneath
that.  Then we could maybe make a translations/index.rst and create a
special subbook for those documents.  Make sense?

If at all possible, I'd like an ack from somebody else who understands
Korean.  Minchan, I see you on the CC, can you help out? :)  With that, I
see no reason not to apply parts 2-12.

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 10/18] arm64: ilp32: introduce binfmt_ilp32.c

2016-10-21 Thread Yury Norov
binfmt_ilp32.c is needed to handle ILP32 binaries

Signed-off-by: Yury Norov 
Signed-off-by: Bamvor Zhang Jian 
---
 arch/arm64/include/asm/elf.h |  6 +++
 arch/arm64/kernel/Makefile   |  1 +
 arch/arm64/kernel/binfmt_ilp32.c | 97 
 3 files changed, 104 insertions(+)
 create mode 100644 arch/arm64/kernel/binfmt_ilp32.c

diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h
index f259fe8..be29dde 100644
--- a/arch/arm64/include/asm/elf.h
+++ b/arch/arm64/include/asm/elf.h
@@ -175,10 +175,16 @@ extern int arch_setup_additional_pages(struct 
linux_binprm *bprm,
 
 #define COMPAT_ELF_ET_DYN_BASE (2 * TASK_SIZE_32 / 3)
 
+#ifndef USE_AARCH64_GREG
 /* AArch32 registers. */
 #define COMPAT_ELF_NGREG   18
 typedef unsigned int   compat_elf_greg_t;
 typedef compat_elf_greg_t  compat_elf_gregset_t[COMPAT_ELF_NGREG];
+#else /* AArch64 registers for AARCH64/ILP32 */
+#define COMPAT_ELF_NGREG   ELF_NGREG
+#define compat_elf_greg_t  elf_greg_t
+#define compat_elf_gregset_t   elf_gregset_t
+#endif
 
 /* AArch32 EABI. */
 #define EF_ARM_EABI_MASK   0xff00
diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index abe5040..f661888 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -29,6 +29,7 @@ $(obj)/%.stub.o: $(obj)/%.o FORCE
 
 arm64-obj-$(CONFIG_AARCH32_EL0)+= sys32.o kuser32.o signal32.o 
\
   sys_compat.o entry32.o binfmt_elf32.o
+arm64-obj-$(CONFIG_ARM64_ILP32)+= binfmt_ilp32.o
 arm64-obj-$(CONFIG_FUNCTION_TRACER)+= ftrace.o entry-ftrace.o
 arm64-obj-$(CONFIG_MODULES)+= arm64ksyms.o module.o
 arm64-obj-$(CONFIG_ARM64_MODULE_PLTS)  += module-plts.o
diff --git a/arch/arm64/kernel/binfmt_ilp32.c b/arch/arm64/kernel/binfmt_ilp32.c
new file mode 100644
index 000..759066e
--- /dev/null
+++ b/arch/arm64/kernel/binfmt_ilp32.c
@@ -0,0 +1,97 @@
+/*
+ * Support for ILP32 Linux/aarch64 ELF binaries.
+ */
+#define USE_AARCH64_GREG
+
+#include 
+#include 
+
+#undef ELF_CLASS
+#define ELF_CLASS  ELFCLASS32
+
+#undef elfhdr
+#undef elf_phdr
+#undef elf_shdr
+#undef elf_note
+#undef elf_addr_t
+#define elfhdr elf32_hdr
+#define elf_phdr   elf32_phdr
+#define elf_shdr   elf32_shdr
+#define elf_note   elf32_note
+#define elf_addr_t Elf32_Addr
+
+/*
+ * Some data types as stored in coredump.
+ */
+#define user_long_tcompat_long_t
+#define user_siginfo_t compat_siginfo_t
+#define copy_siginfo_to_user   copy_siginfo_to_user32
+
+/*
+ * The machine-dependent core note format types are defined in 
elfcore-compat.h,
+ * which requires asm/elf.h to define compat_elf_gregset_t et al.
+ */
+#define elf_prstatus   compat_elf_prstatus
+#define elf_prpsinfo   compat_elf_prpsinfo
+
+/*
+ * Compat version of cputime_to_compat_timeval, perhaps this
+ * should be an inline in .
+ */
+static void cputime_to_compat_timeval(const cputime_t cputime,
+ struct compat_timeval *value)
+{
+   struct timeval tv;
+
+   cputime_to_timeval(cputime, );
+   value->tv_sec = tv.tv_sec;
+   value->tv_usec = tv.tv_usec;
+}
+
+#undef cputime_to_timeval
+#define cputime_to_timeval cputime_to_compat_timeval
+
+/* AARCH64 ILP32 EABI. */
+#undef elf_check_arch
+#define elf_check_arch(x)  (((x)->e_machine == EM_AARCH64) \
+   && (x)->e_ident[EI_CLASS] == ELFCLASS32)
+
+#undef SET_PERSONALITY
+#define SET_PERSONALITY(ex)\
+do {   \
+   set_thread_flag(TIF_32BIT_AARCH64); \
+   clear_thread_flag(TIF_32BIT);   \
+} while (0)
+
+#undef ARCH_DLINFO
+#define ARCH_DLINFO\
+do {   \
+   NEW_AUX_ENT(AT_SYSINFO_EHDR,\
+   (elf_addr_t)(long)current->mm->context.vdso);   \
+} while (0)
+
+#undef ELF_PLATFORM
+#ifdef __AARCH64EB__
+#define ELF_PLATFORM   ("aarch64_be:ilp32")
+#else
+#define ELF_PLATFORM   ("aarch64:ilp32")
+#endif
+
+#undef ELF_ET_DYN_BASE
+#define ELF_ET_DYN_BASE COMPAT_ELF_ET_DYN_BASE
+
+#undef ELF_HWCAP
+#undef ELF_HWCAP2
+#define ELF_HWCAP  ((u32) elf_hwcap)
+#define ELF_HWCAP2 ((u32) (elf_hwcap >> 32))
+
+/*
+ * Rename a few of the symbols that binfmt_elf.c will define.
+ * These are all local so the names don't really matter, but it
+ * might make some debugging less confusing not to duplicate them.
+ */
+#define elf_format compat_elf_format
+#define init_elf_binfmt

Re: [v7, 1/3] nand: pl353: Add basic driver for arm pl353 smc nand interface

2016-10-21 Thread Jason Gunthorpe
On Mon, Jun 08, 2015 at 11:38:36PM +0530, Punnaiah Choudary Kalluri wrote:
> Add driver for arm pl353 static memory controller nand interface with
> HW ECC support. This controller is used in xilinx zynq soc for interfacing
> the nand flash memory.
> 
> Signed-off-by: Punnaiah Choudary Kalluri 
> Changes in v7:
>  - Currently not implemented the memclk rate adjustments. I will
>look into this later and once the basic driver is accepted.
>  - Fixed GPL licence ident
> Changes in v6:
>  - Fixed the checkpatch.pl reported warnings
>  - Using the address cycles information from the onfi param page
>earlier it is hardcoded to 5 in driver
> Changes in v5:
>  - Configure the nand timing parameters as per the onfi spec
> Changes in v4:
>  - Updated the driver to sync with pl353_smc driver APIs
> Changes in v3:
>  - implemented the proper error codes
>  - further breakdown this patch to multiple sets
>  - added the controller and driver details to Documentation section
>  - updated the licenece to GPLv2
>  - reorganized the pl353_nand_ecc_init function
> Changes in v2:
>  - use "depends on" rather than "select" option in kconfig
>  - remove unused variable parts
>  - remove dummy helper and use writel_relaxed directly

What is the status of getting this driver merged? I am interested in
this driver and can provide some help if there are still TODO items.

At the very least I will test it, is there something newer than v7 out
there?

Regards,
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] mac80211: use inline kernel-doc for struct ieee80211_hw

2016-10-21 Thread Johannes Berg
On Fri, 2016-10-21 at 20:59 +0200, Arend van Spriel wrote:
> Me neither. I actually found it annoying to have all kernel-doc above
> the type definition and indeed easy to miss fields. Now struct
> ieee80211_hw is not alone and we have it all over the place in the
> wireless subsystem. Is this something we want to embrace and maybe
> find janitors/newbies/coccinelle-gurus to address it. Not sure if
> coccinelle could deal with this.

I don't think coccinelle can look into comments, though perhaps it
could be used to *place* them - use kernel-doc script to extract them
first, and then make that output a coccinelle script to place the
comment back at the right spot?

Overall though, not sure that's worth it over just doing it by hand
once? Then again, that could be used to mass-convert more ... :)

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] mac80211: use inline kernel-doc for struct ieee80211_hw

2016-10-21 Thread Arend van Spriel
On 21-10-16 15:01, Johannes Berg wrote:
> On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
>> It's easier to manage the kernel-doc for the fields when they
>> documentation is next to the field.
> 
> Hah, I wasn't even aware this was possible. Thanks!

Me neither. I actually found it annoying to have all kernel-doc above
the type definition and indeed easy to miss fields. Now struct
ieee80211_hw is not alone and we have it all over the place in the
wireless subsystem. Is this something we want to embrace and maybe find
janitors/newbies/coccinelle-gurus to address it. Not sure if coccinelle
could deal with this.

Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 01/12] Documentation/HOWTO: Mark subsection in rst format

2016-10-21 Thread SeongJae Park
On Sat, Oct 22, 2016 at 2:25 AM, Mauro Carvalho Chehab
 wrote:
> Em Sat, 22 Oct 2016 01:42:00 +0900
> SeongJae Park  escreveu:
>
>> On Sat, Oct 22, 2016 at 12:45 AM, Mauro Carvalho Chehab
>>  wrote:
>> > Em Sat, 22 Oct 2016 00:19:46 +0900
>> > SeongJae Park  escreveu:
>> >
>> >> Subsections in HOWTO is not marked in rst format.  This commit specifies
>> >> them in rst format.
>> >>
>> >> Signed-off-by: SeongJae Park 
>> >> ---
>> >>  Documentation/HOWTO | 15 ++-
>> >>  1 file changed, 10 insertions(+), 5 deletions(-)
>> >
>> > There are already patches converting HOWTO to ReST applied upstream:
>>
>> This patchset is not to replace the patches but to be applied on top of the
>> patches.
>>
>> >
>> > commit 1b49ecf2f3be358882bb97652ba50ae808c0ba8f
>> > Author: Jonathan Corbet 
>> > Date:   Tue Sep 20 18:46:36 2016 -0600
>> >
>> > docs: Clean up bare :: lines
>> >
>> > Mauro's patch set introduced some bare :: lines; these can be 
>> > represented
>> > by a double colon at the end of the preceding text line.  The result 
>> > looks
>> > a little less weird and is less verbose.
>> >
>> > Signed-off-by: Jonathan Corbet 
>> >
>> > commit f1eebe92c2653e8fc3760577e53befdc9b62ef26
>> > Author: Mauro Carvalho Chehab 
>> > Date:   Mon Sep 19 08:07:59 2016 -0300
>> >
>> > Documentation/HOWTO: adjust external link references
>> >
>> > - A few link references were missing http://
>> > - Several sites are now redirecting to https protocol. On such
>> >   cases, just use the https URL.
>> >
>> > NOTE: all URLs were checked and they're pointing to the right places.
>> >
>> > Signed-off-by: Mauro Carvalho Chehab 
>> > Signed-off-by: Jonathan Corbet 
>> >
>> > commit 34fed7e7e0e56f885f309e8892a3571400072e37
>> > Author: Mauro Carvalho Chehab 
>> > Date:   Mon Sep 19 08:07:58 2016 -0300
>> >
>> > Documentation/HOWTO: improve some markups to make it visually better
>> >
>> > Do a series of minor improvements at the ReST output format:
>> >
>> > - Instead of using the quote blocks (::) for quotes, use
>> > italics. That looks nicer on epub (and html) output, as
>> > no scroll bar will be added. Also, it will adjust line
>> > breaks on the text automatically.
>> >
>> > - Add a missing reference to SubmittingPatches.rst and use
>> > **foo** instead of _foo_.
>> >
>> > - use bold for "The Perfect Patch" by removing a newline.
>> >
>> > Signed-off-by: Mauro Carvalho Chehab 
>> > Signed-off-by: Jonathan Corbet 
>> >
>> > commit 43fb67a5258c0f3d1d869cb7d72617d87b257c62
>> > Author: Mauro Carvalho Chehab 
>> > Date:   Mon Sep 19 08:07:57 2016 -0300
>> >
>> > Documentation/HOWTO: update information about generating documentation
>> >
>> > The description there are pre-Sphinx. Update it to cover the
>> > new way.
>> >
>> > Signed-off-by: Mauro Carvalho Chehab 
>> > Signed-off-by: Jonathan Corbet 
>> >
>> >
>> > There's also a series of patches pending merge that moves it
>> > Documentation/process/howto.rst and add to this book:
>> >
>> > https://mchehab.fedorapeople.org/kernel_docs/process/howto.html
>>
>> AFAIU, `The development process` section has subsections but they are marked 
>> as
>> sections.  That's what this patchset is trying to solve.  Looks like the
>> problem is still in the pending patches, too.  If you would like, I will 
>> resend
>> this patch after merging of the pending patches, though it would be no big
>> problem to merge this little patch before it.
>
> There's no real difference on using something like:
>
> foo
> ===
>
> bar
> ---
>
> or
>
> foo
> ~~~
>
> bar
> ===
>
> Sphinx just gets the first tag and use it for level 1 indentation, the
> next one for level 2, etc.
>
> See:
> http://www.sphinx-doc.org/en/stable/rest.html
>
> "Normally, there are no heading levels assigned to certain characters 
> as the structure is determined from the succession of headings.
>
> ...
>
> "Of course, you are free to use your own marker characters
> (see the reST documentation), and use a deeper nesting level,
> but keep in mind that most target formats (HTML, LaTeX) have
> a limited supported nesting depth."
>
>
> So, the only real limit is the number of indentation levels that the
> document can have.
>
> It proposes an style guide, but I don't see any sense on enforcing
> an specific style here. Actually, not enforcing one is, IMHO, a
> good thing, because we can always switch the indentation level
> by simply including a document 

Re: [PATCH 01/12] Documentation/HOWTO: Mark subsection in rst format

2016-10-21 Thread Mauro Carvalho Chehab
Em Sat, 22 Oct 2016 01:42:00 +0900
SeongJae Park  escreveu:

> On Sat, Oct 22, 2016 at 12:45 AM, Mauro Carvalho Chehab
>  wrote:
> > Em Sat, 22 Oct 2016 00:19:46 +0900
> > SeongJae Park  escreveu:
> >  
> >> Subsections in HOWTO is not marked in rst format.  This commit specifies
> >> them in rst format.
> >>
> >> Signed-off-by: SeongJae Park 
> >> ---
> >>  Documentation/HOWTO | 15 ++-
> >>  1 file changed, 10 insertions(+), 5 deletions(-)  
> >
> > There are already patches converting HOWTO to ReST applied upstream:  
> 
> This patchset is not to replace the patches but to be applied on top of the
> patches.
> 
> >
> > commit 1b49ecf2f3be358882bb97652ba50ae808c0ba8f
> > Author: Jonathan Corbet 
> > Date:   Tue Sep 20 18:46:36 2016 -0600
> >
> > docs: Clean up bare :: lines
> >
> > Mauro's patch set introduced some bare :: lines; these can be 
> > represented
> > by a double colon at the end of the preceding text line.  The result 
> > looks
> > a little less weird and is less verbose.
> >
> > Signed-off-by: Jonathan Corbet 
> >
> > commit f1eebe92c2653e8fc3760577e53befdc9b62ef26
> > Author: Mauro Carvalho Chehab 
> > Date:   Mon Sep 19 08:07:59 2016 -0300
> >
> > Documentation/HOWTO: adjust external link references
> >
> > - A few link references were missing http://
> > - Several sites are now redirecting to https protocol. On such
> >   cases, just use the https URL.
> >
> > NOTE: all URLs were checked and they're pointing to the right places.
> >
> > Signed-off-by: Mauro Carvalho Chehab 
> > Signed-off-by: Jonathan Corbet 
> >
> > commit 34fed7e7e0e56f885f309e8892a3571400072e37
> > Author: Mauro Carvalho Chehab 
> > Date:   Mon Sep 19 08:07:58 2016 -0300
> >
> > Documentation/HOWTO: improve some markups to make it visually better
> >
> > Do a series of minor improvements at the ReST output format:
> >
> > - Instead of using the quote blocks (::) for quotes, use
> > italics. That looks nicer on epub (and html) output, as
> > no scroll bar will be added. Also, it will adjust line
> > breaks on the text automatically.
> >
> > - Add a missing reference to SubmittingPatches.rst and use
> > **foo** instead of _foo_.
> >
> > - use bold for "The Perfect Patch" by removing a newline.
> >
> > Signed-off-by: Mauro Carvalho Chehab 
> > Signed-off-by: Jonathan Corbet 
> >
> > commit 43fb67a5258c0f3d1d869cb7d72617d87b257c62
> > Author: Mauro Carvalho Chehab 
> > Date:   Mon Sep 19 08:07:57 2016 -0300
> >
> > Documentation/HOWTO: update information about generating documentation
> >
> > The description there are pre-Sphinx. Update it to cover the
> > new way.
> >
> > Signed-off-by: Mauro Carvalho Chehab 
> > Signed-off-by: Jonathan Corbet 
> >
> >
> > There's also a series of patches pending merge that moves it
> > Documentation/process/howto.rst and add to this book:
> >
> > https://mchehab.fedorapeople.org/kernel_docs/process/howto.html  
> 
> AFAIU, `The development process` section has subsections but they are marked 
> as
> sections.  That's what this patchset is trying to solve.  Looks like the
> problem is still in the pending patches, too.  If you would like, I will 
> resend
> this patch after merging of the pending patches, though it would be no big
> problem to merge this little patch before it.

There's no real difference on using something like:

foo
===

bar
---

or

foo
~~~

bar
===

Sphinx just gets the first tag and use it for level 1 indentation, the
next one for level 2, etc.

See:
http://www.sphinx-doc.org/en/stable/rest.html

"Normally, there are no heading levels assigned to certain characters 
as the structure is determined from the succession of headings.

...

"Of course, you are free to use your own marker characters
(see the reST documentation), and use a deeper nesting level, 
but keep in mind that most target formats (HTML, LaTeX) have
a limited supported nesting depth."


So, the only real limit is the number of indentation levels that the
document can have.

It proposes an style guide, but I don't see any sense on enforcing
an specific style here. Actually, not enforcing one is, IMHO, a
good thing, because we can always switch the indentation level
by simply including a document on a TOC. So, it is easy to promote
or to demote a document, by just changing the .. toctable:: where it
belongs.

Thanks,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to 

Re: [PATCH 01/12] Documentation/HOWTO: Mark subsection in rst format

2016-10-21 Thread SeongJae Park
On Sat, Oct 22, 2016 at 12:45 AM, Mauro Carvalho Chehab
 wrote:
> Em Sat, 22 Oct 2016 00:19:46 +0900
> SeongJae Park  escreveu:
>
>> Subsections in HOWTO is not marked in rst format.  This commit specifies
>> them in rst format.
>>
>> Signed-off-by: SeongJae Park 
>> ---
>>  Documentation/HOWTO | 15 ++-
>>  1 file changed, 10 insertions(+), 5 deletions(-)
>
> There are already patches converting HOWTO to ReST applied upstream:

This patchset is not to replace the patches but to be applied on top of the
patches.

>
> commit 1b49ecf2f3be358882bb97652ba50ae808c0ba8f
> Author: Jonathan Corbet 
> Date:   Tue Sep 20 18:46:36 2016 -0600
>
> docs: Clean up bare :: lines
>
> Mauro's patch set introduced some bare :: lines; these can be represented
> by a double colon at the end of the preceding text line.  The result looks
> a little less weird and is less verbose.
>
> Signed-off-by: Jonathan Corbet 
>
> commit f1eebe92c2653e8fc3760577e53befdc9b62ef26
> Author: Mauro Carvalho Chehab 
> Date:   Mon Sep 19 08:07:59 2016 -0300
>
> Documentation/HOWTO: adjust external link references
>
> - A few link references were missing http://
> - Several sites are now redirecting to https protocol. On such
>   cases, just use the https URL.
>
> NOTE: all URLs were checked and they're pointing to the right places.
>
> Signed-off-by: Mauro Carvalho Chehab 
> Signed-off-by: Jonathan Corbet 
>
> commit 34fed7e7e0e56f885f309e8892a3571400072e37
> Author: Mauro Carvalho Chehab 
> Date:   Mon Sep 19 08:07:58 2016 -0300
>
> Documentation/HOWTO: improve some markups to make it visually better
>
> Do a series of minor improvements at the ReST output format:
>
> - Instead of using the quote blocks (::) for quotes, use
> italics. That looks nicer on epub (and html) output, as
> no scroll bar will be added. Also, it will adjust line
> breaks on the text automatically.
>
> - Add a missing reference to SubmittingPatches.rst and use
> **foo** instead of _foo_.
>
> - use bold for "The Perfect Patch" by removing a newline.
>
> Signed-off-by: Mauro Carvalho Chehab 
> Signed-off-by: Jonathan Corbet 
>
> commit 43fb67a5258c0f3d1d869cb7d72617d87b257c62
> Author: Mauro Carvalho Chehab 
> Date:   Mon Sep 19 08:07:57 2016 -0300
>
> Documentation/HOWTO: update information about generating documentation
>
> The description there are pre-Sphinx. Update it to cover the
> new way.
>
> Signed-off-by: Mauro Carvalho Chehab 
> Signed-off-by: Jonathan Corbet 
>
>
> There's also a series of patches pending merge that moves it
> Documentation/process/howto.rst and add to this book:
>
> https://mchehab.fedorapeople.org/kernel_docs/process/howto.html

AFAIU, `The development process` section has subsections but they are marked as
sections.  That's what this patchset is trying to solve.  Looks like the
problem is still in the pending patches, too.  If you would like, I will resend
this patch after merging of the pending patches, though it would be no big
problem to merge this little patch before it.


Thanks,
SeongJae Park

>
>
> Thanks,
> Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: sequence diagrams in rst documentation

2016-10-21 Thread Markus Heiser

Am 21.10.2016 um 15:04 schrieb Johannes Berg :

>> I had the same conclusion for math:: directives pulling in latex
>> dependency [1]. Hopefully Markus can help here.
> 
> Yeah, good one.
> 
> Maybe it's actually simple? Depending on where sphinx will look for
> plugins first, we could just ship the plugins with a no-op
> implementation (pass through the text as pre-formatted text), and if it
> finds the plugin first in a system-wide path that version would win for
> the better rendering?

Yes and No. It depends on the tools (toolchains) we want to use.
As far as I can see from a abstract POV it should by simple for
math:: / since we already use/need LaTeX for PDF, for other tools
I have to look.

I general I think, we should not include Java into our toolchains
even if it is optional. Thats, why I won't vote for http://plantuml.com/

aafigure: has dependencies [1] to reportlab (which is IMO inapposite) and
PIL, which is outdated / and aafigure itself seems outdated [2].

seqdiag: requires blockdiag and this requires Pillow ... until here 
its seems not bad, but there is also some "optional" dependencies to 
ImageMagick and reportlab (both smells).

IMO a tool which generates SVG would be the best, I have to check
if I find some or if some of the above could used in this way.

For this I need time ;-) ... ATM I work in a custom project but
I hope I will find next week time to dig more deeper.

-- Markus -- 
  
[1] https://pythonhosted.org/sphinxcontrib-aafig/#requirements
[2] http://bazaar.launchpad.net/~aafigure-team/aafigure/trunk/files
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 01/12] Documentation/HOWTO: Mark subsection in rst format

2016-10-21 Thread Mauro Carvalho Chehab
Em Sat, 22 Oct 2016 00:19:46 +0900
SeongJae Park  escreveu:

> Subsections in HOWTO is not marked in rst format.  This commit specifies
> them in rst format.
> 
> Signed-off-by: SeongJae Park 
> ---
>  Documentation/HOWTO | 15 ++-
>  1 file changed, 10 insertions(+), 5 deletions(-)

There are already patches converting HOWTO to ReST applied upstream:

commit 1b49ecf2f3be358882bb97652ba50ae808c0ba8f
Author: Jonathan Corbet 
Date:   Tue Sep 20 18:46:36 2016 -0600

docs: Clean up bare :: lines

Mauro's patch set introduced some bare :: lines; these can be represented
by a double colon at the end of the preceding text line.  The result looks
a little less weird and is less verbose.

Signed-off-by: Jonathan Corbet 

commit f1eebe92c2653e8fc3760577e53befdc9b62ef26
Author: Mauro Carvalho Chehab 
Date:   Mon Sep 19 08:07:59 2016 -0300

Documentation/HOWTO: adjust external link references

- A few link references were missing http://
- Several sites are now redirecting to https protocol. On such
  cases, just use the https URL.

NOTE: all URLs were checked and they're pointing to the right places.

Signed-off-by: Mauro Carvalho Chehab 
Signed-off-by: Jonathan Corbet 

commit 34fed7e7e0e56f885f309e8892a3571400072e37
Author: Mauro Carvalho Chehab 
Date:   Mon Sep 19 08:07:58 2016 -0300

Documentation/HOWTO: improve some markups to make it visually better

Do a series of minor improvements at the ReST output format:

- Instead of using the quote blocks (::) for quotes, use
italics. That looks nicer on epub (and html) output, as
no scroll bar will be added. Also, it will adjust line
breaks on the text automatically.

- Add a missing reference to SubmittingPatches.rst and use
**foo** instead of _foo_.

- use bold for "The Perfect Patch" by removing a newline.

Signed-off-by: Mauro Carvalho Chehab 
Signed-off-by: Jonathan Corbet 

commit 43fb67a5258c0f3d1d869cb7d72617d87b257c62
Author: Mauro Carvalho Chehab 
Date:   Mon Sep 19 08:07:57 2016 -0300

Documentation/HOWTO: update information about generating documentation

The description there are pre-Sphinx. Update it to cover the
new way.

Signed-off-by: Mauro Carvalho Chehab 
Signed-off-by: Jonathan Corbet 


There's also a series of patches pending merge that moves it
Documentation/process/howto.rst and add to this book:

https://mchehab.fedorapeople.org/kernel_docs/process/howto.html


Thanks,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 05/12] ko_KR/HOWTO: Convert to ReST notation

2016-10-21 Thread SeongJae Park
This commit applies commit 022e04d6f555 ("Documentation/HOWTO: convert
to ReST notation") to Korean translation and fix a trivial ReST build
failure problem.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 58 +++
 1 file changed, 53 insertions(+), 5 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 4048297e48aa..78dab436a926 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -9,17 +9,20 @@ read for non English (read: korean) speakers and is not 
intended as
 a fork. So if you have any comments or updates for this file please
 try to update the original English file first.
 
-==
+--
+
 ์ด ๋ฌธ์„œ๋Š”
 Documentation/HOWTO
 ์˜ ํ•œ๊ธ€ ๋ฒˆ์—ญ์ž…๋‹ˆ๋‹ค.
 
 ์—ญ์ž๏ผš ๊น€๋ฏผ์ฐฌ 
 ๊ฐ์ˆ˜๏ผš ์ด์ œ์ด๋ฏธ 
-==
+
+--
+
 
 ์–ด๋–ป๊ฒŒ ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์„ ํ•˜๋Š”๊ฐ€
--
+
 
 ์ด ๋ฌธ์„œ๋Š” ์ปค๋„ ๊ฐœ๋ฐœ์— ์žˆ์–ด ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๋ฌธ์„œ์ด๋‹ค. ์ด ๋ฌธ์„œ๋Š”
 ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋˜๋Š” ๋ฒ•๊ณผ ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ์ผํ•˜๋Š”
@@ -46,6 +49,7 @@ Documentation/HOWTO
 ์–ด์…ˆ๋ธ”๋ฆฌ(ํŠน์ • ์•„ํ‚คํ…์ณ)๋Š” ์ž˜ ์•Œ์•„์•ผ ํ•  ํ•„์š”๋Š” ์—†๋‹ค.
 ๋‹ค์Œ์˜ ์ฐธ๊ณ ์„œ์ ๋“ค์€ ๊ธฐ๋ณธ์— ์ถฉ์‹คํ•œ C ๊ต์œก์ด๋‚˜ ์ˆ˜๋…„๊ฐ„์˜ ๊ฒฝํ—˜์— ๊ฒฌ์ฃผ์ง€๋Š”
 ๋ชปํ•˜์ง€๋งŒ ์ ์–ด๋„ ์ฐธ๊ณ  ์šฉ๋„๋กœ๋Š” ์ข‹์„ ๊ฒƒ์ด๋‹ค
+
  - "The C Programming Language" by Kernighan and Ritchie [Prentice Hall]
  - "Practical C Programming" by Steve Oualline [O'Reilly]
  - "C:  A Reference Manual" by Harbison and Steele [Prentice Hall]
@@ -79,6 +83,7 @@ Documentation/HOWTO
 ๊ทธ๋“ค์˜ ๋ง์— ์˜์ง€ํ•ด์„œ๋Š” ์•ˆ๋œ๋‹ค.
 
 GPL์— ๊ด€ํ•œ ์žฆ์€ ์งˆ๋ฌธ๋“ค๊ณผ ๋‹ต๋ณ€๋“ค์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
+
 http://www.gnu.org/licenses/gpl-faq.html
 
 
@@ -93,6 +98,7 @@ GPL์— ๊ด€ํ•œ ์žฆ์€ ์งˆ๋ฌธ๋“ค๊ณผ ๋‹ต๋ณ€๋“ค์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
 mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 
 ๋‹ค์Œ์€ ์ปค๋„ ์†Œ์Šค ํŠธ๋ฆฌ์— ์žˆ๋Š” ์ฝ์–ด์•ผ ํ•  ํŒŒ์ผ๋“ค์˜ ๋ฆฌ์ŠคํŠธ์ด๋‹ค.
+
   README
 ์ด ํŒŒ์ผ์€ ๋ฆฌ๋ˆ…์Šค ์ปค๋„์— ๊ด€ํ•˜์—ฌ ๊ฐ„๋‹จํ•œ ๋ฐฐ๊ฒฝ ์„ค๋ช…๊ณผ ์ปค๋„์„ ์„ค์ •ํ•˜๊ณ 
 ๋นŒ๋“œํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๊ฒƒ์„ ์„ค๋ช…ํ•œ๋‹ค. ์ปค๋„์— ์ž…๋ฌธํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์€ ์—ฌ๊ธฐ์„œ
@@ -108,30 +114,37 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์€ ์ด ๊ทœ์น™์„ ๋”ฐ๋ฅด๋Š” ํŒจ์น˜๋“ค๋งŒ์„ ๋ฐ›์•„๋“ค์ผ ๊ฒƒ์ด๊ณ  ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด
 ๊ทธ ํŒจ์น˜๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ ์Šคํƒ€์ผ์ผ ๊ฒฝ์šฐ๋งŒ ์ฝ”๋“œ๋ฅผ ๊ฒ€ํ† ํ•  ๊ฒƒ์ด๋‹ค.
 
-  Documentation/SubmittingPatches
-  Documentation/SubmittingDrivers
+  Documentation/SubmittingPatches ์™€ Documentation/SubmittingDrivers
 ์ด ํŒŒ์ผ๋“ค์€ ์„ฑ๊ณต์ ์œผ๋กœ ํŒจ์น˜๋ฅผ ๋งŒ๋“ค๊ณ  ๋ณด๋‚ด๋Š” ๋ฒ•์„ ๋‹ค์Œ์˜ ๋‚ด์šฉ๋“ค๋กœ
 ๊ต‰์žฅํžˆ ์ƒ์„ธํžˆ ์„ค๋ช…ํ•˜๊ณ  ์žˆ๋‹ค(๊ทธ๋Ÿฌ๋‚˜ ๋‹ค์Œ์œผ๋กœ ํ•œ์ •๋˜์ง„ ์•Š๋Š”๋‹ค).
+
- Email ๋‚ด์šฉ๋“ค
- Email ์–‘์‹
- ๊ทธ๊ฒƒ์„ ๋ˆ„๊ตฌ์—๊ฒŒ ๋ณด๋‚ผ์ง€
+
 ์ด๋Ÿฌํ•œ ๊ทœ์น™๋“ค์„ ๋”ฐ๋ฅด๋Š” ๊ฒƒ์ด ์„ฑ๊ณต(์—ญ์ž์ฃผ: ํŒจ์น˜๊ฐ€ ๋ฐ›์•„๋“ค์—ฌ ์ง€๋Š” ๊ฒƒ)์„
 ๋ณด์žฅํ•˜์ง„ ์•Š๋Š”๋‹ค(์™œ๋ƒํ•˜๋ฉด ๋ชจ๋“  ํŒจ์น˜๋“ค์€ ๋‚ด์šฉ๊ณผ ์Šคํƒ€์ผ์— ๊ด€ํ•˜์—ฌ
 ๋ฉด๋ฐ€ํžˆ ๊ฒ€ํ† ๋˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค). ๊ทธ๋Ÿฌ๋‚˜ ๊ทœ์น™์„ ๋”ฐ๋ฅด์ง€ ์•Š๋Š”๋‹ค๋ฉด ๊ฑฐ์˜
 ์„ฑ๊ณตํ•˜์ง€๋„ ๋ชปํ•  ๊ฒƒ์ด๋‹ค.
 
 ์˜ฌ๋ฐ”๋ฅธ ํŒจ์น˜๋“ค์„ ๋งŒ๋“œ๋Š” ๋ฒ•์— ๊ด€ํ•œ ํ›Œ๋ฅญํ•œ ๋‹ค๋ฅธ ๋ฌธ์„œ๋“ค์ด ์žˆ๋‹ค.
+
 "The Perfect Patch"
+
 http://www.ozlabs.org/~akpm/stuff/tpp.txt
+
 "Linux kernel patch submission format"
+
 http://linux.yyz.us/patch-format.html
 
Documentation/stable_api_nonsense.txt
 ์ด ๋ฌธ์„œ๋Š” ์˜๋„์ ์œผ๋กœ ์ปค๋„์ด ๋ถˆ๋ณ€ํ•˜๋Š” API๋ฅผ ๊ฐ–์ง€ ์•Š๋„๋ก ๊ฒฐ์ •ํ•œ
 ์ด์œ ๋ฅผ ์„ค๋ช…ํ•˜๋ฉฐ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒƒ๋“ค์„ ํฌํ•จํ•œ๋‹ค.
+
- ์„œ๋ธŒ์‹œ์Šคํ…œ shim-layer(ํ˜ธํ™˜์„ฑ์„ ์œ„ํ•ด?)
- ์šด์˜์ฒด์ œ๋“ค๊ฐ„์˜ ๋“œ๋ผ์ด๋ฒ„ ์ด์‹์„ฑ
- ์ปค๋„ ์†Œ์Šค ํŠธ๋ฆฌ๋‚ด์— ๋น ๋ฅธ ๋ณ€ํ™”๋ฅผ ๋Šฆ์ถ”๋Š” ๊ฒƒ(๋˜๋Š” ๋น ๋ฅธ ๋ณ€ํ™”๋ฅผ ๋ง‰๋Š” ๊ฒƒ)
+
 ์ด ๋ฌธ์„œ๋Š” ๋ฆฌ๋ˆ…์Šค ๊ฐœ๋ฐœ ์ฒ ํ•™์„ ์ดํ•ดํ•˜๋Š”๋ฐ ํ•„์ˆ˜์ ์ด๋ฉฐ ๋‹ค๋ฅธ ์šด์˜์ฒด์ œ์—์„œ
 ๋ฆฌ๋ˆ…์Šค๋กœ ์ „ํ–ฅํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์—๊ฒŒ๋Š” ๋งค์šฐ ์ค‘์š”ํ•˜๋‹ค.
 
@@ -168,10 +181,14 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฒ•์— ๊ด€ํ•œ ๊ทœ์น™์„ ํฌํ•จํ•˜๊ณ  ์žˆ๋‹ค. ์ด ๋ฌธ์„œ๋Š”
 Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, HTML,
 ๊ทธ๋ฆฌ๊ณ  man ํŽ˜์ด์ง€๋“ค๋กœ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‹คํ–‰ํ•˜์—ฌ ๋งŒ๋“ค์–ด ์ง„๋‹ค.
+
+::
+
  make pdfdocs
  make psdocs
  make htmldocs
  make mandocs
+
 ๊ฐ๊ฐ์˜ ๋ช…๋ น์„ ๋ฉ”์ธ ์ปค๋„ ์†Œ์Šค ๋””๋ ‰ํ† ๋ฆฌ๋กœ๋ถ€ํ„ฐ ์‹คํ–‰ํ•œ๋‹ค.
 
 
@@ -180,7 +197,9 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 
 ์—ฌ๋Ÿฌ๋ถ„์ด ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์— ๊ด€ํ•˜์—ฌ ์•„๋ฌด๊ฒƒ๋„ ๋ชจ๋ฅธ๋‹ค๋ฉด Linux KernelNewbies
 ํ”„๋กœ์ ํŠธ๋ฅผ ๋ด์•ผ ํ•œ๋‹ค.
+
 http://kernelnewbies.org
+
 ๊ทธ๊ณณ์€ ๊ฑฐ์˜ ๋ชจ๋“  ์ข…๋ฅ˜์˜ ๊ธฐ๋ณธ์ ์ธ ์ปค๋„ ๊ฐœ๋ฐœ ์งˆ๋ฌธ๋“ค(์งˆ๋ฌธํ•˜๊ธฐ ์ „์— ๋จผ์ €
 ์•„์นด์ด๋ธŒ๋ฅผ ์ฐพ์•„๋ด๋ผ. ๊ณผ๊ฑฐ์— ์ด๋ฏธ ๋‹ต๋ณ€๋˜์—ˆ์„ ์ˆ˜๋„ ์žˆ๋‹ค)์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๋„์›€์ด
 ๋ ๋งŒํ•œ ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ๊ฐ€ ์žˆ๋‹ค. ๋˜ํ•œ ์‹ค์‹œ๊ฐ„์œผ๋กœ ์งˆ๋ฌธ ํ•  ์ˆ˜ ์žˆ๋Š” IRC ์ฑ„๋„๋„
@@ -192,7 +211,9 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 
 ์—ฌ๋Ÿฌ๋ถ„์ด ์–ด๋””์„œ ์‹œ์ž‘ํ•ด์•ผ ํ• ์ง„ ๋ชจ๋ฅด์ง€๋งŒ ์ปค๋„ ๊ฐœ๋ฐœ ์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•  ์ˆ˜
 ์žˆ๋Š” ์ผ๋“ค์„ ์ฐพ๊ธธ ์›ํ•œ๋‹ค๋ฉด ๋ฆฌ๋ˆ…์Šค ์ปค๋„ Janitor ํ”„๋กœ์ ํŠธ๋ฅผ ์‚ดํŽด๋ด๋ผ.
+
http://kernelnewbies.org/KernelJanitors
+
 ๊ทธ๊ณณ์€ ์‹œ์ž‘ํ•˜๊ธฐ์— ํ›Œ๋ฅญํ•œ ์žฅ์†Œ์ด๋‹ค. ๊ทธ๊ณณ์€ ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ์†Œ์Šค ํŠธ๋ฆฌ๋‚ด์—
 ๊ฐ„๋‹จํžˆ ์ •๋ฆฌ๋˜๊ณ  ์ˆ˜์ •๋  ์ˆ˜ ์žˆ๋Š” ๋ฌธ์ œ๋“ค์— ๊ด€ํ•˜์—ฌ ์„ค๋ช…ํ•œ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์€ ์ด
 ํ”„๋กœ์ ํŠธ๋ฅผ ๋Œ€ํ‘œํ•˜๋Š” ๊ฐœ๋ฐœ์ž๋“ค๊ณผ ์ผํ•˜๋ฉด์„œ ์ž์‹ ์˜ ํŒจ์น˜๋ฅผ ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ํŠธ๋ฆฌ์—
@@ -204,6 +225,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 ์˜ฌ๋ฐ”๋ฅธ ํฌ๋งท์œผ๋กœ ํฌ์žฅํ•˜๋Š”๋ฐ ๋„์›€์ด ํ•„์š”ํ•˜๋‹ค๋ฉด ๊ทธ๋Ÿฌํ•œ ๋ฌธ์ œ๋ฅผ ๋•๊ธฐ ์œ„ํ•ด
 ๋งŒ๋“ค์–ด์ง„ kernel-mentors ํ”„๋กœ์ ํŠธ๊ฐ€ ์žˆ๋‹ค. ๊ทธ๊ณณ์€ ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ์ด๋ฉฐ
 ๋‹ค์Œ์—์„œ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋‹ค.
+
  http://selenic.com/mailman/listinfo/kernel-mentors
 
 ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ์ฝ”๋“œ์— ์‹ค์ œ ๋ณ€๊ฒฝ์„ ํ•˜๊ธฐ ์ „์— ๋ฐ˜๋“œ์‹œ ๊ทธ ์ฝ”๋“œ๊ฐ€ ์–ด๋–ป๊ฒŒ
@@ -213,6 +235,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 ๊ฒƒ์€ Linux Cross-Reference project์ด๋ฉฐ ๊ทธ๊ฒƒ์€ ์ž๊ธฐ ์ฐธ์กฐ ๋ฐฉ์‹์ด๋ฉฐ
 ์†Œ์Šค์ฝ”๋“œ๋ฅผ ์ธ๋ฑ์Šค๋œ ์›น ํŽ˜์ด์ง€๋“ค์˜ ํ˜•ํƒœ๋กœ ๋ณด์—ฌ์ค€๋‹ค. ์ตœ์‹ ์˜ ๋ฉ‹์ง„ ์ปค๋„
 ์ฝ”๋“œ ์ €์žฅ์†Œ๋Š” ๋‹ค์Œ์„ ํ†ตํ•˜์—ฌ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋‹ค.
+
   http://lxr.free-electrons.com/
 
 
@@ -222,6 +245,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ํ˜„์žฌ ๋ช‡๋ช‡ ๋‹ค๋ฅธ ๋ฉ”์ธ ์ปค๋„ "๋ธŒ๋žœ์น˜๋“ค"๊ณผ
 ์„œ๋ธŒ์‹œ์Šคํ…œ์— ํŠนํ™”๋œ ์ปค๋„ ๋ธŒ๋žœ์น˜๋“ค๋กœ ๊ตฌ์„ฑ๋œ๋‹ค. ๋ช‡๋ช‡ ๋‹ค๋ฅธ ๋ฉ”์ธ
 ๋ธŒ๋žœ์น˜๋“ค์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
+
   - main 4.x ์ปค๋„ ํŠธ๋ฆฌ
   - 4.x.y - ์•ˆ์ •๋œ ์ปค๋„ ํŠธ๋ฆฌ
   - 4.x -git ์ปค๋„ ํŒจ์น˜๋“ค
@@ -232,6 +256,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 -
 4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ kernel.org์˜ pub/linux/kernel/v4.x/
 ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
+
   - ์ƒˆ๋กœ์šด ์ปค๋„์ด ๋ฐฐํฌ๋˜์ž๋งˆ์ž 2์ฃผ์˜ ์‹œ๊ฐ„์ด ์ฃผ์–ด์ง„๋‹ค. ์ด ๊ธฐ๊ฐ„๋™์€
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์€ ํฐ diff๋“ค์„ Linus์—๊ฒŒ ์ œ์ถœํ•  ์ˆ˜ ์žˆ๋‹ค. ๋Œ€๊ฐœ ์ด ํŒจ์น˜๋“ค์€
  

[PATCH 01/12] Documentation/HOWTO: Mark subsection in rst format

2016-10-21 Thread SeongJae Park
Subsections in HOWTO is not marked in rst format.  This commit specifies
them in rst format.

Signed-off-by: SeongJae Park 
---
 Documentation/HOWTO | 15 ++-
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/Documentation/HOWTO b/Documentation/HOWTO
index 5f042349f987..5cf6ea84a6f8 100644
--- a/Documentation/HOWTO
+++ b/Documentation/HOWTO
@@ -254,7 +254,8 @@ branches.  These different branches are:
   - the 4.x -next kernel tree for integration tests
 
 4.x kernel tree
--
+~~~
+
 4.x kernels are maintained by Linus Torvalds, and can be found on
 https://kernel.org in the pub/linux/kernel/v4.x/ directory.  Its development
 process is as follows:
@@ -289,7 +290,8 @@ mailing list about kernel releases:
preconceived timeline."*
 
 4.x.y -stable kernel tree
--
+~
+
 Kernels with 3-part versions are -stable kernels. They contain
 relatively small and critical fixes for security problems or significant
 regressions discovered in a given 4.x kernel.
@@ -312,7 +314,8 @@ documents what kinds of changes are acceptable for the 
-stable tree, and
 how the release process works.
 
 4.x -git patches
-
+
+
 These are daily snapshots of Linus' kernel tree which are managed in a
 git repository (hence the name.) These patches are usually released
 daily and represent the current state of Linus' tree.  They are more
@@ -320,7 +323,8 @@ experimental than -rc kernels since they are generated 
automatically
 without even a cursory glance to see if they are sane.
 
 Subsystem Specific kernel trees and patches

+~~~
+
 The maintainers of the various kernel subsystems --- and also many
 kernel subsystem developers --- expose their current state of
 development in source repositories.  That way, others can see what is
@@ -344,7 +348,8 @@ accepted, or rejected.  Most of these patchwork sites are 
listed at
 https://patchwork.kernel.org/.
 
 4.x -next kernel tree for integration tests

+~~~
+
 Before updates from subsystem trees are merged into the mainline 4.x
 tree, they need to be integration-tested.  For this purpose, a special
 testing repository exists into which virtually all subsystem trees are
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 02/12] ko_KR/HOWTO: Fix a typo: s/Linux Torvalds/Linus Torvalds

2016-10-21 Thread SeongJae Park
Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 9a3e65924d54..f14ccada9465 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -231,7 +231,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
 4.x ์ปค๋„ ํŠธ๋ฆฌ
 ---
 
-4.x ์ปค๋„๋“ค์€ Linux Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ kernel.org์˜ pub/linux/kernel/v4.x/
+4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ kernel.org์˜ pub/linux/kernel/v4.x/
 ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
   - ์ƒˆ๋กœ์šด ์ปค๋„์ด ๋ฐฐํฌ๋˜์ž๋งˆ์ž 2์ฃผ์˜ ์‹œ๊ฐ„์ด ์ฃผ์–ด์ง„๋‹ค. ์ด ๊ธฐ๊ฐ„๋™์€
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์€ ํฐ diff๋“ค์„ Linus์—๊ฒŒ ์ œ์ถœํ•  ์ˆ˜ ์žˆ๋‹ค. ๋Œ€๊ฐœ ์ด ํŒจ์น˜๋“ค์€
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 04/12] ko_KR/HOWTO: Update obsolete link to bugzilla faq

2016-10-21 Thread SeongJae Park
Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 0b13d0a78446..4048297e48aa 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -325,7 +325,7 @@ http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 bugzilla.kernel.org๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค๋„์˜ ๋ฒ„๊ทธ๋ฅผ ์ถ”์ ํ•˜๋Š” ๊ณณ์ด๋‹ค.
 ์‚ฌ์šฉ์ž๋“ค์€ ๋ฐœ๊ฒฌํ•œ ๋ชจ๋“  ๋ฒ„๊ทธ๋“ค์„ ๋ณด๊ณ ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์ด ํˆด์„ ์‚ฌ์šฉํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 kernel bugzilla๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž์„ธํ•œ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
-http://test.kernel.org/bugzilla/faq.html
+http://bugzilla.kernel.org/page.cgi?id=faq.html
 
 ๋ฉ”์ธ ์ปค๋„ ์†Œ์Šค ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” REPORTING-BUGS ํŒŒ์ผ์€ ์ปค๋„ ๋ฒ„๊ทธ๋ผ๊ณ  ์ƒ๊ฐ๋˜๋Š”
 ๊ฒƒ์„ ๋ณด๊ณ ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๊ด€ํ•œ ์ข‹์€ ํ…œํ”Œ๋ฆฟ์ด๋ฉฐ ๋ฌธ์ œ๋ฅผ ์ถ”์ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ์ปค๋„
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 03/12] ko_KR/HOWTO: Fix subtitles style

2016-10-21 Thread SeongJae Park
This commit fixes subtitles style.  It aligns them with their header,
adjust blank lines between them properly.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 17 -
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index f14ccada9465..0b13d0a78446 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -229,8 +229,7 @@ Documentation/DocBook/ ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์—์„œ ๋งŒ๋“ค์–ด์ง€๋ฉฐ PDF, Postscript, H
   - 4.x - ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ next ์ปค๋„ ํŠธ๋ฆฌ
 
 4.x ์ปค๋„ ํŠธ๋ฆฌ

-
+-
 4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ kernel.org์˜ pub/linux/kernel/v4.x/
 ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
   - ์ƒˆ๋กœ์šด ์ปค๋„์ด ๋ฐฐํฌ๋˜์ž๋งˆ์ž 2์ฃผ์˜ ์‹œ๊ฐ„์ด ์ฃผ์–ด์ง„๋‹ค. ์ด ๊ธฐ๊ฐ„๋™์€
@@ -261,8 +260,7 @@ Andrew Morton์˜ ๊ธ€์ด ์žˆ๋‹ค.
  ๋ฐฐํฌ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค."
 
 4.x.y - ์•ˆ์ • ์ปค๋„ ํŠธ๋ฆฌ
-
-
+--
 3 ์ž๋ฆฌ ์ˆซ์ž๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฒ„์ ผ์˜ ์ปค๋„๋“ค์€ -stable ์ปค๋„๋“ค์ด๋‹ค. ๊ทธ๊ฒƒ๋“ค์€ 4.x
 ์ปค๋„์—์„œ ๋ฐœ๊ฒฌ๋œ ํฐ ํšŒ๊ท€๋“ค์ด๋‚˜ ๋ณด์•ˆ ๋ฌธ์ œ๋“ค ์ค‘ ๋น„๊ต์  ์ž‘๊ณ  ์ค‘์š”ํ•œ ์ˆ˜์ •๋“ค์„
 ํฌํ•จํ•œ๋‹ค.
@@ -280,9 +278,8 @@ Andrew Morton์˜ ๊ธ€์ด ์žˆ๋‹ค.
 ์ข…๋ฅ˜์˜ ๋ณ€๊ฒฝ๋“ค์ด -stable ํŠธ๋ฆฌ๋กœ ๋“ค์–ด์™”๋Š”์ง€์™€ ๋ฐฐํฌ ํ”„๋กœ์„ธ์Šค๊ฐ€ ์–ด๋–ป๊ฒŒ
 ์ง„ํ–‰๋˜๋Š”์ง€๋ฅผ ์„ค๋ช…ํ•œ๋‹ค.
 
-
 4.x -git ํŒจ์น˜๋“ค
---
+---
 git ์ €์žฅ์†Œ(๊ทธ๋Ÿฌ๋ฏ€๋กœ -git์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋ถ™์Œ)์—๋Š” ๋‚ ๋งˆ๋‹ค ๊ด€๋ฆฌ๋˜๋Š” Linus์˜
 ์ปค๋„ ํŠธ๋ฆฌ์˜ snapshot ๋“ค์ด ์žˆ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ผ๋ฐ˜์ ์œผ๋กœ ๋‚ ๋งˆ๋‹ค ๋ฐฐํฌ๋˜๋ฉฐ
 Linus์˜ ํŠธ๋ฆฌ์˜ ํ˜„์žฌ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ •์ƒ์ ์ธ์ง€ ์กฐ๊ธˆ๋„
@@ -311,7 +308,7 @@ Linus์˜ ํŠธ๋ฆฌ์˜ ํ˜„์žฌ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ •์ƒ์ ์ธ
 http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 
 4.x - ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ next ์ปค๋„ ํŠธ๋ฆฌ
--
+---
 ์„œ๋ธŒ์‹œ์Šคํ…œ ํŠธ๋ฆฌ๋“ค์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ๋“ค์€ mainline 4.x ํŠธ๋ฆฌ๋กœ ๋“ค์–ด์˜ค๊ธฐ ์ „์— ํ†ตํ•ฉ
 ํ…Œ์ŠคํŠธ๋ฅผ ๊ฑฐ์ณ์•ผ ํ•œ๋‹ค. ์ด๋Ÿฐ ๋ชฉ์ ์œผ๋กœ, ๋ชจ๋“  ์„œ๋ธŒ์‹œ์Šคํ…œ ํŠธ๋ฆฌ์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ๊ฑฐ์˜
 ๋งค์ผ ๋ฐ›์•„๊ฐ€๋Š” ํŠน์ˆ˜ํ•œ ํ…Œ์ŠคํŠธ ์ €์žฅ์†Œ๊ฐ€ ์กด์žฌํ•œ๋‹ค:
@@ -321,8 +318,10 @@ http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 ๊ฐ€ํ•ด์งˆ ๊ฒƒ์ธ์ง€ ๊ฐ„๋žตํžˆ ์•Œ ์ˆ˜ ์žˆ๋‹ค. ๋ชจํ—˜์‹ฌ ๊ฐ•ํ•œ ํ…Œ์Šคํ„ฐ๋ผ๋ฉด -next ์ปค๋„์—์„œ ํ…Œ์ŠคํŠธ๋ฅผ
 ์ˆ˜ํ–‰ํ•˜๋Š” ๊ฒƒ๋„ ์ข‹์„ ๊ฒƒ์ด๋‹ค.
 
+
 ๋ฒ„๊ทธ ๋ณด๊ณ 
 -
+
 bugzilla.kernel.org๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค๋„์˜ ๋ฒ„๊ทธ๋ฅผ ์ถ”์ ํ•˜๋Š” ๊ณณ์ด๋‹ค.
 ์‚ฌ์šฉ์ž๋“ค์€ ๋ฐœ๊ฒฌํ•œ ๋ชจ๋“  ๋ฒ„๊ทธ๋“ค์„ ๋ณด๊ณ ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์ด ํˆด์„ ์‚ฌ์šฉํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 kernel bugzilla๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž์„ธํ•œ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
@@ -405,7 +404,7 @@ bugme-janitor ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ(bugzilla์— ๋ชจ๋“  ๋ณ€ํ™”๋“ค์ด ์—ฌ๊ธฐ์„œ ๋ฉ”
 
 
 ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ํ˜‘๋ ฅํ•˜๋Š” ๋ฒ•
-
+--
 
 ์ปค๋„ ์ปค๋ฎค๋‹ˆํ‹ฐ์˜ ๋ชฉ์ ์€ ๊ฐ€๋Šฅํ•œํ•œ ๊ฐ€์žฅ ์ข‹์€ ์ปค๋„์„ ์ œ๊ณตํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์ด
 ๋ฐ›์•„๋“ค์—ฌ์งˆ ํŒจ์น˜๋ฅผ ์ œ์ถœํ•˜๊ฒŒ ๋˜๋ฉด ๊ทธ ํŒจ์น˜์˜ ๊ธฐ์ˆ ์ ์ธ ์ด์ ์œผ๋กœ ๊ฒ€ํ† ๋  ๊ฒƒ์ด๋‹ค.
@@ -443,7 +442,7 @@ bugme-janitor ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ(bugzilla์— ๋ชจ๋“  ๋ณ€ํ™”๋“ค์ด ์—ฌ๊ธฐ์„œ ๋ฉ”
 
 
 ์ปค๋„ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ๊ธฐ์—… ์กฐ์ง๊ฐ„์˜ ์ฐจ์ด์ 
--
+
 ์ปค๋„ ์ปค๋ฎค๋‹ˆํ‹ฐ๋Š” ๊ฐ€์žฅ ์ „ํ†ต์ ์ธ ํšŒ์‚ฌ์˜ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ๊ณผ๋Š” ๋‹ค๋ฅด๋‹ค. ์—ฌ๊ธฐ์— ์—ฌ๋Ÿฌ๋ถ„๋“ค์˜
 ๋ฌธ์ œ๋ฅผ ํ”ผํ•˜๊ธฐ ์œ„ํ•œ ๋ชฉ๋ก์ด ์žˆ๋‹ค.
   ์—ฌ๋Ÿฌ๋ถ„๋“ค์ด ์ œ์•ˆํ•œ ๋ณ€๊ฒฝ๋“ค์— ๊ด€ํ•˜์—ฌ ๋งํ•  ๋•Œ ์ข‹์€ ๊ฒƒ๋“ค :
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 08/12] ko_KR/HOWTO: Improve some markups to make it visually better

2016-10-21 Thread SeongJae Park
This commit applies commit 34fed7e7e0e5 ("Documentation/HOWTO: improve
some markups to make it visually better") to Korean translation.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index f1e2c4718aad..19a19c5baa72 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -295,11 +295,9 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค:
 ์ปค๋„ ๋ฐฐํฌ์— ์žˆ์–ด์„œ ์–ธ๊ธ‰ํ• ๋งŒํ•œ ๊ฐ€์น˜๊ฐ€ ์žˆ๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ์˜
 Andrew Morton์˜ ๊ธ€์ด ์žˆ๋‹ค.
 
-::
-
-"์ปค๋„์ด ์–ธ์ œ ๋ฐฐํฌ๋ ์ง€๋Š” ์•„๋ฌด๋„ ๋ชจ๋ฅธ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ๋ฐฐํฌ๋Š” ์•Œ๋ ค์ง„
+*"์ปค๋„์ด ์–ธ์ œ ๋ฐฐํฌ๋ ์ง€๋Š” ์•„๋ฌด๋„ ๋ชจ๋ฅธ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ๋ฐฐํฌ๋Š” ์•Œ๋ ค์ง„
  ๋ฒ„๊ทธ์˜ ์ƒํ™ฉ์— ๋”ฐ๋ผ ๋ฐฐํฌ๋˜๋Š” ๊ฒƒ์ด์ง€ ๋ฏธ๋ฆฌ์ •ํ•ด ๋†“์€ ์‹œ๊ฐ„์— ๋”ฐ๋ผ
- ๋ฐฐํฌ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค."
+ ๋ฐฐํฌ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค."*
 
 4.x.y - ์•ˆ์ • ์ปค๋„ ํŠธ๋ฆฌ
 --
@@ -569,16 +567,14 @@ Pat์ด๋ผ๋Š” ์ด๋ฆ„์„ ๊ฐ€์ง„ ์—ฌ์ž๊ฐ€ ์žˆ์„ ์ˆ˜๋„ ์žˆ๋Š” ๊ฒƒ์ด๋‹ค. ๋ฆฌ๋ˆ…
 
 ์—ฌ๊ธฐ์— ์ปค๋„ ๊ฐœ๋ฐœ์ž Al Viro์˜ ์ด์•ผ๊ธฐ๊ฐ€ ์žˆ๋‹ค.
 
-::
-
-"ํ•™์ƒ์˜ ์ˆ˜ํ•™ ์ˆ™์ œ๋ฅผ ์ฑ„์ ํ•˜๋Š” ์„ ์ƒ๋‹˜์„ ์ƒ๊ฐํ•ด๋ณด๋ผ. ์„ ์ƒ๋‹˜์€ ํ•™์ƒ๋“ค์ด
+*"ํ•™์ƒ์˜ ์ˆ˜ํ•™ ์ˆ™์ œ๋ฅผ ์ฑ„์ ํ•˜๋Š” ์„ ์ƒ๋‹˜์„ ์ƒ๊ฐํ•ด๋ณด๋ผ. ์„ ์ƒ๋‹˜์€ ํ•™์ƒ๋“ค์ด
 ๋‹ต์„ ์–ป์„๋•Œ๊นŒ์ง€ ๊ฒช์€ ์‹œํ–‰์ฐฉ์˜ค๋ฅผ ๋ณด๊ธธ ์›ํ•˜์ง€ ์•Š๋Š”๋‹ค. ์„ ์ƒ๋‹˜๋“ค์€
 ๊ฐ„๊ฒฐํ•˜๊ณ  ๊ฐ€์žฅ ๋›ฐ์–ด๋‚œ ๋‹ต์„ ๋ณด๊ธธ ์›ํ•œ๋‹ค. ํ›Œ๋ฅญํ•œ ํ•™์ƒ์€ ์ด๊ฒƒ์„ ์•Œ๊ณ 
-๋งˆ์ง€๋ง‰์œผ๋กœ ๋‹ต์„ ์–ป๊ธฐ ์ „ ์ค‘๊ฐ„ ๊ณผ์ •๋“ค์„ ์ œ์ถœํ•˜์ง„ ์•Š๋Š”๋‹ค.
+๋งˆ์ง€๋ง‰์œผ๋กœ ๋‹ต์„ ์–ป๊ธฐ ์ „ ์ค‘๊ฐ„ ๊ณผ์ •๋“ค์„ ์ œ์ถœํ•˜์ง„ ์•Š๋Š”๋‹ค.*
 
-์ปค๋„ ๊ฐœ๋ฐœ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์ด๋‹ค. ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค๊ณผ ๊ฒ€ํ† ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์€ ๋ฌธ์ œ๋ฅผ
+*์ปค๋„ ๊ฐœ๋ฐœ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์ด๋‹ค. ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค๊ณผ ๊ฒ€ํ† ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์€ ๋ฌธ์ œ๋ฅผ
 ํ’€์–ด๋‚˜๊ฐ€๋Š” ๊ณผ์ •์†์— ์ˆจ๊ฒจ์ง„ ๊ณผ์ •์„ ๋ณด๊ธธ ์›ํ•˜์ง„ ์•Š๋Š”๋‹ค. ๊ทธ๋“ค์€
-๊ฐ„๊ฒฐํ•˜๊ณ  ๋ฉ‹์ง„ ๋‹ต์„ ๋ณด๊ธธ ์›ํ•œ๋‹ค."
+๊ฐ„๊ฒฐํ•˜๊ณ  ๋ฉ‹์ง„ ๋‹ต์„ ๋ณด๊ธธ ์›ํ•œ๋‹ค."*
 
 ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ํ˜‘๋ ฅํ•˜๋ฉฐ ๋›ฐ์–ด๋‚œ ๋‹ต์„ ์ฐพ๋Š” ๊ฒƒ๊ณผ ์—ฌ๋Ÿฌ๋ถ„๋“ค์˜ ๋๋งˆ์น˜์ง€ ๋ชปํ•œ ์ž‘์—…๋“ค
 ์‚ฌ์ด์— ๊ท ํ˜•์„ ์œ ์ง€ํ•ด์•ผ ํ•˜๋Š” ๊ฒƒ์€ ์–ด๋ ค์šธ์ง€๋„ ๋ชจ๋ฅธ๋‹ค. ๊ทธ๋Ÿฌ๋ฏ€๋กœ ํ”„๋กœ์„ธ์Šค์˜
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 11/12] ko_KR/HOWTO: Add whitespace between URL and text

2016-10-21 Thread SeongJae Park
Because few sentences has no whitespace between URL and text, document
fails to parse the URL from it.  This commit adds whitespace between
them to fix the problem.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 33d9f0fcd7ed..a3f54c23f61d 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -260,7 +260,7 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค::
 
 4.x ์ปค๋„ ํŠธ๋ฆฌ
 -
-4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ https://kernel.org์˜
+4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ https://kernel.org ์˜
 pub/linux/kernel/v4.x/ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
 
   - ์ƒˆ๋กœ์šด ์ปค๋„์ด ๋ฐฐํฌ๋˜์ž๋งˆ์ž 2์ฃผ์˜ ์‹œ๊ฐ„์ด ์ฃผ์–ด์ง„๋‹ค. ์ด ๊ธฐ๊ฐ„๋™์€
@@ -377,8 +377,8 @@ https://bugzilla.kernel.org๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค๋„์˜ ๋ฒ„๊ทธ
 ์ ์ˆ˜๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ๋Š” ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์ค‘์˜ ํ•˜๋‚˜์ด๋‹ค. ์™œ๋ƒํ•˜๋ฉด ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์€
 ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์˜ ๋ฒ„๊ทธ๋“ค์„ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์‹œ๊ฐ„์„ ๋‚ญ๋น„ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.
 
-์ด๋ฏธ ๋ณด๊ณ ๋œ ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์„ ๊ฐ€์ง€๊ณ  ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด์„œ https://bugzilla.kernel.org๋ฅผ
-์ฐธ์กฐํ•˜๋ผ. ์—ฌ๋Ÿฌ๋ถ„์ด ์•ž์œผ๋กœ ์ƒ๊ฒจ๋‚  ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์˜ ์กฐ์–ธ์ž๊ฐ€ ๋˜๊ธธ ์›ํ•œ๋‹ค๋ฉด
+์ด๋ฏธ ๋ณด๊ณ ๋œ ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์„ ๊ฐ€์ง€๊ณ  ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด์„œ https://bugzilla.kernel.org
+๋ฅผ ์ฐธ์กฐํ•˜๋ผ. ์—ฌ๋Ÿฌ๋ถ„์ด ์•ž์œผ๋กœ ์ƒ๊ฒจ๋‚  ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์˜ ์กฐ์–ธ์ž๊ฐ€ ๋˜๊ธธ ์›ํ•œ๋‹ค๋ฉด
 bugme-new ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ๋‚˜(์ƒˆ๋กœ์šด ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค๋งŒ์ด ์ด๊ณณ์—์„œ ๋ฉ”์ผ๋กœ ์ „ํ•ด์ง„๋‹ค)
 bugme-janitor ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ(bugzilla์— ๋ชจ๋“  ๋ณ€ํ™”๋“ค์ด ์—ฌ๊ธฐ์„œ ๋ฉ”์ผ๋กœ ์ „ํ•ด์ง„๋‹ค)
 ์— ๋“ฑ๋กํ•˜๋ฉด ๋œ๋‹ค.
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 06/12] ko_KR/HOWTO: Add cross-references to other documents

2016-10-21 Thread SeongJae Park
This commit applies commit 609d99a3b72e ("Documentation/HOWTO: add
cross-references to other documents") to Korean translation.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 78dab436a926..a8991333790f 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -104,17 +104,17 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ๋นŒ๋“œํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๊ฒƒ์„ ์„ค๋ช…ํ•œ๋‹ค. ์ปค๋„์— ์ž…๋ฌธํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์€ ์—ฌ๊ธฐ์„œ
 ์‹œ์ž‘ํ•ด์•ผ ํ•œ๋‹ค.
 
-  Documentation/Changes
+  :ref:`Documentation/Changes `
 ์ด ํŒŒ์ผ์€ ์ปค๋„์„ ์„ฑ๊ณต์ ์œผ๋กœ ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰์‹œํ‚ค๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๋‹ค์–‘ํ•œ
 ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€๋“ค์˜ ์ตœ์†Œ ๋ฒ„์ ผ์„ ๋‚˜์—ดํ•œ๋‹ค.
 
-  Documentation/CodingStyle
+  :ref:`Documentation/CodingStyle `
 ์ด ๋ฌธ์„œ๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ์ฝ”๋”ฉ ์Šคํƒ€์ผ๊ณผ ๊ทธ๋ ‡๊ฒŒ ํ•œ ๋ช‡๋ช‡ ์ด์œ ๋ฅผ ์„ค๋ช…ํ•œ๋‹ค.
 ๋ชจ๋“  ์ƒˆ๋กœ์šด ์ฝ”๋“œ๋Š” ์ด ๋ฌธ์„œ์— ๊ฐ€์ด๋“œ๋ผ์ธ๋“ค์„ ๋”ฐ๋ผ์•ผ ํ•œ๋‹ค. ๋Œ€๋ถ€๋ถ„์˜
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์€ ์ด ๊ทœ์น™์„ ๋”ฐ๋ฅด๋Š” ํŒจ์น˜๋“ค๋งŒ์„ ๋ฐ›์•„๋“ค์ผ ๊ฒƒ์ด๊ณ  ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด
 ๊ทธ ํŒจ์น˜๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ ์Šคํƒ€์ผ์ผ ๊ฒฝ์šฐ๋งŒ ์ฝ”๋“œ๋ฅผ ๊ฒ€ํ† ํ•  ๊ฒƒ์ด๋‹ค.
 
-  Documentation/SubmittingPatches ์™€ Documentation/SubmittingDrivers
+  :ref:`Documentation/SubmittingPatches ` ์™€ 
:ref:`Documentation/SubmittingDrivers `
 ์ด ํŒŒ์ผ๋“ค์€ ์„ฑ๊ณต์ ์œผ๋กœ ํŒจ์น˜๋ฅผ ๋งŒ๋“ค๊ณ  ๋ณด๋‚ด๋Š” ๋ฒ•์„ ๋‹ค์Œ์˜ ๋‚ด์šฉ๋“ค๋กœ
 ๊ต‰์žฅํžˆ ์ƒ์„ธํžˆ ์„ค๋ช…ํ•˜๊ณ  ์žˆ๋‹ค(๊ทธ๋Ÿฌ๋‚˜ ๋‹ค์Œ์œผ๋กœ ํ•œ์ •๋˜์ง„ ์•Š๋Š”๋‹ค).
 
@@ -137,7 +137,7 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 
 http://linux.yyz.us/patch-format.html
 
-   Documentation/stable_api_nonsense.txt
+   :ref:`Documentation/stable_api_nonsense.txt `
 ์ด ๋ฌธ์„œ๋Š” ์˜๋„์ ์œผ๋กœ ์ปค๋„์ด ๋ถˆ๋ณ€ํ•˜๋Š” API๋ฅผ ๊ฐ–์ง€ ์•Š๋„๋ก ๊ฒฐ์ •ํ•œ
 ์ด์œ ๋ฅผ ์„ค๋ช…ํ•˜๋ฉฐ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒƒ๋“ค์„ ํฌํ•จํ•œ๋‹ค.
 
@@ -149,12 +149,12 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ๋ฆฌ๋ˆ…์Šค๋กœ ์ „ํ–ฅํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์—๊ฒŒ๋Š” ๋งค์šฐ ์ค‘์š”ํ•˜๋‹ค.
 
 
-  Documentation/SecurityBugs
+  :ref:`Documentation/SecurityBugs `
 ์—ฌ๋Ÿฌ๋ถ„๋“ค์ด ๋ฆฌ๋ˆ…์Šค ์ปค๋„์˜ ๋ณด์•ˆ ๋ฌธ์ œ๋ฅผ ๋ฐœ๊ฒฌํ–ˆ๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค๋ฉด ์ด ๋ฌธ์„œ์—
 ๋‚˜์˜จ ๋‹จ๊ณ„์— ๋”ฐ๋ผ์„œ ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์—๊ฒŒ ์•Œ๋ฆฌ๊ณ  ๊ทธ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๋„๋ก
 ๋„์™€ ๋‹ฌ๋ผ.
 
-  Documentation/ManagementStyle
+  :ref:`Documentation/ManagementStyle `
 ์ด ๋ฌธ์„œ๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์ด ๊ทธ๋“ค์˜ ๋ฐฉ๋ฒ•๋ก ์— ๋…น์•„ ์žˆ๋Š”
 ์ •์‹ ์„ ์–ด๋–ป๊ฒŒ ๊ณต์œ ํ•˜๊ณ  ์šด์˜ํ•˜๋Š”์ง€๋ฅผ ์„ค๋ช…ํ•œ๋‹ค. ์ด๊ฒƒ์€ ์ปค๋„ ๊ฐœ๋ฐœ์— ์ž…๋ฌธํ•˜๋Š”
 ๋ชจ๋“  ์‚ฌ๋žŒ๋“ค(๋˜๋Š” ์ปค๋„ ๊ฐœ๋ฐœ์— ์ž‘์€ ํ˜ธ๊ธฐ์‹ฌ์ด๋ผ๋„ ์žˆ๋Š” ์‚ฌ๋žŒ๋“ค)์ด
@@ -162,17 +162,17 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ๋…ํŠนํ•œ ํ–‰๋™์— ๊ด€ํ•˜์—ฌ ํ”ํžˆ ์žˆ๋Š” ์˜คํ•ด๋“ค๊ณผ ํ˜ผ๋ž€๋“ค์„ ํ•ด์†Œํ•˜๊ณ  ์žˆ๊ธฐ
 ๋•Œ๋ฌธ์ด๋‹ค.
 
-  Documentation/stable_kernel_rules.txt
+  :ref:`Documentation/stable_kernel_rules.txt `
 ์ด ๋ฌธ์„œ๋Š” ์•ˆ์ •์ ์ธ ์ปค๋„ ๋ฐฐํฌ๊ฐ€ ์ด๋ฃจ์–ด์ง€๋Š” ๊ทœ์น™์„ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ
 ์—ฌ๋Ÿฌ๋ถ„๋“ค์ด ์ด๋Ÿฌํ•œ ๋ฐฐํฌ๋“ค ์ค‘ ํ•˜๋‚˜์— ๋ณ€๊ฒฝ์„ ํ•˜๊ธธ ์›ํ•œ๋‹ค๋ฉด
 ๋ฌด์—‡์„ ํ•ด์•ผ ํ•˜๋Š”์ง€๋ฅผ ์„ค๋ช…ํ•œ๋‹ค.
 
-  Documentation/kernel-docs.txt
+  :ref:`Documentation/kernel-docs.txt `
 ์ปค๋„ ๊ฐœ๋ฐœ์— ๊ด€๊ณ„๋œ ์™ธ๋ถ€ ๋ฌธ์„œ์˜ ๋ฆฌ์ŠคํŠธ์ด๋‹ค. ์ปค๋„ ๋‚ด์˜ ํฌํ•จ๋œ ๋ฌธ์„œ๋“ค
 ์ค‘์— ์—ฌ๋Ÿฌ๋ถ„์ด ์ฐพ๊ณ  ์‹ถ์€ ๋ฌธ์„œ๋ฅผ ๋ฐœ๊ฒฌํ•˜์ง€ ๋ชปํ•  ๊ฒฝ์šฐ ์ด ๋ฆฌ์ŠคํŠธ๋ฅผ
 ์‚ดํŽด๋ณด๋ผ.
 
-  Documentation/applying-patches.txt
+  :ref:`Documentation/applying-patches.txt `
 ํŒจ์น˜๊ฐ€ ๋ฌด์—‡์ด๋ฉฐ ๊ทธ๊ฒƒ์„ ์ปค๋„์˜ ๋‹ค๋ฅธ ๊ฐœ๋ฐœ ๋ธŒ๋žœ์น˜๋“ค์— ์–ด๋–ป๊ฒŒ
 ์ ์šฉํ•˜๋Š”์ง€์— ๊ด€ํ•˜์—ฌ ์ž์„ธํžˆ ์„ค๋ช…ํ•˜๊ณ  ์žˆ๋Š” ์ข‹์€ ์ž…๋ฌธ์„œ์ด๋‹ค.
 
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 09/12] ko_KR/HOWTO: Adjust external link references

2016-10-21 Thread SeongJae Park
This commit appplies commit f1eebe92c265 ("Documentation/HOWTO: adjust
external link references") to Korean translation.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 39 ++-
 1 file changed, 18 insertions(+), 21 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index 19a19c5baa72..9898e14c9cc3 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -84,7 +84,7 @@ Documentation/HOWTO
 
 GPL์— ๊ด€ํ•œ ์žฆ์€ ์งˆ๋ฌธ๋“ค๊ณผ ๋‹ต๋ณ€๋“ค์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
 
-http://www.gnu.org/licenses/gpl-faq.html
+https://www.gnu.org/licenses/gpl-faq.html
 
 
 ๋ฌธ์„œ
@@ -130,11 +130,9 @@ mtk.manpa...@gmail.com์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ์—๊ฒŒ ๋ณด๋‚ผ ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
 ์˜ฌ๋ฐ”๋ฅธ ํŒจ์น˜๋“ค์„ ๋งŒ๋“œ๋Š” ๋ฒ•์— ๊ด€ํ•œ ํ›Œ๋ฅญํ•œ ๋‹ค๋ฅธ ๋ฌธ์„œ๋“ค์ด ์žˆ๋‹ค.
 
 "The Perfect Patch"
-
-http://www.ozlabs.org/~akpm/stuff/tpp.txt
+https://www.ozlabs.org/~akpm/stuff/tpp.txt
 
 "Linux kernel patch submission format"
-
 http://linux.yyz.us/patch-format.html
 
:ref:`Documentation/stable_api_nonsense.txt `
@@ -212,7 +210,7 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค:
 ์—ฌ๋Ÿฌ๋ถ„์ด ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์— ๊ด€ํ•˜์—ฌ ์•„๋ฌด๊ฒƒ๋„ ๋ชจ๋ฅธ๋‹ค๋ฉด Linux KernelNewbies
 ํ”„๋กœ์ ํŠธ๋ฅผ ๋ด์•ผ ํ•œ๋‹ค.
 
-http://kernelnewbies.org
+https://kernelnewbies.org
 
 ๊ทธ๊ณณ์€ ๊ฑฐ์˜ ๋ชจ๋“  ์ข…๋ฅ˜์˜ ๊ธฐ๋ณธ์ ์ธ ์ปค๋„ ๊ฐœ๋ฐœ ์งˆ๋ฌธ๋“ค(์งˆ๋ฌธํ•˜๊ธฐ ์ „์— ๋จผ์ €
 ์•„์นด์ด๋ธŒ๋ฅผ ์ฐพ์•„๋ด๋ผ. ๊ณผ๊ฑฐ์— ์ด๋ฏธ ๋‹ต๋ณ€๋˜์—ˆ์„ ์ˆ˜๋„ ์žˆ๋‹ค)์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๋„์›€์ด
@@ -226,7 +224,7 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค:
 ์—ฌ๋Ÿฌ๋ถ„์ด ์–ด๋””์„œ ์‹œ์ž‘ํ•ด์•ผ ํ• ์ง„ ๋ชจ๋ฅด์ง€๋งŒ ์ปค๋„ ๊ฐœ๋ฐœ ์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•  ์ˆ˜
 ์žˆ๋Š” ์ผ๋“ค์„ ์ฐพ๊ธธ ์›ํ•œ๋‹ค๋ฉด ๋ฆฌ๋ˆ…์Šค ์ปค๋„ Janitor ํ”„๋กœ์ ํŠธ๋ฅผ ์‚ดํŽด๋ด๋ผ.
 
-   http://kernelnewbies.org/KernelJanitors
+   https://kernelnewbies.org/KernelJanitors
 
 ๊ทธ๊ณณ์€ ์‹œ์ž‘ํ•˜๊ธฐ์— ํ›Œ๋ฅญํ•œ ์žฅ์†Œ์ด๋‹ค. ๊ทธ๊ณณ์€ ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ์†Œ์Šค ํŠธ๋ฆฌ๋‚ด์—
 ๊ฐ„๋‹จํžˆ ์ •๋ฆฌ๋˜๊ณ  ์ˆ˜์ •๋  ์ˆ˜ ์žˆ๋Š” ๋ฌธ์ œ๋“ค์— ๊ด€ํ•˜์—ฌ ์„ค๋ช…ํ•œ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์€ ์ด
@@ -240,7 +238,7 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค:
 ๋งŒ๋“ค์–ด์ง„ kernel-mentors ํ”„๋กœ์ ํŠธ๊ฐ€ ์žˆ๋‹ค. ๊ทธ๊ณณ์€ ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ์ด๋ฉฐ
 ๋‹ค์Œ์—์„œ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋‹ค.
 
- http://selenic.com/mailman/listinfo/kernel-mentors
+ https://selenic.com/mailman/listinfo/kernel-mentors
 
 ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ์ฝ”๋“œ์— ์‹ค์ œ ๋ณ€๊ฒฝ์„ ํ•˜๊ธฐ ์ „์— ๋ฐ˜๋“œ์‹œ ๊ทธ ์ฝ”๋“œ๊ฐ€ ์–ด๋–ป๊ฒŒ
 ๋™์ž‘ํ•˜๋Š”์ง€ ์ดํ•ดํ•˜๊ณ  ์žˆ์–ด์•ผ ํ•œ๋‹ค. ์ฝ”๋“œ๋ฅผ ๋ถ„์„ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ํŠน์ •ํ•œ ํˆด์˜
@@ -268,14 +266,14 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค:
 
 4.x ์ปค๋„ ํŠธ๋ฆฌ
 -
-4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ kernel.org์˜ pub/linux/kernel/v4.x/
-๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
+4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ https://kernel.org์˜
+pub/linux/kernel/v4.x/ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
 
   - ์ƒˆ๋กœ์šด ์ปค๋„์ด ๋ฐฐํฌ๋˜์ž๋งˆ์ž 2์ฃผ์˜ ์‹œ๊ฐ„์ด ์ฃผ์–ด์ง„๋‹ค. ์ด ๊ธฐ๊ฐ„๋™์€
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค์€ ํฐ diff๋“ค์„ Linus์—๊ฒŒ ์ œ์ถœํ•  ์ˆ˜ ์žˆ๋‹ค. ๋Œ€๊ฐœ ์ด ํŒจ์น˜๋“ค์€
 ๋ช‡ ์ฃผ ๋™์•ˆ -next ์ปค๋„๋‚ด์— ์ด๋ฏธ ์žˆ์—ˆ๋˜ ๊ฒƒ๋“ค์ด๋‹ค. ํฐ ๋ณ€๊ฒฝ๋“ค์„ ์ œ์ถœํ•˜๋Š” ๋ฐ
 ์„ ํ˜ธ๋˜๋Š” ๋ฐฉ๋ฒ•์€  git(์ปค๋„์˜ ์†Œ์Šค ๊ด€๋ฆฌ ํˆด, ๋” ๋งŽ์€ ์ •๋ณด๋“ค์€
-http://git-scm.com/ ์—์„œ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋‹ค)๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ ์ˆœ์ˆ˜ํ•œ
+https://git-scm.com/ ์—์„œ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ๋‹ค)๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ ์ˆœ์ˆ˜ํ•œ
 ํŒจ์น˜ํŒŒ์ผ์˜ ํ˜•์‹์œผ๋กœ ๋ณด๋‚ด๋Š” ๊ฒƒ๋„ ๋ฌด๊ด€ํ•˜๋‹ค.
   - 2์ฃผ ํ›„์— -rc1 ์ปค๋„์ด ๋ฐฐํฌ๋˜๋ฉฐ ์ง€๊ธˆ๋ถ€ํ„ฐ๋Š” ์ „์ฒด ์ปค๋„์˜ ์•ˆ์ •์„ฑ์— ์˜ํ–ฅ์„
 ๋ฏธ์น ์ˆ˜ ์žˆ๋Š” ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ๋“ค์„ ํฌํ•จํ•˜์ง€ ์•Š๋Š” ํŒจ์น˜๋“ค๋งŒ์ด ์ถ”๊ฐ€๋  ์ˆ˜ ์žˆ๋‹ค.
@@ -337,14 +335,14 @@ Linus์˜ ํŠธ๋ฆฌ์˜ ํ˜„์žฌ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ •์ƒ์ ์ธ
 
 ๋Œ€๋ถ€๋ถ„์˜ ์ด๋Ÿฌํ•œ ์ €์žฅ์†Œ๋Š” git ํŠธ๋ฆฌ์ง€๋งŒ, git์ด ์•„๋‹Œ SCM์œผ๋กœ ๊ด€๋ฆฌ๋˜๊ฑฐ๋‚˜, quilt
 ์‹œ๋ฆฌ์ฆˆ๋กœ ์ œ๊ณต๋˜๋Š” ํŒจ์น˜๋“ค๋„ ์กด์žฌํ•œ๋‹ค. ์ด๋Ÿฌํ•œ ์„œ๋ธŒ์‹œ์Šคํ…œ ์ €์žฅ์†Œ๋“ค์€ MAINTAINERS
-ํŒŒ์ผ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค. ๋Œ€๋ถ€๋ถ„์€ http://git.kernel.org ์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
+ํŒŒ์ผ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค. ๋Œ€๋ถ€๋ถ„์€ https://git.kernel.org ์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
 
 ์ œ์•ˆ๋œ ํŒจ์น˜๋Š” ์„œ๋ธŒ์‹œ์Šคํ…œ ํŠธ๋ฆฌ์— ์ปค๋ฐ‹๋˜๊ธฐ ์ „์— ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ๋ฅผ ํ†ตํ•ด
 ๋ฆฌ๋ทฐ๋œ๋‹ค(์•„๋ž˜์˜ ๊ด€๋ จ ์„น์…˜์„ ์ฐธ๊ณ ํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค). ์ผ๋ถ€ ์ปค๋„ ์„œ๋ธŒ์‹œ์Šคํ…œ์˜ ๊ฒฝ์šฐ, ์ด
 ๋ฆฌ๋ทฐ ํ”„๋กœ์„ธ์Šค๋Š” patchwork๋ผ๋Š” ๋„๊ตฌ๋ฅผ ํ†ตํ•ด ์ถ”์ ๋œ๋‹ค. patchwork์€ ๋“ฑ๋ก๋œ ํŒจ์น˜์™€
 ํŒจ์น˜์— ๋Œ€ํ•œ ์ฝ”๋ฉ˜ํŠธ, ํŒจ์น˜์˜ ๋ฒ„์ „์„ ๋ณผ ์ˆ˜ ์žˆ๋Š” ์›น ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์ œ๊ณตํ•˜๊ณ ,
 ๋ฉ”์ธํ…Œ์ด๋„ˆ๋Š” ํŒจ์น˜๋ฅผ ๋ฆฌ๋ทฐ ์ค‘, ๋ฆฌ๋ทฐ ํ†ต๊ณผ, ๋˜๋Š” ๋ฐ˜๋ ค๋จ์œผ๋กœ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋‹ค.
-๋Œ€๋ถ€๋ถ„์˜ ์ด๋Ÿฌํ•œ patchwork ์‚ฌ์ดํŠธ๋Š” http://patchwork.kernel.org/ ๋˜๋Š”
+๋Œ€๋ถ€๋ถ„์˜ ์ด๋Ÿฌํ•œ patchwork ์‚ฌ์ดํŠธ๋Š” https://patchwork.kernel.org/ ๋˜๋Š”
 http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 
 4.x - ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ next ์ปค๋„ ํŠธ๋ฆฌ
@@ -353,7 +351,7 @@ http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 ํ…Œ์ŠคํŠธ๋ฅผ ๊ฑฐ์ณ์•ผ ํ•œ๋‹ค. ์ด๋Ÿฐ ๋ชฉ์ ์œผ๋กœ, ๋ชจ๋“  ์„œ๋ธŒ์‹œ์Šคํ…œ ํŠธ๋ฆฌ์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ๊ฑฐ์˜
 ๋งค์ผ ๋ฐ›์•„๊ฐ€๋Š” ํŠน์ˆ˜ํ•œ ํ…Œ์ŠคํŠธ ์ €์žฅ์†Œ๊ฐ€ ์กด์žฌํ•œ๋‹ค:
 
-   http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git
+   https://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git
 
 ์ด๋Ÿฐ ์‹์œผ๋กœ, -next ์ปค๋„์„ ํ†ตํ•ด ๋‹ค์Œ ๋จธ์ง€ ๊ธฐ๊ฐ„์— ๋ฉ”์ธ๋ผ์ธ ์ปค๋„์— ์–ด๋–ค ๋ณ€๊ฒฝ์ด
 ๊ฐ€ํ•ด์งˆ ๊ฒƒ์ธ์ง€ ๊ฐ„๋žตํžˆ ์•Œ ์ˆ˜ ์žˆ๋‹ค. ๋ชจํ—˜์‹ฌ ๊ฐ•ํ•œ ํ…Œ์Šคํ„ฐ๋ผ๋ฉด -next ์ปค๋„์—์„œ ํ…Œ์ŠคํŠธ๋ฅผ
@@ -363,11 +361,11 @@ http://patchwork.ozlabs.org/ ์— ๋‚˜์—ด๋˜์–ด ์žˆ๋‹ค.
 ๋ฒ„๊ทธ ๋ณด๊ณ 
 -
 
-bugzilla.kernel.org๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค๋„์˜ ๋ฒ„๊ทธ๋ฅผ ์ถ”์ ํ•˜๋Š” ๊ณณ์ด๋‹ค.
-์‚ฌ์šฉ์ž๋“ค์€ ๋ฐœ๊ฒฌํ•œ ๋ชจ๋“  ๋ฒ„๊ทธ๋“ค์„ ๋ณด๊ณ ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์ด ํˆด์„ ์‚ฌ์šฉํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค.
-kernel bugzilla๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž์„ธํ•œ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
+https://bugzilla.kernel.org๋Š” ๋ฆฌ๋ˆ…์Šค ์ปค๋„ ๊ฐœ๋ฐœ์ž๋“ค์ด ์ปค๋„์˜ ๋ฒ„๊ทธ๋ฅผ ์ถ”์ ํ•˜๋Š”
+๊ณณ์ด๋‹ค. ์‚ฌ์šฉ์ž๋“ค์€ ๋ฐœ๊ฒฌํ•œ ๋ชจ๋“  ๋ฒ„๊ทธ๋“ค์„ ๋ณด๊ณ ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์ด ํˆด์„ ์‚ฌ์šฉํ•  ๊ฒƒ์„
+๊ถŒ์žฅํ•œ๋‹ค.  kernel bugzilla๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž์„ธํ•œ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
 
-http://bugzilla.kernel.org/page.cgi?id=faq.html
+https://bugzilla.kernel.org/page.cgi?id=faq.html
 
 ๋ฉ”์ธ ์ปค๋„ ์†Œ์Šค ๋””๋ ‰ํ† ๋ฆฌ์— ์žˆ๋Š” REPORTING-BUGS ํŒŒ์ผ์€ ์ปค๋„ ๋ฒ„๊ทธ๋ผ๊ณ  ์ƒ๊ฐ๋˜๋Š”
 ๊ฒƒ์„ ๋ณด๊ณ ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๊ด€ํ•œ ์ข‹์€ ํ…œํ”Œ๋ฆฟ์ด๋ฉฐ ๋ฌธ์ œ๋ฅผ ์ถ”์ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ์ปค๋„
@@ -385,13 +383,14 @@ kernel bugzilla๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž์„ธํ•œ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ์„ ์ฐธ์กฐํ•˜๋ผ.
 ์ ์ˆ˜๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ๋Š” ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์ค‘์˜ ํ•˜๋‚˜์ด๋‹ค. ์™œ๋ƒํ•˜๋ฉด ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์€
 ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์˜ ๋ฒ„๊ทธ๋“ค์„ ์ˆ˜์ •ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ ์‹œ๊ฐ„์„ ๋‚ญ๋น„ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.
 
-์ด๋ฏธ ๋ณด๊ณ ๋œ ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์„ ๊ฐ€์ง€๊ณ  ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด์„œ http://bugzilla.kernel.org๋ฅผ
+์ด๋ฏธ ๋ณด๊ณ ๋œ ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์„ ๊ฐ€์ง€๊ณ  ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด์„œ https://bugzilla.kernel.org๋ฅผ
 ์ฐธ์กฐํ•˜๋ผ. ์—ฌ๋Ÿฌ๋ถ„์ด ์•ž์œผ๋กœ ์ƒ๊ฒจ๋‚  ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค์˜ ์กฐ์–ธ์ž๊ฐ€ ๋˜๊ธธ ์›ํ•œ๋‹ค๋ฉด
 bugme-new ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ๋‚˜(์ƒˆ๋กœ์šด ๋ฒ„๊ทธ ๋ฆฌํฌํŠธ๋“ค๋งŒ์ด ์ด๊ณณ์—์„œ ๋ฉ”์ผ๋กœ ์ „ํ•ด์ง„๋‹ค)
 bugme-janitor ๋ฉ”์ผ๋ง ๋ฆฌ์ŠคํŠธ(bugzilla์— ๋ชจ๋“  ๋ณ€ํ™”๋“ค์ด ์—ฌ๊ธฐ์„œ ๋ฉ”์ผ๋กœ ์ „ํ•ด์ง„๋‹ค)
 ์— ๋“ฑ๋กํ•˜๋ฉด ๋œ๋‹ค.
 
   https://lists.linux-foundation.org/mailman/listinfo/bugme-new
+
   https://lists.linux-foundation.org/mailman/listinfo/bugme-janitors
 
 
@@ -615,8 +614,6 @@ Pat์ด๋ผ๋Š” ์ด๋ฆ„์„ ๊ฐ€์ง„ ์—ฌ์ž๊ฐ€ ์žˆ์„ ์ˆ˜๋„ ์žˆ๋Š” ๊ฒƒ์ด๋‹ค. ๋ฆฌ๋ˆ…
 http://www.ozlabs.org/~akpm/stuff/tpp.txt
 
 
-
-
 ์ด ๋ชจ๋“  ๊ฒƒ์„ ํ•˜๋Š” ๊ฒƒ์€ ๋งค์šฐ ์–ด๋ ค์šด ์ผ์ด๋‹ค. 

[PATCH 12/12] ko_KR/HOWTO: Mark subsection in rst format

2016-10-21 Thread SeongJae Park
Subsections in HOWTO is not marked in rst format.  This commit specifies
them in rst format.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/HOWTO | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Documentation/ko_KR/HOWTO b/Documentation/ko_KR/HOWTO
index a3f54c23f61d..1407c01277c0 100644
--- a/Documentation/ko_KR/HOWTO
+++ b/Documentation/ko_KR/HOWTO
@@ -259,7 +259,8 @@ Postscript ๋‚˜ man page ๋กœ๋„ ๋งŒ๋“ค์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค::
   - 4.x - ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ next ์ปค๋„ ํŠธ๋ฆฌ
 
 4.x ์ปค๋„ ํŠธ๋ฆฌ
--
+~
+
 4.x ์ปค๋„๋“ค์€ Linus Torvalds๊ฐ€ ๊ด€๋ฆฌํ•˜๋ฉฐ https://kernel.org ์˜
 pub/linux/kernel/v4.x/ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐธ์กฐ๋  ์ˆ˜ ์žˆ๋‹ค.๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.
 
@@ -292,7 +293,8 @@ Andrew Morton์˜ ๊ธ€์ด ์žˆ๋‹ค.
  ๋ฐฐํฌ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค."*
 
 4.x.y - ์•ˆ์ • ์ปค๋„ ํŠธ๋ฆฌ
---
+~~
+
 3 ์ž๋ฆฌ ์ˆซ์ž๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฒ„์ ผ์˜ ์ปค๋„๋“ค์€ -stable ์ปค๋„๋“ค์ด๋‹ค. ๊ทธ๊ฒƒ๋“ค์€ 4.x
 ์ปค๋„์—์„œ ๋ฐœ๊ฒฌ๋œ ํฐ ํšŒ๊ท€๋“ค์ด๋‚˜ ๋ณด์•ˆ ๋ฌธ์ œ๋“ค ์ค‘ ๋น„๊ต์  ์ž‘๊ณ  ์ค‘์š”ํ•œ ์ˆ˜์ •๋“ค์„
 ํฌํ•จํ•œ๋‹ค.
@@ -311,14 +313,16 @@ Andrew Morton์˜ ๊ธ€์ด ์žˆ๋‹ค.
 ์ง„ํ–‰๋˜๋Š”์ง€๋ฅผ ์„ค๋ช…ํ•œ๋‹ค.
 
 4.x -git ํŒจ์น˜๋“ค

+~~~
+
 git ์ €์žฅ์†Œ(๊ทธ๋Ÿฌ๋ฏ€๋กœ -git์ด๋ผ๋Š” ์ด๋ฆ„์ด ๋ถ™์Œ)์—๋Š” ๋‚ ๋งˆ๋‹ค ๊ด€๋ฆฌ๋˜๋Š” Linus์˜
 ์ปค๋„ ํŠธ๋ฆฌ์˜ snapshot ๋“ค์ด ์žˆ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ผ๋ฐ˜์ ์œผ๋กœ ๋‚ ๋งˆ๋‹ค ๋ฐฐํฌ๋˜๋ฉฐ
 Linus์˜ ํŠธ๋ฆฌ์˜ ํ˜„์žฌ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ์ด ํŒจ์น˜๋“ค์€ ์ •์ƒ์ ์ธ์ง€ ์กฐ๊ธˆ๋„
 ์‚ดํŽด๋ณด์ง€ ์•Š๊ณ  ์ž๋™์ ์œผ๋กœ ์ƒ์„ฑ๋œ ๊ฒƒ์ด๋ฏ€๋กœ -rc ์ปค๋„๋“ค ๋ณด๋‹ค๋„ ๋” ์‹คํ—˜์ ์ด๋‹ค.
 
 ์„œ๋ธŒ์‹œ์Šคํ…œ ์ปค๋„ ํŠธ๋ฆฌ๋“ค๊ณผ ํŒจ์น˜๋“ค

+~~~
+
 ๋‹ค์–‘ํ•œ ์ปค๋„ ์„œ๋ธŒ์‹œ์Šคํ…œ์˜ ๋ฉ”์ธํ…Œ์ด๋„ˆ๋“ค --- ๊ทธ๋ฆฌ๊ณ  ๋งŽ์€ ์ปค๋„ ์„œ๋ธŒ์‹œ์Šคํ…œ ๊ฐœ๋ฐœ์ž๋“ค
 --- ์€ ๊ทธ๋“ค์˜ ํ˜„์žฌ ๊ฐœ๋ฐœ ์ƒํƒœ๋ฅผ ์†Œ์Šค ์ €์žฅ์†Œ๋กœ ๋…ธ์ถœํ•œ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค๋„
 ์ปค๋„์˜ ๋‹ค๋ฅธ ์˜์—ญ์— ์–ด๋–ค ๋ณ€ํ™”๊ฐ€ ์ด๋ฃจ์–ด์ง€๊ณ  ์žˆ๋Š”์ง€ ์•Œ ์ˆ˜ ์žˆ๋‹ค. ๊ธ‰์†ํžˆ ๊ฐœ๋ฐœ์ด
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 00/12] Fix and update HOWTO Korean translation

2016-10-21 Thread SeongJae Park
This patchset applies ReST conversion effort for HOWTO document to its Korean
translation.  It also contains fixup of trivial nitpicks in the document and
the translation.

All patches are based on v4.9-rc1.

SeongJae Park (12):
  Documentation/HOWTO: Mark subsection in rst format
  ko_KR/HOWTO: Fix a typo: s/Linux Torvalds/Linus Torvalds
  ko_KR/HOWTO: Fix subtitles style
  ko_KR/HOWTO: Update obsolete link to bugzilla faq
  ko_KR/HOWTO: Convert to ReST notation
  ko_KR/HOWTO: Add cross-references to other documents
  ko_KR/HOWTO: Update information about generating documentation
  ko_KR/HOWTO: Improve some markups to make it visually better
  ko_KR/HOWTO: Adjust external link references
  ko_KR/HOWTO: Clean up bare :: lines
  ko_KR/HOWTO: Add whitespace between URL and text
  ko_KR/HOWTO: Mark subsection in rst format

 Documentation/HOWTO   |  15 +++--
 Documentation/ko_KR/HOWTO | 162 ++
 2 files changed, 117 insertions(+), 60 deletions(-)

-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH v8 0/8] thunderbolt: Introducing Thunderbolt(TM) Networking

2016-10-21 Thread Mario.Limonciello
> -Original Message-
> From: Amir Levy [mailto:amir.jer.l...@intel.com]
> Sent: Wednesday, September 28, 2016 9:44 AM
> To: gre...@linuxfoundation.org
> Cc: andreas.noe...@gmail.com; bhelg...@google.com; cor...@lwn.net;
> linux-ker...@vger.kernel.org; linux-...@vger.kernel.org;
> net...@vger.kernel.org; linux-doc@vger.kernel.org; Limonciello, Mario
> ; thunderbolt-li...@intel.com;
> mika.westerb...@intel.com; tomas.wink...@intel.com;
> xiong.y.zh...@intel.com; Amir Levy 
> Subject: [PATCH v8 0/8] thunderbolt: Introducing Thunderbolt(TM)
> Networking
> 
> This driver enables Thunderbolt Networking on non-Apple platforms
> running Linux.
> 
> Thunderbolt Networking provides peer-to-peer connections to transfer
> files between computers, perform PC migrations, and/or set up small
> workgroups with shared storage.
> 
> This is a virtual connection that emulates an Ethernet adapter that
> enables Ethernet networking with the benefit of Thunderbolt superfast
> medium capability.
> 
> Thunderbolt Networking enables two hosts and several devices that
> have a Thunderbolt controller to be connected together in a linear
> (Daisy chain) series from a single port.
> 
> Thunderbolt Networking for Linux is compatible with Thunderbolt
> Networking on systems running macOS or Windows and also supports
> Thunderbolt generation 2 and 3 controllers.
> 
> Note that all pre-existing Thunderbolt generation 3 features, such as
> USB, Display and other Thunderbolt device connectivity will continue
> to function exactly as they did prior to enabling Thunderbolt Networking.
> 
> Code and Software Specifications:
> This kernel code creates a virtual ethernet device for computer to
> computer communication over a Thunderbolt cable.
> The new driver is a separate driver to the existing Thunderbolt driver.
> It is designed to work on systems running Linux that
> interface with Intel Connection Manager (ICM) firmware based
> Thunderbolt controllers that support Thunderbolt Networking.
> The kernel code operates in coordination with the Thunderbolt user-
> space daemon to implement full Thunderbolt networking functionality.
> 
> Hardware Specifications:
> Thunderbolt Hardware specs have not yet been published but are used
> where necessary for register definitions.
> 
> Changes since v7:
>  - Removed debug prints
>  - Edited error prints
>  - Edited copyright notice
>  - Changed the Kconfig patch to be after the code changes
> 
> These patches were pushed to GitHub where they can be reviewed more
> comfortably with green/red highlighting:
>   https://github.com/01org/thunderbolt-software-kernel-tree
> 
> Daemon code:
>   https://github.com/01org/thunderbolt-software-daemon
> 
> For reference, here's a link to version 6:
> [v7]: https://lkml.org/lkml/2016/9/27/244
> 
> Amir Levy (8):
>   thunderbolt: Macro rename
>   thunderbolt: Updating the register definitions
>   thunderbolt: Communication with the ICM (firmware)
>   thunderbolt: Networking state machine
>   thunderbolt: Networking transmit and receive
>   thunderbolt: Kconfig for Thunderbolt Networking
>   thunderbolt: Networking doc
>   thunderbolt: Adding maintainer entry
> 
>  Documentation/00-INDEX   |2 +
>  Documentation/thunderbolt/networking.txt |  132 ++
>  MAINTAINERS  |8 +-
>  drivers/thunderbolt/Kconfig  |   27 +-
>  drivers/thunderbolt/Makefile |3 +-
>  drivers/thunderbolt/icm/Makefile |2 +
>  drivers/thunderbolt/icm/icm_nhi.c| 1514 
>  drivers/thunderbolt/icm/icm_nhi.h|   82 ++
>  drivers/thunderbolt/icm/net.c| 2254
> ++
>  drivers/thunderbolt/icm/net.h|  287 
>  drivers/thunderbolt/nhi_regs.h   |  115 +-
>  11 files changed, 4417 insertions(+), 9 deletions(-)
>  create mode 100644 Documentation/thunderbolt/networking.txt
>  create mode 100644 drivers/thunderbolt/icm/Makefile
>  create mode 100644 drivers/thunderbolt/icm/icm_nhi.c
>  create mode 100644 drivers/thunderbolt/icm/icm_nhi.h
>  create mode 100644 drivers/thunderbolt/icm/net.c
>  create mode 100644 drivers/thunderbolt/icm/net.h
> 
> --
> 2.7.4

Hi Amir,

I've tested your v8 series on Dell hardware with Thunderbolt 
Controllers again between a Linux and Windows box.
Functionally it's working well.

Tested-By: Mario Limonciello 

Andreas,

Following the history of this thread, I believe Greg was still looking for 
an ack from you that Amir is using the interface properly.

Thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] locking/Doc/ko_KR: Clarify limited control-dependency scope

2016-10-21 Thread SeongJae Park
This commit applies upstream change, commit ebff09a6ff16
("locking/Documentation: Clarify limited control-dependency scope"), to
Korean translation.

Signed-off-by: SeongJae Park 
---
 Documentation/ko_KR/memory-barriers.txt | 36 +
 1 file changed, 36 insertions(+)

diff --git a/Documentation/ko_KR/memory-barriers.txt 
b/Documentation/ko_KR/memory-barriers.txt
index 34d3d380893d..a3228a676cc1 100644
--- a/Documentation/ko_KR/memory-barriers.txt
+++ b/Documentation/ko_KR/memory-barriers.txt
@@ -823,6 +823,38 @@ CPU ๋Š” b ๋กœ๋ถ€ํ„ฐ์˜ ๋กœ๋“œ ์˜คํผ๋ ˆ์ด์…˜์ด a ๋กœ๋ถ€ํ„ฐ์˜ ๋กœ๋“œ ์˜คํผ๋ ˆ
 ์˜คํผ๋ ˆ์ด์…˜์„ ์œ„ํ•œ ์ฝ”๋“œ๋ฅผ ์ •๋ง๋กœ ๋งŒ๋“ค๋„๋ก ํ•˜์ง€๋งŒ, ์ปดํŒŒ์ผ๋Ÿฌ๊ฐ€ ๊ทธ๋ ‡๊ฒŒ ๋งŒ๋“ค์–ด์ง„
 ์ฝ”๋“œ์˜ ์ˆ˜ํ–‰ ๊ฒฐ๊ณผ๋ฅผ ์‚ฌ์šฉํ•˜๋„๋ก ๊ฐ•์ œํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค.
 
+๋˜ํ•œ, ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ if ๋ฌธ์˜ then ์ ˆ๊ณผ else ์ ˆ์— ๋Œ€ํ•ด์„œ๋งŒ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.  ์ƒ์„ธํžˆ
+๋งํ•ด์„œ, ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ if ๋ฌธ์„ ๋’ค๋”ฐ๋ฅด๋Š” ์ฝ”๋“œ์—๋Š” ์ ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค:
+
+   q = READ_ONCE(a);
+   if (q) {
+   WRITE_ONCE(b, p);
+   } else {
+   WRITE_ONCE(b, r);
+   }
+   WRITE_ONCE(c, 1);  /* BUG: No ordering against the read from "a". */
+
+์ปดํŒŒ์ผ๋Ÿฌ๋Š” volatile ํƒ€์ž…์— ๋Œ€ํ•œ ์•ก์„ธ์Šค๋ฅผ ์žฌ๋ฐฐ์น˜ ํ•  ์ˆ˜ ์—†๊ณ  ์ด ์กฐ๊ฑด ํ•˜์˜ "b"
+๋กœ์˜ ์“ฐ๊ธฐ๋ฅผ ์žฌ๋ฐฐ์น˜ ํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์—ฌ๊ธฐ์— ์ˆœ์„œ ๊ทœ์น™์ด ์กด์žฌํ•œ๋‹ค๊ณ  ์ฃผ์žฅํ•˜๊ณ 
+์‹ถ์„ ๊ฒ๋‹ˆ๋‹ค.  ๋ถˆํ–‰ํžˆ๋„ ์ด ๊ฒฝ์šฐ์—, ์ปดํŒŒ์ผ๋Ÿฌ๋Š” ๋‹ค์Œ์˜ ๊ฐ€์ƒ์˜ pseudo-assembly ์–ธ์–ด
+์ฝ”๋“œ์ฒ˜๋Ÿผ "b" ๋กœ์˜ ๋‘๊ฐœ์˜ ์“ฐ๊ธฐ ์˜คํผ๋ ˆ์ด์…˜์„ conditional-move ์ธ์ŠคํŠธ๋Ÿญ์…˜์œผ๋กœ
+๋ฒˆ์—ญํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
+
+   ld r1,a
+   ld r2,p
+   ld r3,r
+   cmp r1,$0
+   cmov,ne r4,r2
+   cmov,eq r4,r3
+   st r4,b
+   st $1,c
+
+์™„ํ™”๋œ ์ˆœ์„œ ๊ทœ์น™์˜ CPU ๋Š” "a" ๋กœ๋ถ€ํ„ฐ์˜ ๋กœ๋“œ์™€ "c" ๋กœ์˜ ์Šคํ† ์–ด ์‚ฌ์ด์— ์–ด๋–ค
+์ข…๋ฅ˜์˜ ์˜์กด์„ฑ๋„ ๊ฐ–์ง€ ์•Š์„ ๊ฒ๋‹ˆ๋‹ค.  ์ด ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ๋‘๊ฐœ์˜ cmov ์ธ์ŠคํŠธ๋Ÿญ์…˜๊ณผ
+๊ฑฐ๊ธฐ์— ์˜์กดํ•˜๋Š” ์Šคํ† ์–ด ์—๊ฒŒ๋งŒ ์ ์šฉ๋  ๊ฒ๋‹ˆ๋‹ค.  ์งง๊ฒŒ ๋งํ•˜์ž๋ฉด, ์ปจํŠธ๋กค ์˜์กด์„ฑ์€
+์ฃผ์–ด์ง„ if ๋ฌธ์˜ then ์ ˆ๊ณผ else ์ ˆ์—๊ฒŒ๋งŒ (๊ทธ๋ฆฌ๊ณ  ์ด ๋‘ ์ ˆ ๋‚ด์—์„œ ํ˜ธ์ถœ๋˜๋Š”
+ํ•จ์ˆ˜๋“ค์—๊ฒŒ๊นŒ์ง€) ์ ์šฉ๋˜์ง€, ์ด if ๋ฌธ์„ ๋’ค๋”ฐ๋ฅด๋Š” ์ฝ”๋“œ์—๋Š” ์ ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
+
 ๋งˆ์ง€๋ง‰์œผ๋กœ, ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ์ดํ–‰์„ฑ (transitivity) ์„ ์ œ๊ณตํ•˜์ง€ -์•Š์Šต๋‹ˆ๋‹ค-.  ์ด๊ฑด
 x ์™€ y ๊ฐ€ ๋‘˜ ๋‹ค 0 ์ด๋ผ๋Š” ์ดˆ๊ธฐ๊ฐ’์„ ๊ฐ€์กŒ๋‹ค๋Š” ๊ฐ€์ • ํ•˜์˜ ๋‘๊ฐœ์˜ ์˜ˆ์ œ๋กœ
 ๋ณด์ด๊ฒ ์Šต๋‹ˆ๋‹ค:
@@ -883,6 +915,10 @@ 
http://www.cl.cam.ac.uk/users/pes20/ppc-supplemental/test6.pdf ์™€
   ์˜์กด์„ฑ์ด ์‚ฌ๋ผ์ง€์ง€ ์•Š๊ฒŒ ํ•˜๋Š”๋ฐ ๋„์›€์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.  ๋” ๋งŽ์€ ์ •๋ณด๋ฅผ
   ์œ„ํ•ด์„  "์ปดํŒŒ์ผ๋Ÿฌ ๋ฐฐ๋ฆฌ์–ด" ์„น์…˜์„ ์ฐธ๊ณ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
 
+  (*) ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ์ปจํŠธ๋กค ์˜์กด์„ฑ์„ ๊ฐ–๋Š” if ๋ฌธ์˜ then ์ ˆ๊ณผ else ์ ˆ๊ณผ ์ด ๋‘ ์ ˆ
+  ๋‚ด์—์„œ ํ˜ธ์ถœ๋˜๋Š” ํ•จ์ˆ˜๋“ค์—๋งŒ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.  ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ์ปจํŠธ๋กค ์˜์กด์„ฑ์„
+  ๊ฐ–๋Š” if ๋ฌธ์„ ๋’ค๋”ฐ๋ฅด๋Š” ์ฝ”๋“œ์—๋Š” ์ ์šฉ๋˜์ง€ -์•Š์Šต๋‹ˆ๋‹ค-.
+
   (*) ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ๋ณดํ†ต ๋‹ค๋ฅธ ํƒ€์ž…์˜ ๋ฐฐ๋ฆฌ์–ด๋“ค๊ณผ ์ง์„ ๋งž์ถฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
 
   (*) ์ปจํŠธ๋กค ์˜์กด์„ฑ์€ ์ดํ–‰์„ฑ์„ ์ œ๊ณตํ•˜์ง€ -์•Š์Šต๋‹ˆ๋‹ค-.  ์ดํ–‰์„ฑ์ด ํ•„์š”ํ•˜๋‹ค๋ฉด,
-- 
2.10.0

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] mac80211: use inline kernel-doc for struct ieee80211_hw

2016-10-21 Thread Jani Nikula
On Fri, 21 Oct 2016, Johannes Berg  wrote:
> On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
>> It's easier to manage the kernel-doc for the fields when they
>> documentation is next to the field.
>
> Hah, I wasn't even aware this was possible. Thanks!

It is indeed. And this lets you have multi-paragraph descriptions for
fields which would be impossible in the top level struct kernel-doc,
because you can't have blank lines in the field descriptions there.

Currently you can't have one line inline /** @foo: bar */ descriptions
though, the opening and closing comment markers still need to be on
their own lines. Maybe I'll get around to fixing that one of these
days...

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/2] mac80211: fix some sphinx warnings

2016-10-21 Thread Johannes Berg
On Fri, 2016-10-21 at 16:14 +0300, Jani Nikula wrote:
> On Fri, 21 Oct 2016, Johannes Berg  wrote:
> > 
> > On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
> > > 
> > > Signed-off-by: Jani Nikula 
> > > ---
> > > ย include/net/mac80211.h | 21 +
> > > ย 1 file changed, 13 insertions(+), 8 deletions(-)
> > > 
> > > diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> > > index a810dfcb83c2..e2dba93e374f 100644
> > > --- a/include/net/mac80211.h
> > > +++ b/include/net/mac80211.h
> > > @@ -811,14 +811,18 @@ enum mac80211_rate_control_flags {
> > > ย  * in the control information, and it will be filled by the rate
> > > ย  * control algorithm according to what should be sent. For
> > > example,
> > > ย  * if this array contains, in the format { ,  } the
> > > - * information
> > > + * information::
> > > 
> > [...]
> > 
> > interesting, are these not enabled by default?

> rst wants indented blocks to be separated by blank lines from the
> preceding and following blocks. For that you could just add the blank
> lines, and it'll work.
> 
> I presumed this was nicer as preformatted/monospaced text, and for
> that you'll need the "::". Up to you to have that or not.

Well, I meant the warnings :)

But yeah, this is better as preformatted text. It never came out that
way with docbook either, I think, but now we can fix that.

> > I guess I'll pick up these patches, even if they probably make
> > things
> > worse in my tree, since there it's still using docbook. But once we
> > merge everything it should be good then.
> 
> Oh, it's built as reStructuredText in Linus' tree. Again, up to you.

Right. No worries. I just haven't gotten my own change back from
Linus's tree into mine, but it only means that generating the doc from
mac80211-next or net-next might be weird, which isn't a problem.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/2] mac80211: fix some sphinx warnings

2016-10-21 Thread Jani Nikula
On Fri, 21 Oct 2016, Johannes Berg  wrote:
> On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
>> Signed-off-by: Jani Nikula 
>> ---
>> ย include/net/mac80211.h | 21 +
>> ย 1 file changed, 13 insertions(+), 8 deletions(-)
>> 
>> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
>> index a810dfcb83c2..e2dba93e374f 100644
>> --- a/include/net/mac80211.h
>> +++ b/include/net/mac80211.h
>> @@ -811,14 +811,18 @@ enum mac80211_rate_control_flags {
>> ย  * in the control information, and it will be filled by the rate
>> ย  * control algorithm according to what should be sent. For example,
>> ย  * if this array contains, in the format { ,  } the
>> - * information
>> + * information::
>> 
> [...]
>
> interesting, are these not enabled by default?

rst wants indented blocks to be separated by blank lines from the
preceding and following blocks. For that you could just add the blank
lines, and it'll work.

I presumed this was nicer as preformatted/monospaced text, and for that
you'll need the "::". Up to you to have that or not.

> I guess I'll pick up these patches, even if they probably make things
> worse in my tree, since there it's still using docbook. But once we
> merge everything it should be good then.

Oh, it's built as reStructuredText in Linus' tree. Again, up to you.

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/2] mac80211: fix some sphinx warnings

2016-10-21 Thread Johannes Berg
On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
> Signed-off-by: Jani Nikula 
> ---
> ย include/net/mac80211.h | 21 +
> ย 1 file changed, 13 insertions(+), 8 deletions(-)
> 
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index a810dfcb83c2..e2dba93e374f 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -811,14 +811,18 @@ enum mac80211_rate_control_flags {
> ย  * in the control information, and it will be filled by the rate
> ย  * control algorithm according to what should be sent. For example,
> ย  * if this array contains, in the format { ,  } the
> - * information
> + * information::
> 
[...]

interesting, are these not enabled by default?

I guess I'll pick up these patches, even if they probably make things
worse in my tree, since there it's still using docbook. But once we
merge everything it should be good then.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] mac80211: use inline kernel-doc for struct ieee80211_hw

2016-10-21 Thread Johannes Berg
On Fri, 2016-10-21 at 15:57 +0300, Jani Nikula wrote:
> It's easier to manage the kernel-doc for the fields when they
> documentation is next to the field.

Hah, I wasn't even aware this was possible. Thanks!

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: sequence diagrams in rst documentation

2016-10-21 Thread Johannes Berg
> I had the same conclusion for math:: directives pulling in latex
> dependency [1]. Hopefully Markus can help here.

Yeah, good one.

Maybe it's actually simple? Depending on where sphinx will look for
plugins first, we could just ship the plugins with a no-op
implementation (pass through the text as pre-formatted text), and if it
finds the plugin first in a system-wide path that version would win for
the better rendering?

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: sequence diagrams in rst documentation

2016-10-21 Thread Jani Nikula
On Fri, 21 Oct 2016, Johannes Berg  wrote:
>> >https://pythonhosted.org/sphinxcontrib-aafig/
>> > 
>> > I've not actually played with it at all, but I like the idea that
>> > we'd have readable diagrams in the source docs as well...
>> 
>> Well, maybe. I agree having it readable in the source docs as well is
>> nice, but for sequence diagrams in particular, I don't think
>> 
>> ย  ย  +---+ย +---+
>> | Hello +>+ aafigure! |
>> +---+ย +---+
>> 
>> really beats
>> 
>> ย  ย Hello -> aafigure!
>
>
> I found another one:
>
> https://pypi.python.org/pypi/sphinxcontrib-plantuml
>
> That one has really nice output and features, but ends up being a
> *java* (of all the things) tool that the thing calls out to ...
>
>
> Perhaps we can have a compromise and embed the raw text when the
> tooling isn't all installed, so you can still build useful
> documentation, but to get all the "prettiness" you might have to
> install more dependencies?

I had the same conclusion for math:: directives pulling in latex
dependency [1]. Hopefully Markus can help here.

BR,
Jani.


[1] http://lkml.kernel.org/r/877f93qdd2@intel.com



-- 
Jani Nikula, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/2] mac80211: fix some sphinx warnings

2016-10-21 Thread Jani Nikula
Signed-off-by: Jani Nikula 
---
 include/net/mac80211.h | 21 +
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index a810dfcb83c2..e2dba93e374f 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -811,14 +811,18 @@ enum mac80211_rate_control_flags {
  * in the control information, and it will be filled by the rate
  * control algorithm according to what should be sent. For example,
  * if this array contains, in the format { ,  } the
- * information
+ * information::
+ *
  *{ 3, 2 }, { 2, 2 }, { 1, 4 }, { -1, 0 }, { -1, 0 }
+ *
  * then this means that the frame should be transmitted
  * up to twice at rate 3, up to twice at rate 2, and up to four
  * times at rate 1 if it doesn't get acknowledged. Say it gets
  * acknowledged by the peer after the fifth attempt, the status
- * information should then contain
+ * information should then contain::
+ *
  *   { 3, 2 }, { 2, 2 }, { 1, 1 }, { -1, 0 } ...
+ *
  * since it was transmitted twice at rate 3, twice at rate 2
  * and once at rate 1 after which we received an acknowledgement.
  */
@@ -1168,8 +1172,8 @@ enum mac80211_rx_vht_flags {
  * @rate_idx: index of data rate into band's supported rates or MCS index if
  * HT or VHT is used (%RX_FLAG_HT/%RX_FLAG_VHT)
  * @vht_nss: number of streams (VHT only)
- * @flag: %RX_FLAG_*
- * @vht_flag: %RX_VHT_FLAG_*
+ * @flag: %RX_FLAG_\*
+ * @vht_flag: %RX_VHT_FLAG_\*
  * @rx_flags: internal RX flags for mac80211
  * @ampdu_reference: A-MPDU reference number, must be a different value for
  * each A-MPDU but the same for each subframe within one A-MPDU
@@ -1432,7 +1436,7 @@ enum ieee80211_vif_flags {
  * @probe_req_reg: probe requests should be reported to mac80211 for this
  * interface.
  * @drv_priv: data area for driver use, will always be aligned to
- * sizeof(void *).
+ * sizeof(void \*).
  * @txq: the multicast data TX queue (if driver uses the TXQ abstraction)
  */
 struct ieee80211_vif {
@@ -1743,7 +1747,7 @@ struct ieee80211_sta_rates {
  * @wme: indicates whether the STA supports QoS/WME (if local devices does,
  * otherwise always false)
  * @drv_priv: data area for driver use, will always be aligned to
- * sizeof(void *), size is determined in hw information.
+ * sizeof(void \*), size is determined in hw information.
  * @uapsd_queues: bitmap of queues configured for uapsd. Only valid
  * if wme is supported.
  * @max_sp: max Service Period. Only valid if wme is supported.
@@ -2146,12 +2150,12 @@ enum ieee80211_hw_flags {
  *
  * @radiotap_mcs_details: lists which MCS information can the HW
  * reports, by default it is set to _MCS, _GI and _BW but doesn't
- * include _FMT. Use %IEEE80211_RADIOTAP_MCS_HAVE_* values, only
+ * include _FMT. Use %IEEE80211_RADIOTAP_MCS_HAVE_\* values, only
  * adding _BW is supported today.
  *
  * @radiotap_vht_details: lists which VHT MCS information the HW reports,
  * the default is _GI | _BANDWIDTH.
- * Use the %IEEE80211_RADIOTAP_VHT_KNOWN_* values.
+ * Use the %IEEE80211_RADIOTAP_VHT_KNOWN_\* values.
  *
  * @radiotap_timestamp: Information for the radiotap timestamp field; if the
  * 'units_pos' member is set to a non-negative value it must be set to
@@ -2486,6 +2490,7 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct 
sk_buff *skb);
  * in the software stack cares about, we will, in the future, have mac80211
  * tell the driver which information elements are interesting in the sense
  * that we want to see changes in them. This will include
+ *
  *  - a list of information element IDs
  *  - a list of OUIs for the vendor information element
  *
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/2] mac80211: use inline kernel-doc for struct ieee80211_hw

2016-10-21 Thread Jani Nikula
It's easier to manage the kernel-doc for the fields when they
documentation is next to the field.

Signed-off-by: Jani Nikula 

---

The same treatment is sorely needed for struct ieee80211_ops also, but I
don't have the time... this would get rid of the rest of the warnings in
mac80211.h.
---
 include/net/mac80211.h | 280 ++---
 1 file changed, 173 insertions(+), 107 deletions(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index e2dba93e374f..7f659c21ffba 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2078,147 +2078,213 @@ enum ieee80211_hw_flags {
 /**
  * struct ieee80211_hw - hardware information and state
  *
- * This structure contains the configuration and hardware
- * information for an 802.11 PHY.
- *
- * @wiphy: This points to the  wiphy allocated for this
- * 802.11 PHY. You must fill in the @perm_addr and @dev
- * members of this structure using SET_IEEE80211_DEV()
- * and SET_IEEE80211_PERM_ADDR(). Additionally, all supported
- * bands (with channels, bitrates) are registered here.
- *
- * @conf:  ieee80211_conf, device configuration, don't use.
- *
- * @priv: pointer to private area that was allocated for driver use
- * along with this structure.
- *
- * @flags: hardware flags, see  ieee80211_hw_flags.
- *
- * @extra_tx_headroom: headroom to reserve in each transmit skb
- * for use by the driver (e.g. for transmit headers.)
- *
- * @extra_beacon_tailroom: tailroom to reserve in each beacon tx skb.
- * Can be used by drivers to add extra IEs.
- *
- * @max_signal: Maximum value for signal (rssi) in RX information, used
- * only when @IEEE80211_HW_SIGNAL_UNSPEC or @IEEE80211_HW_SIGNAL_DB
- *
- * @max_listen_interval: max listen interval in units of beacon interval
- * that HW supports
- *
- * @queues: number of available hardware transmit queues for
- * data packets. WMM/QoS requires at least four, these
- * queues need to have configurable access parameters.
- *
- * @rate_control_algorithm: rate control algorithm for this hardware.
- * If unset (NULL), the default algorithm will be used. Must be
- * set before calling ieee80211_register_hw().
- *
- * @vif_data_size: size (in bytes) of the drv_priv data area
- * within  ieee80211_vif.
- * @sta_data_size: size (in bytes) of the drv_priv data area
- * within  ieee80211_sta.
- * @chanctx_data_size: size (in bytes) of the drv_priv data area
- * within  ieee80211_chanctx_conf.
- * @txq_data_size: size (in bytes) of the drv_priv data area
- * within @struct ieee80211_txq.
- *
- * @max_rates: maximum number of alternate rate retry stages the hw
- * can handle.
- * @max_report_rates: maximum number of alternate rate retry stages
- * the hw can report back.
- * @max_rate_tries: maximum number of tries for each stage
- *
- * @max_rx_aggregation_subframes: maximum buffer size (number of
- * sub-frames) to be used for A-MPDU block ack receiver
- * aggregation.
- * This is only relevant if the device has restrictions on the
- * number of subframes, if it relies on mac80211 to do reordering
- * it shouldn't be set.
- *
- * @max_tx_aggregation_subframes: maximum number of subframes in an
- * aggregate an HT driver will transmit. Though ADDBA will advertise
- * a constant value of 64 as some older APs can crash if the window
- * size is smaller (an example is LinkSys WRT120N with FW v1.0.07
- * build 002 Jun 18 2012).
- *
- * @max_tx_fragments: maximum number of tx buffers per (A)-MSDU, sum
- * of 1 + skb_shinfo(skb)->nr_frags for each skb in the frag_list.
- *
- * @offchannel_tx_hw_queue: HW queue ID to use for offchannel TX
- * (if %IEEE80211_HW_QUEUE_CONTROL is set)
- *
- * @radiotap_mcs_details: lists which MCS information can the HW
- * reports, by default it is set to _MCS, _GI and _BW but doesn't
- * include _FMT. Use %IEEE80211_RADIOTAP_MCS_HAVE_\* values, only
- * adding _BW is supported today.
- *
- * @radiotap_vht_details: lists which VHT MCS information the HW reports,
- * the default is _GI | _BANDWIDTH.
- * Use the %IEEE80211_RADIOTAP_VHT_KNOWN_\* values.
- *
- * @radiotap_timestamp: Information for the radiotap timestamp field; if the
- * 'units_pos' member is set to a non-negative value it must be set to
- * a combination of a IEEE80211_RADIOTAP_TIMESTAMP_UNIT_* and a
- * IEEE80211_RADIOTAP_TIMESTAMP_SPOS_* value, and then the timestamp
- * field will be added and populated from the  ieee80211_rx_status
- * device_timestamp. If the 'accuracy' member is non-negative, it's put
- * into the accuracy radiotap field and the accuracy known flag is set.
- *
- * @netdev_features: netdev features to be set in each netdev created
- * from this HW. Note that not all features are usable with mac80211,
- * other features will be rejected during HW registration.
- *
- * @uapsd_queues: 

Re: sequence diagrams in rst documentation

2016-10-21 Thread Johannes Berg

> > https://pythonhosted.org/sphinxcontrib-aafig/
> > 
> > I've not actually played with it at all, but I like the idea that
> > we'd have readable diagrams in the source docs as well...
> 
> Well, maybe. I agree having it readable in the source docs as well is
> nice, but for sequence diagrams in particular, I don't think
> 
> ย  ย  +---+ย +---+
> | Hello +>+ aafigure! |
> +---+ย +---+
> 
> really beats
> 
> ย  ย Hello -> aafigure!


I found another one:

https://pypi.python.org/pypi/sphinxcontrib-plantuml

That one has really nice output and features, but ends up being a
*java* (of all the things) tool that the thing calls out to ...


Perhaps we can have a compromise and embed the raw text when the
tooling isn't all installed, so you can still build useful
documentation, but to get all the "prettiness" you might have to
install more dependencies?

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html