Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5585633img; Wed, 27 Mar 2019 11:10:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyULry5maZGEdaHl1il3Cm5GjTrHjiR5Y2/zmwOuQYerTOCqiN1LbYsBcX0BlvAAFxG6W3l X-Received: by 2002:a63:3190:: with SMTP id x138mr28742532pgx.273.1553710235506; Wed, 27 Mar 2019 11:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553710235; cv=none; d=google.com; s=arc-20160816; b=rFcG1lYAeoSmD8yEeZJ6WGzoQ+iMSfdVMJ6TmuuXEgD26Ii+6lZ3A2sYY9fHur28Kq QK7Bnh7agcUQIls1PrIxgCKannUMzVJBam4lTHCp9nNBopyCggQOQ3QW66ZzBynhhX7Z AJzQyp6ZFHcpXq0xvaLPjTp9cBmVtkB8bqQ8i8Xd8fMJpZRLiyo0YGz9TsQDPFt9oIxo ZAGv+5Nf5dRaIwmpoE9rM3KrNoNQxZYwnwnpZ2dzOc4hDE4pXXnjeRiAHc+ziK06dgjv OoYTw/22I9v5w3udZNDqoS05nqx4FE3W8/+snm4lZGYnzgwaHvqkRvZ/RgqHJHVhH8wZ yGZA== 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=/phN5/KxUXvXdx1iwTO8YTxhPF01I1kqBDIyxDwzRZ4=; b=azs7tlBSSoWX3PgneYtKwcGr9PttXyeO3bNYIx5d/tQkAmnhrOIAf+ph2rnfATdDkI 8C1NMlkSDNEeUHUXP/bBvkmvoHLXX34Tp3NgSI3xGfk76QLUxgK2lrE3+Q9Xasekzd1l L2Tuj2R8n6i1FiVcpz8bwrhapBnl0cRTCFqewUJ7toCj30YmMI24QLePls7sIsvAEyFf GDGbKE4293J0sNNvS1FRlt7WoJoxzId+Envh1eK4MLx87NbmFCcLW6LrQqaPqGJjrApy sjHnbBXm4nHLL2/GyMeYyPIlu6nw3h96wtOkMHY+xEQILYWEBuLclcuZ9GrKoMcEWjCu nHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="y7Zq/ts/"; 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 ck9si20768539plb.196.2019.03.27.11.10.20; Wed, 27 Mar 2019 11:10:35 -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="y7Zq/ts/"; 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 S2388560AbfC0SJZ (ORCPT + 99 others); Wed, 27 Mar 2019 14:09:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388530AbfC0SJR (ORCPT ); Wed, 27 Mar 2019 14:09:17 -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 C3E6B21855; Wed, 27 Mar 2019 18:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710156; bh=reVFkqiAp1HrF7VKpjcfa+LqHqM9kSGWxN6mBfx7qws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y7Zq/ts/gfbyrYjw4+vwBDkQkRtYguVBsb+elmTWrJDCI89fbdgaq9XL5YWHGq9KO OinB1sCQ6ZPPjU8agup9srckcZFKuL9dm69qmum8pE/lJcQjk/A7ISA+yikUXw22I6 p+lsM+lV7BRRiUYPHa8Y8Vgl1Yg0AK+G3N/MGxYM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Buland Singh , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH AUTOSEL 5.0 224/262] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable Date: Wed, 27 Mar 2019 14:01:19 -0400 Message-Id: <20190327180158.10245-224-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-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 4a22b4b41aef..9bffcd37cc7b 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -377,7 +377,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