Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45221pxu; Tue, 24 Nov 2020 18:06:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmJwSenN/s8XY/NP/24MQcVTQECdrUee393dRMwZnEfwaeN/dhYkumeb6JFyUIBgm2Z/48 X-Received: by 2002:aa7:d703:: with SMTP id t3mr1327188edq.375.1606270006152; Tue, 24 Nov 2020 18:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270006; cv=none; d=google.com; s=arc-20160816; b=PfQ4phLf8Al9P4CYrL3dWQSDzkrfhlt81zZwXvv3v37K7k8Cdu06u/5m1Vvm52yQ/Y luDH1nIRuEo33HdxKg8U35iA6vqXLJ2hzu0FEqux2/M/J8Q+jk1fEbxd3h7SWG+lY0P1 Emcx45tNGUgQ9d3U5ku6T2qzmwWaLPIRJ61dt2cAR3u9Sv2kDJB1bwakKj4B1maQ4eV7 k9VItl8ftE9MeGe3hEhWCLPQrX3+Kcf4OCCeWLTtIJn0R49sv1QqIqmw98oDGdMyg0nB gWxrpjJd4UzGpvMDB5GK4IdRwsvVmOLUgAXknpww24ialryB7/gZLjZkHp4jYFEff2/K fQEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bFiWTt4rZpALfk96ockHBL57Xo1g7R1/SK5/u3ELrPo=; b=dx1z0YO8osPeBfYFFH4EAgJfJxh0pRfA0M8+OqxbJplxHvRQ1PYuvsYDrxHFYEsHTB bSJrJ1hr6CCzs1oW3e+PnUh9EgaNC34jpp275gd+Tp1fUaEf/iJmHiN0jS2FwXJWHLJ1 2klUzKHgr/VUH+2rYDqOZb0W67UW22RDEzRO6PK3o3V1XIQmQZXbTuBGhmzQk2W2Pr38 cWFJUd96cFOUMcjDo+TLyaaIJe2WiVatoN7W31p8l/P5NDF9Rv9IDDgD+kv8BGqi/FwE 1MnpDgzIT+0tzCon4gyMZrrH2mqPavrWVVCAbh5rju9kJG+HLoqbyC1MfrZoZl//+tuY Vg/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R8ne0sI0; 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 j3si412354eja.61.2020.11.24.18.06.22; Tue, 24 Nov 2020 18:06:46 -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=R8ne0sI0; 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 S2388478AbgKXNyr (ORCPT + 99 others); Tue, 24 Nov 2020 08:54:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387631AbgKXNyq (ORCPT ); Tue, 24 Nov 2020 08:54:46 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94395C0613D6; Tue, 24 Nov 2020 05:54:46 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id n137so8524659pfd.3; Tue, 24 Nov 2020 05:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bFiWTt4rZpALfk96ockHBL57Xo1g7R1/SK5/u3ELrPo=; b=R8ne0sI0l2GBu9LhZhD293kTbgsrhybMTsS76z0V/dkcAHOoj3Yds5LyLL9tiG+OpJ Gx1e6u9z2n1NxASuR9/AwcM1cHq0nlvX+pNudrfxAznUtHqt+sJnPCgBF9Wf2NBvcB6c bcsExc2IhEJxqABrgiaZtlNAmXSCG6jwTKvExS9TCbbtzCHcCP8jishZljGcYyIecttG 3FdaLTiLeNGDCTrew8CM8PslsDZbQdKQwvdCWcJNdf1lnxamOcrDZMxKXMxjg4bKJOKP Cbrwi7HmgpFjCpk5EagIB3KjFY0iQAM9ljgkJr3I4lLtfHOccOFPpWZGaPVzh2264mcV LsHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bFiWTt4rZpALfk96ockHBL57Xo1g7R1/SK5/u3ELrPo=; b=nJp76Bsei1QLMJ/7tKZbf/OVL5Qj9qYSJCUpvcfZ/NfcLZN92hEgxaa1rQbOOWD8i4 /eSxfFwJzjwQb2kN0vFVTltZX3jIhToDn3lvX+46d5zDDwB+iRUTSoAzeDy3O2YJO3v2 zXgd7/rmay9cuO4Av3MbRd/Nn0H154PuLQXrSOdFMWk4WnQeZkQT14MbM5LJDNDZsBll CktNTy2eOBaHheB9FHQ5JC4xc7MyeZupeb7555BmCYVxdPb7MevmHSHyi+KkRMdw3iR8 w0Xb2J23h/A7S2zfkBNjBDr/R3qHFFkmoJZ81EYARZWGqrPZKVkddzIaQTkqqQP3u7PP 5uvg== X-Gm-Message-State: AOAM531FUxCsBmJokxrAPdWkb52vftz+QuWieQ/S/1Z2oC12K24QSxIW TWc1mTJhiNir4dZ5Id2OO5klKpRqoZzEmIuUo5A= X-Received: by 2002:a63:1514:: with SMTP id v20mr3847208pgl.203.1606226086051; Tue, 24 Nov 2020 05:54:46 -0800 (PST) MIME-Version: 1.0 References: <20201124102152.16548-1-alexandru.ardelean@analog.com> <202011241901.eIm4FyEB-lkp@intel.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 24 Nov 2020 15:55:34 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] spi: convert to BIT() all spi_device flags To: "Ardelean, Alexandru" Cc: kernel test robot , linux-spi , devicetree , Linux Kernel Mailing List , "kbuild-all@lists.01.org" , Mark Brown , Rob Herring , "Bogdan, Dragos" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 2:03 PM Ardelean, Alexandru wrote: > > > In file included from drivers/spi/spidev.c:26: > > > >> include/uapi/linux/spi/spidev.h:33: warning: "SPI_CPHA" redefined > > > 33 | #define SPI_CPHA 0x01 > > > > Argh! Can we have only one set of flags? > > > > My bad here for not catching this earlier. > > It might be an idea to create a "include/uapi/linux/spi/spi.h" and include this in " include/uapi/linux/spi/spidev.h " > Then the " include/uapi/linux/spi/spi.h " would also be included in " include/linux/spi/spi.h " > We would naturally drop the BIT() macros for the uapi header. uAPI has its own _BIT*() macros. -- With Best Regards, Andy Shevchenko