Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1540161pxb; Fri, 26 Feb 2021 13:35:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDeC0eyfKJRRs7DohcPDUtZpQAEVVuy6kh5KzDgrD/lBuSoHQN2r3IFQIzumqdyvGFQojF X-Received: by 2002:a17:906:f18a:: with SMTP id gs10mr5471906ejb.341.1614375314694; Fri, 26 Feb 2021 13:35:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614375314; cv=none; d=google.com; s=arc-20160816; b=DYMMuHlej72whgxr1bxs8Cjzncz4EH8DjYodC4H7JGpQGkVJ7q4hG1HEJwAkUgT+3J LDvYIkkorBAc4lie/FPfn1S03/4ZCBLoID5JuyFmJTV+scq+jiCu4gQ1IJ4GgG9BTloG AJ232DOH/45kGMjIYFPOQwE/fc2Iy4l9EbfjRcNNzemr+oYeeWE+p0skX4uAsUzx5MWX L45TJCdaom7DDJaTLO2bn11gQpKjf2wU4JRKTr61dsvuKt6cGM7VQi6efGgCKtnKo3ym 5UjRqd1ympToDEypznHStXa7BCA3wdPQ5YV0wiJ+Je2Q8+KtDSxLH2H5ks0Q35dXHGgD blyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yn3z8555ilXZ27plUdbqV/IXBk4L8y/JmZfJIgzwhQI=; b=mODGyzaia0WBJLMM5j0toaPLjFlndY8iP7gQukyfPTYS5x7ePlkVrM1P0m72RVle2P coEw3qtLb8FhlRoK81GcNdQ7k/ONmYLfJmgGNS9tqq7wZYweK0WPfzepbzRVaR8rEle1 Va9RXk46VuPASxP9/xy3tUD85FR3S/cnQCjkCniixhjeO9iRvQILXyGrhp7gfGVLU9r0 0qzfNXBm7jxme6isYV54IFY7DcRMW1dsT4PPbpISMz6iuRrddZj5SH8+DaFI93MgxdYC 7cweeTUCd3Y/NEFe/6lO591Nh4ECGIiJhtn0ZTAaOtQl7BDAXtRwA5DHGRdtfZkP9toF DRLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CD4DRIO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca23si6533228edb.96.2021.02.26.13.34.52; Fri, 26 Feb 2021 13:35:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CD4DRIO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbhBZVcP (ORCPT + 99 others); Fri, 26 Feb 2021 16:32:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhBZVcL (ORCPT ); Fri, 26 Feb 2021 16:32:11 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20F54C061574; Fri, 26 Feb 2021 13:31:31 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id w1so17119982ejf.11; Fri, 26 Feb 2021 13:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yn3z8555ilXZ27plUdbqV/IXBk4L8y/JmZfJIgzwhQI=; b=CD4DRIO4ve4xJd65Hh+FxT6Cmp/En+5bFE52vvVRltQlALKIcO0ezW3L3oKegqx+Xf LDe8n1mnTdtAWriH3EFhEzHRxvSlYo6SYQxBioRfrhvl7gcltMSHLdj5BDal9y1+ixvV QOJj7JpqTFrJEJgRSZsPyBe4LV7gRbDFaZ4BFVU0YoaT0OUrBho7Jmt1OUAgzpTMjhWy OmE7CS2OzcM0mPuhVpQkCAcRnOsxY/aIdNx0c6h1oSzvVGktEqfrAVpDtSauv0mjYXMM 1RhuhbVL5ypLoAMHsJzF0ZGJ7UwUwortAoQis3QA9iCKeEvj2Dp7WBk90jZxOgKzfrin h9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yn3z8555ilXZ27plUdbqV/IXBk4L8y/JmZfJIgzwhQI=; b=hrvAZQUGgG6qGl20uJwyLfI4p0So/Ft+2YqQp+E0b6Vx08DPJoqqWMJN1P8QXwK2Vw OpIQA5107Z4IluumHcodNmUecqhaY5TmKjgMMhDPpSUnAWUxzP/sMdI4/HcCQpM3m07v NaJtn5UukN7Z2aZeNpGb2ZZ6bluljEMLJgW5cyRJpFml1fdlxNT6bBbZ6df/hfxUcsQh vqCTvPTgqQPlckb6tSndpqcyFfp2hy1OzvcRtWAUl1TpHYgjIMhOOJi65nMFTJwuscmo CX0MQSn8gL0pgLoiD35CAtThg/B5XgN3FRbuooujK4C8VzJaDCb4WicUWQLe4PiJJHnW ujOA== X-Gm-Message-State: AOAM532OCFBuMkNnUFij6sqY13YqHjCmeEAss66sFta2DpgDo6d8dRLq Hzxg1LXfLYwfmhHDaf7jUzQ= X-Received: by 2002:a17:906:758:: with SMTP id z24mr5318243ejb.406.1614375089938; Fri, 26 Feb 2021 13:31:29 -0800 (PST) Received: from skbuf ([188.25.217.13]) by smtp.gmail.com with ESMTPSA id b18sm5907767ejb.77.2021.02.26.13.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 13:31:29 -0800 (PST) Date: Fri, 26 Feb 2021 23:31:28 +0200 From: Vladimir Oltean To: Arnd Bergmann Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] net: dsa: tag_ocelot_8021q: fix driver dependency Message-ID: <20210226213128.pvtekhkdejzulcpz@skbuf> References: <20210225143910.3964364-1-arnd@kernel.org> <20210225143910.3964364-2-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210225143910.3964364-2-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 03:38:32PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When the ocelot driver code is in a library, the dsa tag > code cannot be built-in: > > ld.lld: error: undefined symbol: ocelot_can_inject > >>> referenced by tag_ocelot_8021q.c > >>> dsa/tag_ocelot_8021q.o:(ocelot_xmit) in archive net/built-in.a > > ld.lld: error: undefined symbol: ocelot_port_inject_frame > >>> referenced by tag_ocelot_8021q.c > >>> dsa/tag_ocelot_8021q.o:(ocelot_xmit) in archive net/built-in.a > > Building the tag support only really makes sense for compile-testing > when the driver is available, so add a Kconfig dependency that prevents > the broken configuration while allowing COMPILE_TEST alternative when > MSCC_OCELOT_SWITCH_LIB is disabled entirely. This case is handled > through the #ifdef check in include/soc/mscc/ocelot.h. > > Fixes: 0a6f17c6ae21 ("net: dsa: tag_ocelot_8021q: add support for PTP timestamping") > Signed-off-by: Arnd Bergmann > --- Acked-by: Vladimir Oltean