Received: by 10.213.65.68 with SMTP id h4csp2657199imn; Mon, 2 Apr 2018 11:28:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+nmwib7wzSuq+Ji6j7iaZD+SoV5RTxngXhLruvsaouGhL3s0C+0nTzH52LwO5nt21Y40++ X-Received: by 2002:a17:902:464:: with SMTP id 91-v6mr10790485ple.126.1522693694797; Mon, 02 Apr 2018 11:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522693694; cv=none; d=google.com; s=arc-20160816; b=nl5WfnGhQAnHlMbMwlVnh3bKbOLaDkiYaYBhL+6S41c1w0bEMqdVndGzepooX3708R I/cThtOSDt7B9X/AuhtozC/fOocnUoMf9141N/K6PIGt/xpLyVXqkM5Eh9dyBQd5EJ/d 6zbaL6UM7uRTiP4MYQ/Zf7eSprYMEuIQPGaX0r3Sd8AA8aZvlDf/XVYZGEkOfcRWX65T E0IW0paXGKpTV085AGXK1Ca2+DqRHxtZy2U8+ydRTw74sQI+Jw6D1J5vigOBaFEzDuWR yWtnr1zWIEhUFJl+ggsQBNN4JR9Ymp2n+/5DikO0sQbCJKejLj6JV6HOs18WSLQZDTzS 0Prw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=7mLS0D4VPxhugsTzc9/xAQ7wsIArddtdrqdhO2uGt3I=; b=O8OwFwfNLH8Ey+kkws/oLlkb16y799hf7Nx40+33w1i45QIzmhvMSf4CPfADeMHn82 dphHF7gMRXIUP6S20kFJn5yAZCvrERByNiglPkq+IX/4BlEeC2UIwaoSxT3tVudMVWjq yOnKe900T1EddJoIAbeP2BpSKBWshLN0i9NRshiVMpG7LgF4+7hPU3XUpaAhN0etOsk/ Hap2Q7kFW13vJw6Q+9ustuFBz2QW4v5L3Tn7EBskCuLP6nM3TxAQgVtTwE3KRx1s6F17 N4k0Z1s2xhV+YmEPOzThogC3COXFseJQ5Drh3rijwsglVrQQGrjgkqtFI8LK2KlTJrHK aIeA== 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 x7si503081pgr.301.2018.04.02.11.27.59; Mon, 02 Apr 2018 11:28:14 -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 S1754380AbeDBS0O (ORCPT + 99 others); Mon, 2 Apr 2018 14:26:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:46030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753072AbeDBS0N (ORCPT ); Mon, 2 Apr 2018 14:26:13 -0400 Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) (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 594912178F; Mon, 2 Apr 2018 18:26:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 594912178F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=atull@kernel.org Received: by mail-qt0-f175.google.com with SMTP id g5so16479364qth.7; Mon, 02 Apr 2018 11:26:12 -0700 (PDT) X-Gm-Message-State: ALQs6tDdqdX3rAxn3O8oF296aSOa3xuFAYt5BaJpbYzXGWFu/+oVfwm5 NJ3TBtz4XxtKmHiWtWx4Uvf+R++ZZPTJoPybNZo= X-Received: by 10.200.22.145 with SMTP id r17mr15092856qtj.190.1522693571507; Mon, 02 Apr 2018 11:26:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.27.18 with HTTP; Mon, 2 Apr 2018 11:25:31 -0700 (PDT) In-Reply-To: <201804030128.83Wu99al%fengguang.wu@intel.com> References: <1522682026-11395-3-git-send-email-p.pisati@gmail.com> <201804030128.83Wu99al%fengguang.wu@intel.com> From: Alan Tull Date: Mon, 2 Apr 2018 13:25:31 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support To: kbuild test robot Cc: Paolo Pisati , kbuild-all@01.org, Moritz Fischer , Rob Herring , Mark Rutland , linux-fpga@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 2, 2018 at 12:43 PM, kbuild test robot wrote: This is complaining because Paolo's patch was rebased onto a branch that had an API change. Alan > Hi Paolo, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.16 next-20180329] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Paolo-Pisati/fpga-Lattice-MachXO2-Slave-SPI-FPGA-Manager-support/20180403-000300 > config: i386-allmodconfig (attached as .config) > compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > All error/warnings (new ones prefixed by >>): > > drivers/fpga/machxo2-spi.c: In function 'machxo2_spi_probe': >>> drivers/fpga/machxo2-spi.c:361:5: error: 'struct fpga_manager' has no member named 'parent' > mgr->parent = dev; > ^~ >>> drivers/fpga/machxo2-spi.c:367:27: error: passing argument 1 of 'fpga_mgr_register' from incompatible pointer type [-Werror=incompatible-pointer-types] > return fpga_mgr_register(mgr); > ^~~ > In file included from drivers/fpga/machxo2-spi.c:12:0: > include/linux/fpga/fpga-mgr.h:173:5: note: expected 'struct device *' but argument is of type 'struct fpga_manager *' > int fpga_mgr_register(struct device *dev, const char *name, > ^~~~~~~~~~~~~~~~~ >>> drivers/fpga/machxo2-spi.c:367:9: error: too few arguments to function 'fpga_mgr_register' > return fpga_mgr_register(mgr); > ^~~~~~~~~~~~~~~~~ > In file included from drivers/fpga/machxo2-spi.c:12:0: > include/linux/fpga/fpga-mgr.h:173:5: note: declared here > int fpga_mgr_register(struct device *dev, const char *name, > ^~~~~~~~~~~~~~~~~ > drivers/fpga/machxo2-spi.c: In function 'machxo2_spi_remove': >>> drivers/fpga/machxo2-spi.c:374:22: error: passing argument 1 of 'fpga_mgr_unregister' from incompatible pointer type [-Werror=incompatible-pointer-types] > fpga_mgr_unregister(mgr); > ^~~ > In file included from drivers/fpga/machxo2-spi.c:12:0: > include/linux/fpga/fpga-mgr.h:176:6: note: expected 'struct device *' but argument is of type 'struct fpga_manager *' > void fpga_mgr_unregister(struct device *dev); > ^~~~~~~~~~~~~~~~~~~ > drivers/fpga/machxo2-spi.c: In function 'machxo2_spi_probe': >>> drivers/fpga/machxo2-spi.c:368:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > cc1: some warnings being treated as errors > > vim +361 drivers/fpga/machxo2-spi.c > > 346 > 347 static int machxo2_spi_probe(struct spi_device *spi) > 348 { > 349 struct device *dev = &spi->dev; > 350 struct fpga_manager *mgr; > 351 > 352 if (spi->max_speed_hz > MACHXO2_MAX_SPEED) { > 353 dev_err(dev, "Speed is too high\n"); > 354 return -EINVAL; > 355 } > 356 > 357 mgr = devm_kzalloc(dev, sizeof(*mgr), GFP_KERNEL); > 358 if (!mgr) > 359 return -ENOMEM; > 360 > > 361 mgr->parent = dev; > 362 mgr->name = "Lattice MachXO2 SPI FPGA Manager"; > 363 mgr->mops = &machxo2_ops; > 364 mgr->priv = spi; > 365 spi_set_drvdata(spi, mgr); > 366 > > 367 return fpga_mgr_register(mgr); > > 368 } > 369 > 370 static int machxo2_spi_remove(struct spi_device *spi) > 371 { > 372 struct fpga_manager *mgr = spi_get_drvdata(spi); > 373 > > 374 fpga_mgr_unregister(mgr); > 375 > 376 return 0; > 377 } > 378 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation