From patchwork Fri Jan 24 09:29:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232963 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01E3CC32771 for ; Fri, 24 Jan 2020 11:21:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8BEE206D4 for ; Fri, 24 Jan 2020 11:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864900; bh=kLbLYvgpjUmzYqazPB/FtGEwIj5t2l6eKOHjxntnehU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gMoi6JQgTWpiJKdsQQTlKmS301EvgDIoFFuv0ZgJUZ2lHx9rHvXbFRGE5+Qqgbqfg N8YupyhGbWErLaGeeLhT07hNQmLn8faM7FewQ/klg4r5EeqMWDr6Ol9rD+tuJ59hrt Y1oZTBgEBIVN0FV0Ul3PfwYjGMJHhISarav/f1Y8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391097AbgAXLVj (ORCPT ); Fri, 24 Jan 2020 06:21:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:60152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390482AbgAXLVj (ORCPT ); Fri, 24 Jan 2020 06:21:39 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C853206D4; Fri, 24 Jan 2020 11:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864899; bh=kLbLYvgpjUmzYqazPB/FtGEwIj5t2l6eKOHjxntnehU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7FYUREcwgpJlzN5HlYPIOxCG8kF+SGP8D0SEBLYSY72z24kydxWrOVgqdF1QXXB0 px4ShVMY+SfcNI+1onRbWOmhekKW9ZUEwqufyoGekv0KPAD+aBU2OENAw+a+n8v9rT 1h66cwgvZ5YZyLLXnqLtoxxNCrIz+0UkqTQYXOiQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lu Baolu , Joerg Roedel , Sasha Levin Subject: [PATCH 4.19 396/639] iommu: Add missing new line for dma type Date: Fri, 24 Jan 2020 10:29:26 +0100 Message-Id: <20200124093136.532707211@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Lu Baolu [ Upstream commit 24f307d8abf79486dd3c1b645037df7d91602aaa ] So that all types are printed in the same format. Fixes: c52c72d3dee81 ("iommu: Add sysfs attribyte for domain type") Signed-off-by: Lu Baolu Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index ee25ec22778ef..b82bec4224b91 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -317,7 +317,7 @@ static ssize_t iommu_group_show_type(struct iommu_group *group, type = "unmanaged\n"; break; case IOMMU_DOMAIN_DMA: - type = "DMA"; + type = "DMA\n"; break; } }