Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp140703rdb; Mon, 18 Sep 2023 10:20:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFh+UBuAXI8QxVKNiDaBAzutR7bq954Mlri2ml6RBVLiVcgmYMCqrNEJyjMnRRZNGMXwOtk X-Received: by 2002:a05:6a20:549f:b0:135:4df7:f165 with SMTP id i31-20020a056a20549f00b001354df7f165mr9942152pzk.21.1695057642267; Mon, 18 Sep 2023 10:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695057642; cv=none; d=google.com; s=arc-20160816; b=KDcpFfiZdzZ8rG+NmdDitXTlp5y9XL2MG1X0K4fXzKYgbOAm1XZzIfU0vk2+tFFJGc 7McQ0vGx46yIJX/TPCLwTk+dOyzrdcNrdXGkXlO5vePTMsfMe4b30twAYlPmbN1zZtYS lWfRAZsGk7Kk6o+2sIwtwIFqoZdr/OIrEMkP0h/J8dCA0L7j5BdturY3eDcvA/ILrdLp 9hXBzwmvHQOOa/2uchbInZlYFjIyMz/mr8G1/sevOfxd3Cf106jnRYfhOT7pXw38NfHa o4PgDj+oAK+zcqih3E2yyXw+5qMzYb+rNIz9hDG2jy6AZmtH5zvVvuzpSwJceiCbRwBu 9Tjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=b7pNnd8aJrcFVKBTB/EY8A3OQLyHTJiTTs5ofLA5H2o=; fh=ptb10af9D/cXq1ezdVC0OU+btLjzz1b+BrZpRYRlOt4=; b=H6Qj6Vva+3lre7YkZjAaSkRFdiu0pNVEZynegWIlIOhghqHSdfHFOFv24iGA/wTdek 8NXI3LJJSpjPLJW/uauDuldaJ4ChnjHzJ+bbJpqoH5S/15vqVQmeJT1dsoboY6H98EWj 6PFEEbDFXn+RpVCwpl7O8Ut1UcaUdO5aBQGQfASGBTwhLrev8yrgYzuTutyR9mrBhFOS oPXSknt/FstRgS+AnKjRQoG/zplBiEbsXnT33faGDF1qzO3Qm6Qmmz6F4y+ejE62Tfik qDiJ1e8+lPK3Op22JDkx/BuOD73XmJaLI1PG4gnpGOxekyR9rjr62FnKapLIoXmCY+9v DogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XRRLLxpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bs62-20020a632841000000b00578086d1387si7131705pgb.74.2023.09.18.10.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XRRLLxpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2D3508142D91; Mon, 18 Sep 2023 03:02:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239544AbjIRKCH (ORCPT + 99 others); Mon, 18 Sep 2023 06:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241210AbjIRKB5 (ORCPT ); Mon, 18 Sep 2023 06:01:57 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 427E4116; Mon, 18 Sep 2023 03:01:51 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38IA1YXm101897; Mon, 18 Sep 2023 05:01:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695031294; bh=b7pNnd8aJrcFVKBTB/EY8A3OQLyHTJiTTs5ofLA5H2o=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=XRRLLxpegvWPHwE9bqjMTkWL+B7ZiJ0oL/UH2adncSHI0umB21MVHM4Y4EwgBAB+c Z0He48UNJ1KQQGu7QrLIDf4ZrjqhhnDOK30FdF8j9AzI2qCtgu99yD4DrTtc+Lp1Fk 9fTXONelencuxMP5ibAoyZdqDcpnq+yfLB53vqLs= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38IA1YxO001164 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Sep 2023 05:01:34 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 18 Sep 2023 05:01:34 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 18 Sep 2023 05:01:34 -0500 Received: from [10.250.135.44] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38IA1Ssl047488; Mon, 18 Sep 2023 05:01:29 -0500 Message-ID: <4c4eaedc-4a53-3816-1c18-92375f043ba1@ti.com> Date: Mon, 18 Sep 2023 13:01:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] net: ti: icss-iep: add dependency for PTP To: Randy Dunlap , CC: kernel test robot , Md Danish Anwar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , References: <20230916050701.15480-1-rdunlap@infradead.org> Content-Language: en-US From: Roger Quadros In-Reply-To: <20230916050701.15480-1-rdunlap@infradead.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 03:02:41 -0700 (PDT) On 16.9.2023 8.07, Randy Dunlap wrote: > When CONFIG_PTP_1588_CLOCK=m and CONFIG_TI_ICSS_IEP=y, > there are build errors when referencing PTP functions. > Fix this by making TI_ICSS_IEP depend on PTP_1588_CLOCK_OPTIONAL. > Also, since TI_ICSSG_PRUETH selects TI_ICSS_IEP and selects don't > follow dependencies, make the former also depend on > PTP_1588_CLOCK_OPTIONAL. > > Fixes these build errors: > > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx': > icss_iep.c:(.text+0x234): undefined reference to `ptp_clock_index' > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_exit': > icss_iep.c:(.text+0x634): undefined reference to `ptp_clock_unregister' > aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_init': > icss_iep.c:(.text+0x1848): undefined reference to `ptp_clock_register' > > Fixes: c1e0230eeaab ("net: ti: icss-iep: Add IEP driver") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Closes: lore.kernel.org/r/202309151207.NPDMiINe-lkp@intel.com > Cc: Roger Quadros > Cc: Md Danish Anwar > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org Reviewed-by: Roger Quadros