Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5612263img; Wed, 27 Mar 2019 11:41:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAwa0TMEsbTkQ5iLWHCpTJlQbyGYryz90CjIZ+7sYammSI5BLctsc3EcPjXHoenSFRizf/ X-Received: by 2002:a62:e816:: with SMTP id c22mr7467513pfi.54.1553712114803; Wed, 27 Mar 2019 11:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712114; cv=none; d=google.com; s=arc-20160816; b=ahlpEANpifSBCu0YM39JjIDspC8XCn5u7HnQvVEU7v+REXl8niNXDYOhtWLGbFE03B yYW8NVYoqjrSpWzSnVWOVGFGuJumgk1aToUEwVnfYoYQ2jj2YTbdqG73FAAXt+AawVY/ fLG33pXlAHMfi+cUql5aaZkqYlbvc2y15FEjhEm4fllZT6XTn7C679d3m63KRRCV28bD v+EDIh5jEZGuVh89IsO9IvilCYX27R6Y8b/aHzi7xlWBNsE5aXAXbllW1NidZtIWj8hE gXgRrPpCrQSFuOESMi2uNjeV8T88xE/26rDfNC/QM4GMx2CQyJtTCfGIrFAZ8jjObz64 webg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vBjDV63Vh0BZKwgkXWUeOkzfcUqfYxhz4quT2DdXXjU=; b=XAGe+CWq6fL9MzdMr3fpnyiwzIKnv+3qwOCOvf4IdI+usZ1I9YPZy9xo2x8UpUQhzx 1YEJyPsru27nkbiqM06zE8PugoobswfZIVscW4JaY7HkqlTaSWPMfzNVVwlFf0DtGJb9 1dl5v/cr0OLh2UBJG3FcG4mSYy8uo7e+3v6S6GTAx03mwdXmmHpHMcF/KwXjePvt94Cb yECTwspL2MBtg65bJsSp1JLbA/5MRaCqf0zyDt+9YpAcxU+PiQiKKzgGl+4CIddxVi0w +zN2VYPGiQ7ymO/MjgSPVmlNX7Dp0b9gnDOcpPXDtuCkqN7YVcNVdYojDym9S/h2KAH+ 5bBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aNag8VSb; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si15566122pll.207.2019.03.27.11.41.39; Wed, 27 Mar 2019 11:41:54 -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=@kernel.org header.s=default header.b=aNag8VSb; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403881AbfC0SkC (ORCPT + 99 others); Wed, 27 Mar 2019 14:40:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391046AbfC0SXA (ORCPT ); Wed, 27 Mar 2019 14:23:00 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D79262147C; Wed, 27 Mar 2019 18:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710979; bh=ZgrSHB4xl6vk3l4DmgUmOTBWnGEbjGP3YfKtVJxCpdk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aNag8VSbsOk2dDnAiIo3+LhRMLJkiaK59IsFVI4Y5DnmJeKd0EAbsUu45KBWj0Ksk ihQv+wtsIrpcWiJWI3EkwOime/O0yhEz0aEbnr8l/8UL3y7/pzXna7ftRceVWFKp46 9yUWLCxUxP4TJthqmypMYZwwGk+7qaENwQcf1eYw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Buland Singh , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL 4.9 74/87] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable Date: Wed, 27 Mar 2019 14:20:27 -0400 Message-Id: <20190327182040.17444-74-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Buland Singh [ Upstream commit 24d48a61f2666630da130cc2ec2e526eacf229e3 ] Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes")' introduced a new kernel command line parameter hpet_mmap, that is required to expose the memory map of the HPET registers to user-space. Unfortunately the kernel command line parameter 'hpet_mmap' is broken and never takes effect due to missing '=' character in the __setup() code of hpet_mmap_enable. Before this patch: dmesg output with the kernel command line parameter hpet_mmap=1 [ 0.204152] HPET mmap disabled dmesg output with the kernel command line parameter hpet_mmap=0 [ 0.204192] HPET mmap disabled After this patch: dmesg output with the kernel command line parameter hpet_mmap=1 [ 0.203945] HPET mmap enabled dmesg output with the kernel command line parameter hpet_mmap=0 [ 0.204652] HPET mmap disabled Fixes: 3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes") Signed-off-by: Buland Singh Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/char/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 50272fe81f26..818a8d40e5c9 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -376,7 +376,7 @@ static __init int hpet_mmap_enable(char *str) pr_info("HPET mmap %s\n", hpet_mmap_enabled ? "enabled" : "disabled"); return 1; } -__setup("hpet_mmap", hpet_mmap_enable); +__setup("hpet_mmap=", hpet_mmap_enable); static int hpet_mmap(struct file *file, struct vm_area_struct *vma) { -- 2.19.1