From patchwork Wed Jun 26 08:46:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 167786 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp662061ilk; Wed, 26 Jun 2019 01:47:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyl63krjj+dJKOtxk+kowD+4vDlU7n8sfTjyGue/1rwoveAopdAR/xy/mGjUsAACD5i8gZC X-Received: by 2002:a17:902:8a8f:: with SMTP id p15mr3960925plo.157.1561538825466; Wed, 26 Jun 2019 01:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561538825; cv=none; d=google.com; s=arc-20160816; b=drILJS8pV3d53gNyrhZOlLIYwZpZVWQ6eDiHQ2Dt/DHhavWfQYCtBhIpLTKibA4DXa mGt0VQZVA+2RBoPZ5iQQDb3nt7QXoPf8cmyl6PV8fMygxenbLX8TgNfZToja7HzlB9D8 eM7dzKj9ZMLrr0outxozndY1/yZk83KByvb0ec0urP5bU2r16i/5rBgmGPfwAupZJtck 5pDpixq/XdanJv50JAAMOBcq/z3+ErtazB/b5vJCyexX1belksoD8lq0xD1UObBphDFp 4xasEi5yw9A6isVPlCoo8euDgk6ciGnKppCPQ1K4qrSY3aTlEqILDsm87EOqUUtEDqAY 14vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=53ycALVydekKUDAG8THYYN9TwiyGVrLYrpK0FRIWHpE=; b=0nm+BWczr2MBIkg5sA9qGYFh4hwCmUOMG9enIzDXGYKRMmDY1CIoTAuCA4wxqdwapg dFNS0iU+jAKadeL6CmD89smDH0+eOijbU5sSLCpbO466LxwxW1DhpgKD7R32bvjhuf0Q kVoO7e2E3ORpsnOTxXjdCDmc2r4BjHi0N55KJTUfWngzntX0FK4owdf6Djp45E0GAvry M09bErUDppNl37i12Wh4Uzqc1uBEajFNxGrdibgNQZrN9Enu/ObcqT0gQqVDVnjOvYlN ZR3D+hC7llx64Ktmmswv/cL0esqY7QWR9YiUWIqnPRfKXtrExy4BJnd3EvrmP1Bfcbv8 EBaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z197si16540283pgz.267.2019.06.26.01.47.05; Wed, 26 Jun 2019 01:47:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726974AbfFZIrD (ORCPT + 30 others); Wed, 26 Jun 2019 04:47:03 -0400 Received: from foss.arm.com ([217.140.110.172]:56504 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfFZIrD (ORCPT ); Wed, 26 Jun 2019 04:47:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA2F92B; Wed, 26 Jun 2019 01:47:02 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 092603F71E; Wed, 26 Jun 2019 01:47:01 -0700 (PDT) From: Suzuki K Poulose To: gregkh@linuxfoundation.org Cc: suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH] drivers: s390/cio: Fix compilation warning about const qualifiers Date: Wed, 26 Jun 2019 09:46:53 +0100 Message-Id: <1561538813-19807-1-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <20190626012218.GB24105@kroah.com> References: <20190626012218.GB24105@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update __ccwdev_check_busid() and __ccwgroupdev_check_busid() to use "const" qualifiers to fix the compiler warning. Reported-by: kbuild test robot Cc: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org Signed-off-by: Suzuki K Poulose --- drivers/s390/cio/ccwgroup.c | 2 +- drivers/s390/cio/device.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index ea176157..c522e93 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c @@ -610,7 +610,7 @@ EXPORT_SYMBOL(ccwgroup_driver_unregister); static int __ccwgroupdev_check_busid(struct device *dev, const void *id) { - char *bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); } diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index f27536b..1132482 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -1655,9 +1655,7 @@ EXPORT_SYMBOL_GPL(ccw_device_force_console); static int __ccwdev_check_busid(struct device *dev, const void *id) { - char *bus_id; - - bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); }