Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3850019ybb; Mon, 23 Mar 2020 08:49:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTk+c0IWqkGD1VZhXWfWJYgZqhSZCvIJ35QHIOpXBWBjoNLz2VdmLuqSzLypryNtakJkh4 X-Received: by 2002:aca:4ecc:: with SMTP id c195mr16713349oib.123.1584978562825; Mon, 23 Mar 2020 08:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584978562; cv=none; d=google.com; s=arc-20160816; b=PT+uEwvFqcRAtgWisXWXbRtNqs9c4O/K5F5RCi3VSvZRkzXy9RjBx2xS6VS8UL1z19 E3CErpw8dwe8xx1B01GjjxaZUoxX7F/ghcRw+gLLGaXxrNKAsQvSjsO+8woDbjH2vxNY U8pCF0SVxqH3qKBDRK+iHpIuRW+XfGXPUUR8sNoHIYZQ/CzidaqSgbYXIwcVq519lxAf 8lRjRqdwruRCLXfYdadMiZB2vBhJyjIeq1RX/ZtGCMypesP2QdEgyU7yeVWszaaLUklf 26jXjiGWLcUodna3Ula/qZq1Idb0gu84+vUIYV41P4537jr58CAqamrxiYo/cDpHo7JJ wTiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=O9DwG23j+ymNdNeUl3KaFUCArpl2YE64/+JaVhnD7SQ=; b=I3y3GE2ZQwoxhKPSv1EzQb2CX61yOZOsxfX749tv3mxRsZznR2XUgWtPl5TIFAhdZv hI45PJkUR0192d0ba+jcD4DWE8K/Wbrk6W+brV103nk0ndoxVTc+IxPTHmBFPNDDWEzW e0WVP56vPfhZQeE8scTNWC2K+Z6G6JE6r46vHLrNcgXiiAY1RbeG1a/6OOtbcCzYBLr5 bNQ3woVBKtAtcr4g87IW+MxRyZy8mzFyYyAMW/YeeR2jmFuFHVHbMD5i6+AvfxvjKDDg VfQ9vpcSDQJzIlEOOugW6Cl8/2XzhUfgo8r+Kao4ZkGBjszOAOf261LFgLHZWGi/GT48 z06w== 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 p27si8089749ota.194.2020.03.23.08.49.09; Mon, 23 Mar 2020 08:49:22 -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 S1727420AbgCWPsr (ORCPT + 99 others); Mon, 23 Mar 2020 11:48:47 -0400 Received: from netrider.rowland.org ([192.131.102.5]:44009 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727176AbgCWPsq (ORCPT ); Mon, 23 Mar 2020 11:48:46 -0400 Received: (qmail 27447 invoked by uid 500); 23 Mar 2020 11:48:45 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Mar 2020 11:48:45 -0400 Date: Mon, 23 Mar 2020 11:48:45 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Vinod Koul cc: kbuild test robot , , , Mathias Nyman , Greg Kroah-Hartman , "linux-arm-msm@vger.kernel.org, Bjorn Andersson" , Yoshihiro Shimoda , Christian Lamparter , John Stultz , Andreas =?iso-8859-1?Q?B=F6hler?= , , , Mathias Nyman Subject: Re: [PATCH v7 1/5] usb: hci: add hc_driver as argument for usb_hcd_pci_probe In-Reply-To: <20200323153429.GR72691@vkoul-mobl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Mar 2020, Vinod Koul wrote: > On 23-03-20, 22:49, kbuild test robot wrote: > > Hi Vinod, > > > > I love your patch! Yet something to improve: > > Thanks for the report. > > > [auto build test ERROR on v5.6-rc7] > > [also build test ERROR on next-20200323] > > [cannot apply to usb/usb-testing] > > [if your patch is applied to the wrong git tree, please drop us a note to help > > improve the system. BTW, we also suggest to use '--base' option to specify the > > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > > > url: https://github.com/0day-ci/linux/commits/Vinod-Koul/usb-xhci-Add-support-for-Renesas-USB-controllers/20200323-203447 > > base: 16fbf79b0f83bc752cee8589279f1ebfe57b3b6e > > config: x86_64-defconfig (attached as .config) > > compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 006244152d6c7dd6a390ff89b236cc7801834b46) > > reproduce: > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # save the attached .config to linux build tree > > COMPILER=clang make.cross ARCH=x86_64 > > > > If you fix the issue, kindly add following tag > > Reported-by: kbuild test robot > > > > All errors (new ones prefixed by >>): > > > > In file included from drivers/usb/host/uhci-hcd.c:847: > > >> drivers/usb/host/uhci-pci.c:297:36: error: passing 'const struct hc_driver *' to parameter of type 'struct hc_driver *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] > > return usb_hcd_pci_probe(dev, id, &uhci_driver); > > ^~~~~~~~~~~~ > > include/linux/usb/hcd.h:483:27: note: passing argument to parameter 'driver' here > > struct hc_driver *driver); > > I need to drop the const qualifiers for uhci_driver, I have checked that > and will send v8 with this fix No, don't remove the qualifier for uhci_driver. Instead, change usb_hcd_pci_probe(): make driver a pointer to const. Alan Stern