[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/6] xsm: expanding function related macros in dummy.h


  • To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 18 Jun 2021 13:03:53 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8PBiWLjiHQp/SNn8XcLxbh42CJZ3ibzJdi8tJxiJW7A=; b=PvYrvrBLf5dXZOxVOEiowuSEpnt5ha4BZYQ9MG/ClD1QQv0J050lrqCOArXn6vsewzqivWJQ15AHXeSVSUpUDcgW7kEC5AvGqpZbQOQl/WYU/n9Zy/Vvz2gc6SL5HLl27QD3ZjTU12PXg9rs61+fo66Wnaq/AFpYGuWzhtMWVNRp09MUFYTSdbaMD/wB0IrgokHNjpYLfFnJ06WoMMcDixemcy3PLswNUVbwp8pkkRrNaAXrbfw2Mgis66/vvkYH61JOURbgJvZI9FvE5D2pX+c+g5wbuDSqRQec5YxsdJ8xyBTqmbqg6W7PYEPjj7R9lEdgkTUq8HKnP2V/CRwPdQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b+y9i4xxBGSgRM9WkPr5v9YXxa69Q4fI6obTJbmCZdaSYXmUTOMsMtq1WEHqllHb1haf3hzzsl3pwISsDAzLAQWk5mbwePDFxP3eTXSnqtOa0UMG0FCIQNVk9KuAWfLBnNte2cAP17XdnwB5X0TslOYYyJhFI2lL4cky/6t1zic7eYdW3YeAxt1Nwde8im0nY1ktPmAAZkkh6Jc7YsgjC0Wr0NQUavt/TF22CeWXvhVPHah8yMQu2aYIakWpUtD8vfX6g3HKUKieozQN/C42Ija9uYyoeGH/QFRxEfZi8++Bt7y1l2wuWslG//RoE3s08lVF7T8mCFZr/5R8H77vhA==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "George Dunlap" <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, "Petre Pircalabu" <ppircalabu@xxxxxxxxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, <persaur@xxxxxxxxx>, <christopher.w.clark@xxxxxxxxx>, <adam.schwalm@xxxxxxxxxx>, <scott.davis@xxxxxxxxxx>
  • Delivery-date: Fri, 18 Jun 2021 12:04:16 +0000
  • Ironport-hdrordr: A9a23:/PYJj61kZ6xxDg735uxCHwqjBSlyeYIsimQD101hICG9Lfb3qy n+ppsmPEHP5Ar5OEtBpTiBUJPwJU80hqQFn7X5Wo3SIzUO2VHYUL2KiLGC/9SOIVyEygcw79 YHT0E6MqyMMbEYt7eJ3ODbKadZ/DDvysnB7o2yvhQdL3AfV0gj1XYfNu/yKDwEeOAsP+tBKH Pz3Lsjm9PtQwVsUiztbUN1L9Qr6ue71a4PJnU9dlYawTjLqQntxK/xEhCe0BtbezRTwY06+W yAtwDi/K2sv9yy1xeZjgbontdrseqk7uEGKN2Hi8ATJDmpogG0ZL55U7nHmDwuuumg5Hsjjd GJiRY9OMZY7W/XYwiO0FvQ8jil9Axrx27pyFeej3emi9f+XigGB81Igp8cWgfF6mI71esMlJ 5j7ia8jd56HBnAlCPy65zjTBdxjHe5pnIkjKo6k2Ffa40Dc7VcxLZvuX+9KK1wWh4S1bpXSd WHVKrnla5rmBKhHjLkV1BUsZuRti9ZJGbcfqBq0fblpgS/nxhCvgclLYIk7y09HD9UcegO2w 3+CNUfqFh5dL5aUUtMPpZ3fSKJMB2FffvtChPcHb21LtBIB5ryw6SHqonds9vaCaDgiqFCxa j8bA==
  • Ironport-sdr: 1Zpy0bzQ24qv0HRrQSP+xRTBcsE8h99D6KCfuR8A2vl61lIYXiK7fAXRG0L9IK7HkygzKQTTlN gbgfLqNAyd0Qojy1BwZ1i0SQ7c4e88tjPyz4Tkjfhy4kmj4OBMe2W/njW9sdngEbFnjVVlquZ7 KI6y7fdhcbm8ZlgghCQKMZIqHsNNLnRYEdHOV/h5Gg2ZAEdK+8kI90dosUDS7pVbPVg58WfpnJ XwMmYO6rx4SQyj6EdaGucUpuDXYU5K8nLtxneeW4SOpbU3wxXjbxN7ZqBwqhfz62v8FTi8UjUU kjA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18/06/2021 00:39, Daniel P. Smith wrote:
> diff --git a/xen/xsm/dummy.h b/xen/xsm/dummy.h
> index 7e2bb09dac..0f8ea163af 100644
> --- a/xen/xsm/dummy.h
> +++ b/xen/xsm/dummy.h
> @@ -9,7 +9,7 @@
>   *
>   *
>   *  Each XSM hook implementing an access check should have its first 
> parameter
> - *  preceded by XSM_DEFAULT_ARG (or use XSM_DEFAULT_VOID if it has no
> + *  preceded by (or use XSM_DEFAULT_VOID if it has no
>   *  arguments). The first non-declaration statement shold be 
> XSM_ASSERT_ACTION
>   *  with the expected type of the hook, which will either define or check the
>   *  value of action.
> @@ -47,14 +47,12 @@ void __xsm_action_mismatch_detected(void);
>   * xsm_default_t argument available, so the value from the assertion is used 
> to
>   * initialize the variable.
>   */
> -#define XSM_INLINE __maybe_unused

Nothing in a header file should ever need __maybe_unused.  Now that the
!XSM case has been untangled, I think this can be dropped, rather than
expanded inline.

> -
> -#define XSM_DEFAULT_ARG /* */
>  #define XSM_DEFAULT_VOID void

XSM_DEFAULT_VOID needs to disappear too.  I can't see what it is even
doing before the cleanup, because if it is missing, you'll fail the
compile for using K&R style functions.

~Andrew




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.