Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1555023ybi; Wed, 19 Jun 2019 23:21:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMXPczt1D0ztDAQJHVZug5Ky/f+m/ZD42ETMzk3YZL/VcKR60fBaO9aKlb5bKptTpAqOQo X-Received: by 2002:a17:90a:1d8:: with SMTP id 24mr1398884pjd.70.1561011677932; Wed, 19 Jun 2019 23:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561011677; cv=none; d=google.com; s=arc-20160816; b=a9oDByOYKE7i0IT/H5Xln6YN/uESI7yXxXb24TySkUOKBvUxmqO8u2vf2Dlp9k2B64 2qeGwvrB42IJTna2XnjJd3a3v7xlyj7CgVEPsw3NXQDzsBNwEwHwVerv/BuFjb4P0l+4 xf2vTnaA3Y04Eg2eSfX5uiGgNl24eaqfud1QoeJZmC5kdPHsTDXOaimxWWJqZgpGxJ3v Ym4DelWSvxyvt06sHuyEkaB3QCP8G/F8S7j8P3sZQg/PacxoNI7eXX4/cq0uOCZfXc4i hZ5LcQ8g+6fCvhonOAT2Y5Y2/XPi1bTVoxHCJOj3PEtrXc+N+VZA0N9AYZt4WuujdcEq nYYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=gobjRewc4RKw7NYE7kGu3NAWpJzCZXN3bcZC1ebFokw=; b=MG/69Sc0hiFOpaaGk4lqFJC9FZeKKTpvh/BdhhuwevM/ERDoXWUpbOK4ys3/muyc75 vPxOPRegYnfH774TwPEeTexGq0epd2z/wlD8rtbykFLrnxVj4ZDGAvKTXXt38ZRMgGUp 34vEbW5KWirj5H3l8+nHpV2Hb+EOP/1iS3cNM25G9eLgPrnzouJPec61GosU5sU6rG+q Rbfc7n637FRz7TZZGUchmMJpJCfTbkjsEUSUfXhTZ+mTT2PBequY32Ys4tQXU/+VM5HY ZJUC+Cs4pVMZ4xzrZYaqA9IWYS54lYTAyWHI6wpA2RvkRBzYPxTIlty/NYFaWJ0Ql+ny cmVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=FWFagoGW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=NH2ynAJp; 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 31si17694655plf.195.2019.06.19.23.21.02; Wed, 19 Jun 2019 23:21:17 -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=@kroah.com header.s=fm1 header.b=FWFagoGW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=NH2ynAJp; 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 S1730522AbfFTGUJ (ORCPT + 99 others); Thu, 20 Jun 2019 02:20:09 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:47807 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfFTGUJ (ORCPT ); Thu, 20 Jun 2019 02:20:09 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4521B22474; Thu, 20 Jun 2019 02:20:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Jun 2019 02:20:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=gobjRewc4RKw7NYE7kGu3NAWpJz CZXN3bcZC1ebFokw=; b=FWFagoGWRbU7EyW0KCrHfGdVQzoXAIh9EFHyOQt5Tti QaGg2p8vMeAQ7KQSbLYno5ORQTMwEdTVIK9o34WitabBxXxzaeNXObNzKdVd3uxB ikjV1Ya7xG2p+hSaeAkvyurUQlphTO19LbVKWpleTOTjQsoCe1oKizdpVqAe0W+c r1dduNA3sPpmFoDHDkt5kO0nhDApuQK2o3a6i665WUixC7MhHJnNk+/6KI1mrq/8 oiqECmQsLIAA/+UfFIciPhIJvnZcqfvxMijEWmxQwuk4E25FKs1HgrupJ65AvW5p HetXPSFmJTps2Est+T0fiOOAiRv4742a7Fs8gvhETtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=gobjRe wc4RKw7NYE7kGu3NAWpJzCZXN3bcZC1ebFokw=; b=NH2ynAJpzefd0TmAR9NDwU 7hbJaJSxFDpq1lIY2QXx/ItXS6STprkJ1LrSz8GrVBX6fQ+1wiBrIglcbBm5jXXl OyLSGUe20JL6fX085mFiwQExouMse4j7wo54iThn2IEK0SmTuezuCnNuXiLuGe3S 19L/rgoZZpqF+DWi1toh0hPr+vKJQyCvvdag4KUNvsmx1uZjeCuJnZeSVsGbPu7Q lurZidX+rlouY7HKjVY7W6eoGBVd/Huc9f5aNuGKUmHC/VzPAcUuM41sOiKvgYy+ hFU2utq3L7eKelYd2HTOx6K04RUZu2QK1A2dLbzKGKxCkTVMLCX18UHOhGmjeIvw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdefgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecukfhppeekfedrkeeirdekledrud dtjeenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhmnecu vehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id C035280059; Thu, 20 Jun 2019 02:20:06 -0400 (EDT) Date: Thu, 20 Jun 2019 08:20:04 +0200 From: Greg KH To: Stephen Rothwell Cc: Arnd Bergmann , Linux Next Mailing List , Linux Kernel Mailing List , Vitaly Lubart , Tomas Winkler Subject: Re: linux-next: manual merge of the char-misc tree with the driver-core tree Message-ID: <20190620062004.GA5485@kroah.com> References: <20190620153552.1392079c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620153552.1392079c@canb.auug.org.au> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 03:35:52PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > drivers/misc/mei/debugfs.c > > between commit: > > 5666d896e838 ("mei: no need to check return value of debugfs_create functions") > > from the driver-core tree and commit: > > b728ddde769c ("mei: Convert to use DEFINE_SHOW_ATTRIBUTE macro") > > from the char-misc tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc drivers/misc/mei/debugfs.c > index df6bf8b81936,47cfd5005e1b..000000000000 > --- a/drivers/misc/mei/debugfs.c > +++ b/drivers/misc/mei/debugfs.c > @@@ -233,22 -154,46 +154,21 @@@ void mei_dbgfs_deregister(struct mei_de > * > * @dev: the mei device structure > * @name: the mei device name > - * > - * Return: 0 on success, <0 on failure. > */ > -int mei_dbgfs_register(struct mei_device *dev, const char *name) > +void mei_dbgfs_register(struct mei_device *dev, const char *name) > { > - struct dentry *dir, *f; > + struct dentry *dir; > > dir = debugfs_create_dir(name, NULL); > - if (!dir) > - return -ENOMEM; > - > dev->dbgfs_dir = dir; > > - f = debugfs_create_file("meclients", S_IRUSR, dir, > - dev, &mei_dbgfs_meclients_fops); > - if (!f) { > - dev_err(dev->dev, "meclients: registration failed\n"); > - goto err; > - } > - f = debugfs_create_file("active", S_IRUSR, dir, > - dev, &mei_dbgfs_active_fops); > - if (!f) { > - dev_err(dev->dev, "active: registration failed\n"); > - goto err; > - } > - f = debugfs_create_file("devstate", S_IRUSR, dir, > - dev, &mei_dbgfs_devstate_fops); > - if (!f) { > - dev_err(dev->dev, "devstate: registration failed\n"); > - goto err; > - } > - f = debugfs_create_file("allow_fixed_address", S_IRUSR | S_IWUSR, dir, > - &dev->allow_fixed_address, > - &mei_dbgfs_allow_fa_fops); > - if (!f) { > - dev_err(dev->dev, "allow_fixed_address: registration failed\n"); > - goto err; > - } > - return 0; > -err: > - mei_dbgfs_deregister(dev); > - return -ENODEV; > + debugfs_create_file("meclients", S_IRUSR, dir, dev, > - &mei_dbgfs_fops_meclients); > ++ &mei_dbgfs_meclients_fops); > + debugfs_create_file("active", S_IRUSR, dir, dev, > - &mei_dbgfs_fops_active); > ++ &mei_dbgfs_active_fops); > + debugfs_create_file("devstate", S_IRUSR, dir, dev, > - &mei_dbgfs_fops_devstate); > ++ &mei_dbgfs_devstate_fops); > + debugfs_create_file("allow_fixed_address", S_IRUSR | S_IWUSR, dir, > + &dev->allow_fixed_address, > - &mei_dbgfs_fops_allow_fa); > ++ &mei_dbgfs_allow_fa_fops); > } > - Looks good to me, thanks! greg k-h