Re: [PATCH] sparc64: Fix numa distance values

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

 



On 10/29/2015 11:50 AM, Sam Ravnborg wrote:
Small nit.

diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index 01d1704..ed3dfdd 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -31,6 +31,9 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
  	 cpu_all_mask : \
  	 cpumask_of_node(pcibus_to_node(bus)))

+extern int __node_distance(int, int);
We have dropped using "extern" for function prototypes.


ok, dropped extern here.

+#define node_distance(a, b) __node_distance(a, b)

And had this be written as:
#define node_distance node_distance

underscores here to separate macro name from function name
seems to be clearer and would also avoid confusing
cross-referencing tools.

int node_distance(int, int);

Then there had been no need for the leadign underscores.

But as I said - only nits.

	Sam

Thanks for the review.
Nitin


--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux