Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1159807lqe; Sun, 7 Apr 2024 23:35:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFst0dhkqcvuQliKirx6baO0JgEabV252H2k1J7uaoMfFymrGEMJsXL+tfPHvzVC8GL5sHSSGllAjf67YtBNjrMMXI1nQQN4NdqRwTew== X-Google-Smtp-Source: AGHT+IE9wShHD9x3Pu27Hk0t5sQNOZcgpjHGd0NpJ3BuN0mZcpFNL7rC6d9RAMpwtnu2Bpi/YhH/ X-Received: by 2002:a05:6830:1384:b0:6e5:23d8:a4c5 with SMTP id d4-20020a056830138400b006e523d8a4c5mr7814288otq.34.1712558142814; Sun, 07 Apr 2024 23:35:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712558142; cv=pass; d=google.com; s=arc-20160816; b=PH9ItLNQPd9IczYsSrbG5nZs3TkCEP4L8M2eM4qPyP1J3jHq3rCEB+pkujrIWYPY/G e7d6yQ9l9IxEBNRQ4v24iSdVtZH6fOmpXwt8k1gpFcAqAfiaFHmzQIc1qXfwmYQ8Xc6N FCdC6MMvsfPYe74nUQhzAm1bIYwcXGGQHEcKNrbPI3Iz03Zk4wnZeoPMzAXRlcwFA9m4 fjE5rCTMxzhfxoEsOM2wZrCumuH8LFWyl+dYaGAPmV5EpeLHkpes2w5O8S0yHLJ1jSOZ GEFFfpSmdTBWoFxLxKM04xukYMvFZQ4mg1/xmoUj9WwGZ9CrXgMjlFxX+o9Lei6Ou7tA htDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FgLtq4Q2TlcP1vQLZpHaRdv1skB8tG59UvbmyPM0V6M=; fh=14GpDYQ1lk2bdGRnv66nKMDI7MJWwDVwFK6WcklsPu8=; b=IY2oJR8dPljsq2gSmi6uKzNevEEWLSo+cwzc+yFVUPqh7dNudm73sYAa+/aCpmL2ND UNwxko3pH2v/BjDOZOaqJ4TVADqAQqyXHcRMNa1rHk2YWBaNhpoVJ6h/sxa5TyCM7Sl2 YHl9iwwAFhY/GUhtQD43zZ+MQqqPRJ2WLGGfv4QIivsXIGBiuhwd0wowZD+KD8RSqq0b B2IFNzO9Y8o6HhH7ELDilaaOg8eNYRUVaXDmifkZQTU1wa9G0r3ZSM2jkWyhPDN5wj77 4n3oSKBjwT6bNU4GuvvBdTrj2+4xldhdjykfJ5at27Ef3Ch8a9aSA+iH2ScF6nu+Pa0H 32lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+OSYLn4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c19-20020a6566d3000000b005d8b7c3a00csi5710187pgw.145.2024.04.07.23.35.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+OSYLn4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2347CB20994 for ; Mon, 8 Apr 2024 06:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 169D818C05; Mon, 8 Apr 2024 06:35:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i+OSYLn4" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B857E1D540 for ; Mon, 8 Apr 2024 06:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712558127; cv=none; b=bKNRxkm/3BbEi29iVfc6hsGkfMeBBlpVHCV0QHptpslcOwHmUJo4EekJRMNF/DID0rkJbr4PcyejcMub7ACCDiC2ydCMTubG7TaeM93m7Md34rTow9A01kJU/9MVBritopb9eH2Sevvr6QfsS1K3eyP7j9u1m5H26SDO6/F/QoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712558127; c=relaxed/simple; bh=/a3dQF9z2JQVz9cciOeh+y8wRKyVwnn+yO0CdzhrgHQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WchaYv7HNSuPWE+EancYgPp5nDnrZYSEtFNa5RteXY71J8O1jK1AB6IEIOI2R1TDyRsL6X0ymp6uvRuCkJQcWgjJmGb+15vNz3T2LDTnAWBLWnFuY2RE6QkA0GhgBenER/9xNTrJBC939rDeyYoKer0Q3E1PpHqgq+/k8G8KWVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=i+OSYLn4; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a51d05c50b2so98476066b.0 for ; Sun, 07 Apr 2024 23:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712558124; x=1713162924; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FgLtq4Q2TlcP1vQLZpHaRdv1skB8tG59UvbmyPM0V6M=; b=i+OSYLn4mZmdJnMZ5pZA2PyU6zqUHRebwArdxncaSGr3tk/yMEH3aBP8uifGQ8XQFV saVhD686lKd1hIihM2MGct1FfN9dlbLNhfZJkHR2YzNExRsDU0AX0ILAu8qbxMlG344I jchjduM1GY60PIUym5L4xrYw583Fma07u8klFPnCXHhdwEl1sxHGHhtX0QhvwZ4+BGa1 wQhxonENWSQgAgpzXx0UcfQUon7H4Nv4vGag7stVF8zKdn00W9vyeaFrpls5rcVUvLBH CWgthrttMXXlR021QC9P3kOw6DikzrduJVJctJPtKzERkMPruMTZY6nbTqsdf7ApOnyr DM0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712558124; x=1713162924; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FgLtq4Q2TlcP1vQLZpHaRdv1skB8tG59UvbmyPM0V6M=; b=WGhmoYTTDCeEZcuE3bgsQTH93VKU6lzy9iKEkZAj/YgjXjQuEbx1Hf4FOhSNSjyRdT C6mQQf4PbvBL8j6qv+eH5HnckCOseao06Uap63kNJA8SqiR2JFDDb+FF+xfgaz6nsLAE AYc2pbPl6K0Z0R4b0BOlRM2njP4JeeFnECAHd/bh1hWfRtrWcvVG8l7YgQ/x5FGMfXVi 14heEQ5DwgbsG70HrL/0Ix6bj1+o0wBDJLEM/+jxJyNwirpyggkUuLaM3uqnqNfPj4gp 2iNyyaT07Ko1AVxQ6YvcvpVrBP8XK22XrBPMWwsKAcnR1pDa9JbyLtiVY01m8lwiDE2V KuQQ== X-Forwarded-Encrypted: i=1; AJvYcCX0F8Gi2fim1upIu9/18JGLaofZtm9ejw6/b3uD4h4ZDo2bcBCtHb/2P+rBC3wYFyxSpk5H4XMfd/bQc23tIW2gDRgyzj0JOb5dknr3 X-Gm-Message-State: AOJu0YxAZnLme9K+l++q22s24aYplZvSnFYYWLzv42xy4QhIiGuPbMcs hNgoVGqyATObMbrAS+kOfRTTTMZPFGb+ScmsBtgxfPG5XgXwqy0W5qUf2NEkklY= X-Received: by 2002:a17:906:3752:b0:a4e:23a1:9ede with SMTP id e18-20020a170906375200b00a4e23a19edemr5078782ejc.36.1712558123980; Sun, 07 Apr 2024 23:35:23 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id i21-20020a170906a29500b00a51a2711177sm4054925ejz.13.2024.04.07.23.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:35:23 -0700 (PDT) Date: Mon, 8 Apr 2024 09:35:18 +0300 From: Dan Carpenter To: Jackson Chui Cc: Alex Elder , Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: Clear up precedence for gcam logging macros Message-ID: References: <20240404001627.94858-1-jacksonchui.qwerty@gmail.com> <658e1f40-d1eb-4ba7-9ba3-0aa05a1ed06e@ieee.org> <5eb3afe2-da7b-4f98-aac2-bff529a02cea@moroto.mountain> <5e1c5156-d906-4473-970b-bff71e4dcd96@ieee.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Apr 06, 2024 at 06:35:22PM -0400, Jackson Chui wrote: > > -Alex > > Dan, Alex I think both of you are spot on. > > I like the suggestion of adding 'gcam_dev()' as an accessor > function and directly calling to 'dev_*'. I'm busy this weekend > but will send out a new patch with this change next week. Nah, don't bother with adding the gcam_dev() function. Like Alex says, it's only 4 characters shorter. Just get rid of the macros and do: dev_err(&gcam->bundle->dev, "Unsupported unsolicited event: %u\n", op->type); regards, dan carpenter