Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4484050yba; Sun, 19 May 2019 20:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqW5YRkcp66+e31oto5ctwkc/ZTt10ywqVeVJARhnf5EBmXOArCQkjaTTP0LGoGzyqKvGQ X-Received: by 2002:a63:1512:: with SMTP id v18mr21621435pgl.69.1558324460438; Sun, 19 May 2019 20:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558324460; cv=none; d=google.com; s=arc-20160816; b=uNQeMqOpsU3qQIZTUhy8K0pJykoHB5pWiinapHwcz9DUUBW+/mqHXt9NKLhn2qfl0i Lx+5SZLSElutojS76Ev59rRQHttqNsBuRXdhtnIgDsXMDvkw0n41EbGtvHaq7t5+gRyP JtkuhMnMWQu+Fu1t1l4VfyMid1jshPoOdw+2cNN01ydJVoLXa/mSWROlqQqN6GYNVC5N N3nNX7PnOkEp7ZAVFoNbQP2GNGEMZWVlgjgtXMYrgcgI1vj2aZfi1bhBHUqXTrLMwZJD ODhMm+sUThtYCZLqMReFmL/nkbdOPK9zW2jBxdsAEEBqlmRwAMGwZcc41yYKfCtF5EAj Kpjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=nrSr6Am16kmGIEuLJled7IsP9Oyyyt3xELUMFjlkK5k=; b=t/kiHnMw0bbsHMJSsaYBzGgGcuec9hca2pMvqkayzUnixlDl7nUzf+UrViMSKUJ4t0 F997CDTgmtdeS6iTWJBJAQx/XzyhhYr16xTrLnRKHZ5kPLlQjxEzkwwc88XxrQiIFx/f lMGCWUM+bC2fyGl3awPW+B9YEnNg/R1jPExgQqgn6heYRy+HVD4Pw8iAq8NEEbFxGZI8 xHP2zbBDVPhhZDcT/wL++nSXn142v16J9zlJ0fz7jzyoIkPyaY5aGpOEl2K8iiLIcJiP QgI/wY9JnndQfmVIVkl9qREemHVmjWEXrOCe8B9NuaCzylAEpqgTMeo2/f5Vt4TcbpXt ggYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PXkbfvwx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si15781024pgc.116.2019.05.19.20.54.05; Sun, 19 May 2019 20:54:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PXkbfvwx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730090AbfETChF (ORCPT + 99 others); Sun, 19 May 2019 22:37:05 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40746 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbfETChF (ORCPT ); Sun, 19 May 2019 22:37:05 -0400 Received: by mail-pf1-f196.google.com with SMTP id u17so6433666pfn.7; Sun, 19 May 2019 19:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=nrSr6Am16kmGIEuLJled7IsP9Oyyyt3xELUMFjlkK5k=; b=PXkbfvwxwRZk3FGE9Zjl1lpRl7t55m8qWNAob55aJ1zwu/+RFy0nDeDaBL+u4sMVVN T1W2egxiu/dE2HFpowEIwfG8FBN7CaIkN/SFqBcFmYzKdLTzGEMzGhYDeWqR0AiwudKQ RkQmnM3SAMDWqkWtMZmeRtfyzOt4yzSUNRRMcA3uk82Wt4miiyE97JKc+3zvCUUJRl3p 0PXoT1tywIsMU6g71rXXqC3tJCn3GDiYr+tgLZaU6lHKWTagj694p7iJ8GY1USuY3aI1 yVR3lsoYO/Kcc0rvBYLHldLuNYxFDPYVbKCe90U5i1fjOGxwobHJnBIfK3ldqRaAZhQa am5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nrSr6Am16kmGIEuLJled7IsP9Oyyyt3xELUMFjlkK5k=; b=TIVrlm1mWiLB6hWxcvT7kA1Rky1Q97JEXnkKZsj9YT/0rENbCF0tJ7kZZmbCfFrOeF 4kGRtl7KLtdC/3yxYjTKVdd+xQNjsQICsArIMGdDXowuX1AyfuSPLOdPRoGZ9QDR2fYo gUf7hloWcXVw8zE/oXtUuzW2d01nYlxJe7kdYrYtfMmYZQjHrMKfW6tq1wnQHxsSFEBr bdtM4x1A4p2YvUYDwR7rUnamicrGOL4ZuxLJ5bgxg+xXOSjZsavlMRy+w7hpXbhB5T2H 041fFJj9jMTG6Jl9uwuSN1FYpGAlS3GAbcfjM1jk9wQ+k++gZI1uveoQqebIWCAjiVMj sn5w== X-Gm-Message-State: APjAAAWuL8MeF5R4uCGvyRk21VI2QyECv5jAUpQ256l1gh6GoOXlZEPK 3GgO8wLe+dmhYfPQSyhuo6A= X-Received: by 2002:a63:6647:: with SMTP id a68mr56396851pgc.292.1558319824658; Sun, 19 May 2019 19:37:04 -0700 (PDT) Received: from localhost ([43.224.245.181]) by smtp.gmail.com with ESMTPSA id s77sm30287127pfa.63.2019.05.19.19.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 19:37:03 -0700 (PDT) From: Weitao Hou To: mcgrof@kernel.org, keescook@chromium.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Weitao Hou Subject: [PATCH v2] kernel: fix typos and some coding style in comments Date: Mon, 20 May 2019 10:37:00 +0800 Message-Id: <20190520023700.8472-1-houweitaoo@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix lenght to length Signed-off-by: Weitao Hou --- Changes in v2: - fix space before tab warnings --- kernel/sysctl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 943c89178e3d..f78f725f225e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -187,17 +187,17 @@ extern int no_unaligned_warning; * enum sysctl_writes_mode - supported sysctl write modes * * @SYSCTL_WRITES_LEGACY: each write syscall must fully contain the sysctl value - * to be written, and multiple writes on the same sysctl file descriptor - * will rewrite the sysctl value, regardless of file position. No warning - * is issued when the initial position is not 0. + * to be written, and multiple writes on the same sysctl file descriptor + * will rewrite the sysctl value, regardless of file position. No warning + * is issued when the initial position is not 0. * @SYSCTL_WRITES_WARN: same as above but warn when the initial file position is - * not 0. + * not 0. * @SYSCTL_WRITES_STRICT: writes to numeric sysctl entries must always be at - * file position 0 and the value must be fully contained in the buffer - * sent to the write syscall. If dealing with strings respect the file - * position, but restrict this to the max length of the buffer, anything - * passed the max lenght will be ignored. Multiple writes will append - * to the buffer. + * file position 0 and the value must be fully contained in the buffer + * sent to the write syscall. If dealing with strings respect the file + * position, but restrict this to the max length of the buffer, anything + * passed the max length will be ignored. Multiple writes will append + * to the buffer. * * These write modes control how current file position affects the behavior of * updating sysctl values through the proc interface on each write. -- 2.18.0